]>
Commit | Line | Data |
---|---|---|
953ff289 DN |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
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. | |
5213506e | 7 | # |
953ff289 | 8 | # |
953ff289 DN |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
953ff289 | 14 | |
5213506e RW |
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 : | |
953ff289 DN |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
953ff289 DN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
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 | |
953ff289 | 31 | fi |
953ff289 | 32 | |
5213506e RW |
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 | } | |
953ff289 DN |
79 | fi |
80 | ||
81 | ||
5213506e RW |
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. | |
22e05272 | 90 | as_myself= |
5213506e RW |
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 | |
953ff289 DN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
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 | ||
22e05272 JM |
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;} | |
5213506e RW |
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 | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
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 | |
43e02a8a RW |
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 | |
5213506e RW |
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 | |
953ff289 | 219 | do |
5213506e RW |
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 : | |
22e05272 JM |
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 | |
5213506e RW |
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." | |
953ff289 | 274 | else |
5213506e RW |
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." | |
953ff289 | 279 | fi |
5213506e RW |
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" | |
22e05272 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
22e05272 JM |
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 | |
5213506e RW |
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 | ||
22e05272 JM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
5213506e RW |
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 | |
22e05272 | 415 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
416 | as_fn_error () |
417 | { | |
22e05272 JM |
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 | |
5213506e | 422 | fi |
22e05272 | 423 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
953ff289 | 426 | |
5213506e RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
953ff289 DN |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
5213506e | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
953ff289 DN |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
5213506e RW |
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 | |
953ff289 | 445 | |
5213506e | 446 | as_me=`$as_basename -- "$0" || |
953ff289 DN |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
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'` | |
953ff289 | 464 | |
953ff289 DN |
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 | ||
953ff289 | 472 | |
5213506e RW |
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 | | |
953ff289 | 482 | sed ' |
5213506e RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
953ff289 | 487 | N |
5213506e RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
953ff289 | 490 | t loop |
5213506e | 491 | s/-\n.*// |
953ff289 | 492 | ' >$as_me.lineno && |
5213506e RW |
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; } | |
953ff289 | 495 | |
22e05272 JM |
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 | |
953ff289 DN |
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 | |
5213506e RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
953ff289 DN |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
5213506e RW |
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';; | |
953ff289 DN |
519 | esac |
520 | ||
5213506e RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
953ff289 | 524 | else |
5213506e RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
953ff289 | 527 | fi |
5213506e RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
953ff289 | 530 | as_ln_s='ln -s' |
5213506e RW |
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. | |
22e05272 | 534 | # In both cases, we have to default to `cp -pR'. |
5213506e | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 536 | as_ln_s='cp -pR' |
5213506e RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
22e05272 | 540 | as_ln_s='cp -pR' |
953ff289 | 541 | fi |
953ff289 | 542 | else |
22e05272 | 543 | as_ln_s='cp -pR' |
953ff289 | 544 | fi |
5213506e RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
953ff289 DN |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
5213506e | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
953ff289 DN |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
22e05272 JM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
953ff289 DN |
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 | ||
1cf3d07d SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
1cf3d07d | 566 | |
22e05272 JM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
5213506e | 569 | |
953ff289 | 570 | # Name of the host. |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
953ff289 DN |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
953ff289 DN |
575 | # |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
5213506e | 579 | ac_clean_files= |
953ff289 | 580 | ac_config_libobj_dir=. |
5213506e | 581 | LIBOBJS= |
953ff289 DN |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
953ff289 DN |
586 | |
587 | # Identity of this package. | |
f1f3453e | 588 | PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library' |
953ff289 DN |
589 | PACKAGE_TARNAME='libgomp' |
590 | PACKAGE_VERSION='1.0' | |
f1f3453e | 591 | PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0' |
953ff289 | 592 | PACKAGE_BUGREPORT='' |
5213506e | 593 | PACKAGE_URL='http://www.gnu.org/software/libgomp/' |
953ff289 DN |
594 | |
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
5213506e | 598 | #ifdef HAVE_SYS_TYPES_H |
953ff289 DN |
599 | # include <sys/types.h> |
600 | #endif | |
5213506e | 601 | #ifdef HAVE_SYS_STAT_H |
953ff289 DN |
602 | # include <sys/stat.h> |
603 | #endif | |
5213506e | 604 | #ifdef STDC_HEADERS |
953ff289 DN |
605 | # include <stdlib.h> |
606 | # include <stddef.h> | |
607 | #else | |
5213506e | 608 | # ifdef HAVE_STDLIB_H |
953ff289 DN |
609 | # include <stdlib.h> |
610 | # endif | |
611 | #endif | |
5213506e RW |
612 | #ifdef HAVE_STRING_H |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
953ff289 DN |
614 | # include <memory.h> |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
5213506e | 618 | #ifdef HAVE_STRINGS_H |
953ff289 DN |
619 | # include <strings.h> |
620 | #endif | |
5213506e | 621 | #ifdef HAVE_INTTYPES_H |
953ff289 | 622 | # include <inttypes.h> |
953ff289 | 623 | #endif |
5213506e RW |
624 | #ifdef HAVE_STDINT_H |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
953ff289 DN |
628 | # include <unistd.h> |
629 | #endif" | |
630 | ||
b8d89b03 ML |
631 | ac_header_list= |
632 | ac_func_list= | |
5213506e RW |
633 | ac_subst_vars='am__EXEEXT_FALSE |
634 | am__EXEEXT_TRUE | |
635 | LTLIBOBJS | |
636 | LIBOBJS | |
3c36aa6b | 637 | get_gcc_base_ver |
2631d95a | 638 | OMP_DEPEND_KIND |
5213506e RW |
639 | OMP_NEST_LOCK_25_KIND |
640 | OMP_LOCK_25_KIND | |
641 | OMP_NEST_LOCK_25_ALIGN | |
642 | OMP_NEST_LOCK_25_SIZE | |
643 | OMP_LOCK_25_ALIGN | |
644 | OMP_LOCK_25_SIZE | |
645 | OMP_NEST_LOCK_KIND | |
646 | OMP_LOCK_KIND | |
647 | OMP_NEST_LOCK_ALIGN | |
648 | OMP_NEST_LOCK_SIZE | |
649 | OMP_LOCK_ALIGN | |
650 | OMP_LOCK_SIZE | |
fff15bad | 651 | INTPTR_T_KIND |
5213506e RW |
652 | USE_FORTRAN_FALSE |
653 | USE_FORTRAN_TRUE | |
654 | link_gomp | |
47ddb895 | 655 | tmake_file |
5213506e RW |
656 | XLDFLAGS |
657 | XCFLAGS | |
658 | config_path | |
a7155c2e | 659 | CPU_COUNT |
6d28b933 RO |
660 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE |
661 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE | |
662 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE | |
663 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE | |
5213506e RW |
664 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE |
665 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE | |
666 | OPT_LDFLAGS | |
667 | SECTION_LDFLAGS | |
237957cc AS |
668 | PLUGIN_GCN_FALSE |
669 | PLUGIN_GCN_TRUE | |
41dbbb37 TS |
670 | PLUGIN_NVPTX_FALSE |
671 | PLUGIN_NVPTX_TRUE | |
672 | offload_additional_lib_paths | |
673 | offload_additional_options | |
0a0384b4 | 674 | offload_targets |
ee332b4a | 675 | offload_plugins |
237957cc AS |
676 | PLUGIN_GCN_LIBS |
677 | PLUGIN_GCN_LDFLAGS | |
678 | PLUGIN_GCN_CPPFLAGS | |
679 | PLUGIN_GCN | |
b2b40051 MJ |
680 | HSA_RUNTIME_LIB |
681 | HSA_RUNTIME_INCLUDE | |
41dbbb37 TS |
682 | PLUGIN_NVPTX_LIBS |
683 | PLUGIN_NVPTX_LDFLAGS | |
684 | PLUGIN_NVPTX_CPPFLAGS | |
685 | PLUGIN_NVPTX | |
686 | CUDA_DRIVER_LIB | |
687 | CUDA_DRIVER_INCLUDE | |
5213506e RW |
688 | libtool_VERSION |
689 | ac_ct_FC | |
690 | FCFLAGS | |
691 | FC | |
692 | MAINT | |
693 | MAINTAINER_MODE_FALSE | |
694 | MAINTAINER_MODE_TRUE | |
695 | enable_static | |
696 | enable_shared | |
7de6ba7a | 697 | lt_host_flags |
5213506e RW |
698 | CPP |
699 | OTOOL64 | |
700 | OTOOL | |
701 | LIPO | |
702 | NMEDIT | |
703 | DSYMUTIL | |
5213506e RW |
704 | OBJDUMP |
705 | LN_S | |
706 | NM | |
707 | ac_ct_DUMPBIN | |
708 | DUMPBIN | |
709 | LD | |
710 | FGREP | |
711 | EGREP | |
712 | GREP | |
713 | SED | |
714 | LIBTOOL | |
715 | BUILD_INFO_FALSE | |
716 | BUILD_INFO_TRUE | |
717 | PERL | |
718 | RANLIB | |
719 | AR | |
720 | am__fastdepCC_FALSE | |
721 | am__fastdepCC_TRUE | |
722 | CCDEPMODE | |
f96b7f1f | 723 | am__nodep |
5213506e RW |
724 | AMDEPBACKSLASH |
725 | AMDEP_FALSE | |
726 | AMDEP_TRUE | |
2fe5a545 | 727 | am__quote |
5213506e RW |
728 | am__include |
729 | DEPDIR | |
730 | OBJEXT | |
731 | EXEEXT | |
732 | ac_ct_CC | |
733 | CPPFLAGS | |
734 | LDFLAGS | |
735 | CFLAGS | |
736 | CC | |
737 | toolexeclibdir | |
738 | toolexecdir | |
739 | multi_basedir | |
22e05272 JM |
740 | AM_BACKSLASH |
741 | AM_DEFAULT_VERBOSITY | |
742 | AM_DEFAULT_V | |
743 | AM_V | |
5213506e RW |
744 | am__untar |
745 | am__tar | |
746 | AMTAR | |
747 | am__leading_dot | |
748 | SET_MAKE | |
749 | AWK | |
750 | mkdir_p | |
751 | MKDIR_P | |
752 | INSTALL_STRIP_PROGRAM | |
753 | STRIP | |
754 | install_sh | |
755 | MAKEINFO | |
756 | AUTOHEADER | |
757 | AUTOMAKE | |
758 | AUTOCONF | |
759 | ACLOCAL | |
760 | VERSION | |
761 | PACKAGE | |
762 | CYGPATH_W | |
763 | am__isrc | |
764 | INSTALL_DATA | |
765 | INSTALL_SCRIPT | |
766 | INSTALL_PROGRAM | |
767 | target_os | |
768 | target_vendor | |
769 | target_cpu | |
770 | target | |
771 | host_os | |
772 | host_vendor | |
773 | host_cpu | |
774 | host | |
775 | build_os | |
776 | build_vendor | |
777 | build_cpu | |
778 | build | |
779 | GENINSRC_FALSE | |
780 | GENINSRC_TRUE | |
781 | target_alias | |
782 | host_alias | |
783 | build_alias | |
784 | LIBS | |
785 | ECHO_T | |
786 | ECHO_N | |
787 | ECHO_C | |
788 | DEFS | |
789 | mandir | |
790 | localedir | |
791 | libdir | |
792 | psdir | |
793 | pdfdir | |
794 | dvidir | |
795 | htmldir | |
796 | infodir | |
797 | docdir | |
798 | oldincludedir | |
799 | includedir | |
800 | localstatedir | |
801 | sharedstatedir | |
802 | sysconfdir | |
803 | datadir | |
804 | datarootdir | |
805 | libexecdir | |
806 | sbindir | |
807 | bindir | |
808 | program_transform_name | |
809 | prefix | |
810 | exec_prefix | |
811 | PACKAGE_URL | |
812 | PACKAGE_BUGREPORT | |
813 | PACKAGE_STRING | |
814 | PACKAGE_VERSION | |
815 | PACKAGE_TARNAME | |
816 | PACKAGE_NAME | |
817 | PATH_SEPARATOR | |
2fe5a545 | 818 | SHELL' |
953ff289 | 819 | ac_subst_files='' |
5213506e RW |
820 | ac_user_opts=' |
821 | enable_option_checking | |
822 | enable_version_specific_runtime_libs | |
823 | enable_generated_files_in_srcdir | |
22e05272 | 824 | enable_silent_rules |
5213506e | 825 | enable_multilib |
e8e66971 | 826 | with_toolexeclibdir |
5213506e RW |
827 | enable_dependency_tracking |
828 | enable_shared | |
829 | enable_static | |
830 | with_pic | |
831 | enable_fast_install | |
832 | with_gnu_ld | |
833 | enable_libtool_lock | |
834 | enable_maintainer_mode | |
41dbbb37 TS |
835 | with_cuda_driver |
836 | with_cuda_driver_include | |
837 | with_cuda_driver_lib | |
b2b40051 MJ |
838 | with_hsa_runtime |
839 | with_hsa_runtime_include | |
840 | with_hsa_runtime_lib | |
5213506e RW |
841 | enable_linux_futex |
842 | enable_tls | |
843 | enable_symvers | |
efe33ced | 844 | enable_cet |
3c36aa6b | 845 | with_gcc_major_version_only |
5213506e RW |
846 | ' |
847 | ac_precious_vars='build_alias | |
848 | host_alias | |
849 | target_alias | |
850 | CPP | |
851 | CPPFLAGS | |
852 | FC | |
853 | FCFLAGS | |
854 | LDFLAGS | |
855 | LIBS' | |
856 | ||
953ff289 DN |
857 | |
858 | # Initialize some variables set by options. | |
859 | ac_init_help= | |
860 | ac_init_version=false | |
5213506e RW |
861 | ac_unrecognized_opts= |
862 | ac_unrecognized_sep= | |
953ff289 DN |
863 | # The variables have the same names as the options, with |
864 | # dashes changed to underlines. | |
865 | cache_file=/dev/null | |
866 | exec_prefix=NONE | |
867 | no_create= | |
868 | no_recursion= | |
869 | prefix=NONE | |
870 | program_prefix=NONE | |
871 | program_suffix=NONE | |
872 | program_transform_name=s,x,x, | |
873 | silent= | |
874 | site= | |
875 | srcdir= | |
876 | verbose= | |
877 | x_includes=NONE | |
878 | x_libraries=NONE | |
879 | ||
880 | # Installation directory options. | |
881 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
882 | # and all the variables that are supposed to be based on exec_prefix | |
883 | # by default will actually change. | |
884 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 885 | # (The list follows the same order as the GNU Coding Standards.) |
953ff289 DN |
886 | bindir='${exec_prefix}/bin' |
887 | sbindir='${exec_prefix}/sbin' | |
888 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
889 | datarootdir='${prefix}/share' |
890 | datadir='${datarootdir}' | |
953ff289 DN |
891 | sysconfdir='${prefix}/etc' |
892 | sharedstatedir='${prefix}/com' | |
893 | localstatedir='${prefix}/var' | |
953ff289 DN |
894 | includedir='${prefix}/include' |
895 | oldincludedir='/usr/include' | |
5213506e RW |
896 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
897 | infodir='${datarootdir}/info' | |
898 | htmldir='${docdir}' | |
899 | dvidir='${docdir}' | |
900 | pdfdir='${docdir}' | |
901 | psdir='${docdir}' | |
902 | libdir='${exec_prefix}/lib' | |
903 | localedir='${datarootdir}/locale' | |
904 | mandir='${datarootdir}/man' | |
953ff289 DN |
905 | |
906 | ac_prev= | |
5213506e | 907 | ac_dashdash= |
953ff289 DN |
908 | for ac_option |
909 | do | |
910 | # If the previous option needs an argument, assign it. | |
911 | if test -n "$ac_prev"; then | |
5213506e | 912 | eval $ac_prev=\$ac_option |
953ff289 DN |
913 | ac_prev= |
914 | continue | |
915 | fi | |
916 | ||
5213506e | 917 | case $ac_option in |
22e05272 JM |
918 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
919 | *=) ac_optarg= ;; | |
920 | *) ac_optarg=yes ;; | |
5213506e | 921 | esac |
953ff289 DN |
922 | |
923 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
924 | ||
5213506e RW |
925 | case $ac_dashdash$ac_option in |
926 | --) | |
927 | ac_dashdash=yes ;; | |
953ff289 DN |
928 | |
929 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
930 | ac_prev=bindir ;; | |
931 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
932 | bindir=$ac_optarg ;; | |
933 | ||
934 | -build | --build | --buil | --bui | --bu) | |
935 | ac_prev=build_alias ;; | |
936 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
937 | build_alias=$ac_optarg ;; | |
938 | ||
939 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
940 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
941 | ac_prev=cache_file ;; | |
942 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
943 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
944 | cache_file=$ac_optarg ;; | |
945 | ||
946 | --config-cache | -C) | |
947 | cache_file=config.cache ;; | |
948 | ||
5213506e | 949 | -datadir | --datadir | --datadi | --datad) |
953ff289 | 950 | ac_prev=datadir ;; |
5213506e | 951 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
953ff289 DN |
952 | datadir=$ac_optarg ;; |
953 | ||
5213506e RW |
954 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
955 | | --dataroo | --dataro | --datar) | |
956 | ac_prev=datarootdir ;; | |
957 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
958 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
959 | datarootdir=$ac_optarg ;; | |
960 | ||
953ff289 | 961 | -disable-* | --disable-*) |
5213506e | 962 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
953ff289 | 963 | # Reject names that are not valid shell variable names. |
5213506e | 964 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 965 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
966 | ac_useropt_orig=$ac_useropt |
967 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
968 | case $ac_user_opts in | |
969 | *" | |
970 | "enable_$ac_useropt" | |
971 | "*) ;; | |
972 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
973 | ac_unrecognized_sep=', ';; | |
974 | esac | |
975 | eval enable_$ac_useropt=no ;; | |
976 | ||
977 | -docdir | --docdir | --docdi | --doc | --do) | |
978 | ac_prev=docdir ;; | |
979 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
980 | docdir=$ac_optarg ;; | |
981 | ||
982 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
983 | ac_prev=dvidir ;; | |
984 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
985 | dvidir=$ac_optarg ;; | |
953ff289 DN |
986 | |
987 | -enable-* | --enable-*) | |
5213506e | 988 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
953ff289 | 989 | # Reject names that are not valid shell variable names. |
5213506e | 990 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 991 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
992 | ac_useropt_orig=$ac_useropt |
993 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
994 | case $ac_user_opts in | |
995 | *" | |
996 | "enable_$ac_useropt" | |
997 | "*) ;; | |
998 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
999 | ac_unrecognized_sep=', ';; | |
953ff289 | 1000 | esac |
5213506e | 1001 | eval enable_$ac_useropt=\$ac_optarg ;; |
953ff289 DN |
1002 | |
1003 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1004 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1005 | | --exec | --exe | --ex) | |
1006 | ac_prev=exec_prefix ;; | |
1007 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1008 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1009 | | --exec=* | --exe=* | --ex=*) | |
1010 | exec_prefix=$ac_optarg ;; | |
1011 | ||
1012 | -gas | --gas | --ga | --g) | |
1013 | # Obsolete; use --with-gas. | |
1014 | with_gas=yes ;; | |
1015 | ||
1016 | -help | --help | --hel | --he | -h) | |
1017 | ac_init_help=long ;; | |
1018 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1019 | ac_init_help=recursive ;; | |
1020 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1021 | ac_init_help=short ;; | |
1022 | ||
1023 | -host | --host | --hos | --ho) | |
1024 | ac_prev=host_alias ;; | |
1025 | -host=* | --host=* | --hos=* | --ho=*) | |
1026 | host_alias=$ac_optarg ;; | |
1027 | ||
5213506e RW |
1028 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1029 | ac_prev=htmldir ;; | |
1030 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1031 | | --ht=*) | |
1032 | htmldir=$ac_optarg ;; | |
1033 | ||
953ff289 DN |
1034 | -includedir | --includedir | --includedi | --included | --include \ |
1035 | | --includ | --inclu | --incl | --inc) | |
1036 | ac_prev=includedir ;; | |
1037 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1038 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1039 | includedir=$ac_optarg ;; | |
1040 | ||
1041 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1042 | ac_prev=infodir ;; | |
1043 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1044 | infodir=$ac_optarg ;; | |
1045 | ||
1046 | -libdir | --libdir | --libdi | --libd) | |
1047 | ac_prev=libdir ;; | |
1048 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1049 | libdir=$ac_optarg ;; | |
1050 | ||
1051 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1052 | | --libexe | --libex | --libe) | |
1053 | ac_prev=libexecdir ;; | |
1054 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1055 | | --libexe=* | --libex=* | --libe=*) | |
1056 | libexecdir=$ac_optarg ;; | |
1057 | ||
5213506e RW |
1058 | -localedir | --localedir | --localedi | --localed | --locale) |
1059 | ac_prev=localedir ;; | |
1060 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1061 | localedir=$ac_optarg ;; | |
1062 | ||
953ff289 | 1063 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1064 | | --localstate | --localstat | --localsta | --localst | --locals) |
953ff289 DN |
1065 | ac_prev=localstatedir ;; |
1066 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1067 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
953ff289 DN |
1068 | localstatedir=$ac_optarg ;; |
1069 | ||
1070 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1071 | ac_prev=mandir ;; | |
1072 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1073 | mandir=$ac_optarg ;; | |
1074 | ||
1075 | -nfp | --nfp | --nf) | |
1076 | # Obsolete; use --without-fp. | |
1077 | with_fp=no ;; | |
1078 | ||
1079 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1080 | | --no-cr | --no-c | -n) | |
1081 | no_create=yes ;; | |
1082 | ||
1083 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1084 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1085 | no_recursion=yes ;; | |
1086 | ||
1087 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1088 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1089 | | --oldin | --oldi | --old | --ol | --o) | |
1090 | ac_prev=oldincludedir ;; | |
1091 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1092 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1093 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1094 | oldincludedir=$ac_optarg ;; | |
1095 | ||
1096 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1097 | ac_prev=prefix ;; | |
1098 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1099 | prefix=$ac_optarg ;; | |
1100 | ||
1101 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1102 | | --program-pre | --program-pr | --program-p) | |
1103 | ac_prev=program_prefix ;; | |
1104 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1105 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1106 | program_prefix=$ac_optarg ;; | |
1107 | ||
1108 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1109 | | --program-suf | --program-su | --program-s) | |
1110 | ac_prev=program_suffix ;; | |
1111 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1112 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1113 | program_suffix=$ac_optarg ;; | |
1114 | ||
1115 | -program-transform-name | --program-transform-name \ | |
1116 | | --program-transform-nam | --program-transform-na \ | |
1117 | | --program-transform-n | --program-transform- \ | |
1118 | | --program-transform | --program-transfor \ | |
1119 | | --program-transfo | --program-transf \ | |
1120 | | --program-trans | --program-tran \ | |
1121 | | --progr-tra | --program-tr | --program-t) | |
1122 | ac_prev=program_transform_name ;; | |
1123 | -program-transform-name=* | --program-transform-name=* \ | |
1124 | | --program-transform-nam=* | --program-transform-na=* \ | |
1125 | | --program-transform-n=* | --program-transform-=* \ | |
1126 | | --program-transform=* | --program-transfor=* \ | |
1127 | | --program-transfo=* | --program-transf=* \ | |
1128 | | --program-trans=* | --program-tran=* \ | |
1129 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1130 | program_transform_name=$ac_optarg ;; | |
1131 | ||
5213506e RW |
1132 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1133 | ac_prev=pdfdir ;; | |
1134 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1135 | pdfdir=$ac_optarg ;; | |
1136 | ||
1137 | -psdir | --psdir | --psdi | --psd | --ps) | |
1138 | ac_prev=psdir ;; | |
1139 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1140 | psdir=$ac_optarg ;; | |
1141 | ||
953ff289 DN |
1142 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1143 | | -silent | --silent | --silen | --sile | --sil) | |
1144 | silent=yes ;; | |
1145 | ||
1146 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1147 | ac_prev=sbindir ;; | |
1148 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1149 | | --sbi=* | --sb=*) | |
1150 | sbindir=$ac_optarg ;; | |
1151 | ||
1152 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1153 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1154 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1155 | | --sha | --sh) | |
1156 | ac_prev=sharedstatedir ;; | |
1157 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1158 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1159 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1160 | | --sha=* | --sh=*) | |
1161 | sharedstatedir=$ac_optarg ;; | |
1162 | ||
1163 | -site | --site | --sit) | |
1164 | ac_prev=site ;; | |
1165 | -site=* | --site=* | --sit=*) | |
1166 | site=$ac_optarg ;; | |
1167 | ||
1168 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1169 | ac_prev=srcdir ;; | |
1170 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1171 | srcdir=$ac_optarg ;; | |
1172 | ||
1173 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1174 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1175 | ac_prev=sysconfdir ;; | |
1176 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1177 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1178 | sysconfdir=$ac_optarg ;; | |
1179 | ||
1180 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1181 | ac_prev=target_alias ;; | |
1182 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1183 | target_alias=$ac_optarg ;; | |
1184 | ||
1185 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1186 | verbose=yes ;; | |
1187 | ||
1188 | -version | --version | --versio | --versi | --vers | -V) | |
1189 | ac_init_version=: ;; | |
1190 | ||
1191 | -with-* | --with-*) | |
5213506e | 1192 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
953ff289 | 1193 | # Reject names that are not valid shell variable names. |
5213506e | 1194 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1195 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1196 | ac_useropt_orig=$ac_useropt |
1197 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1198 | case $ac_user_opts in | |
1199 | *" | |
1200 | "with_$ac_useropt" | |
1201 | "*) ;; | |
1202 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1203 | ac_unrecognized_sep=', ';; | |
953ff289 | 1204 | esac |
5213506e | 1205 | eval with_$ac_useropt=\$ac_optarg ;; |
953ff289 DN |
1206 | |
1207 | -without-* | --without-*) | |
5213506e | 1208 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
953ff289 | 1209 | # Reject names that are not valid shell variable names. |
5213506e | 1210 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1211 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1212 | ac_useropt_orig=$ac_useropt |
1213 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1214 | case $ac_user_opts in | |
1215 | *" | |
1216 | "with_$ac_useropt" | |
1217 | "*) ;; | |
1218 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1219 | ac_unrecognized_sep=', ';; | |
1220 | esac | |
1221 | eval with_$ac_useropt=no ;; | |
953ff289 DN |
1222 | |
1223 | --x) | |
1224 | # Obsolete; use --with-x. | |
1225 | with_x=yes ;; | |
1226 | ||
1227 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1228 | | --x-incl | --x-inc | --x-in | --x-i) | |
1229 | ac_prev=x_includes ;; | |
1230 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1231 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1232 | x_includes=$ac_optarg ;; | |
1233 | ||
1234 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1235 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1236 | ac_prev=x_libraries ;; | |
1237 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1238 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1239 | x_libraries=$ac_optarg ;; | |
1240 | ||
22e05272 JM |
1241 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1242 | Try \`$0 --help' for more information" | |
953ff289 DN |
1243 | ;; |
1244 | ||
1245 | *=*) | |
1246 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1247 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1248 | case $ac_envvar in #( |
1249 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1250 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1251 | esac |
1252 | eval $ac_envvar=\$ac_optarg | |
953ff289 DN |
1253 | export $ac_envvar ;; |
1254 | ||
1255 | *) | |
1256 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1257 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
953ff289 | 1258 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1259 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1260 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
953ff289 DN |
1261 | ;; |
1262 | ||
1263 | esac | |
1264 | done | |
1265 | ||
1266 | if test -n "$ac_prev"; then | |
1267 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1268 | as_fn_error $? "missing argument to $ac_option" |
953ff289 DN |
1269 | fi |
1270 | ||
5213506e RW |
1271 | if test -n "$ac_unrecognized_opts"; then |
1272 | case $enable_option_checking in | |
1273 | no) ;; | |
22e05272 | 1274 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1275 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
953ff289 | 1276 | esac |
5213506e | 1277 | fi |
953ff289 | 1278 | |
5213506e RW |
1279 | # Check all directory arguments for consistency. |
1280 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1281 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1282 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1283 | libdir localedir mandir | |
953ff289 | 1284 | do |
5213506e RW |
1285 | eval ac_val=\$$ac_var |
1286 | # Remove trailing slashes. | |
953ff289 | 1287 | case $ac_val in |
5213506e RW |
1288 | */ ) |
1289 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1290 | eval $ac_var=\$ac_val;; | |
953ff289 | 1291 | esac |
5213506e RW |
1292 | # Be sure to have absolute directory names. |
1293 | case $ac_val in | |
1294 | [\\/$]* | ?:[\\/]* ) continue;; | |
1295 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1296 | esac | |
22e05272 | 1297 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
953ff289 DN |
1298 | done |
1299 | ||
1300 | # There might be people who depend on the old broken behavior: `$host' | |
1301 | # used to hold the argument of --host etc. | |
1302 | # FIXME: To remove some day. | |
1303 | build=$build_alias | |
1304 | host=$host_alias | |
1305 | target=$target_alias | |
1306 | ||
1307 | # FIXME: To remove some day. | |
1308 | if test "x$host_alias" != x; then | |
1309 | if test "x$build_alias" = x; then | |
1310 | cross_compiling=maybe | |
953ff289 DN |
1311 | elif test "x$build_alias" != "x$host_alias"; then |
1312 | cross_compiling=yes | |
1313 | fi | |
1314 | fi | |
1315 | ||
1316 | ac_tool_prefix= | |
1317 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1318 | ||
1319 | test "$silent" = yes && exec 6>/dev/null | |
1320 | ||
1321 | ||
5213506e RW |
1322 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1323 | ac_ls_di=`ls -di .` && | |
1324 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1325 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1326 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1327 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1328 | |
1329 | ||
953ff289 DN |
1330 | # Find the source files, if location was not specified. |
1331 | if test -z "$srcdir"; then | |
1332 | ac_srcdir_defaulted=yes | |
5213506e RW |
1333 | # Try the directory containing this script, then the parent directory. |
1334 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1335 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1336 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1337 | X"$as_myself" : 'X\(//\)$' \| \ | |
1338 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1339 | $as_echo X"$as_myself" | | |
1340 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\/\)[^/].*/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | /^X\(\/\/\)$/{ | |
1349 | s//\1/ | |
1350 | q | |
1351 | } | |
1352 | /^X\(\/\).*/{ | |
1353 | s//\1/ | |
1354 | q | |
1355 | } | |
1356 | s/.*/./; q'` | |
953ff289 | 1357 | srcdir=$ac_confdir |
5213506e | 1358 | if test ! -r "$srcdir/$ac_unique_file"; then |
953ff289 DN |
1359 | srcdir=.. |
1360 | fi | |
1361 | else | |
1362 | ac_srcdir_defaulted=no | |
1363 | fi | |
5213506e RW |
1364 | if test ! -r "$srcdir/$ac_unique_file"; then |
1365 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1366 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1367 | fi |
1368 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1369 | ac_abs_confdir=`( | |
22e05272 | 1370 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1371 | pwd)` |
1372 | # When building in place, set srcdir=. | |
1373 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1374 | srcdir=. | |
1375 | fi | |
1376 | # Remove unnecessary trailing slashes from srcdir. | |
1377 | # Double slashes in file names in object file debugging info | |
1378 | # mess up M-x gdb in Emacs. | |
1379 | case $srcdir in | |
1380 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1381 | esac | |
1382 | for ac_var in $ac_precious_vars; do | |
1383 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1384 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1385 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1386 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1387 | done | |
953ff289 DN |
1388 | |
1389 | # | |
1390 | # Report the --help message. | |
1391 | # | |
1392 | if test "$ac_init_help" = "long"; then | |
1393 | # Omit some internal or obsolete options to make the list less imposing. | |
1394 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1395 | cat <<_ACEOF | |
f1f3453e | 1396 | \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems. |
953ff289 DN |
1397 | |
1398 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1399 | ||
1400 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1401 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1402 | ||
1403 | Defaults for the options are specified in brackets. | |
1404 | ||
1405 | Configuration: | |
1406 | -h, --help display this help and exit | |
1407 | --help=short display options specific to this package | |
1408 | --help=recursive display the short help of all the included packages | |
1409 | -V, --version display version information and exit | |
22e05272 | 1410 | -q, --quiet, --silent do not print \`checking ...' messages |
953ff289 DN |
1411 | --cache-file=FILE cache test results in FILE [disabled] |
1412 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1413 | -n, --no-create do not create output files | |
1414 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1415 | ||
953ff289 DN |
1416 | Installation directories: |
1417 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1418 | [$ac_default_prefix] |
953ff289 | 1419 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1420 | [PREFIX] |
953ff289 DN |
1421 | |
1422 | By default, \`make install' will install all the files in | |
1423 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1424 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1425 | for instance \`--prefix=\$HOME'. | |
1426 | ||
1427 | For better control, use the options below. | |
1428 | ||
1429 | Fine tuning of the installation directories: | |
5213506e RW |
1430 | --bindir=DIR user executables [EPREFIX/bin] |
1431 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1432 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1433 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1434 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1435 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1436 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1437 | --includedir=DIR C header files [PREFIX/include] | |
1438 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1439 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1440 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1441 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1442 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1443 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1444 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp] | |
1445 | --htmldir=DIR html documentation [DOCDIR] | |
1446 | --dvidir=DIR dvi documentation [DOCDIR] | |
1447 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1448 | --psdir=DIR ps documentation [DOCDIR] | |
953ff289 DN |
1449 | _ACEOF |
1450 | ||
1451 | cat <<\_ACEOF | |
1452 | ||
1453 | Program names: | |
1454 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1455 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1456 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1457 | ||
1458 | System types: | |
1459 | --build=BUILD configure for building on BUILD [guessed] | |
1460 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1461 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1462 | _ACEOF | |
1463 | fi | |
1464 | ||
1465 | if test -n "$ac_init_help"; then | |
1466 | case $ac_init_help in | |
f1f3453e | 1467 | short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";; |
953ff289 DN |
1468 | esac |
1469 | cat <<\_ACEOF | |
1470 | ||
1471 | Optional Features: | |
5213506e | 1472 | --disable-option-checking ignore unrecognized --enable/--with options |
953ff289 DN |
1473 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1474 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1475 | --enable-version-specific-runtime-libs | |
1476 | Specify that runtime libraries should be installed | |
1477 | in a compiler-specific directory [default=no] | |
627ab4b8 TT |
1478 | --enable-generated-files-in-srcdir |
1479 | put copies of generated files in source dir intended | |
1480 | for creating source tarballs for users without | |
1481 | texinfo bison or flex. [default=no] | |
22e05272 JM |
1482 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1483 | --disable-silent-rules verbose build output (undo: "make V=0") | |
953ff289 | 1484 | --enable-multilib build many library versions (default) |
22e05272 JM |
1485 | --enable-dependency-tracking |
1486 | do not reject slow dependency extractors | |
1487 | --disable-dependency-tracking | |
1488 | speeds up one-time build | |
5213506e RW |
1489 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1490 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1491 | --enable-fast-install[=PKGS] |
1492 | optimize for fast installation [default=yes] | |
953ff289 | 1493 | --disable-libtool-lock avoid locking (might break parallel builds) |
22e05272 JM |
1494 | --enable-maintainer-mode |
1495 | enable make rules and dependencies not useful (and | |
1496 | sometimes confusing) to the casual installer | |
5213506e | 1497 | --enable-linux-futex use the Linux futex system call [default=default] |
2fb31455 | 1498 | --enable-tls Use thread-local storage [default=yes] |
953ff289 DN |
1499 | --enable-symvers=STYLE enables symbol versioning of the shared library |
1500 | [default=yes] | |
8d286dd1 | 1501 | --enable-cet enable Intel CET in target libraries [default=auto] |
953ff289 DN |
1502 | |
1503 | Optional Packages: | |
1504 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1505 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
e8e66971 MR |
1506 | --with-toolexeclibdir=DIR |
1507 | install libraries built with a cross compiler within | |
1508 | DIR | |
1cf3d07d SE |
1509 | --with-pic try to use only PIC/non-PIC objects [default=use |
1510 | both] | |
1511 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
41dbbb37 TS |
1512 | --with-cuda-driver=PATH specify prefix directory for installed CUDA driver |
1513 | package. Equivalent to | |
1514 | --with-cuda-driver-include=PATH/include plus | |
1515 | --with-cuda-driver-lib=PATH/lib | |
1516 | --with-cuda-driver-include=PATH | |
1517 | specify directory for installed CUDA driver include | |
1518 | files | |
1519 | --with-cuda-driver-lib=PATH | |
1520 | specify directory for the installed CUDA driver | |
1521 | library | |
b2b40051 MJ |
1522 | --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time |
1523 | package. Equivalent to | |
1524 | --with-hsa-runtime-include=PATH/include plus | |
1525 | --with-hsa-runtime-lib=PATH/lib | |
1526 | --with-hsa-runtime-include=PATH | |
1527 | specify directory for installed HSA run-time include | |
1528 | files | |
1529 | --with-hsa-runtime-lib=PATH | |
1530 | specify directory for the installed HSA run-time | |
1531 | library | |
3c36aa6b JJ |
1532 | --with-gcc-major-version-only |
1533 | use only GCC major number in filesystem paths | |
953ff289 DN |
1534 | |
1535 | Some influential environment variables: | |
1536 | CC C compiler command | |
1537 | CFLAGS C compiler flags | |
1538 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1539 | nonstandard directory <lib dir> | |
5213506e | 1540 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1541 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1542 | you have headers in a nonstandard directory <include dir> |
1cf3d07d | 1543 | CPP C preprocessor |
953ff289 DN |
1544 | FC Fortran compiler command |
1545 | FCFLAGS Fortran compiler flags | |
953ff289 DN |
1546 | |
1547 | Use these variables to override the choices made by `configure' or to help | |
1548 | it to find libraries and programs with nonstandard names/locations. | |
1549 | ||
5213506e | 1550 | Report bugs to the package provider. |
f1f3453e | 1551 | GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. |
5213506e | 1552 | General help using GNU software: <http://www.gnu.org/gethelp/>. |
953ff289 | 1553 | _ACEOF |
5213506e | 1554 | ac_status=$? |
953ff289 DN |
1555 | fi |
1556 | ||
1557 | if test "$ac_init_help" = "recursive"; then | |
1558 | # If there are subdirs, report their specific --help. | |
953ff289 | 1559 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1560 | test -d "$ac_dir" || |
1561 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1562 | continue | |
953ff289 DN |
1563 | ac_builddir=. |
1564 | ||
5213506e RW |
1565 | case "$ac_dir" in |
1566 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1567 | *) | |
1568 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1569 | # A ".." for each directory in $ac_dir_suffix. | |
1570 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1571 | case $ac_top_builddir_sub in | |
1572 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1573 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1574 | esac ;; | |
1575 | esac | |
1576 | ac_abs_top_builddir=$ac_pwd | |
1577 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1578 | # for backward compatibility: | |
1579 | ac_top_builddir=$ac_top_build_prefix | |
953ff289 DN |
1580 | |
1581 | case $srcdir in | |
5213506e | 1582 | .) # We are building in place. |
953ff289 | 1583 | ac_srcdir=. |
5213506e RW |
1584 | ac_top_srcdir=$ac_top_builddir_sub |
1585 | ac_abs_top_srcdir=$ac_pwd ;; | |
1586 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
953ff289 | 1587 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1588 | ac_top_srcdir=$srcdir |
1589 | ac_abs_top_srcdir=$srcdir ;; | |
1590 | *) # Relative name. | |
1591 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1592 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1593 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
953ff289 | 1594 | esac |
5213506e RW |
1595 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1596 | ||
1597 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1598 | # Check for guested configure. | |
1599 | if test -f "$ac_srcdir/configure.gnu"; then | |
1600 | echo && | |
1601 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1602 | elif test -f "$ac_srcdir/configure"; then | |
1603 | echo && | |
1604 | $SHELL "$ac_srcdir/configure" --help=recursive | |
953ff289 | 1605 | else |
5213506e RW |
1606 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1607 | fi || ac_status=$? | |
1608 | cd "$ac_pwd" || { ac_status=$?; break; } | |
953ff289 DN |
1609 | done |
1610 | fi | |
1611 | ||
5213506e | 1612 | test -n "$ac_init_help" && exit $ac_status |
953ff289 DN |
1613 | if $ac_init_version; then |
1614 | cat <<\_ACEOF | |
f1f3453e | 1615 | GNU Offloading and Multi Processing Runtime Library configure 1.0 |
22e05272 | 1616 | generated by GNU Autoconf 2.69 |
953ff289 | 1617 | |
22e05272 | 1618 | Copyright (C) 2012 Free Software Foundation, Inc. |
953ff289 DN |
1619 | This configure script is free software; the Free Software Foundation |
1620 | gives unlimited permission to copy, distribute and modify it. | |
1621 | _ACEOF | |
5213506e | 1622 | exit |
953ff289 | 1623 | fi |
953ff289 | 1624 | |
5213506e RW |
1625 | ## ------------------------ ## |
1626 | ## Autoconf initialization. ## | |
1627 | ## ------------------------ ## | |
953ff289 | 1628 | |
5213506e RW |
1629 | # ac_fn_c_try_compile LINENO |
1630 | # -------------------------- | |
1631 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1632 | ac_fn_c_try_compile () | |
953ff289 | 1633 | { |
5213506e RW |
1634 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1635 | rm -f conftest.$ac_objext | |
1636 | if { { ac_try="$ac_compile" | |
1637 | case "(($ac_try" in | |
1638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1639 | *) ac_try_echo=$ac_try;; | |
1640 | esac | |
1641 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1642 | $as_echo "$ac_try_echo"; } >&5 | |
1643 | (eval "$ac_compile") 2>conftest.err | |
1644 | ac_status=$? | |
1645 | if test -s conftest.err; then | |
1646 | grep -v '^ *+' conftest.err >conftest.er1 | |
1647 | cat conftest.er1 >&5 | |
1648 | mv -f conftest.er1 conftest.err | |
1649 | fi | |
1650 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1651 | test $ac_status = 0; } && { | |
1652 | test -z "$ac_c_werror_flag" || | |
1653 | test ! -s conftest.err | |
1654 | } && test -s conftest.$ac_objext; then : | |
1655 | ac_retval=0 | |
1656 | else | |
1657 | $as_echo "$as_me: failed program was:" >&5 | |
1658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1659 | |
5213506e RW |
1660 | ac_retval=1 |
1661 | fi | |
22e05272 JM |
1662 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1663 | as_fn_set_status $ac_retval | |
953ff289 | 1664 | |
5213506e | 1665 | } # ac_fn_c_try_compile |
953ff289 | 1666 | |
5213506e RW |
1667 | # ac_fn_c_try_link LINENO |
1668 | # ----------------------- | |
1669 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1670 | ac_fn_c_try_link () | |
1671 | { | |
1672 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1674 | if { { ac_try="$ac_link" | |
1675 | case "(($ac_try" in | |
1676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1677 | *) ac_try_echo=$ac_try;; | |
1678 | esac | |
1679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1680 | $as_echo "$ac_try_echo"; } >&5 | |
1681 | (eval "$ac_link") 2>conftest.err | |
1682 | ac_status=$? | |
1683 | if test -s conftest.err; then | |
1684 | grep -v '^ *+' conftest.err >conftest.er1 | |
1685 | cat conftest.er1 >&5 | |
1686 | mv -f conftest.er1 conftest.err | |
1687 | fi | |
1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1689 | test $ac_status = 0; } && { | |
1690 | test -z "$ac_c_werror_flag" || | |
1691 | test ! -s conftest.err | |
1692 | } && test -s conftest$ac_exeext && { | |
1693 | test "$cross_compiling" = yes || | |
22e05272 | 1694 | test -x conftest$ac_exeext |
5213506e RW |
1695 | }; then : |
1696 | ac_retval=0 | |
1697 | else | |
1698 | $as_echo "$as_me: failed program was:" >&5 | |
1699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1700 | |
5213506e RW |
1701 | ac_retval=1 |
1702 | fi | |
1703 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1704 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1705 | # interfere with the next link command; also delete a directory that is | |
1706 | # left behind by Apple's compiler. We do this before executing the actions. | |
1707 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1708 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1709 | as_fn_set_status $ac_retval | |
953ff289 | 1710 | |
5213506e | 1711 | } # ac_fn_c_try_link |
953ff289 | 1712 | |
5213506e RW |
1713 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1714 | # ------------------------------------------------------- | |
1715 | # Tests whether HEADER exists and can be compiled using the include files in | |
1716 | # INCLUDES, setting the cache variable VAR accordingly. | |
1717 | ac_fn_c_check_header_compile () | |
1718 | { | |
1719 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1721 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1722 | if eval \${$3+:} false; then : |
5213506e RW |
1723 | $as_echo_n "(cached) " >&6 |
1724 | else | |
1725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1726 | /* end confdefs.h. */ | |
1727 | $4 | |
1728 | #include <$2> | |
1729 | _ACEOF | |
1730 | if ac_fn_c_try_compile "$LINENO"; then : | |
1731 | eval "$3=yes" | |
1732 | else | |
1733 | eval "$3=no" | |
1734 | fi | |
1735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1736 | fi | |
1737 | eval ac_res=\$$3 | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1739 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1740 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
953ff289 | 1741 | |
5213506e | 1742 | } # ac_fn_c_check_header_compile |
953ff289 | 1743 | |
5213506e RW |
1744 | # ac_fn_c_try_cpp LINENO |
1745 | # ---------------------- | |
1746 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1747 | ac_fn_c_try_cpp () | |
1748 | { | |
1749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1750 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1751 | case "(($ac_try" in | |
1752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1753 | *) ac_try_echo=$ac_try;; | |
1754 | esac | |
1755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1756 | $as_echo "$ac_try_echo"; } >&5 | |
1757 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1758 | ac_status=$? | |
1759 | if test -s conftest.err; then | |
1760 | grep -v '^ *+' conftest.err >conftest.er1 | |
1761 | cat conftest.er1 >&5 | |
1762 | mv -f conftest.er1 conftest.err | |
1763 | fi | |
1764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1765 | test $ac_status = 0; } > conftest.i && { |
5213506e RW |
1766 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1767 | test ! -s conftest.err | |
1768 | }; then : | |
1769 | ac_retval=0 | |
1770 | else | |
1771 | $as_echo "$as_me: failed program was:" >&5 | |
1772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1773 | |
5213506e RW |
1774 | ac_retval=1 |
1775 | fi | |
22e05272 JM |
1776 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1777 | as_fn_set_status $ac_retval | |
953ff289 | 1778 | |
5213506e | 1779 | } # ac_fn_c_try_cpp |
953ff289 | 1780 | |
5213506e RW |
1781 | # ac_fn_c_try_run LINENO |
1782 | # ---------------------- | |
1783 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1784 | # that executables *can* be run. | |
1785 | ac_fn_c_try_run () | |
1786 | { | |
1787 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1788 | if { { ac_try="$ac_link" | |
1789 | case "(($ac_try" in | |
1790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1791 | *) ac_try_echo=$ac_try;; | |
1792 | esac | |
1793 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1794 | $as_echo "$ac_try_echo"; } >&5 | |
1795 | (eval "$ac_link") 2>&5 | |
1796 | ac_status=$? | |
1797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1798 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1799 | { { case "(($ac_try" in | |
1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1801 | *) ac_try_echo=$ac_try;; | |
1802 | esac | |
1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1804 | $as_echo "$ac_try_echo"; } >&5 | |
1805 | (eval "$ac_try") 2>&5 | |
1806 | ac_status=$? | |
1807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1808 | test $ac_status = 0; }; }; then : | |
1809 | ac_retval=0 | |
1810 | else | |
1811 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1812 | $as_echo "$as_me: failed program was:" >&5 | |
1813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1814 | |
5213506e RW |
1815 | ac_retval=$ac_status |
1816 | fi | |
1817 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1818 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1819 | as_fn_set_status $ac_retval | |
953ff289 | 1820 | |
5213506e | 1821 | } # ac_fn_c_try_run |
953ff289 | 1822 | |
5213506e RW |
1823 | # ac_fn_c_check_func LINENO FUNC VAR |
1824 | # ---------------------------------- | |
1825 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1826 | ac_fn_c_check_func () | |
953ff289 | 1827 | { |
5213506e RW |
1828 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1830 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1831 | if eval \${$3+:} false; then : |
5213506e RW |
1832 | $as_echo_n "(cached) " >&6 |
1833 | else | |
1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1835 | /* end confdefs.h. */ | |
1836 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1838 | #define $2 innocuous_$2 | |
953ff289 | 1839 | |
5213506e RW |
1840 | /* System header to define __stub macros and hopefully few prototypes, |
1841 | which can conflict with char $2 (); below. | |
1842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1843 | <limits.h> exists even on freestanding compilers. */ | |
953ff289 | 1844 | |
5213506e RW |
1845 | #ifdef __STDC__ |
1846 | # include <limits.h> | |
1847 | #else | |
1848 | # include <assert.h> | |
1849 | #endif | |
953ff289 | 1850 | |
5213506e | 1851 | #undef $2 |
953ff289 | 1852 | |
5213506e RW |
1853 | /* Override any GCC internal prototype to avoid an error. |
1854 | Use char because int might match the return type of a GCC | |
1855 | builtin and then its argument prototype would still apply. */ | |
1856 | #ifdef __cplusplus | |
1857 | extern "C" | |
1858 | #endif | |
1859 | char $2 (); | |
1860 | /* The GNU C library defines this for functions which it implements | |
1861 | to always fail with ENOSYS. Some functions are actually named | |
1862 | something starting with __ and the normal name is an alias. */ | |
1863 | #if defined __stub_$2 || defined __stub___$2 | |
1864 | choke me | |
1865 | #endif | |
953ff289 | 1866 | |
5213506e RW |
1867 | int |
1868 | main () | |
1869 | { | |
1870 | return $2 (); | |
1871 | ; | |
1872 | return 0; | |
1873 | } | |
953ff289 | 1874 | _ACEOF |
5213506e RW |
1875 | if ac_fn_c_try_link "$LINENO"; then : |
1876 | eval "$3=yes" | |
1877 | else | |
1878 | eval "$3=no" | |
1879 | fi | |
1880 | rm -f core conftest.err conftest.$ac_objext \ | |
1881 | conftest$ac_exeext conftest.$ac_ext | |
1882 | fi | |
1883 | eval ac_res=\$$3 | |
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1885 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1886 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
953ff289 | 1887 | |
5213506e | 1888 | } # ac_fn_c_check_func |
953ff289 | 1889 | |
5213506e RW |
1890 | # ac_fn_fc_try_compile LINENO |
1891 | # --------------------------- | |
1892 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1893 | ac_fn_fc_try_compile () | |
1894 | { | |
1895 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1896 | rm -f conftest.$ac_objext | |
1897 | if { { ac_try="$ac_compile" | |
1898 | case "(($ac_try" in | |
1899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1900 | *) ac_try_echo=$ac_try;; | |
1901 | esac | |
1902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1903 | $as_echo "$ac_try_echo"; } >&5 | |
1904 | (eval "$ac_compile") 2>conftest.err | |
1905 | ac_status=$? | |
1906 | if test -s conftest.err; then | |
1907 | grep -v '^ *+' conftest.err >conftest.er1 | |
1908 | cat conftest.er1 >&5 | |
1909 | mv -f conftest.er1 conftest.err | |
1910 | fi | |
1911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1912 | test $ac_status = 0; } && { | |
1913 | test -z "$ac_fc_werror_flag" || | |
1914 | test ! -s conftest.err | |
1915 | } && test -s conftest.$ac_objext; then : | |
1916 | ac_retval=0 | |
1917 | else | |
1918 | $as_echo "$as_me: failed program was:" >&5 | |
1919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1920 | |
5213506e RW |
1921 | ac_retval=1 |
1922 | fi | |
22e05272 JM |
1923 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1924 | as_fn_set_status $ac_retval | |
953ff289 | 1925 | |
5213506e | 1926 | } # ac_fn_fc_try_compile |
953ff289 | 1927 | |
5213506e RW |
1928 | # ac_fn_fc_try_link LINENO |
1929 | # ------------------------ | |
1930 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1931 | ac_fn_fc_try_link () | |
1932 | { | |
1933 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1935 | if { { ac_try="$ac_link" | |
1936 | case "(($ac_try" in | |
1937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1938 | *) ac_try_echo=$ac_try;; | |
1939 | esac | |
1940 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1941 | $as_echo "$ac_try_echo"; } >&5 | |
1942 | (eval "$ac_link") 2>conftest.err | |
1943 | ac_status=$? | |
1944 | if test -s conftest.err; then | |
1945 | grep -v '^ *+' conftest.err >conftest.er1 | |
1946 | cat conftest.er1 >&5 | |
1947 | mv -f conftest.er1 conftest.err | |
1948 | fi | |
1949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1950 | test $ac_status = 0; } && { | |
1951 | test -z "$ac_fc_werror_flag" || | |
1952 | test ! -s conftest.err | |
1953 | } && test -s conftest$ac_exeext && { | |
1954 | test "$cross_compiling" = yes || | |
22e05272 | 1955 | test -x conftest$ac_exeext |
5213506e RW |
1956 | }; then : |
1957 | ac_retval=0 | |
1958 | else | |
1959 | $as_echo "$as_me: failed program was:" >&5 | |
1960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1961 | |
5213506e RW |
1962 | ac_retval=1 |
1963 | fi | |
1964 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1965 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1966 | # interfere with the next link command; also delete a directory that is | |
1967 | # left behind by Apple's compiler. We do this before executing the actions. | |
1968 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1969 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1970 | as_fn_set_status $ac_retval | |
953ff289 | 1971 | |
5213506e | 1972 | } # ac_fn_fc_try_link |
953ff289 | 1973 | |
5213506e RW |
1974 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1975 | # ------------------------------------------------------- | |
1976 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1977 | # the include files in INCLUDES and setting the cache variable VAR | |
1978 | # accordingly. | |
1979 | ac_fn_c_check_header_mongrel () | |
1980 | { | |
1981 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1982 | if eval \${$3+:} false; then : |
5213506e RW |
1983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1984 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1985 | if eval \${$3+:} false; then : |
5213506e RW |
1986 | $as_echo_n "(cached) " >&6 |
1987 | fi | |
1988 | eval ac_res=\$$3 | |
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1990 | $as_echo "$ac_res" >&6; } | |
1991 | else | |
1992 | # Is the header compilable? | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1994 | $as_echo_n "checking $2 usability... " >&6; } | |
1995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1996 | /* end confdefs.h. */ | |
1997 | $4 | |
1998 | #include <$2> | |
953ff289 | 1999 | _ACEOF |
5213506e RW |
2000 | if ac_fn_c_try_compile "$LINENO"; then : |
2001 | ac_header_compiler=yes | |
2002 | else | |
2003 | ac_header_compiler=no | |
953ff289 | 2004 | fi |
5213506e RW |
2005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2007 | $as_echo "$ac_header_compiler" >&6; } | |
953ff289 | 2008 | |
5213506e RW |
2009 | # Is the header present? |
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2011 | $as_echo_n "checking $2 presence... " >&6; } | |
2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2013 | /* end confdefs.h. */ | |
2014 | #include <$2> | |
2015 | _ACEOF | |
2016 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2017 | ac_header_preproc=yes | |
953ff289 | 2018 | else |
5213506e | 2019 | ac_header_preproc=no |
953ff289 | 2020 | fi |
22e05272 | 2021 | rm -f conftest.err conftest.i conftest.$ac_ext |
5213506e RW |
2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2023 | $as_echo "$ac_header_preproc" >&6; } | |
953ff289 | 2024 | |
5213506e RW |
2025 | # So? What about this header? |
2026 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2027 | yes:no: ) | |
2028 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2029 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2030 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2031 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2032 | ;; | |
2033 | no:yes:* ) | |
2034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2035 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2037 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2039 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2041 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2043 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2044 | ;; | |
2045 | esac | |
2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2047 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2048 | if eval \${$3+:} false; then : |
5213506e RW |
2049 | $as_echo_n "(cached) " >&6 |
2050 | else | |
2051 | eval "$3=\$ac_header_compiler" | |
953ff289 | 2052 | fi |
5213506e RW |
2053 | eval ac_res=\$$3 |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2055 | $as_echo "$ac_res" >&6; } | |
2056 | fi | |
22e05272 | 2057 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
953ff289 | 2058 | |
5213506e | 2059 | } # ac_fn_c_check_header_mongrel |
953ff289 | 2060 | |
5213506e RW |
2061 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2062 | # -------------------------------------------- | |
2063 | # Tries to find the compile-time value of EXPR in a program that includes | |
2064 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2065 | # computed | |
2066 | ac_fn_c_compute_int () | |
2067 | { | |
2068 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2069 | if test "$cross_compiling" = yes; then | |
2070 | # Depending upon the size, compute the lo and hi bounds. | |
2071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2072 | /* end confdefs.h. */ | |
2073 | $4 | |
2074 | int | |
2075 | main () | |
2076 | { | |
2077 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
22e05272 JM |
2078 | test_array [0] = 0; |
2079 | return test_array [0]; | |
953ff289 | 2080 | |
5213506e RW |
2081 | ; |
2082 | return 0; | |
2083 | } | |
2084 | _ACEOF | |
2085 | if ac_fn_c_try_compile "$LINENO"; then : | |
2086 | ac_lo=0 ac_mid=0 | |
2087 | while :; do | |
2088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2089 | /* end confdefs.h. */ | |
2090 | $4 | |
2091 | int | |
2092 | main () | |
2093 | { | |
2094 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2095 | test_array [0] = 0; |
2096 | return test_array [0]; | |
953ff289 | 2097 | |
5213506e RW |
2098 | ; |
2099 | return 0; | |
2100 | } | |
2101 | _ACEOF | |
2102 | if ac_fn_c_try_compile "$LINENO"; then : | |
2103 | ac_hi=$ac_mid; break | |
2104 | else | |
2105 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2106 | if test $ac_lo -le $ac_mid; then | |
2107 | ac_lo= ac_hi= | |
2108 | break | |
2109 | fi | |
2110 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2111 | fi | |
2112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113 | done | |
2114 | else | |
2115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2116 | /* end confdefs.h. */ | |
2117 | $4 | |
2118 | int | |
2119 | main () | |
2120 | { | |
2121 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
2122 | test_array [0] = 0; |
2123 | return test_array [0]; | |
953ff289 | 2124 | |
5213506e RW |
2125 | ; |
2126 | return 0; | |
2127 | } | |
2128 | _ACEOF | |
2129 | if ac_fn_c_try_compile "$LINENO"; then : | |
2130 | ac_hi=-1 ac_mid=-1 | |
2131 | while :; do | |
2132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2133 | /* end confdefs.h. */ | |
2134 | $4 | |
2135 | int | |
2136 | main () | |
2137 | { | |
2138 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
2139 | test_array [0] = 0; |
2140 | return test_array [0]; | |
953ff289 | 2141 | |
5213506e RW |
2142 | ; |
2143 | return 0; | |
2144 | } | |
2145 | _ACEOF | |
2146 | if ac_fn_c_try_compile "$LINENO"; then : | |
2147 | ac_lo=$ac_mid; break | |
2148 | else | |
2149 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2150 | if test $ac_mid -le $ac_hi; then | |
2151 | ac_lo= ac_hi= | |
2152 | break | |
2153 | fi | |
2154 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2155 | fi | |
2156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2157 | done | |
2158 | else | |
2159 | ac_lo= ac_hi= | |
2160 | fi | |
2161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2162 | fi | |
2163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2164 | # Binary search between lo and hi bounds. | |
2165 | while test "x$ac_lo" != "x$ac_hi"; do | |
2166 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2168 | /* end confdefs.h. */ | |
2169 | $4 | |
2170 | int | |
2171 | main () | |
2172 | { | |
2173 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2174 | test_array [0] = 0; |
2175 | return test_array [0]; | |
953ff289 | 2176 | |
5213506e RW |
2177 | ; |
2178 | return 0; | |
2179 | } | |
2180 | _ACEOF | |
2181 | if ac_fn_c_try_compile "$LINENO"; then : | |
2182 | ac_hi=$ac_mid | |
2183 | else | |
2184 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2185 | fi | |
2186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2187 | done | |
2188 | case $ac_lo in #(( | |
2189 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2190 | '') ac_retval=1 ;; | |
2191 | esac | |
2192 | else | |
2193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2194 | /* end confdefs.h. */ | |
2195 | $4 | |
2196 | static long int longval () { return $2; } | |
2197 | static unsigned long int ulongval () { return $2; } | |
2198 | #include <stdio.h> | |
2199 | #include <stdlib.h> | |
2200 | int | |
2201 | main () | |
2202 | { | |
953ff289 | 2203 | |
5213506e RW |
2204 | FILE *f = fopen ("conftest.val", "w"); |
2205 | if (! f) | |
2206 | return 1; | |
2207 | if (($2) < 0) | |
2208 | { | |
2209 | long int i = longval (); | |
2210 | if (i != ($2)) | |
2211 | return 1; | |
2212 | fprintf (f, "%ld", i); | |
2213 | } | |
2214 | else | |
2215 | { | |
2216 | unsigned long int i = ulongval (); | |
2217 | if (i != ($2)) | |
2218 | return 1; | |
2219 | fprintf (f, "%lu", i); | |
2220 | } | |
2221 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2222 | on some platforms. */ | |
2223 | return ferror (f) || fclose (f) != 0; | |
953ff289 | 2224 | |
5213506e RW |
2225 | ; |
2226 | return 0; | |
2227 | } | |
2228 | _ACEOF | |
2229 | if ac_fn_c_try_run "$LINENO"; then : | |
2230 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2231 | else | |
2232 | ac_retval=1 | |
2233 | fi | |
2234 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2235 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2236 | rm -f conftest.val | |
953ff289 | 2237 | |
5213506e | 2238 | fi |
22e05272 JM |
2239 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2240 | as_fn_set_status $ac_retval | |
953ff289 | 2241 | |
5213506e | 2242 | } # ac_fn_c_compute_int |
f65e551f JJ |
2243 | |
2244 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2245 | # ------------------------------------------- | |
2246 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2247 | # variable VAR accordingly. | |
2248 | ac_fn_c_check_type () | |
2249 | { | |
2250 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2252 | $as_echo_n "checking for $2... " >&6; } | |
2253 | if eval \${$3+:} false; then : | |
2254 | $as_echo_n "(cached) " >&6 | |
2255 | else | |
2256 | eval "$3=no" | |
2257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2258 | /* end confdefs.h. */ | |
2259 | $4 | |
2260 | int | |
2261 | main () | |
2262 | { | |
2263 | if (sizeof ($2)) | |
2264 | return 0; | |
2265 | ; | |
2266 | return 0; | |
2267 | } | |
2268 | _ACEOF | |
2269 | if ac_fn_c_try_compile "$LINENO"; then : | |
2270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2271 | /* end confdefs.h. */ | |
2272 | $4 | |
2273 | int | |
2274 | main () | |
2275 | { | |
2276 | if (sizeof (($2))) | |
2277 | return 0; | |
2278 | ; | |
2279 | return 0; | |
2280 | } | |
2281 | _ACEOF | |
2282 | if ac_fn_c_try_compile "$LINENO"; then : | |
2283 | ||
2284 | else | |
2285 | eval "$3=yes" | |
2286 | fi | |
2287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2288 | fi | |
2289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2290 | fi | |
2291 | eval ac_res=\$$3 | |
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2293 | $as_echo "$ac_res" >&6; } | |
2294 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2295 | ||
2296 | } # ac_fn_c_check_type | |
5213506e RW |
2297 | cat >config.log <<_ACEOF |
2298 | This file contains any messages produced by compilers while | |
2299 | running configure, to aid debugging if configure makes a mistake. | |
953ff289 | 2300 | |
f1f3453e | 2301 | It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was |
22e05272 | 2302 | generated by GNU Autoconf 2.69. Invocation command line was |
953ff289 | 2303 | |
5213506e | 2304 | $ $0 $@ |
953ff289 | 2305 | |
5213506e RW |
2306 | _ACEOF |
2307 | exec 5>>config.log | |
2308 | { | |
2309 | cat <<_ASUNAME | |
2310 | ## --------- ## | |
2311 | ## Platform. ## | |
2312 | ## --------- ## | |
953ff289 | 2313 | |
5213506e RW |
2314 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2315 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2316 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2317 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2318 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
953ff289 | 2319 | |
5213506e RW |
2320 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2321 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
953ff289 | 2322 | |
5213506e RW |
2323 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2324 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2325 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2326 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2327 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2328 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2329 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
953ff289 | 2330 | |
5213506e | 2331 | _ASUNAME |
953ff289 | 2332 | |
5213506e RW |
2333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2334 | for as_dir in $PATH | |
2335 | do | |
2336 | IFS=$as_save_IFS | |
2337 | test -z "$as_dir" && as_dir=. | |
2338 | $as_echo "PATH: $as_dir" | |
2339 | done | |
2340 | IFS=$as_save_IFS | |
953ff289 | 2341 | |
5213506e | 2342 | } >&5 |
953ff289 | 2343 | |
5213506e | 2344 | cat >&5 <<_ACEOF |
18c04407 RW |
2345 | |
2346 | ||
5213506e RW |
2347 | ## ----------- ## |
2348 | ## Core tests. ## | |
2349 | ## ----------- ## | |
18c04407 | 2350 | |
5213506e | 2351 | _ACEOF |
953ff289 DN |
2352 | |
2353 | ||
5213506e RW |
2354 | # Keep a trace of the command line. |
2355 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2356 | # Strip out --silent because we don't want to record it for future runs. | |
2357 | # Also quote any args containing shell meta-characters. | |
2358 | # Make two passes to allow for proper duplicate-argument suppression. | |
2359 | ac_configure_args= | |
2360 | ac_configure_args0= | |
2361 | ac_configure_args1= | |
2362 | ac_must_keep_next=false | |
2363 | for ac_pass in 1 2 | |
2364 | do | |
2365 | for ac_arg | |
2366 | do | |
2367 | case $ac_arg in | |
2368 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2369 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2370 | | -silent | --silent | --silen | --sile | --sil) | |
2371 | continue ;; | |
2372 | *\'*) | |
2373 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2374 | esac | |
2375 | case $ac_pass in | |
2376 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2377 | 2) | |
2378 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2379 | if test $ac_must_keep_next = true; then | |
2380 | ac_must_keep_next=false # Got value, back to normal. | |
2381 | else | |
2382 | case $ac_arg in | |
2383 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2384 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2385 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2386 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2387 | case "$ac_configure_args0 " in | |
2388 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2389 | esac | |
2390 | ;; | |
2391 | -* ) ac_must_keep_next=true ;; | |
2392 | esac | |
2393 | fi | |
2394 | as_fn_append ac_configure_args " '$ac_arg'" | |
2395 | ;; | |
2396 | esac | |
2397 | done | |
2398 | done | |
2399 | { ac_configure_args0=; unset ac_configure_args0;} | |
2400 | { ac_configure_args1=; unset ac_configure_args1;} | |
953ff289 | 2401 | |
5213506e RW |
2402 | # When interrupted or exit'd, cleanup temporary files, and complete |
2403 | # config.log. We remove comments because anyway the quotes in there | |
2404 | # would cause problems or look ugly. | |
2405 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2406 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2407 | trap 'exit_status=$? | |
2408 | # Save into config.log some information that might help in debugging. | |
2409 | { | |
2410 | echo | |
953ff289 | 2411 | |
22e05272 | 2412 | $as_echo "## ---------------- ## |
5213506e | 2413 | ## Cache variables. ## |
22e05272 | 2414 | ## ---------------- ##" |
5213506e RW |
2415 | echo |
2416 | # The following way of writing the cache mishandles newlines in values, | |
2417 | ( | |
2418 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2419 | eval ac_val=\$$ac_var | |
2420 | case $ac_val in #( | |
2421 | *${as_nl}*) | |
2422 | case $ac_var in #( | |
2423 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2424 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2425 | esac | |
2426 | case $ac_var in #( | |
2427 | _ | IFS | as_nl) ;; #( | |
2428 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2429 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2430 | esac ;; | |
2431 | esac | |
2432 | done | |
2433 | (set) 2>&1 | | |
2434 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2435 | *${as_nl}ac_space=\ *) | |
2436 | sed -n \ | |
2437 | "s/'\''/'\''\\\\'\'''\''/g; | |
2438 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2439 | ;; #( | |
2440 | *) | |
2441 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2442 | ;; | |
2443 | esac | | |
2444 | sort | |
2445 | ) | |
2446 | echo | |
953ff289 | 2447 | |
22e05272 | 2448 | $as_echo "## ----------------- ## |
5213506e | 2449 | ## Output variables. ## |
22e05272 | 2450 | ## ----------------- ##" |
5213506e RW |
2451 | echo |
2452 | for ac_var in $ac_subst_vars | |
2453 | do | |
2454 | eval ac_val=\$$ac_var | |
2455 | case $ac_val in | |
2456 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2457 | esac | |
2458 | $as_echo "$ac_var='\''$ac_val'\''" | |
2459 | done | sort | |
2460 | echo | |
953ff289 | 2461 | |
5213506e | 2462 | if test -n "$ac_subst_files"; then |
22e05272 | 2463 | $as_echo "## ------------------- ## |
5213506e | 2464 | ## File substitutions. ## |
22e05272 | 2465 | ## ------------------- ##" |
5213506e RW |
2466 | echo |
2467 | for ac_var in $ac_subst_files | |
2468 | do | |
2469 | eval ac_val=\$$ac_var | |
2470 | case $ac_val in | |
2471 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2472 | esac | |
2473 | $as_echo "$ac_var='\''$ac_val'\''" | |
2474 | done | sort | |
2475 | echo | |
2476 | fi | |
953ff289 | 2477 | |
5213506e | 2478 | if test -s confdefs.h; then |
22e05272 | 2479 | $as_echo "## ----------- ## |
5213506e | 2480 | ## confdefs.h. ## |
22e05272 | 2481 | ## ----------- ##" |
5213506e RW |
2482 | echo |
2483 | cat confdefs.h | |
2484 | echo | |
2485 | fi | |
2486 | test "$ac_signal" != 0 && | |
2487 | $as_echo "$as_me: caught signal $ac_signal" | |
2488 | $as_echo "$as_me: exit $exit_status" | |
2489 | } >&5 | |
2490 | rm -f core *.core core.conftest.* && | |
2491 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2492 | exit $exit_status | |
2493 | ' 0 | |
2494 | for ac_signal in 1 2 13 15; do | |
2495 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2496 | done | |
2497 | ac_signal=0 | |
953ff289 | 2498 | |
5213506e RW |
2499 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2500 | rm -f -r conftest* confdefs.h | |
2501 | ||
2502 | $as_echo "/* confdefs.h */" > confdefs.h | |
2503 | ||
2504 | # Predefined preprocessor variables. | |
2505 | ||
2506 | cat >>confdefs.h <<_ACEOF | |
2507 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2508 | _ACEOF | |
2509 | ||
2510 | cat >>confdefs.h <<_ACEOF | |
2511 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2512 | _ACEOF | |
2513 | ||
2514 | cat >>confdefs.h <<_ACEOF | |
2515 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2516 | _ACEOF | |
2517 | ||
2518 | cat >>confdefs.h <<_ACEOF | |
2519 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2520 | _ACEOF | |
2521 | ||
2522 | cat >>confdefs.h <<_ACEOF | |
2523 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2524 | _ACEOF | |
2525 | ||
2526 | cat >>confdefs.h <<_ACEOF | |
2527 | #define PACKAGE_URL "$PACKAGE_URL" | |
2528 | _ACEOF | |
2529 | ||
2530 | ||
2531 | # Let the site file select an alternate cache file if it wants to. | |
2532 | # Prefer an explicitly selected file to automatically selected ones. | |
2533 | ac_site_file1=NONE | |
2534 | ac_site_file2=NONE | |
2535 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2536 | # We do not want a PATH search for config.site. |
2537 | case $CONFIG_SITE in #(( | |
2538 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2539 | */*) ac_site_file1=$CONFIG_SITE;; | |
2540 | *) ac_site_file1=./$CONFIG_SITE;; | |
2541 | esac | |
5213506e RW |
2542 | elif test "x$prefix" != xNONE; then |
2543 | ac_site_file1=$prefix/share/config.site | |
2544 | ac_site_file2=$prefix/etc/config.site | |
2545 | else | |
2546 | ac_site_file1=$ac_default_prefix/share/config.site | |
2547 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2548 | fi | |
2549 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2550 | do | |
2551 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2552 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2554 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2555 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2556 | . "$ac_site_file" \ |
2557 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2558 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2559 | as_fn_error $? "failed to load site script $ac_site_file | |
2560 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
2561 | fi |
2562 | done | |
2563 | ||
2564 | if test -r "$cache_file"; then | |
22e05272 JM |
2565 | # Some versions of bash will fail to source /dev/null (special files |
2566 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2567 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2569 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2570 | case $cache_file in | |
2571 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2572 | *) . "./$cache_file";; | |
2573 | esac | |
2574 | fi | |
2575 | else | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2577 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2578 | >$cache_file | |
2579 | fi | |
2580 | ||
b8d89b03 ML |
2581 | as_fn_append ac_header_list " unistd.h" |
2582 | as_fn_append ac_func_list " secure_getenv" | |
2583 | as_fn_append ac_func_list " __secure_getenv" | |
2584 | as_fn_append ac_func_list " getuid" | |
2585 | as_fn_append ac_func_list " geteuid" | |
2586 | as_fn_append ac_func_list " getgid" | |
2587 | as_fn_append ac_func_list " getegid" | |
5213506e RW |
2588 | # Check that the precious variables saved in the cache have kept the same |
2589 | # value. | |
2590 | ac_cache_corrupted=false | |
2591 | for ac_var in $ac_precious_vars; do | |
2592 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2593 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2594 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2595 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2596 | case $ac_old_set,$ac_new_set in | |
2597 | set,) | |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2599 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2600 | ac_cache_corrupted=: ;; | |
2601 | ,set) | |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2603 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2604 | ac_cache_corrupted=: ;; | |
2605 | ,);; | |
2606 | *) | |
2607 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2608 | # differences in whitespace do not lead to failure. | |
2609 | ac_old_val_w=`echo x $ac_old_val` | |
2610 | ac_new_val_w=`echo x $ac_new_val` | |
2611 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2613 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2614 | ac_cache_corrupted=: | |
2615 | else | |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2617 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2618 | eval $ac_var=\$ac_old_val | |
2619 | fi | |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2621 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2623 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2624 | fi;; | |
2625 | esac | |
2626 | # Pass precious variables to config.status. | |
2627 | if test "$ac_new_set" = set; then | |
2628 | case $ac_new_val in | |
2629 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2630 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2631 | esac | |
2632 | case " $ac_configure_args " in | |
2633 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2634 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2635 | esac | |
2636 | fi | |
2637 | done | |
2638 | if $ac_cache_corrupted; then | |
2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2640 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2642 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2643 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
5213506e RW |
2644 | fi |
2645 | ## -------------------- ## | |
2646 | ## Main body of script. ## | |
2647 | ## -------------------- ## | |
2648 | ||
2649 | ac_ext=c | |
2650 | ac_cpp='$CPP $CPPFLAGS' | |
2651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2654 | ||
2655 | ||
2656 | ||
2657 | ||
2658 | ||
2659 | ac_config_headers="$ac_config_headers config.h" | |
2660 | ||
2661 | ||
2662 | # ------- | |
2663 | # Options | |
2664 | # ------- | |
2665 | ||
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 | |
2667 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2668 | # Check whether --enable-version-specific-runtime-libs was given. | |
2669 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2670 | enableval=$enable_version_specific_runtime_libs; | |
953ff289 DN |
2671 | case "$enableval" in |
2672 | yes|no) ;; | |
22e05272 | 2673 | *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; |
953ff289 DN |
2674 | esac |
2675 | ||
2676 | else | |
2677 | enable_version_specific_runtime_libs=no | |
5213506e RW |
2678 | fi |
2679 | ||
953ff289 | 2680 | |
5213506e RW |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 |
2682 | $as_echo "$enable_version_specific_runtime_libs" >&6; } | |
953ff289 | 2683 | |
627ab4b8 TT |
2684 | # We would like our source tree to be readonly. However when releases or |
2685 | # pre-releases are generated, the flex/bison generated files as well as the | |
2686 | # various formats of manuals need to be included along with the rest of the | |
2687 | # sources. Therefore we have --enable-generated-files-in-srcdir to do | |
2688 | # just that. | |
5213506e RW |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 |
2690 | $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } | |
2691 | # Check whether --enable-generated-files-in-srcdir was given. | |
2692 | if test "${enable_generated_files_in_srcdir+set}" = set; then : | |
2693 | enableval=$enable_generated_files_in_srcdir; | |
627ab4b8 TT |
2694 | case "$enableval" in |
2695 | yes|no) ;; | |
22e05272 | 2696 | *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; |
627ab4b8 TT |
2697 | esac |
2698 | ||
2699 | else | |
2700 | enable_generated_files_in_srcdir=no | |
5213506e | 2701 | fi |
627ab4b8 TT |
2702 | |
2703 | ||
5213506e RW |
2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 |
2705 | $as_echo "$enable_generated_files_in_srcdir" >&6; } | |
2706 | if test "$enable_generated_files_in_srcdir" = yes; then | |
627ab4b8 TT |
2707 | GENINSRC_TRUE= |
2708 | GENINSRC_FALSE='#' | |
2709 | else | |
2710 | GENINSRC_TRUE='#' | |
2711 | GENINSRC_FALSE= | |
2712 | fi | |
2713 | ||
2714 | ||
2715 | ||
953ff289 DN |
2716 | # ------- |
2717 | # ------- | |
2718 | ||
2719 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2720 | # | |
2721 | # You will slowly go insane if you do not grok the following fact: when | |
2722 | # building this library, the top-level /target/ becomes the library's /host/. | |
2723 | # | |
2724 | # configure then causes --target to default to --host, exactly like any | |
2725 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2726 | # always be the same. This makes sense both for native and cross compilers | |
2727 | # just think about it for a little while. :-) | |
2728 | # | |
2729 | # Also, if this library is being configured as part of a cross compiler, the | |
2730 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2731 | # | |
2732 | # Do not delete or change the following two lines. For why, see | |
2733 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
2734 | ac_aux_dir= | |
5213506e | 2735 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2736 | if test -f "$ac_dir/install-sh"; then |
2737 | ac_aux_dir=$ac_dir | |
2738 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2739 | break | |
2740 | elif test -f "$ac_dir/install.sh"; then | |
2741 | ac_aux_dir=$ac_dir | |
2742 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2743 | break | |
2744 | elif test -f "$ac_dir/shtool"; then | |
2745 | ac_aux_dir=$ac_dir | |
2746 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2747 | break | |
2748 | fi | |
953ff289 DN |
2749 | done |
2750 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2751 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
953ff289 | 2752 | fi |
5213506e RW |
2753 | |
2754 | # These three variables are undocumented and unsupported, | |
2755 | # and are intended to be withdrawn in a future Autoconf release. | |
2756 | # They can cause serious problems if a builder's source tree is in a directory | |
2757 | # whose full name contains unusual characters. | |
2758 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2759 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2760 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2761 | ||
953ff289 DN |
2762 | |
2763 | # Make sure we can run config.sub. | |
5213506e | 2764 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2765 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2766 | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2768 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2769 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2770 | $as_echo_n "(cached) " >&6 |
2771 | else | |
2772 | ac_build_alias=$build_alias | |
2773 | test "x$ac_build_alias" = x && | |
2774 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2775 | test "x$ac_build_alias" = x && | |
22e05272 | 2776 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2777 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2778 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2779 | |
2780 | fi | |
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2782 | $as_echo "$ac_cv_build" >&6; } | |
2783 | case $ac_cv_build in | |
2784 | *-*-*) ;; | |
22e05272 | 2785 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2786 | esac |
953ff289 | 2787 | build=$ac_cv_build |
5213506e RW |
2788 | ac_save_IFS=$IFS; IFS='-' |
2789 | set x $ac_cv_build | |
2790 | shift | |
2791 | build_cpu=$1 | |
2792 | build_vendor=$2 | |
2793 | shift; shift | |
2794 | # Remember, the first character of IFS is used to create $*, | |
2795 | # except with old shells: | |
2796 | build_os=$* | |
2797 | IFS=$ac_save_IFS | |
2798 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
953ff289 DN |
2799 | |
2800 | ||
5213506e RW |
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2802 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2803 | if ${ac_cv_host+:} false; then : |
5213506e | 2804 | $as_echo_n "(cached) " >&6 |
953ff289 | 2805 | else |
5213506e RW |
2806 | if test "x$host_alias" = x; then |
2807 | ac_cv_host=$ac_cv_build | |
2808 | else | |
2809 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2810 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2811 | fi |
953ff289 DN |
2812 | |
2813 | fi | |
5213506e RW |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2815 | $as_echo "$ac_cv_host" >&6; } | |
2816 | case $ac_cv_host in | |
2817 | *-*-*) ;; | |
22e05272 | 2818 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2819 | esac |
953ff289 | 2820 | host=$ac_cv_host |
5213506e RW |
2821 | ac_save_IFS=$IFS; IFS='-' |
2822 | set x $ac_cv_host | |
2823 | shift | |
2824 | host_cpu=$1 | |
2825 | host_vendor=$2 | |
2826 | shift; shift | |
2827 | # Remember, the first character of IFS is used to create $*, | |
2828 | # except with old shells: | |
2829 | host_os=$* | |
2830 | IFS=$ac_save_IFS | |
2831 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
953ff289 DN |
2832 | |
2833 | ||
5213506e RW |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2835 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2836 | if ${ac_cv_target+:} false; then : |
5213506e RW |
2837 | $as_echo_n "(cached) " >&6 |
2838 | else | |
2839 | if test "x$target_alias" = x; then | |
2840 | ac_cv_target=$ac_cv_host | |
953ff289 | 2841 | else |
5213506e | 2842 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
22e05272 | 2843 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2844 | fi |
953ff289 DN |
2845 | |
2846 | fi | |
5213506e RW |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2848 | $as_echo "$ac_cv_target" >&6; } | |
2849 | case $ac_cv_target in | |
2850 | *-*-*) ;; | |
22e05272 | 2851 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2852 | esac |
953ff289 | 2853 | target=$ac_cv_target |
5213506e RW |
2854 | ac_save_IFS=$IFS; IFS='-' |
2855 | set x $ac_cv_target | |
2856 | shift | |
2857 | target_cpu=$1 | |
2858 | target_vendor=$2 | |
2859 | shift; shift | |
2860 | # Remember, the first character of IFS is used to create $*, | |
2861 | # except with old shells: | |
2862 | target_os=$* | |
2863 | IFS=$ac_save_IFS | |
2864 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
953ff289 DN |
2865 | |
2866 | ||
2867 | # The aliases save the names the user supplied, while $host etc. | |
2868 | # will get canonicalized. | |
2869 | test -n "$target_alias" && | |
2870 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2871 | NONENONEs,x,x, && | |
2872 | program_prefix=${target_alias}- | |
5213506e | 2873 | |
953ff289 DN |
2874 | target_alias=${target_alias-$host_alias} |
2875 | ||
2876 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
2877 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2878 | # 1.9.0: minimum required version | |
2879 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
2880 | # of other PACKAGE_* variables will, however, and there's nothing | |
2881 | # we can do about that; they come from AC_INIT). | |
2882 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
2883 | # file in the top srcdir, etc, etc), so stop complaining. | |
13917ae3 | 2884 | # no-dist: we don't want 'dist' and related rules. |
953ff289 DN |
2885 | # -Wall: turns on all automake warnings... |
2886 | # -Wno-portability: ...except this one, since GNU make is required. | |
2887 | # -Wno-override: ... and this one, since we do want this in testsuite. | |
2fe5a545 | 2888 | am__api_version='1.15' |
5213506e | 2889 | |
953ff289 DN |
2890 | # Find a good install program. We prefer a C program (faster), |
2891 | # so one script is as good as another. But avoid the broken or | |
2892 | # incompatible versions: | |
2893 | # SysV /etc/install, /usr/sbin/install | |
2894 | # SunOS /usr/etc/install | |
2895 | # IRIX /sbin/install | |
2896 | # AIX /bin/install | |
2897 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2898 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2899 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2900 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2901 | # OS/2's system install, which has a completely different semantic | |
2902 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 2903 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2905 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
953ff289 | 2906 | if test -z "$INSTALL"; then |
22e05272 | 2907 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2908 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
2909 | else |
2910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2911 | for as_dir in $PATH | |
2912 | do | |
2913 | IFS=$as_save_IFS | |
2914 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2915 | # Account for people who put trailing slashes in PATH elements. |
2916 | case $as_dir/ in #(( | |
2917 | ./ | .// | /[cC]/* | \ | |
953ff289 | 2918 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2919 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
953ff289 DN |
2920 | /usr/ucb/* ) ;; |
2921 | *) | |
2922 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2923 | # Don't use installbsd from OSF since it installs stuff as root | |
2924 | # by default. | |
2925 | for ac_prog in ginstall scoinst install; do | |
2926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2927 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
953ff289 DN |
2928 | if test $ac_prog = install && |
2929 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2930 | # AIX install. It has an incompatible calling convention. | |
2931 | : | |
2932 | elif test $ac_prog = install && | |
2933 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2934 | # program-specific install script used by HP pwplus--don't use. | |
2935 | : | |
2936 | else | |
38d24731 RW |
2937 | rm -rf conftest.one conftest.two conftest.dir |
2938 | echo one > conftest.one | |
2939 | echo two > conftest.two | |
2940 | mkdir conftest.dir | |
2941 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2942 | test -s conftest.one && test -s conftest.two && | |
2943 | test -s conftest.dir/conftest.one && | |
2944 | test -s conftest.dir/conftest.two | |
2945 | then | |
2946 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2947 | break 3 | |
2948 | fi | |
953ff289 DN |
2949 | fi |
2950 | fi | |
2951 | done | |
2952 | done | |
2953 | ;; | |
2954 | esac | |
5213506e RW |
2955 | |
2956 | done | |
2957 | IFS=$as_save_IFS | |
953ff289 | 2958 | |
38d24731 | 2959 | rm -rf conftest.one conftest.two conftest.dir |
953ff289 DN |
2960 | |
2961 | fi | |
2962 | if test "${ac_cv_path_install+set}" = set; then | |
2963 | INSTALL=$ac_cv_path_install | |
2964 | else | |
38d24731 RW |
2965 | # As a last resort, use the slow shell script. Don't cache a |
2966 | # value for INSTALL within a source directory, because that will | |
953ff289 | 2967 | # break other packages using the cache if that directory is |
38d24731 | 2968 | # removed, or if the value is a relative name. |
953ff289 DN |
2969 | INSTALL=$ac_install_sh |
2970 | fi | |
2971 | fi | |
5213506e RW |
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2973 | $as_echo "$INSTALL" >&6; } | |
953ff289 DN |
2974 | |
2975 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2976 | # It thinks the first close brace ends the variable substitution. | |
2977 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2978 | ||
2979 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2980 | ||
2981 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2982 | ||
5213506e RW |
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2984 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
5213506e RW |
2985 | # Reject unsafe characters in $srcdir or the absolute working directory |
2986 | # name. Accept space and tab only in the latter. | |
2987 | am_lf=' | |
2988 | ' | |
2989 | case `pwd` in | |
2990 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 2991 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
5213506e RW |
2992 | esac |
2993 | case $srcdir in | |
2994 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 2995 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
5213506e RW |
2996 | esac |
2997 | ||
22e05272 | 2998 | # Do 'set' in a subshell so we don't clobber the current shell's |
953ff289 DN |
2999 | # arguments. Must try -L first in case configure is actually a |
3000 | # symlink; some systems play weird games with the mod time of symlinks | |
3001 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3002 | # directory). | |
3003 | if ( | |
22e05272 JM |
3004 | am_has_slept=no |
3005 | for am_try in 1 2; do | |
3006 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3007 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3008 | if test "$*" = "X"; then | |
3009 | # -L didn't work. | |
3010 | set X `ls -t "$srcdir/configure" conftest.file` | |
3011 | fi | |
3012 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3013 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3014 | ||
3015 | # If neither matched, then we have a broken ls. This can happen | |
3016 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3017 | # broken ls alias from the environment. This has actually | |
3018 | # happened. Such a system could not be considered "sane". | |
3019 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3020 | alias in your environment" "$LINENO" 5 | |
3021 | fi | |
3022 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3023 | break | |
3024 | fi | |
3025 | # Just in case. | |
3026 | sleep 1 | |
3027 | am_has_slept=yes | |
3028 | done | |
953ff289 DN |
3029 | test "$2" = conftest.file |
3030 | ) | |
3031 | then | |
3032 | # Ok. | |
3033 | : | |
3034 | else | |
22e05272 | 3035 | as_fn_error $? "newly created file is older than distributed files! |
5213506e | 3036 | Check your system clock" "$LINENO" 5 |
953ff289 | 3037 | fi |
5213506e RW |
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3039 | $as_echo "yes" >&6; } | |
22e05272 JM |
3040 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3041 | # generated files are strictly newer. | |
3042 | am_sleep_pid= | |
3043 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3044 | ( sleep 1 ) & | |
3045 | am_sleep_pid=$! | |
3046 | fi | |
3047 | ||
3048 | rm -f conftest.file | |
3049 | ||
953ff289 | 3050 | test "$program_prefix" != NONE && |
5213506e | 3051 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
953ff289 DN |
3052 | # Use a double $ so make ignores it. |
3053 | test "$program_suffix" != NONE && | |
5213506e RW |
3054 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3055 | # Double any \ or $. | |
953ff289 | 3056 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
3057 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3058 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
953ff289 | 3059 | |
22e05272 JM |
3060 | # Expand $ac_aux_dir to an absolute path. |
3061 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
953ff289 | 3062 | |
5213506e RW |
3063 | if test x"${MISSING+set}" != xset; then |
3064 | case $am_aux_dir in | |
3065 | *\ * | *\ *) | |
3066 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3067 | *) | |
3068 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3069 | esac | |
3070 | fi | |
953ff289 | 3071 | # Use eval to expand $SHELL |
22e05272 JM |
3072 | if eval "$MISSING --is-lightweight"; then |
3073 | am_missing_run="$MISSING " | |
953ff289 DN |
3074 | else |
3075 | am_missing_run= | |
22e05272 JM |
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3077 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
5213506e RW |
3078 | fi |
3079 | ||
22e05272 | 3080 | if test x"${install_sh+set}" != xset; then |
5213506e RW |
3081 | case $am_aux_dir in |
3082 | *\ * | *\ *) | |
3083 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3084 | *) | |
3085 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3086 | esac | |
3087 | fi | |
3088 | ||
22e05272 JM |
3089 | # Installed binaries are usually stripped using 'strip' when the user |
3090 | # run "make install-strip". However 'strip' might not be the right | |
5213506e | 3091 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 3092 | # will honor the 'STRIP' environment variable to overrule this program. |
5213506e RW |
3093 | if test "$cross_compiling" != no; then |
3094 | if test -n "$ac_tool_prefix"; then | |
3095 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3096 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3098 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3099 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e RW |
3100 | $as_echo_n "(cached) " >&6 |
3101 | else | |
3102 | if test -n "$STRIP"; then | |
3103 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3104 | else | |
3105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3106 | for as_dir in $PATH | |
3107 | do | |
3108 | IFS=$as_save_IFS | |
3109 | test -z "$as_dir" && as_dir=. | |
3110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3112 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3114 | break 2 | |
3115 | fi | |
3116 | done | |
3117 | done | |
3118 | IFS=$as_save_IFS | |
3119 | ||
3120 | fi | |
3121 | fi | |
3122 | STRIP=$ac_cv_prog_STRIP | |
3123 | if test -n "$STRIP"; then | |
3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3125 | $as_echo "$STRIP" >&6; } | |
3126 | else | |
3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3128 | $as_echo "no" >&6; } | |
3129 | fi | |
3130 | ||
3131 | ||
3132 | fi | |
3133 | if test -z "$ac_cv_prog_STRIP"; then | |
3134 | ac_ct_STRIP=$STRIP | |
3135 | # Extract the first word of "strip", so it can be a program name with args. | |
3136 | set dummy strip; ac_word=$2 | |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3138 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3139 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e RW |
3140 | $as_echo_n "(cached) " >&6 |
3141 | else | |
3142 | if test -n "$ac_ct_STRIP"; then | |
3143 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3144 | else | |
3145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3146 | for as_dir in $PATH | |
3147 | do | |
3148 | IFS=$as_save_IFS | |
3149 | test -z "$as_dir" && as_dir=. | |
3150 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3151 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3152 | ac_cv_prog_ac_ct_STRIP="strip" |
3153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3154 | break 2 | |
3155 | fi | |
3156 | done | |
3157 | done | |
3158 | IFS=$as_save_IFS | |
3159 | ||
3160 | fi | |
3161 | fi | |
3162 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3163 | if test -n "$ac_ct_STRIP"; then | |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3165 | $as_echo "$ac_ct_STRIP" >&6; } | |
3166 | else | |
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3168 | $as_echo "no" >&6; } | |
3169 | fi | |
3170 | ||
3171 | if test "x$ac_ct_STRIP" = x; then | |
3172 | STRIP=":" | |
3173 | else | |
3174 | case $cross_compiling:$ac_tool_warned in | |
3175 | yes:) | |
3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3177 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3178 | ac_tool_warned=yes ;; | |
3179 | esac | |
3180 | STRIP=$ac_ct_STRIP | |
3181 | fi | |
3182 | else | |
3183 | STRIP="$ac_cv_prog_STRIP" | |
3184 | fi | |
3185 | ||
3186 | fi | |
3187 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3188 | ||
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3190 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3191 | if test -z "$MKDIR_P"; then | |
22e05272 | 3192 | if ${ac_cv_path_mkdir+:} false; then : |
5213506e RW |
3193 | $as_echo_n "(cached) " >&6 |
3194 | else | |
3195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3196 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3197 | do | |
3198 | IFS=$as_save_IFS | |
3199 | test -z "$as_dir" && as_dir=. | |
3200 | for ac_prog in mkdir gmkdir; do | |
3201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3202 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
5213506e RW |
3203 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3204 | 'mkdir (GNU coreutils) '* | \ | |
3205 | 'mkdir (coreutils) '* | \ | |
3206 | 'mkdir (fileutils) '4.1*) | |
3207 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3208 | break 3;; | |
3209 | esac | |
3210 | done | |
3211 | done | |
953ff289 | 3212 | done |
5213506e RW |
3213 | IFS=$as_save_IFS |
3214 | ||
3215 | fi | |
3216 | ||
22e05272 | 3217 | test -d ./--version && rmdir ./--version |
5213506e RW |
3218 | if test "${ac_cv_path_mkdir+set}" = set; then |
3219 | MKDIR_P="$ac_cv_path_mkdir -p" | |
953ff289 | 3220 | else |
5213506e RW |
3221 | # As a last resort, use the slow shell script. Don't cache a |
3222 | # value for MKDIR_P within a source directory, because that will | |
3223 | # break other packages using the cache if that directory is | |
3224 | # removed, or if the value is a relative name. | |
5213506e | 3225 | MKDIR_P="$ac_install_sh -d" |
953ff289 DN |
3226 | fi |
3227 | fi | |
5213506e RW |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3229 | $as_echo "$MKDIR_P" >&6; } | |
3230 | ||
953ff289 DN |
3231 | for ac_prog in gawk mawk nawk awk |
3232 | do | |
3233 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3234 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3236 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3237 | if ${ac_cv_prog_AWK+:} false; then : |
5213506e | 3238 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3239 | else |
3240 | if test -n "$AWK"; then | |
3241 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3242 | else | |
3243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3244 | for as_dir in $PATH | |
3245 | do | |
3246 | IFS=$as_save_IFS | |
3247 | test -z "$as_dir" && as_dir=. | |
5213506e | 3248 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3250 | ac_cv_prog_AWK="$ac_prog" |
5213506e | 3251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3252 | break 2 |
3253 | fi | |
3254 | done | |
5213506e RW |
3255 | done |
3256 | IFS=$as_save_IFS | |
953ff289 DN |
3257 | |
3258 | fi | |
3259 | fi | |
3260 | AWK=$ac_cv_prog_AWK | |
3261 | if test -n "$AWK"; then | |
5213506e RW |
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3263 | $as_echo "$AWK" >&6; } | |
953ff289 | 3264 | else |
5213506e RW |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3266 | $as_echo "no" >&6; } | |
953ff289 DN |
3267 | fi |
3268 | ||
5213506e | 3269 | |
953ff289 DN |
3270 | test -n "$AWK" && break |
3271 | done | |
3272 | ||
5213506e RW |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3274 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3275 | set x ${MAKE-make} | |
3276 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 3277 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e | 3278 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3279 | else |
3280 | cat >conftest.make <<\_ACEOF | |
5213506e | 3281 | SHELL = /bin/sh |
953ff289 | 3282 | all: |
5213506e | 3283 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
953ff289 | 3284 | _ACEOF |
22e05272 | 3285 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
3286 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3287 | *@@@%%%=?*=@@@%%%*) | |
3288 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3289 | *) | |
3290 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3291 | esac | |
953ff289 DN |
3292 | rm -f conftest.make |
3293 | fi | |
5213506e RW |
3294 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3296 | $as_echo "yes" >&6; } | |
953ff289 DN |
3297 | SET_MAKE= |
3298 | else | |
5213506e RW |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3300 | $as_echo "no" >&6; } | |
953ff289 DN |
3301 | SET_MAKE="MAKE=${MAKE-make}" |
3302 | fi | |
3303 | ||
3304 | rm -rf .tst 2>/dev/null | |
3305 | mkdir .tst 2>/dev/null | |
3306 | if test -d .tst; then | |
3307 | am__leading_dot=. | |
3308 | else | |
3309 | am__leading_dot=_ | |
3310 | fi | |
3311 | rmdir .tst 2>/dev/null | |
3312 | ||
22e05272 JM |
3313 | # Check whether --enable-silent-rules was given. |
3314 | if test "${enable_silent_rules+set}" = set; then : | |
3315 | enableval=$enable_silent_rules; | |
3316 | fi | |
3317 | ||
3318 | case $enable_silent_rules in # ((( | |
3319 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3320 | no) AM_DEFAULT_VERBOSITY=1;; | |
3321 | *) AM_DEFAULT_VERBOSITY=1;; | |
3322 | esac | |
3323 | am_make=${MAKE-make} | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3325 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3326 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3327 | $as_echo_n "(cached) " >&6 | |
3328 | else | |
3329 | if $as_echo 'TRUE=$(BAR$(V)) | |
3330 | BAR0=false | |
3331 | BAR1=true | |
3332 | V=1 | |
3333 | am__doit: | |
3334 | @$(TRUE) | |
3335 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3336 | am_cv_make_support_nested_variables=yes | |
3337 | else | |
3338 | am_cv_make_support_nested_variables=no | |
3339 | fi | |
3340 | fi | |
3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3342 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3343 | if test $am_cv_make_support_nested_variables = yes; then | |
3344 | AM_V='$(V)' | |
3345 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3346 | else | |
3347 | AM_V=$AM_DEFAULT_VERBOSITY | |
3348 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3349 | fi | |
3350 | AM_BACKSLASH='\' | |
3351 | ||
5213506e RW |
3352 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3353 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3354 | # is not polluted with repeated "-I." | |
3355 | am__isrc=' -I$(srcdir)' | |
3356 | # test to see if srcdir already configured | |
3357 | if test -f $srcdir/config.status; then | |
22e05272 | 3358 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
5213506e | 3359 | fi |
953ff289 DN |
3360 | fi |
3361 | ||
3362 | # test whether we have cygpath | |
3363 | if test -z "$CYGPATH_W"; then | |
3364 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3365 | CYGPATH_W='cygpath -w' | |
3366 | else | |
3367 | CYGPATH_W=echo | |
3368 | fi | |
3369 | fi | |
3370 | ||
3371 | ||
3372 | # Define the identity of the package. | |
3373 | PACKAGE='libgomp' | |
3374 | VERSION='1.0' | |
3375 | ||
3376 | ||
3377 | cat >>confdefs.h <<_ACEOF | |
3378 | #define PACKAGE "$PACKAGE" | |
3379 | _ACEOF | |
3380 | ||
3381 | ||
3382 | cat >>confdefs.h <<_ACEOF | |
3383 | #define VERSION "$VERSION" | |
3384 | _ACEOF | |
3385 | ||
3386 | # Some tools Automake needs. | |
3387 | ||
3388 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3389 | ||
3390 | ||
3391 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3392 | ||
3393 | ||
3394 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3395 | ||
3396 | ||
3397 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3398 | ||
3399 | ||
3400 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3401 | ||
22e05272 JM |
3402 | # For better backward compatibility. To be removed once Automake 1.9.x |
3403 | # dies out for good. For more background, see: | |
2fe5a545 TB |
3404 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
3405 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
22e05272 JM |
3406 | mkdir_p='$(MKDIR_P)' |
3407 | ||
3408 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3409 | # system "awk" is bad on some platforms. | |
f96b7f1f AM |
3410 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3411 | # in the wild :-( We should find a proper way to deprecate it ... | |
3412 | AMTAR='$${TAR-tar}' | |
953ff289 | 3413 | |
22e05272 JM |
3414 | |
3415 | # We'll loop over all known methods to create a tar archive until one works. | |
3416 | _am_tools='gnutar pax cpio none' | |
3417 | ||
f96b7f1f | 3418 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
953ff289 DN |
3419 | |
3420 | ||
3421 | ||
3422 | ||
3423 | ||
22e05272 JM |
3424 | |
3425 | # POSIX will say in a future version that running "rm -f" with no argument | |
3426 | # is OK; and we want to be able to make that assumption in our Makefile | |
3427 | # recipes. So use an aggressive probe to check that the usage we want is | |
3428 | # actually supported "in the wild" to an acceptable degree. | |
3429 | # See automake bug#10828. | |
3430 | # To make any issue more visible, cause the running configure to be aborted | |
3431 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3432 | # user can still override this though. | |
3433 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3434 | cat >&2 <<'END' | |
3435 | Oops! | |
3436 | ||
3437 | Your 'rm' program seems unable to run without file operands specified | |
3438 | on the command line, even when the '-f' option is present. This is contrary | |
3439 | to the behaviour of most rm programs out there, and not conforming with | |
3440 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3441 | ||
3442 | Please tell bug-automake@gnu.org about your system, including the value | |
3443 | of your $PATH and any error possibly output before this message. This | |
3444 | can help us improve future automake versions. | |
3445 | ||
3446 | END | |
3447 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3448 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3449 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3450 | echo >&2 | |
3451 | else | |
3452 | cat >&2 <<'END' | |
3453 | Aborting the configuration process, to ensure you take notice of the issue. | |
3454 | ||
3455 | You can download and install GNU coreutils to get an 'rm' implementation | |
2fe5a545 | 3456 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
22e05272 JM |
3457 | |
3458 | If you want to complete the configuration process using your problematic | |
3459 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3460 | to "yes", and re-run configure. | |
3461 | ||
3462 | END | |
3463 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3464 | fi | |
3465 | fi | |
3466 | ||
953ff289 | 3467 | # Default to --enable-multilib |
5213506e RW |
3468 | # Check whether --enable-multilib was given. |
3469 | if test "${enable_multilib+set}" = set; then : | |
3470 | enableval=$enable_multilib; case "$enableval" in | |
953ff289 DN |
3471 | yes) multilib=yes ;; |
3472 | no) multilib=no ;; | |
22e05272 | 3473 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
953ff289 DN |
3474 | esac |
3475 | else | |
3476 | multilib=yes | |
5213506e RW |
3477 | fi |
3478 | ||
953ff289 DN |
3479 | |
3480 | # We may get other options which we leave undocumented: | |
3481 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3482 | # See config-ml.in if you want the gory details. | |
3483 | ||
3484 | if test "$srcdir" = "."; then | |
3485 | if test "$with_target_subdir" != "."; then | |
3486 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3487 | else | |
3488 | multi_basedir="$srcdir/$with_multisrctop.." | |
3489 | fi | |
3490 | else | |
3491 | multi_basedir="$srcdir/.." | |
3492 | fi | |
3493 | ||
3494 | ||
5b043f08 GK |
3495 | # Even if the default multilib is not a cross compilation, |
3496 | # it may be that some of the other multilibs are. | |
3497 | if test $cross_compiling = no && test $multilib = yes \ | |
3498 | && test "x${with_multisubdir}" != x ; then | |
3499 | cross_compiling=maybe | |
3500 | fi | |
3501 | ||
5213506e | 3502 | ac_config_commands="$ac_config_commands default-1" |
953ff289 DN |
3503 | |
3504 | ||
e8e66971 MR |
3505 | |
3506 | # Check whether --with-toolexeclibdir was given. | |
3507 | if test "${with_toolexeclibdir+set}" = set; then : | |
3508 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
3509 | /) | |
3510 | ;; | |
3511 | */) | |
3512 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
3513 | ;; | |
3514 | esac | |
3515 | else | |
3516 | with_toolexeclibdir=no | |
3517 | fi | |
3518 | ||
3519 | ||
3520 | ||
953ff289 DN |
3521 | # Calculate toolexeclibdir |
3522 | # Also toolexecdir, though it's only used in toolexeclibdir | |
3523 | case ${enable_version_specific_runtime_libs} in | |
3524 | yes) | |
3525 | # Need the gcc compiler version to know where to install libraries | |
3526 | # and header files if --enable-version-specific-runtime-libs option | |
3527 | # is selected. | |
3528 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
3529 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
3530 | ;; | |
3531 | no) | |
3532 | if test -n "$with_cross_host" && | |
3533 | test x"$with_cross_host" != x"no"; then | |
3534 | # Install a library built with a cross compiler in tooldir, not libdir. | |
3535 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
e8e66971 MR |
3536 | case ${with_toolexeclibdir} in |
3537 | no) | |
3538 | toolexeclibdir='$(toolexecdir)/lib' | |
3539 | ;; | |
3540 | *) | |
3541 | toolexeclibdir=${with_toolexeclibdir} | |
3542 | ;; | |
3543 | esac | |
953ff289 DN |
3544 | else |
3545 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
3546 | toolexeclibdir='$(libdir)' | |
3547 | fi | |
3548 | multi_os_directory=`$CC -print-multi-os-directory` | |
3549 | case $multi_os_directory in | |
3550 | .) ;; # Avoid trailing /. | |
3551 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
3552 | esac | |
3553 | ;; | |
3554 | esac | |
3555 | ||
3556 | ||
3557 | ||
3558 | # Check the compiler. | |
3559 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
3560 | # We must force CC to /not/ be precious variables; otherwise | |
3561 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
3562 | # As a side effect, we have to subst CFLAGS ourselves. | |
3563 | ||
3564 | ||
3565 | ||
3566 | ac_ext=c | |
3567 | ac_cpp='$CPP $CPPFLAGS' | |
3568 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3569 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3570 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3571 | if test -n "$ac_tool_prefix"; then | |
3572 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3573 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3575 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3576 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3577 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3578 | else |
3579 | if test -n "$CC"; then | |
3580 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3581 | else | |
3582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3583 | for as_dir in $PATH | |
3584 | do | |
3585 | IFS=$as_save_IFS | |
3586 | test -z "$as_dir" && as_dir=. | |
5213506e | 3587 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3589 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3591 | break 2 |
3592 | fi | |
3593 | done | |
5213506e RW |
3594 | done |
3595 | IFS=$as_save_IFS | |
953ff289 DN |
3596 | |
3597 | fi | |
3598 | fi | |
3599 | CC=$ac_cv_prog_CC | |
3600 | if test -n "$CC"; then | |
5213506e RW |
3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3602 | $as_echo "$CC" >&6; } | |
953ff289 | 3603 | else |
5213506e RW |
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3605 | $as_echo "no" >&6; } | |
953ff289 DN |
3606 | fi |
3607 | ||
5213506e | 3608 | |
953ff289 DN |
3609 | fi |
3610 | if test -z "$ac_cv_prog_CC"; then | |
3611 | ac_ct_CC=$CC | |
3612 | # Extract the first word of "gcc", so it can be a program name with args. | |
3613 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3615 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3616 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3617 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3618 | else |
3619 | if test -n "$ac_ct_CC"; then | |
3620 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3621 | else | |
3622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3623 | for as_dir in $PATH | |
3624 | do | |
3625 | IFS=$as_save_IFS | |
3626 | test -z "$as_dir" && as_dir=. | |
5213506e | 3627 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3629 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3631 | break 2 |
3632 | fi | |
3633 | done | |
5213506e RW |
3634 | done |
3635 | IFS=$as_save_IFS | |
953ff289 DN |
3636 | |
3637 | fi | |
3638 | fi | |
3639 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3640 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3642 | $as_echo "$ac_ct_CC" >&6; } | |
953ff289 | 3643 | else |
5213506e RW |
3644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3645 | $as_echo "no" >&6; } | |
953ff289 DN |
3646 | fi |
3647 | ||
5213506e RW |
3648 | if test "x$ac_ct_CC" = x; then |
3649 | CC="" | |
3650 | else | |
3651 | case $cross_compiling:$ac_tool_warned in | |
3652 | yes:) | |
3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3654 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3655 | ac_tool_warned=yes ;; | |
3656 | esac | |
3657 | CC=$ac_ct_CC | |
3658 | fi | |
953ff289 DN |
3659 | else |
3660 | CC="$ac_cv_prog_CC" | |
3661 | fi | |
3662 | ||
3663 | if test -z "$CC"; then | |
5213506e RW |
3664 | if test -n "$ac_tool_prefix"; then |
3665 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
953ff289 | 3666 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3668 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3669 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3670 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3671 | else |
3672 | if test -n "$CC"; then | |
3673 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3674 | else | |
3675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3676 | for as_dir in $PATH | |
3677 | do | |
3678 | IFS=$as_save_IFS | |
3679 | test -z "$as_dir" && as_dir=. | |
5213506e | 3680 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3681 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3682 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3684 | break 2 |
3685 | fi | |
3686 | done | |
5213506e RW |
3687 | done |
3688 | IFS=$as_save_IFS | |
953ff289 DN |
3689 | |
3690 | fi | |
3691 | fi | |
3692 | CC=$ac_cv_prog_CC | |
3693 | if test -n "$CC"; then | |
5213506e RW |
3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3695 | $as_echo "$CC" >&6; } | |
953ff289 | 3696 | else |
5213506e RW |
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3698 | $as_echo "no" >&6; } | |
953ff289 DN |
3699 | fi |
3700 | ||
953ff289 | 3701 | |
5213506e | 3702 | fi |
953ff289 DN |
3703 | fi |
3704 | if test -z "$CC"; then | |
3705 | # Extract the first word of "cc", so it can be a program name with args. | |
3706 | set dummy cc; ac_word=$2 | |
5213506e RW |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3708 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3709 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3710 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3711 | else |
3712 | if test -n "$CC"; then | |
3713 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3714 | else | |
3715 | ac_prog_rejected=no | |
3716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3717 | for as_dir in $PATH | |
3718 | do | |
3719 | IFS=$as_save_IFS | |
3720 | test -z "$as_dir" && as_dir=. | |
5213506e | 3721 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 DN |
3723 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3724 | ac_prog_rejected=yes | |
3725 | continue | |
3726 | fi | |
3727 | ac_cv_prog_CC="cc" | |
5213506e | 3728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3729 | break 2 |
3730 | fi | |
3731 | done | |
5213506e RW |
3732 | done |
3733 | IFS=$as_save_IFS | |
953ff289 DN |
3734 | |
3735 | if test $ac_prog_rejected = yes; then | |
3736 | # We found a bogon in the path, so make sure we never use it. | |
3737 | set dummy $ac_cv_prog_CC | |
3738 | shift | |
3739 | if test $# != 0; then | |
3740 | # We chose a different compiler from the bogus one. | |
3741 | # However, it has the same basename, so the bogon will be chosen | |
3742 | # first if we set CC to just the basename; use the full file name. | |
3743 | shift | |
3744 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3745 | fi | |
3746 | fi | |
3747 | fi | |
3748 | fi | |
3749 | CC=$ac_cv_prog_CC | |
3750 | if test -n "$CC"; then | |
5213506e RW |
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3752 | $as_echo "$CC" >&6; } | |
953ff289 | 3753 | else |
5213506e RW |
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3755 | $as_echo "no" >&6; } | |
953ff289 DN |
3756 | fi |
3757 | ||
5213506e | 3758 | |
953ff289 DN |
3759 | fi |
3760 | if test -z "$CC"; then | |
3761 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3762 | for ac_prog in cl.exe |
953ff289 DN |
3763 | do |
3764 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3765 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3767 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3768 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3769 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3770 | else |
3771 | if test -n "$CC"; then | |
3772 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3773 | else | |
3774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3775 | for as_dir in $PATH | |
3776 | do | |
3777 | IFS=$as_save_IFS | |
3778 | test -z "$as_dir" && as_dir=. | |
5213506e | 3779 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3780 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3781 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3783 | break 2 |
3784 | fi | |
3785 | done | |
5213506e RW |
3786 | done |
3787 | IFS=$as_save_IFS | |
953ff289 DN |
3788 | |
3789 | fi | |
3790 | fi | |
3791 | CC=$ac_cv_prog_CC | |
3792 | if test -n "$CC"; then | |
5213506e RW |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3794 | $as_echo "$CC" >&6; } | |
953ff289 | 3795 | else |
5213506e RW |
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3797 | $as_echo "no" >&6; } | |
953ff289 DN |
3798 | fi |
3799 | ||
5213506e | 3800 | |
953ff289 DN |
3801 | test -n "$CC" && break |
3802 | done | |
3803 | fi | |
3804 | if test -z "$CC"; then | |
3805 | ac_ct_CC=$CC | |
5213506e | 3806 | for ac_prog in cl.exe |
953ff289 DN |
3807 | do |
3808 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3809 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3811 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3812 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3813 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3814 | else |
3815 | if test -n "$ac_ct_CC"; then | |
3816 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3817 | else | |
3818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3819 | for as_dir in $PATH | |
3820 | do | |
3821 | IFS=$as_save_IFS | |
3822 | test -z "$as_dir" && as_dir=. | |
5213506e | 3823 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3825 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3827 | break 2 |
3828 | fi | |
3829 | done | |
5213506e RW |
3830 | done |
3831 | IFS=$as_save_IFS | |
953ff289 DN |
3832 | |
3833 | fi | |
3834 | fi | |
3835 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3836 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3838 | $as_echo "$ac_ct_CC" >&6; } | |
953ff289 | 3839 | else |
5213506e RW |
3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3841 | $as_echo "no" >&6; } | |
953ff289 DN |
3842 | fi |
3843 | ||
5213506e | 3844 | |
953ff289 DN |
3845 | test -n "$ac_ct_CC" && break |
3846 | done | |
3847 | ||
5213506e RW |
3848 | if test "x$ac_ct_CC" = x; then |
3849 | CC="" | |
3850 | else | |
3851 | case $cross_compiling:$ac_tool_warned in | |
3852 | yes:) | |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3854 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3855 | ac_tool_warned=yes ;; | |
3856 | esac | |
3857 | CC=$ac_ct_CC | |
3858 | fi | |
953ff289 DN |
3859 | fi |
3860 | ||
3861 | fi | |
3862 | ||
3863 | ||
5213506e RW |
3864 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3865 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3866 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3867 | See \`config.log' for more details" "$LINENO" 5; } | |
953ff289 DN |
3868 | |
3869 | # Provide some information about the compiler. | |
5213506e RW |
3870 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3871 | set X $ac_compile | |
3872 | ac_compiler=$2 | |
3873 | for ac_option in --version -v -V -qversion; do | |
3874 | { { ac_try="$ac_compiler $ac_option >&5" | |
3875 | case "(($ac_try" in | |
3876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3877 | *) ac_try_echo=$ac_try;; | |
3878 | esac | |
3879 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3880 | $as_echo "$ac_try_echo"; } >&5 | |
3881 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
953ff289 | 3882 | ac_status=$? |
5213506e RW |
3883 | if test -s conftest.err; then |
3884 | sed '10a\ | |
3885 | ... rest of stderr output deleted ... | |
3886 | 10q' conftest.err >conftest.er1 | |
3887 | cat conftest.er1 >&5 | |
5213506e | 3888 | fi |
22e05272 | 3889 | rm -f conftest.er1 conftest.err |
5213506e RW |
3890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3891 | test $ac_status = 0; } | |
3892 | done | |
953ff289 | 3893 | |
5213506e | 3894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
3895 | /* end confdefs.h. */ |
3896 | ||
3897 | int | |
3898 | main () | |
3899 | { | |
3900 | ||
3901 | ; | |
3902 | return 0; | |
3903 | } | |
3904 | _ACEOF | |
3905 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 3906 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
953ff289 DN |
3907 | # Try to create an executable without -o first, disregard a.out. |
3908 | # It will help us diagnose broken compilers, and finding out an intuition | |
3909 | # of exeext. | |
22e05272 JM |
3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3911 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
3912 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3913 | ||
3914 | # The possible output files: | |
3915 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3916 | ||
3917 | ac_rmfiles= | |
3918 | for ac_file in $ac_files | |
3919 | do | |
3920 | case $ac_file in | |
3921 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3922 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3923 | esac | |
3924 | done | |
3925 | rm -f $ac_rmfiles | |
3926 | ||
3927 | if { { ac_try="$ac_link_default" | |
3928 | case "(($ac_try" in | |
3929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3930 | *) ac_try_echo=$ac_try;; | |
3931 | esac | |
3932 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3933 | $as_echo "$ac_try_echo"; } >&5 | |
3934 | (eval "$ac_link_default") 2>&5 | |
3935 | ac_status=$? | |
3936 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3937 | test $ac_status = 0; }; then : | |
3938 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3939 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3940 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3941 | # so that the user can short-circuit this test for compilers unknown to | |
3942 | # Autoconf. | |
3943 | for ac_file in $ac_files '' | |
953ff289 DN |
3944 | do |
3945 | test -f "$ac_file" || continue | |
3946 | case $ac_file in | |
5213506e | 3947 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
953ff289 DN |
3948 | ;; |
3949 | [ab].out ) | |
3950 | # We found the default executable, but exeext='' is most | |
3951 | # certainly right. | |
3952 | break;; | |
3953 | *.* ) | |
5213506e RW |
3954 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3955 | then :; else | |
3956 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3957 | fi | |
3958 | # We set ac_cv_exeext here because the later test for it is not | |
3959 | # safe: cross compilers may not add the suffix if given an `-o' | |
3960 | # argument, so we may need to know it at that point already. | |
3961 | # Even if this section looks crufty: it has the advantage of | |
3962 | # actually working. | |
953ff289 DN |
3963 | break;; |
3964 | * ) | |
3965 | break;; | |
3966 | esac | |
3967 | done | |
5213506e RW |
3968 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3969 | ||
953ff289 | 3970 | else |
5213506e RW |
3971 | ac_file='' |
3972 | fi | |
5213506e | 3973 | if test -z "$ac_file"; then : |
22e05272 JM |
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3975 | $as_echo "no" >&6; } | |
3976 | $as_echo "$as_me: failed program was:" >&5 | |
953ff289 DN |
3977 | sed 's/^/| /' conftest.$ac_ext >&5 |
3978 | ||
5213506e RW |
3979 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3980 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3981 | as_fn_error 77 "C compiler cannot create executables |
3982 | See \`config.log' for more details" "$LINENO" 5; } | |
3983 | else | |
3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3985 | $as_echo "yes" >&6; } | |
953ff289 | 3986 | fi |
22e05272 JM |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3988 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3990 | $as_echo "$ac_file" >&6; } | |
953ff289 | 3991 | ac_exeext=$ac_cv_exeext |
953ff289 | 3992 | |
22e05272 | 3993 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
953ff289 | 3994 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3996 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3997 | if { { ac_try="$ac_link" | |
3998 | case "(($ac_try" in | |
3999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4000 | *) ac_try_echo=$ac_try;; | |
4001 | esac | |
4002 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4003 | $as_echo "$ac_try_echo"; } >&5 | |
4004 | (eval "$ac_link") 2>&5 | |
953ff289 | 4005 | ac_status=$? |
5213506e RW |
4006 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4007 | test $ac_status = 0; }; then : | |
953ff289 DN |
4008 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4009 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4010 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4011 | # `rm'. | |
4012 | for ac_file in conftest.exe conftest conftest.*; do | |
4013 | test -f "$ac_file" || continue | |
4014 | case $ac_file in | |
5213506e | 4015 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
953ff289 | 4016 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
953ff289 DN |
4017 | break;; |
4018 | * ) break;; | |
4019 | esac | |
4020 | done | |
4021 | else | |
5213506e RW |
4022 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4023 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4024 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4025 | See \`config.log' for more details" "$LINENO" 5; } | |
953ff289 | 4026 | fi |
22e05272 | 4027 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4029 | $as_echo "$ac_cv_exeext" >&6; } | |
953ff289 DN |
4030 | |
4031 | rm -f conftest.$ac_ext | |
4032 | EXEEXT=$ac_cv_exeext | |
4033 | ac_exeext=$EXEEXT | |
22e05272 JM |
4034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4035 | /* end confdefs.h. */ | |
4036 | #include <stdio.h> | |
4037 | int | |
4038 | main () | |
4039 | { | |
4040 | FILE *f = fopen ("conftest.out", "w"); | |
4041 | return ferror (f) || fclose (f) != 0; | |
4042 | ||
4043 | ; | |
4044 | return 0; | |
4045 | } | |
4046 | _ACEOF | |
4047 | ac_clean_files="$ac_clean_files conftest.out" | |
4048 | # Check that the compiler produces executables we can run. If not, either | |
4049 | # the compiler is broken, or we cross compile. | |
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4051 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4052 | if test "$cross_compiling" != yes; then | |
4053 | { { ac_try="$ac_link" | |
4054 | case "(($ac_try" in | |
4055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4056 | *) ac_try_echo=$ac_try;; | |
4057 | esac | |
4058 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4059 | $as_echo "$ac_try_echo"; } >&5 | |
4060 | (eval "$ac_link") 2>&5 | |
4061 | ac_status=$? | |
4062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4063 | test $ac_status = 0; } | |
4064 | if { ac_try='./conftest$ac_cv_exeext' | |
4065 | { { case "(($ac_try" in | |
4066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4067 | *) ac_try_echo=$ac_try;; | |
4068 | esac | |
4069 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4070 | $as_echo "$ac_try_echo"; } >&5 | |
4071 | (eval "$ac_try") 2>&5 | |
4072 | ac_status=$? | |
4073 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4074 | test $ac_status = 0; }; }; then | |
4075 | cross_compiling=no | |
4076 | else | |
4077 | if test "$cross_compiling" = maybe; then | |
4078 | cross_compiling=yes | |
4079 | else | |
4080 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4081 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4082 | as_fn_error $? "cannot run C compiled programs. | |
4083 | If you meant to cross compile, use \`--host'. | |
4084 | See \`config.log' for more details" "$LINENO" 5; } | |
4085 | fi | |
4086 | fi | |
4087 | fi | |
4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4089 | $as_echo "$cross_compiling" >&6; } | |
4090 | ||
4091 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4092 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4094 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4095 | if ${ac_cv_objext+:} false; then : |
5213506e | 4096 | $as_echo_n "(cached) " >&6 |
953ff289 | 4097 | else |
5213506e | 4098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
4099 | /* end confdefs.h. */ |
4100 | ||
4101 | int | |
4102 | main () | |
4103 | { | |
4104 | ||
4105 | ; | |
4106 | return 0; | |
4107 | } | |
4108 | _ACEOF | |
4109 | rm -f conftest.o conftest.obj | |
5213506e RW |
4110 | if { { ac_try="$ac_compile" |
4111 | case "(($ac_try" in | |
4112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4113 | *) ac_try_echo=$ac_try;; | |
4114 | esac | |
4115 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4116 | $as_echo "$ac_try_echo"; } >&5 | |
4117 | (eval "$ac_compile") 2>&5 | |
4118 | ac_status=$? | |
4119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4120 | test $ac_status = 0; }; then : | |
4121 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4122 | test -f "$ac_file" || continue; | |
953ff289 | 4123 | case $ac_file in |
5213506e | 4124 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
953ff289 DN |
4125 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4126 | break;; | |
4127 | esac | |
4128 | done | |
4129 | else | |
5213506e | 4130 | $as_echo "$as_me: failed program was:" >&5 |
953ff289 DN |
4131 | sed 's/^/| /' conftest.$ac_ext >&5 |
4132 | ||
5213506e RW |
4133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4135 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4136 | See \`config.log' for more details" "$LINENO" 5; } | |
953ff289 | 4137 | fi |
953ff289 DN |
4138 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4139 | fi | |
5213506e RW |
4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4141 | $as_echo "$ac_cv_objext" >&6; } | |
953ff289 DN |
4142 | OBJEXT=$ac_cv_objext |
4143 | ac_objext=$OBJEXT | |
5213506e RW |
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4145 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4146 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4147 | $as_echo_n "(cached) " >&6 |
953ff289 | 4148 | else |
5213506e | 4149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
4150 | /* end confdefs.h. */ |
4151 | ||
4152 | int | |
4153 | main () | |
4154 | { | |
4155 | #ifndef __GNUC__ | |
4156 | choke me | |
4157 | #endif | |
4158 | ||
4159 | ; | |
4160 | return 0; | |
4161 | } | |
4162 | _ACEOF | |
5213506e | 4163 | if ac_fn_c_try_compile "$LINENO"; then : |
953ff289 DN |
4164 | ac_compiler_gnu=yes |
4165 | else | |
5213506e | 4166 | ac_compiler_gnu=no |
953ff289 | 4167 | fi |
5213506e | 4168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
953ff289 DN |
4169 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4170 | ||
4171 | fi | |
5213506e RW |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4173 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4174 | if test $ac_compiler_gnu = yes; then | |
4175 | GCC=yes | |
4176 | else | |
4177 | GCC= | |
4178 | fi | |
953ff289 DN |
4179 | ac_test_CFLAGS=${CFLAGS+set} |
4180 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4182 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4183 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4184 | $as_echo_n "(cached) " >&6 |
4185 | else | |
4186 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4187 | ac_c_werror_flag=yes | |
4188 | ac_cv_prog_cc_g=no | |
4189 | CFLAGS="-g" | |
4190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
953ff289 DN |
4191 | /* end confdefs.h. */ |
4192 | ||
4193 | int | |
4194 | main () | |
4195 | { | |
4196 | ||
4197 | ; | |
4198 | return 0; | |
4199 | } | |
4200 | _ACEOF | |
5213506e | 4201 | if ac_fn_c_try_compile "$LINENO"; then : |
953ff289 DN |
4202 | ac_cv_prog_cc_g=yes |
4203 | else | |
5213506e RW |
4204 | CFLAGS="" |
4205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4206 | /* end confdefs.h. */ | |
4207 | ||
4208 | int | |
4209 | main () | |
4210 | { | |
4211 | ||
4212 | ; | |
4213 | return 0; | |
4214 | } | |
4215 | _ACEOF | |
4216 | if ac_fn_c_try_compile "$LINENO"; then : | |
4217 | ||
4218 | else | |
4219 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4220 | CFLAGS="-g" | |
4221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4222 | /* end confdefs.h. */ | |
4223 | ||
4224 | int | |
4225 | main () | |
4226 | { | |
953ff289 | 4227 | |
5213506e RW |
4228 | ; |
4229 | return 0; | |
4230 | } | |
4231 | _ACEOF | |
4232 | if ac_fn_c_try_compile "$LINENO"; then : | |
4233 | ac_cv_prog_cc_g=yes | |
953ff289 | 4234 | fi |
5213506e | 4235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
953ff289 | 4236 | fi |
5213506e RW |
4237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4238 | fi | |
4239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4240 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4241 | fi | |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4243 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
953ff289 DN |
4244 | if test "$ac_test_CFLAGS" = set; then |
4245 | CFLAGS=$ac_save_CFLAGS | |
4246 | elif test $ac_cv_prog_cc_g = yes; then | |
4247 | if test "$GCC" = yes; then | |
4248 | CFLAGS="-g -O2" | |
4249 | else | |
4250 | CFLAGS="-g" | |
4251 | fi | |
4252 | else | |
4253 | if test "$GCC" = yes; then | |
4254 | CFLAGS="-O2" | |
4255 | else | |
4256 | CFLAGS= | |
4257 | fi | |
4258 | fi | |
5213506e RW |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4260 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4261 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4262 | $as_echo_n "(cached) " >&6 |
953ff289 | 4263 | else |
5213506e | 4264 | ac_cv_prog_cc_c89=no |
953ff289 | 4265 | ac_save_CC=$CC |
5213506e | 4266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
4267 | /* end confdefs.h. */ |
4268 | #include <stdarg.h> | |
4269 | #include <stdio.h> | |
22e05272 | 4270 | struct stat; |
953ff289 DN |
4271 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4272 | struct buf { int x; }; | |
4273 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4274 | static char *e (p, i) | |
4275 | char **p; | |
4276 | int i; | |
4277 | { | |
4278 | return p[i]; | |
4279 | } | |
4280 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4281 | { | |
4282 | char *s; | |
4283 | va_list v; | |
4284 | va_start (v,p); | |
4285 | s = g (p, va_arg (v,int)); | |
4286 | va_end (v); | |
4287 | return s; | |
4288 | } | |
4289 | ||
4290 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4291 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4292 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4293 | as 'x'. The following induces an error, until -std is added to get |
953ff289 DN |
4294 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4295 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4296 | that's true only with -std. */ |
953ff289 DN |
4297 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4298 | ||
5213506e RW |
4299 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4300 | inside strings and character constants. */ | |
4301 | #define FOO(x) 'x' | |
4302 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4303 | ||
953ff289 DN |
4304 | int test (int i, double x); |
4305 | struct s1 {int (*f) (int a);}; | |
4306 | struct s2 {int (*f) (double a);}; | |
4307 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4308 | int argc; | |
4309 | char **argv; | |
4310 | int | |
4311 | main () | |
4312 | { | |
4313 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4314 | ; | |
4315 | return 0; | |
4316 | } | |
4317 | _ACEOF | |
5213506e RW |
4318 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4319 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
953ff289 DN |
4320 | do |
4321 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4322 | if ac_fn_c_try_compile "$LINENO"; then : |
4323 | ac_cv_prog_cc_c89=$ac_arg | |
953ff289 | 4324 | fi |
5213506e RW |
4325 | rm -f core conftest.err conftest.$ac_objext |
4326 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
953ff289 | 4327 | done |
5213506e | 4328 | rm -f conftest.$ac_ext |
953ff289 DN |
4329 | CC=$ac_save_CC |
4330 | ||
4331 | fi | |
5213506e RW |
4332 | # AC_CACHE_VAL |
4333 | case "x$ac_cv_prog_cc_c89" in | |
4334 | x) | |
4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4336 | $as_echo "none needed" >&6; } ;; | |
4337 | xno) | |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4339 | $as_echo "unsupported" >&6; } ;; | |
953ff289 | 4340 | *) |
5213506e RW |
4341 | CC="$CC $ac_cv_prog_cc_c89" |
4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4343 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
953ff289 | 4344 | esac |
5213506e | 4345 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
953ff289 | 4346 | |
953ff289 DN |
4347 | fi |
4348 | ||
953ff289 DN |
4349 | ac_ext=c |
4350 | ac_cpp='$CPP $CPPFLAGS' | |
4351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22e05272 JM |
4354 | |
4355 | ac_ext=c | |
4356 | ac_cpp='$CPP $CPPFLAGS' | |
4357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4361 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4362 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4363 | $as_echo_n "(cached) " >&6 | |
4364 | else | |
4365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4366 | /* end confdefs.h. */ | |
4367 | ||
4368 | int | |
4369 | main () | |
4370 | { | |
4371 | ||
4372 | ; | |
4373 | return 0; | |
4374 | } | |
4375 | _ACEOF | |
4376 | # Make sure it works both with $CC and with simple cc. | |
4377 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4378 | # compilers refuse to overwrite an existing .o file with -o, | |
4379 | # though they will create one. | |
4380 | am_cv_prog_cc_c_o=yes | |
4381 | for am_i in 1 2; do | |
4382 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4383 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4384 | ac_status=$? | |
4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4386 | (exit $ac_status); } \ | |
4387 | && test -f conftest2.$ac_objext; then | |
4388 | : OK | |
4389 | else | |
4390 | am_cv_prog_cc_c_o=no | |
4391 | break | |
4392 | fi | |
4393 | done | |
4394 | rm -f core conftest* | |
4395 | unset am_i | |
4396 | fi | |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4398 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4399 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4400 | # Losing compiler, so override with the script. | |
4401 | # FIXME: It is wrong to rewrite CC. | |
4402 | # But if we don't then we get into trouble of one sort or another. | |
4403 | # A longer-term fix would be to have automake use am__CC in this case, | |
4404 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4405 | CC="$am_aux_dir/compile $CC" | |
4406 | fi | |
4407 | ac_ext=c | |
4408 | ac_cpp='$CPP $CPPFLAGS' | |
4409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4412 | ||
953ff289 DN |
4413 | DEPDIR="${am__leading_dot}deps" |
4414 | ||
5213506e | 4415 | ac_config_commands="$ac_config_commands depfiles" |
953ff289 | 4416 | |
2fe5a545 TB |
4417 | |
4418 | am_make=${MAKE-make} | |
4419 | cat > confinc << 'END' | |
953ff289 | 4420 | am__doit: |
2fe5a545 | 4421 | @echo this is the am__doit target |
953ff289 DN |
4422 | .PHONY: am__doit |
4423 | END | |
2fe5a545 TB |
4424 | # If we don't find an include directive, just comment out the code. |
4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4426 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
953ff289 DN |
4427 | am__include="#" |
4428 | am__quote= | |
2fe5a545 TB |
4429 | _am_result=none |
4430 | # First try GNU make style include. | |
4431 | echo "include confinc" > confmf | |
4432 | # Ignore all kinds of additional output from 'make'. | |
4433 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4434 | *the\ am__doit\ target*) | |
4435 | am__include=include | |
4436 | am__quote= | |
4437 | _am_result=GNU | |
4438 | ;; | |
c56684fd | 4439 | esac |
2fe5a545 TB |
4440 | # Now try BSD make style include. |
4441 | if test "$am__include" = "#"; then | |
4442 | echo '.include "confinc"' > confmf | |
4443 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4444 | *the\ am__doit\ target*) | |
4445 | am__include=.include | |
4446 | am__quote="\"" | |
4447 | _am_result=BSD | |
4448 | ;; | |
4449 | esac | |
4450 | fi | |
4451 | ||
4452 | ||
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4454 | $as_echo "$_am_result" >&6; } | |
4455 | rm -f confinc confmf | |
953ff289 | 4456 | |
5213506e RW |
4457 | # Check whether --enable-dependency-tracking was given. |
4458 | if test "${enable_dependency_tracking+set}" = set; then : | |
4459 | enableval=$enable_dependency_tracking; | |
4460 | fi | |
953ff289 | 4461 | |
953ff289 DN |
4462 | if test "x$enable_dependency_tracking" != xno; then |
4463 | am_depcomp="$ac_aux_dir/depcomp" | |
4464 | AMDEPBACKSLASH='\' | |
f96b7f1f | 4465 | am__nodep='_no' |
953ff289 | 4466 | fi |
5213506e | 4467 | if test "x$enable_dependency_tracking" != xno; then |
953ff289 DN |
4468 | AMDEP_TRUE= |
4469 | AMDEP_FALSE='#' | |
4470 | else | |
4471 | AMDEP_TRUE='#' | |
4472 | AMDEP_FALSE= | |
4473 | fi | |
4474 | ||
4475 | ||
4476 | ||
953ff289 DN |
4477 | depcc="$CC" am_compiler_list= |
4478 | ||
5213506e RW |
4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4480 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4481 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
5213506e | 4482 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4483 | else |
4484 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4485 | # We make a subdir and do the tests there. Otherwise we can end up | |
4486 | # making bogus files that we don't know about and never remove. For | |
4487 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4488 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4489 | # in D". | |
f96b7f1f | 4490 | rm -rf conftest.dir |
953ff289 DN |
4491 | mkdir conftest.dir |
4492 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4493 | # using a relative directory. | |
4494 | cp "$am_depcomp" conftest.dir | |
4495 | cd conftest.dir | |
4496 | # We will build objects and dependencies in a subdirectory because | |
4497 | # it helps to detect inapplicable dependency modes. For instance | |
4498 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4499 | # side effect of compilation, but ICC will put the dependencies in | |
4500 | # the current directory while Tru64 will put them in the object | |
4501 | # directory. | |
4502 | mkdir sub | |
4503 | ||
4504 | am_cv_CC_dependencies_compiler_type=none | |
4505 | if test "$am_compiler_list" = ""; then | |
4506 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4507 | fi | |
5213506e RW |
4508 | am__universal=false |
4509 | case " $depcc " in #( | |
4510 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4511 | esac | |
4512 | ||
953ff289 DN |
4513 | for depmode in $am_compiler_list; do |
4514 | # Setup a source with many dependencies, because some compilers | |
4515 | # like to wrap large dependency lists on column 80 (with \), and | |
4516 | # we should not choose a depcomp mode which is confused by this. | |
4517 | # | |
4518 | # We need to recreate these files for each test, as the compiler may | |
4519 | # overwrite some of them when testing with obscure command lines. | |
4520 | # This happens at least with the AIX C compiler. | |
4521 | : > sub/conftest.c | |
4522 | for i in 1 2 3 4 5 6; do | |
4523 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4524 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4525 | # Solaris 10 /bin/sh. | |
4526 | echo '/* dummy */' > sub/conftst$i.h | |
953ff289 DN |
4527 | done |
4528 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4529 | ||
22e05272 | 4530 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
5213506e | 4531 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4532 | # handle '-M -o', and we need to detect this. Also, some Intel |
4533 | # versions had trouble with output in subdirs. | |
5213506e RW |
4534 | am__obj=sub/conftest.${OBJEXT-o} |
4535 | am__minus_obj="-o $am__obj" | |
953ff289 | 4536 | case $depmode in |
5213506e RW |
4537 | gcc) |
4538 | # This depmode causes a compiler race in universal mode. | |
4539 | test "$am__universal" = false || continue | |
4540 | ;; | |
953ff289 | 4541 | nosideeffect) |
22e05272 JM |
4542 | # After this tag, mechanisms are not by side-effect, so they'll |
4543 | # only be used when explicitly requested. | |
953ff289 DN |
4544 | if test "x$enable_dependency_tracking" = xyes; then |
4545 | continue | |
4546 | else | |
4547 | break | |
4548 | fi | |
4549 | ;; | |
f96b7f1f | 4550 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4551 | # This compiler won't grok '-c -o', but also, the minuso test has |
5213506e RW |
4552 | # not run yet. These depmodes are late enough in the game, and |
4553 | # so weak that their functioning should not be impacted. | |
4554 | am__obj=conftest.${OBJEXT-o} | |
4555 | am__minus_obj= | |
4556 | ;; | |
953ff289 DN |
4557 | none) break ;; |
4558 | esac | |
953ff289 | 4559 | if depmode=$depmode \ |
5213506e | 4560 | source=sub/conftest.c object=$am__obj \ |
953ff289 | 4561 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 4562 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
953ff289 | 4563 | >/dev/null 2>conftest.err && |
5213506e | 4564 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
953ff289 | 4565 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 4566 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
953ff289 DN |
4567 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4568 | # icc doesn't choke on unknown options, it will just issue warnings | |
4569 | # or remarks (even with -Werror). So we grep stderr for any message | |
4570 | # that says an option was ignored or not supported. | |
4571 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4572 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4573 | # The diagnosis changed in icc 8.0: | |
4574 | # icc: Command line remark: option '-MP' not supported | |
4575 | if (grep 'ignoring option' conftest.err || | |
4576 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4577 | am_cv_CC_dependencies_compiler_type=$depmode | |
4578 | break | |
4579 | fi | |
4580 | fi | |
4581 | done | |
4582 | ||
4583 | cd .. | |
4584 | rm -rf conftest.dir | |
4585 | else | |
4586 | am_cv_CC_dependencies_compiler_type=none | |
4587 | fi | |
4588 | ||
4589 | fi | |
5213506e RW |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4591 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
953ff289 DN |
4592 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4593 | ||
5213506e | 4594 | if |
953ff289 DN |
4595 | test "x$enable_dependency_tracking" != xno \ |
4596 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4597 | am__fastdepCC_TRUE= | |
4598 | am__fastdepCC_FALSE='#' | |
4599 | else | |
4600 | am__fastdepCC_TRUE='#' | |
4601 | am__fastdepCC_FALSE= | |
4602 | fi | |
4603 | ||
4604 | ||
4605 | ||
4606 | ||
4607 | ||
4608 | ||
4609 | # In order to override CFLAGS_FOR_TARGET, all of our special flags go | |
4610 | # in XCFLAGS. But we need them in CFLAGS during configury. So put them | |
4611 | # in both places for now and restore CFLAGS at the end of config. | |
4612 | save_CFLAGS="$CFLAGS" | |
4613 | ||
4614 | # Add -Wall -Werror if we are using GCC. | |
4615 | if test "x$GCC" = "xyes"; then | |
4616 | XCFLAGS="$XCFLAGS -Wall -Werror" | |
4617 | fi | |
4618 | ||
4619 | # Find other programs we need. | |
4620 | if test -n "$ac_tool_prefix"; then | |
4621 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4622 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4624 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4625 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 4626 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4627 | else |
4628 | if test -n "$AR"; then | |
4629 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4630 | else | |
4631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4632 | for as_dir in $PATH | |
4633 | do | |
4634 | IFS=$as_save_IFS | |
4635 | test -z "$as_dir" && as_dir=. | |
5213506e | 4636 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4638 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 4639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4640 | break 2 |
4641 | fi | |
4642 | done | |
5213506e RW |
4643 | done |
4644 | IFS=$as_save_IFS | |
953ff289 DN |
4645 | |
4646 | fi | |
4647 | fi | |
4648 | AR=$ac_cv_prog_AR | |
4649 | if test -n "$AR"; then | |
5213506e RW |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4651 | $as_echo "$AR" >&6; } | |
953ff289 | 4652 | else |
5213506e RW |
4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4654 | $as_echo "no" >&6; } | |
953ff289 DN |
4655 | fi |
4656 | ||
5213506e | 4657 | |
953ff289 DN |
4658 | fi |
4659 | if test -z "$ac_cv_prog_AR"; then | |
4660 | ac_ct_AR=$AR | |
4661 | # Extract the first word of "ar", so it can be a program name with args. | |
4662 | set dummy ar; ac_word=$2 | |
5213506e RW |
4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4664 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4665 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 4666 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4667 | else |
4668 | if test -n "$ac_ct_AR"; then | |
4669 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4670 | else | |
4671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4672 | for as_dir in $PATH | |
4673 | do | |
4674 | IFS=$as_save_IFS | |
4675 | test -z "$as_dir" && as_dir=. | |
5213506e | 4676 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4677 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4678 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 4679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4680 | break 2 |
4681 | fi | |
4682 | done | |
5213506e RW |
4683 | done |
4684 | IFS=$as_save_IFS | |
953ff289 DN |
4685 | |
4686 | fi | |
4687 | fi | |
4688 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4689 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
4691 | $as_echo "$ac_ct_AR" >&6; } | |
953ff289 | 4692 | else |
5213506e RW |
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4694 | $as_echo "no" >&6; } | |
953ff289 DN |
4695 | fi |
4696 | ||
5213506e RW |
4697 | if test "x$ac_ct_AR" = x; then |
4698 | AR="" | |
4699 | else | |
4700 | case $cross_compiling:$ac_tool_warned in | |
4701 | yes:) | |
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4703 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4704 | ac_tool_warned=yes ;; | |
4705 | esac | |
4706 | AR=$ac_ct_AR | |
4707 | fi | |
953ff289 DN |
4708 | else |
4709 | AR="$ac_cv_prog_AR" | |
4710 | fi | |
4711 | ||
4712 | if test -n "$ac_tool_prefix"; then | |
4713 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4714 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4716 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4717 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 4718 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4719 | else |
4720 | if test -n "$RANLIB"; then | |
4721 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4722 | else | |
4723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4724 | for as_dir in $PATH | |
4725 | do | |
4726 | IFS=$as_save_IFS | |
4727 | test -z "$as_dir" && as_dir=. | |
5213506e | 4728 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4730 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 4731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4732 | break 2 |
4733 | fi | |
4734 | done | |
5213506e RW |
4735 | done |
4736 | IFS=$as_save_IFS | |
953ff289 DN |
4737 | |
4738 | fi | |
4739 | fi | |
4740 | RANLIB=$ac_cv_prog_RANLIB | |
4741 | if test -n "$RANLIB"; then | |
5213506e RW |
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4743 | $as_echo "$RANLIB" >&6; } | |
953ff289 | 4744 | else |
5213506e RW |
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4746 | $as_echo "no" >&6; } | |
953ff289 DN |
4747 | fi |
4748 | ||
5213506e | 4749 | |
953ff289 DN |
4750 | fi |
4751 | if test -z "$ac_cv_prog_RANLIB"; then | |
4752 | ac_ct_RANLIB=$RANLIB | |
4753 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4754 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4756 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4757 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 4758 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4759 | else |
4760 | if test -n "$ac_ct_RANLIB"; then | |
4761 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4762 | else | |
4763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4764 | for as_dir in $PATH | |
4765 | do | |
4766 | IFS=$as_save_IFS | |
4767 | test -z "$as_dir" && as_dir=. | |
5213506e | 4768 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4769 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4770 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 4771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4772 | break 2 |
4773 | fi | |
4774 | done | |
5213506e RW |
4775 | done |
4776 | IFS=$as_save_IFS | |
953ff289 | 4777 | |
953ff289 DN |
4778 | fi |
4779 | fi | |
4780 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4781 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4783 | $as_echo "$ac_ct_RANLIB" >&6; } | |
953ff289 | 4784 | else |
5213506e RW |
4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4786 | $as_echo "no" >&6; } | |
953ff289 DN |
4787 | fi |
4788 | ||
5213506e RW |
4789 | if test "x$ac_ct_RANLIB" = x; then |
4790 | RANLIB="ranlib-not-found-in-path-error" | |
4791 | else | |
4792 | case $cross_compiling:$ac_tool_warned in | |
4793 | yes:) | |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4795 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4796 | ac_tool_warned=yes ;; | |
4797 | esac | |
4798 | RANLIB=$ac_ct_RANLIB | |
4799 | fi | |
953ff289 DN |
4800 | else |
4801 | RANLIB="$ac_cv_prog_RANLIB" | |
4802 | fi | |
4803 | ||
4804 | # Extract the first word of "perl", so it can be a program name with args. | |
4805 | set dummy perl; ac_word=$2 | |
5213506e RW |
4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4807 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4808 | if ${ac_cv_path_PERL+:} false; then : |
5213506e | 4809 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4810 | else |
4811 | case $PERL in | |
4812 | [\\/]* | ?:[\\/]*) | |
4813 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
4814 | ;; | |
4815 | *) | |
4816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4817 | for as_dir in $PATH | |
4818 | do | |
4819 | IFS=$as_save_IFS | |
4820 | test -z "$as_dir" && as_dir=. | |
5213506e | 4821 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4823 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 4824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4825 | break 2 |
4826 | fi | |
4827 | done | |
5213506e RW |
4828 | done |
4829 | IFS=$as_save_IFS | |
953ff289 DN |
4830 | |
4831 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" | |
4832 | ;; | |
4833 | esac | |
4834 | fi | |
4835 | PERL=$ac_cv_path_PERL | |
953ff289 | 4836 | if test -n "$PERL"; then |
5213506e RW |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
4838 | $as_echo "$PERL" >&6; } | |
953ff289 | 4839 | else |
5213506e RW |
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4841 | $as_echo "no" >&6; } | |
953ff289 DN |
4842 | fi |
4843 | ||
5213506e RW |
4844 | |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4846 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4847 | set x ${MAKE-make} | |
4848 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 4849 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e | 4850 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4851 | else |
4852 | cat >conftest.make <<\_ACEOF | |
5213506e | 4853 | SHELL = /bin/sh |
953ff289 | 4854 | all: |
5213506e | 4855 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
953ff289 | 4856 | _ACEOF |
22e05272 | 4857 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
4858 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4859 | *@@@%%%=?*=@@@%%%*) | |
4860 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4861 | *) | |
4862 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4863 | esac | |
953ff289 DN |
4864 | rm -f conftest.make |
4865 | fi | |
5213506e RW |
4866 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4868 | $as_echo "yes" >&6; } | |
953ff289 DN |
4869 | SET_MAKE= |
4870 | else | |
5213506e RW |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4872 | $as_echo "no" >&6; } | |
953ff289 DN |
4873 | SET_MAKE="MAKE=${MAKE-make}" |
4874 | fi | |
4875 | ||
953ff289 DN |
4876 | |
4877 | ||
748b9d7c DF |
4878 | # See if makeinfo has been installed and is modern enough |
4879 | # that we can use it. | |
4880 | ||
4881 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
4882 | set dummy makeinfo; ac_word=$2 | |
5213506e RW |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4884 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4885 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 4886 | $as_echo_n "(cached) " >&6 |
748b9d7c DF |
4887 | else |
4888 | if test -n "$MAKEINFO"; then | |
4889 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
4890 | else | |
4891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4892 | for as_dir in $PATH | |
4893 | do | |
4894 | IFS=$as_save_IFS | |
4895 | test -z "$as_dir" && as_dir=. | |
5213506e | 4896 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
748b9d7c | 4898 | ac_cv_prog_MAKEINFO="makeinfo" |
5213506e | 4899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
748b9d7c DF |
4900 | break 2 |
4901 | fi | |
4902 | done | |
5213506e RW |
4903 | done |
4904 | IFS=$as_save_IFS | |
748b9d7c DF |
4905 | |
4906 | fi | |
4907 | fi | |
4908 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
4909 | if test -n "$MAKEINFO"; then | |
5213506e RW |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
4911 | $as_echo "$MAKEINFO" >&6; } | |
748b9d7c | 4912 | else |
5213506e RW |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4914 | $as_echo "no" >&6; } | |
748b9d7c DF |
4915 | fi |
4916 | ||
5213506e | 4917 | |
748b9d7c DF |
4918 | if test -n "$MAKEINFO"; then |
4919 | # Found it, now check the version. | |
5213506e RW |
4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 |
4921 | $as_echo_n "checking for modern makeinfo... " >&6; } | |
22e05272 | 4922 | if ${gcc_cv_prog_makeinfo_modern+:} false; then : |
5213506e | 4923 | $as_echo_n "(cached) " >&6 |
748b9d7c DF |
4924 | else |
4925 | ac_prog_version=`eval $MAKEINFO --version 2>&1 | | |
4926 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
4927 | ||
4928 | case $ac_prog_version in | |
4929 | '') gcc_cv_prog_makeinfo_modern=no;; | |
a7415017 | 4930 | 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; |
748b9d7c DF |
4931 | *) gcc_cv_prog_makeinfo_modern=no;; |
4932 | esac | |
4933 | ||
4934 | fi | |
5213506e RW |
4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 |
4936 | $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } | |
748b9d7c DF |
4937 | else |
4938 | gcc_cv_prog_makeinfo_modern=no | |
4939 | fi | |
1cf3d07d SE |
4940 | if test $gcc_cv_prog_makeinfo_modern = no; then |
4941 | MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" | |
4942 | fi | |
748b9d7c | 4943 | |
5213506e | 4944 | if test $gcc_cv_prog_makeinfo_modern = "yes"; then |
748b9d7c DF |
4945 | BUILD_INFO_TRUE= |
4946 | BUILD_INFO_FALSE='#' | |
4947 | else | |
4948 | BUILD_INFO_TRUE='#' | |
4949 | BUILD_INFO_FALSE= | |
4950 | fi | |
4951 | ||
4952 | ||
4953 | ||
953ff289 | 4954 | # Configure libtool |
6b4a97ed PG |
4955 | case `pwd` in |
4956 | *\ * | *\ *) | |
5213506e RW |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4958 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6b4a97ed | 4959 | esac |
1cf3d07d SE |
4960 | |
4961 | ||
1cf3d07d | 4962 | |
43e02a8a RW |
4963 | macro_version='2.2.7a' |
4964 | macro_revision='1.3134' | |
1cf3d07d SE |
4965 | |
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
953ff289 | 4971 | |
1cf3d07d SE |
4972 | |
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | ||
6b4a97ed | 4978 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 4979 | |
43e02a8a RW |
4980 | # Backslashify metacharacters that are still active within |
4981 | # double-quoted strings. | |
4982 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4983 | ||
4984 | # Same as above, but do not quote variable references. | |
4985 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4986 | ||
4987 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4988 | # double_quote_subst'ed string. | |
4989 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4990 | ||
4991 | # Sed substitution to delay expansion of an escaped single quote. | |
4992 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4993 | ||
4994 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4995 | no_glob_subst='s/\*/\\\*/g' | |
4996 | ||
4997 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4998 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4999 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5000 | ||
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5002 | $as_echo_n "checking how to print strings... " >&6; } | |
5003 | # Test print first, because it will be a builtin if present. | |
5004 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5005 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5006 | ECHO='print -r --' | |
5007 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5008 | ECHO='printf %s\n' | |
5009 | else | |
5010 | # Use this function as a fallback that always works. | |
5011 | func_fallback_echo () | |
5012 | { | |
5013 | eval 'cat <<_LTECHO_EOF | |
5014 | $1 | |
5015 | _LTECHO_EOF' | |
5016 | } | |
5017 | ECHO='func_fallback_echo' | |
5018 | fi | |
5019 | ||
5020 | # func_echo_all arg... | |
5021 | # Invoke $ECHO with all args, space-separated. | |
5022 | func_echo_all () | |
5023 | { | |
5024 | $ECHO "" | |
5025 | } | |
5026 | ||
5027 | case "$ECHO" in | |
5028 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5029 | $as_echo "printf" >&6; } ;; | |
5030 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5031 | $as_echo "print -r" >&6; } ;; | |
5032 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5033 | $as_echo "cat" >&6; } ;; | |
5034 | esac | |
5035 | ||
5036 | ||
5037 | ||
5038 | ||
5039 | ||
5040 | ||
5041 | ||
5042 | ||
5043 | ||
5044 | ||
5045 | ||
5046 | ||
5047 | ||
5048 | ||
5213506e RW |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5050 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 5051 | if ${ac_cv_path_SED+:} false; then : |
5213506e RW |
5052 | $as_echo_n "(cached) " >&6 |
5053 | else | |
5054 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5055 | for ac_i in 1 2 3 4 5 6 7; do | |
5056 | ac_script="$ac_script$as_nl$ac_script" | |
5057 | done | |
5058 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5059 | { ac_script=; unset ac_script;} | |
5060 | if test -z "$SED"; then | |
5061 | ac_path_SED_found=false | |
5062 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1cf3d07d SE |
5064 | for as_dir in $PATH |
5065 | do | |
5066 | IFS=$as_save_IFS | |
5067 | test -z "$as_dir" && as_dir=. | |
5213506e | 5068 | for ac_prog in sed gsed; do |
1cf3d07d | 5069 | for ac_exec_ext in '' $ac_executable_extensions; do |
5213506e | 5070 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 5071 | as_fn_executable_p "$ac_path_SED" || continue |
5213506e RW |
5072 | # Check for GNU ac_path_SED and select it if it is found. |
5073 | # Check for GNU $ac_path_SED | |
5074 | case `"$ac_path_SED" --version 2>&1` in | |
5075 | *GNU*) | |
5076 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5077 | *) | |
5078 | ac_count=0 | |
5079 | $as_echo_n 0123456789 >"conftest.in" | |
5080 | while : | |
5081 | do | |
5082 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5083 | mv "conftest.tmp" "conftest.in" | |
5084 | cp "conftest.in" "conftest.nl" | |
5085 | $as_echo '' >> "conftest.nl" | |
5086 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5087 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5088 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5089 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5090 | # Best one so far, save it but keep looking for a better one | |
5091 | ac_cv_path_SED="$ac_path_SED" | |
5092 | ac_path_SED_max=$ac_count | |
5093 | fi | |
5094 | # 10*(2^10) chars as input seems more than enough | |
5095 | test $ac_count -gt 10 && break | |
5096 | done | |
5097 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5098 | esac | |
5099 | ||
5100 | $ac_path_SED_found && break 3 | |
1cf3d07d SE |
5101 | done |
5102 | done | |
5213506e | 5103 | done |
1cf3d07d | 5104 | IFS=$as_save_IFS |
5213506e | 5105 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 5106 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
1cf3d07d | 5107 | fi |
5213506e RW |
5108 | else |
5109 | ac_cv_path_SED=$SED | |
1cf3d07d SE |
5110 | fi |
5111 | ||
5213506e RW |
5112 | fi |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5114 | $as_echo "$ac_cv_path_SED" >&6; } | |
5115 | SED="$ac_cv_path_SED" | |
5116 | rm -f conftest.sed | |
1cf3d07d SE |
5117 | |
5118 | test -z "$SED" && SED=sed | |
5119 | Xsed="$SED -e 1s/^X//" | |
5120 | ||
5121 | ||
5122 | ||
5123 | ||
5124 | ||
5125 | ||
5126 | ||
5127 | ||
5128 | ||
5129 | ||
5130 | ||
5213506e RW |
5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5132 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 5133 | if ${ac_cv_path_GREP+:} false; then : |
5213506e RW |
5134 | $as_echo_n "(cached) " >&6 |
5135 | else | |
5136 | if test -z "$GREP"; then | |
5137 | ac_path_GREP_found=false | |
5138 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5140 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5141 | do | |
5142 | IFS=$as_save_IFS | |
5143 | test -z "$as_dir" && as_dir=. | |
5144 | for ac_prog in grep ggrep; do | |
5145 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5146 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5147 | as_fn_executable_p "$ac_path_GREP" || continue |
5213506e RW |
5148 | # Check for GNU ac_path_GREP and select it if it is found. |
5149 | # Check for GNU $ac_path_GREP | |
5150 | case `"$ac_path_GREP" --version 2>&1` in | |
5151 | *GNU*) | |
5152 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5153 | *) | |
5154 | ac_count=0 | |
5155 | $as_echo_n 0123456789 >"conftest.in" | |
5156 | while : | |
5157 | do | |
5158 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5159 | mv "conftest.tmp" "conftest.in" | |
5160 | cp "conftest.in" "conftest.nl" | |
5161 | $as_echo 'GREP' >> "conftest.nl" | |
5162 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5163 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5164 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5165 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5166 | # Best one so far, save it but keep looking for a better one | |
5167 | ac_cv_path_GREP="$ac_path_GREP" | |
5168 | ac_path_GREP_max=$ac_count | |
5169 | fi | |
5170 | # 10*(2^10) chars as input seems more than enough | |
5171 | test $ac_count -gt 10 && break | |
5172 | done | |
5173 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5174 | esac | |
5175 | ||
5176 | $ac_path_GREP_found && break 3 | |
5177 | done | |
5178 | done | |
5179 | done | |
5180 | IFS=$as_save_IFS | |
5181 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 5182 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
5183 | fi |
5184 | else | |
5185 | ac_cv_path_GREP=$GREP | |
5186 | fi | |
5187 | ||
5188 | fi | |
5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5190 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5191 | GREP="$ac_cv_path_GREP" | |
5192 | ||
5193 | ||
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5195 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 5196 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 5197 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 5198 | else |
5213506e RW |
5199 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5200 | then ac_cv_path_EGREP="$GREP -E" | |
5201 | else | |
5202 | if test -z "$EGREP"; then | |
5203 | ac_path_EGREP_found=false | |
5204 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5206 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5207 | do | |
5208 | IFS=$as_save_IFS | |
5209 | test -z "$as_dir" && as_dir=. | |
5210 | for ac_prog in egrep; do | |
5211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5212 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5213 | as_fn_executable_p "$ac_path_EGREP" || continue |
5213506e RW |
5214 | # Check for GNU ac_path_EGREP and select it if it is found. |
5215 | # Check for GNU $ac_path_EGREP | |
5216 | case `"$ac_path_EGREP" --version 2>&1` in | |
5217 | *GNU*) | |
5218 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5219 | *) | |
5220 | ac_count=0 | |
5221 | $as_echo_n 0123456789 >"conftest.in" | |
5222 | while : | |
5223 | do | |
5224 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5225 | mv "conftest.tmp" "conftest.in" | |
5226 | cp "conftest.in" "conftest.nl" | |
5227 | $as_echo 'EGREP' >> "conftest.nl" | |
5228 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5229 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5230 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5231 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5232 | # Best one so far, save it but keep looking for a better one | |
5233 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5234 | ac_path_EGREP_max=$ac_count | |
1cf3d07d | 5235 | fi |
5213506e RW |
5236 | # 10*(2^10) chars as input seems more than enough |
5237 | test $ac_count -gt 10 && break | |
5238 | done | |
5239 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5240 | esac | |
5241 | ||
5242 | $ac_path_EGREP_found && break 3 | |
5243 | done | |
5244 | done | |
5245 | done | |
5246 | IFS=$as_save_IFS | |
5247 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 5248 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
5249 | fi |
5250 | else | |
5251 | ac_cv_path_EGREP=$EGREP | |
5252 | fi | |
5253 | ||
5254 | fi | |
1cf3d07d | 5255 | fi |
5213506e RW |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5257 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5258 | EGREP="$ac_cv_path_EGREP" | |
1cf3d07d SE |
5259 | |
5260 | ||
5213506e RW |
5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5262 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 5263 | if ${ac_cv_path_FGREP+:} false; then : |
5213506e | 5264 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 5265 | else |
5213506e RW |
5266 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5267 | then ac_cv_path_FGREP="$GREP -F" | |
5268 | else | |
5269 | if test -z "$FGREP"; then | |
5270 | ac_path_FGREP_found=false | |
5271 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5273 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5274 | do | |
5275 | IFS=$as_save_IFS | |
5276 | test -z "$as_dir" && as_dir=. | |
5277 | for ac_prog in fgrep; do | |
5278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5279 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5280 | as_fn_executable_p "$ac_path_FGREP" || continue |
5213506e RW |
5281 | # Check for GNU ac_path_FGREP and select it if it is found. |
5282 | # Check for GNU $ac_path_FGREP | |
5283 | case `"$ac_path_FGREP" --version 2>&1` in | |
5284 | *GNU*) | |
5285 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5286 | *) | |
5287 | ac_count=0 | |
5288 | $as_echo_n 0123456789 >"conftest.in" | |
5289 | while : | |
5290 | do | |
5291 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5292 | mv "conftest.tmp" "conftest.in" | |
5293 | cp "conftest.in" "conftest.nl" | |
5294 | $as_echo 'FGREP' >> "conftest.nl" | |
5295 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5296 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5297 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5298 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5299 | # Best one so far, save it but keep looking for a better one | |
5300 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5301 | ac_path_FGREP_max=$ac_count | |
1cf3d07d | 5302 | fi |
5213506e RW |
5303 | # 10*(2^10) chars as input seems more than enough |
5304 | test $ac_count -gt 10 && break | |
5305 | done | |
5306 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5307 | esac | |
5308 | ||
5309 | $ac_path_FGREP_found && break 3 | |
5310 | done | |
5311 | done | |
5312 | done | |
5313 | IFS=$as_save_IFS | |
5314 | if test -z "$ac_cv_path_FGREP"; then | |
22e05272 | 5315 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
5316 | fi |
5317 | else | |
5318 | ac_cv_path_FGREP=$FGREP | |
5319 | fi | |
5320 | ||
5321 | fi | |
1cf3d07d | 5322 | fi |
5213506e RW |
5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5324 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5325 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
5326 | |
5327 | ||
5328 | test -z "$GREP" && GREP=grep | |
5329 | ||
5330 | ||
5331 | ||
5332 | ||
5333 | ||
5334 | ||
5335 | ||
5336 | ||
5337 | ||
5338 | ||
5339 | ||
5340 | ||
5341 | ||
5342 | ||
5343 | ||
5344 | ||
5345 | ||
5346 | ||
5347 | ||
5213506e RW |
5348 | # Check whether --with-gnu-ld was given. |
5349 | if test "${with_gnu_ld+set}" = set; then : | |
5350 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
953ff289 DN |
5351 | else |
5352 | with_gnu_ld=no | |
5213506e RW |
5353 | fi |
5354 | ||
953ff289 DN |
5355 | ac_prog=ld |
5356 | if test "$GCC" = yes; then | |
5357 | # Check if gcc -print-prog-name=ld gives a path. | |
5213506e RW |
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5359 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
953ff289 DN |
5360 | case $host in |
5361 | *-*-mingw*) | |
5362 | # gcc leaves a trailing carriage return which upsets mingw | |
5363 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5364 | *) | |
5365 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5366 | esac | |
5367 | case $ac_prog in | |
5368 | # Accept absolute paths. | |
1cf3d07d | 5369 | [\\/]* | ?:[\\/]*) |
953ff289 | 5370 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
5371 | # Canonicalize the pathname of ld |
5372 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5373 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5374 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
953ff289 DN |
5375 | done |
5376 | test -z "$LD" && LD="$ac_prog" | |
5377 | ;; | |
5378 | "") | |
5379 | # If it fails, then pretend we aren't using GCC. | |
5380 | ac_prog=ld | |
5381 | ;; | |
5382 | *) | |
5383 | # If it is relative, then search for the first ld in PATH. | |
5384 | with_gnu_ld=unknown | |
5385 | ;; | |
5386 | esac | |
5387 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5389 | $as_echo_n "checking for GNU ld... " >&6; } | |
953ff289 | 5390 | else |
5213506e RW |
5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5392 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
953ff289 | 5393 | fi |
22e05272 | 5394 | if ${lt_cv_path_LD+:} false; then : |
5213506e | 5395 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
5396 | else |
5397 | if test -z "$LD"; then | |
1cf3d07d | 5398 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
953ff289 | 5399 | for ac_dir in $PATH; do |
1cf3d07d | 5400 | IFS="$lt_save_ifs" |
953ff289 DN |
5401 | test -z "$ac_dir" && ac_dir=. |
5402 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5403 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5404 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1cf3d07d | 5405 | # but apparently some variants of GNU ld only accept -v. |
953ff289 | 5406 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
5407 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5408 | *GNU* | *'with BFD'*) | |
953ff289 | 5409 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
5410 | ;; |
5411 | *) | |
953ff289 | 5412 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
5413 | ;; |
5414 | esac | |
953ff289 DN |
5415 | fi |
5416 | done | |
1cf3d07d | 5417 | IFS="$lt_save_ifs" |
953ff289 DN |
5418 | else |
5419 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5420 | fi | |
5421 | fi | |
5422 | ||
5423 | LD="$lt_cv_path_LD" | |
5424 | if test -n "$LD"; then | |
5213506e RW |
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5426 | $as_echo "$LD" >&6; } | |
953ff289 | 5427 | else |
5213506e RW |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5429 | $as_echo "no" >&6; } | |
953ff289 | 5430 | fi |
22e05272 | 5431 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5213506e RW |
5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5433 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 5434 | if ${lt_cv_prog_gnu_ld+:} false; then : |
5213506e | 5435 | $as_echo_n "(cached) " >&6 |
953ff289 | 5436 | else |
1cf3d07d SE |
5437 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5438 | case `$LD -v 2>&1 </dev/null` in | |
5439 | *GNU* | *'with BFD'*) | |
953ff289 | 5440 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
5441 | ;; |
5442 | *) | |
953ff289 | 5443 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
5444 | ;; |
5445 | esac | |
953ff289 | 5446 | fi |
5213506e RW |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5448 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
953ff289 DN |
5449 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5450 | ||
5451 | ||
953ff289 | 5452 | |
1cf3d07d SE |
5453 | |
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | ||
5213506e RW |
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5460 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 5461 | if ${lt_cv_path_NM+:} false; then : |
5213506e | 5462 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
5463 | else |
5464 | if test -n "$NM"; then | |
5465 | # Let the user override the test. | |
5466 | lt_cv_path_NM="$NM" | |
5467 | else | |
1cf3d07d SE |
5468 | lt_nm_to_check="${ac_tool_prefix}nm" |
5469 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5470 | lt_nm_to_check="$lt_nm_to_check nm" | |
5471 | fi | |
5472 | for lt_tmp_nm in $lt_nm_to_check; do | |
5473 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5474 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5475 | IFS="$lt_save_ifs" | |
5476 | test -z "$ac_dir" && ac_dir=. | |
5477 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5478 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5479 | # Check to see if the nm accepts a BSD-compat flag. | |
5480 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5481 | # nm: unknown option "B" ignored | |
5482 | # Tru64's nm complains that /dev/null is an invalid object file | |
5483 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5484 | */dev/null* | *'Invalid file or object type'*) | |
5485 | lt_cv_path_NM="$tmp_nm -B" | |
5486 | break | |
5487 | ;; | |
5488 | *) | |
5489 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5490 | */dev/null*) | |
5491 | lt_cv_path_NM="$tmp_nm -p" | |
5492 | break | |
5493 | ;; | |
5494 | *) | |
5495 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5496 | continue # so that we can try to find one that supports BSD flags | |
5497 | ;; | |
5498 | esac | |
5499 | ;; | |
5500 | esac | |
5501 | fi | |
5502 | done | |
5503 | IFS="$lt_save_ifs" | |
5504 | done | |
5505 | : ${lt_cv_path_NM=no} | |
5506 | fi | |
5507 | fi | |
5213506e RW |
5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5509 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
5510 | if test "$lt_cv_path_NM" != "no"; then |
5511 | NM="$lt_cv_path_NM" | |
5512 | else | |
5513 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
43e02a8a RW |
5514 | if test -n "$DUMPBIN"; then : |
5515 | # Let the user override the test. | |
5516 | else | |
5517 | if test -n "$ac_tool_prefix"; then | |
5518 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
5519 | do |
5520 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5521 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5523 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5524 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
5213506e | 5525 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5526 | else |
5527 | if test -n "$DUMPBIN"; then | |
5528 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5529 | else | |
5530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5531 | for as_dir in $PATH | |
5532 | do | |
5533 | IFS=$as_save_IFS | |
5534 | test -z "$as_dir" && as_dir=. | |
5213506e | 5535 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5536 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 5537 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 5538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
5539 | break 2 |
5540 | fi | |
5541 | done | |
5213506e RW |
5542 | done |
5543 | IFS=$as_save_IFS | |
1cf3d07d SE |
5544 | |
5545 | fi | |
5546 | fi | |
5547 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5548 | if test -n "$DUMPBIN"; then | |
5213506e RW |
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5550 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 5551 | else |
5213506e RW |
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5553 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5554 | fi |
5555 | ||
5213506e | 5556 | |
1cf3d07d SE |
5557 | test -n "$DUMPBIN" && break |
5558 | done | |
5559 | fi | |
5560 | if test -z "$DUMPBIN"; then | |
5561 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 5562 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
5563 | do |
5564 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5565 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5567 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5568 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5213506e | 5569 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5570 | else |
5571 | if test -n "$ac_ct_DUMPBIN"; then | |
5572 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5573 | else | |
5574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5575 | for as_dir in $PATH | |
5576 | do | |
5577 | IFS=$as_save_IFS | |
5578 | test -z "$as_dir" && as_dir=. | |
5213506e | 5579 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 5581 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 5582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
5583 | break 2 |
5584 | fi | |
5585 | done | |
5213506e RW |
5586 | done |
5587 | IFS=$as_save_IFS | |
1cf3d07d SE |
5588 | |
5589 | fi | |
953ff289 | 5590 | fi |
1cf3d07d SE |
5591 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5592 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5594 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 5595 | else |
5213506e RW |
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5597 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5598 | fi |
5599 | ||
5213506e | 5600 | |
1cf3d07d SE |
5601 | test -n "$ac_ct_DUMPBIN" && break |
5602 | done | |
1cf3d07d | 5603 | |
5213506e RW |
5604 | if test "x$ac_ct_DUMPBIN" = x; then |
5605 | DUMPBIN=":" | |
5606 | else | |
5607 | case $cross_compiling:$ac_tool_warned in | |
5608 | yes:) | |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5610 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5611 | ac_tool_warned=yes ;; | |
5612 | esac | |
5613 | DUMPBIN=$ac_ct_DUMPBIN | |
5614 | fi | |
1cf3d07d SE |
5615 | fi |
5616 | ||
43e02a8a RW |
5617 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5618 | *COFF*) | |
5619 | DUMPBIN="$DUMPBIN -symbols" | |
5620 | ;; | |
5621 | *) | |
5622 | DUMPBIN=: | |
5623 | ;; | |
5624 | esac | |
5625 | fi | |
1cf3d07d SE |
5626 | |
5627 | if test "$DUMPBIN" != ":"; then | |
5628 | NM="$DUMPBIN" | |
5629 | fi | |
953ff289 | 5630 | fi |
1cf3d07d SE |
5631 | test -z "$NM" && NM=nm |
5632 | ||
5633 | ||
5634 | ||
5635 | ||
5636 | ||
953ff289 | 5637 | |
5213506e RW |
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5639 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 5640 | if ${lt_cv_nm_interface+:} false; then : |
5213506e | 5641 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5642 | else |
5643 | lt_cv_nm_interface="BSD nm" | |
5644 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 5645 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
5646 | (eval "$ac_compile" 2>conftest.err) |
5647 | cat conftest.err >&5 | |
43e02a8a | 5648 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
5649 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5650 | cat conftest.err >&5 | |
43e02a8a | 5651 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
5652 | cat conftest.out >&5 |
5653 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5654 | lt_cv_nm_interface="MS dumpbin" | |
5655 | fi | |
5656 | rm -f conftest* | |
5657 | fi | |
5213506e RW |
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5659 | $as_echo "$lt_cv_nm_interface" >&6; } | |
953ff289 | 5660 | |
5213506e RW |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5662 | $as_echo_n "checking whether ln -s works... " >&6; } | |
953ff289 DN |
5663 | LN_S=$as_ln_s |
5664 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5666 | $as_echo "yes" >&6; } | |
953ff289 | 5667 | else |
5213506e RW |
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5669 | $as_echo "no, using $LN_S" >&6; } | |
953ff289 DN |
5670 | fi |
5671 | ||
1cf3d07d | 5672 | # find the maximum length of command line arguments |
5213506e RW |
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5674 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 5675 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
5213506e | 5676 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5677 | else |
5678 | i=0 | |
5679 | teststring="ABCD" | |
5680 | ||
5681 | case $build_os in | |
5682 | msdosdjgpp*) | |
5683 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5684 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5685 | # during glob expansion). Even if it were fixed, the result of this | |
5686 | # check would be larger than it should be. | |
5687 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5688 | ;; | |
5689 | ||
5690 | gnu*) | |
5691 | # Under GNU Hurd, this test is not required because there is | |
5692 | # no limit to the length of command line arguments. | |
5693 | # Libtool will interpret -1 as no limit whatsoever | |
5694 | lt_cv_sys_max_cmd_len=-1; | |
5695 | ;; | |
5696 | ||
6b4a97ed | 5697 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
5698 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5699 | # about 5 minutes as the teststring grows exponentially. | |
5700 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5701 | # you end up with a "frozen" computer, even though with patience | |
5702 | # the test eventually succeeds (with a max line length of 256k). | |
5703 | # Instead, let's just punt: use the minimum linelength reported by | |
5704 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5705 | lt_cv_sys_max_cmd_len=8192; | |
5706 | ;; | |
5707 | ||
43e02a8a RW |
5708 | mint*) |
5709 | # On MiNT this can take a long time and run out of memory. | |
5710 | lt_cv_sys_max_cmd_len=8192; | |
5711 | ;; | |
5712 | ||
1cf3d07d SE |
5713 | amigaos*) |
5714 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5715 | # So we just punt and use a minimum line length of 8192. | |
5716 | lt_cv_sys_max_cmd_len=8192; | |
5717 | ;; | |
5718 | ||
5719 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5720 | # This has been around since 386BSD, at least. Likely further. | |
5721 | if test -x /sbin/sysctl; then | |
5722 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5723 | elif test -x /usr/sbin/sysctl; then | |
5724 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5725 | else | |
5726 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5727 | fi | |
5728 | # And add a safety zone | |
5729 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5730 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5731 | ;; | |
5732 | ||
5733 | interix*) | |
5734 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5735 | lt_cv_sys_max_cmd_len=196608 | |
5736 | ;; | |
5737 | ||
5738 | osf*) | |
5739 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5740 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5741 | # nice to cause kernel panics so lets avoid the loop below. | |
5742 | # First set a reasonable default. | |
5743 | lt_cv_sys_max_cmd_len=16384 | |
5744 | # | |
5745 | if test -x /sbin/sysconfig; then | |
5746 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5747 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5748 | esac | |
5749 | fi | |
5750 | ;; | |
5751 | sco3.2v5*) | |
5752 | lt_cv_sys_max_cmd_len=102400 | |
5753 | ;; | |
5754 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5755 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5756 | if test -n "$kargmax"; then | |
5757 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5758 | else | |
5759 | lt_cv_sys_max_cmd_len=32768 | |
5760 | fi | |
5761 | ;; | |
5762 | *) | |
6b4a97ed PG |
5763 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5764 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
5765 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5766 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5767 | else | |
5768 | # Make teststring a little bigger before we do anything with it. | |
5769 | # a 1K string should be a reasonable start. | |
5770 | for i in 1 2 3 4 5 6 7 8 ; do | |
5771 | teststring=$teststring$teststring | |
5772 | done | |
5773 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5774 | # If test is not a shell built-in, we'll probably end up computing a | |
5775 | # maximum length that is only half of the actual maximum length, but | |
5776 | # we can't tell. | |
43e02a8a RW |
5777 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5778 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
5779 | test $i != 17 # 1/2 MB should be enough |
5780 | do | |
5781 | i=`expr $i + 1` | |
5782 | teststring=$teststring$teststring | |
5783 | done | |
5784 | # Only check the string length outside the loop. | |
5785 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5786 | teststring= | |
5787 | # Add a significant safety factor because C++ compilers can tack on | |
5788 | # massive amounts of additional arguments before passing them to the | |
5789 | # linker. It appears as though 1/2 is a usable value. | |
5790 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5791 | fi | |
1cf3d07d SE |
5792 | ;; |
5793 | esac | |
5794 | ||
5795 | fi | |
5796 | ||
5797 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5213506e RW |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5799 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
1cf3d07d | 5800 | else |
5213506e RW |
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5802 | $as_echo "none" >&6; } | |
1cf3d07d SE |
5803 | fi |
5804 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5805 | ||
5806 | ||
5807 | ||
5808 | ||
5809 | ||
5810 | ||
1cf3d07d SE |
5811 | : ${CP="cp -f"} |
5812 | : ${MV="mv -f"} | |
5813 | : ${RM="rm -f"} | |
5814 | ||
5213506e RW |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5816 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
5817 | # Try some XSI features |
5818 | xsi_shell=no | |
5819 | ( _lt_dummy="a/b/c" | |
5820 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6b4a97ed PG |
5821 | = c,a/b,, \ |
5822 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5823 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 5824 | && xsi_shell=yes |
5213506e RW |
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5826 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
5827 | |
5828 | ||
5213506e RW |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5830 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
5831 | lt_shell_append=no |
5832 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5833 | >/dev/null 2>&1 \ | |
5834 | && lt_shell_append=yes | |
5213506e RW |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5836 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
5837 | |
5838 | ||
5839 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5840 | lt_unset=unset | |
5841 | else | |
5842 | lt_unset=false | |
5843 | fi | |
5844 | ||
5845 | ||
5846 | ||
5847 | ||
5848 | ||
5849 | # test EBCDIC or ASCII | |
5850 | case `echo X|tr X '\101'` in | |
5851 | A) # ASCII based system | |
5852 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5853 | lt_SP2NL='tr \040 \012' | |
5854 | lt_NL2SP='tr \015\012 \040\040' | |
5855 | ;; | |
5856 | *) # EBCDIC based system | |
5857 | lt_SP2NL='tr \100 \n' | |
5858 | lt_NL2SP='tr \r\n \100\100' | |
5859 | ;; | |
5860 | esac | |
5861 | ||
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5213506e RW |
5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5871 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 5872 | if ${lt_cv_ld_reload_flag+:} false; then : |
5213506e | 5873 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5874 | else |
5875 | lt_cv_ld_reload_flag='-r' | |
5876 | fi | |
5213506e RW |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5878 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
5879 | reload_flag=$lt_cv_ld_reload_flag |
5880 | case $reload_flag in | |
5881 | "" | " "*) ;; | |
5882 | *) reload_flag=" $reload_flag" ;; | |
5883 | esac | |
5884 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5885 | case $host_os in | |
5886 | darwin*) | |
5887 | if test "$GCC" = yes; then | |
5888 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5889 | else | |
5890 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5891 | fi | |
5892 | ;; | |
5893 | esac | |
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
6b4a97ed PG |
5903 | if test -n "$ac_tool_prefix"; then |
5904 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5905 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5907 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5908 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 5909 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
5910 | else |
5911 | if test -n "$OBJDUMP"; then | |
5912 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5913 | else | |
5914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5915 | for as_dir in $PATH | |
5916 | do | |
5917 | IFS=$as_save_IFS | |
5918 | test -z "$as_dir" && as_dir=. | |
5213506e | 5919 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 5921 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 5922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
5923 | break 2 |
5924 | fi | |
5925 | done | |
5213506e RW |
5926 | done |
5927 | IFS=$as_save_IFS | |
6b4a97ed PG |
5928 | |
5929 | fi | |
5930 | fi | |
5931 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5932 | if test -n "$OBJDUMP"; then | |
5213506e RW |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5934 | $as_echo "$OBJDUMP" >&6; } | |
6b4a97ed | 5935 | else |
5213506e RW |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5937 | $as_echo "no" >&6; } | |
6b4a97ed PG |
5938 | fi |
5939 | ||
5213506e | 5940 | |
6b4a97ed PG |
5941 | fi |
5942 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5943 | ac_ct_OBJDUMP=$OBJDUMP | |
5944 | # Extract the first word of "objdump", so it can be a program name with args. | |
5945 | set dummy objdump; ac_word=$2 | |
5213506e RW |
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5947 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5948 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5213506e | 5949 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
5950 | else |
5951 | if test -n "$ac_ct_OBJDUMP"; then | |
5952 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5953 | else | |
5954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5955 | for as_dir in $PATH | |
5956 | do | |
5957 | IFS=$as_save_IFS | |
5958 | test -z "$as_dir" && as_dir=. | |
5213506e | 5959 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5960 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 5961 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 5962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
5963 | break 2 |
5964 | fi | |
5965 | done | |
5213506e RW |
5966 | done |
5967 | IFS=$as_save_IFS | |
6b4a97ed | 5968 | |
6b4a97ed PG |
5969 | fi |
5970 | fi | |
5971 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5972 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5974 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6b4a97ed | 5975 | else |
5213506e RW |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5977 | $as_echo "no" >&6; } | |
6b4a97ed PG |
5978 | fi |
5979 | ||
5213506e RW |
5980 | if test "x$ac_ct_OBJDUMP" = x; then |
5981 | OBJDUMP="false" | |
5982 | else | |
5983 | case $cross_compiling:$ac_tool_warned in | |
5984 | yes:) | |
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5986 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5987 | ac_tool_warned=yes ;; | |
5988 | esac | |
5989 | OBJDUMP=$ac_ct_OBJDUMP | |
5990 | fi | |
6b4a97ed PG |
5991 | else |
5992 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5993 | fi | |
5994 | ||
5995 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5996 | ||
5997 | ||
5998 | ||
5999 | ||
6000 | ||
6001 | ||
6002 | ||
6003 | ||
1cf3d07d | 6004 | |
5213506e RW |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6006 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 6007 | if ${lt_cv_deplibs_check_method+:} false; then : |
5213506e | 6008 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
6009 | else |
6010 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6011 | lt_cv_file_magic_test_file= | |
6012 | lt_cv_deplibs_check_method='unknown' | |
6013 | # Need to set the preceding variable on all platforms that support | |
6014 | # interlibrary dependencies. | |
6015 | # 'none' -- dependencies not supported. | |
6016 | # `unknown' -- same as none, but documents that we really don't know. | |
6017 | # 'pass_all' -- all dependencies passed with no checks. | |
6018 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
6019 | # 'file_magic [[regex]]' -- check by looking for files in library path |
6020 | # which responds to the $file_magic_cmd with a given extended regex. | |
953ff289 DN |
6021 | # If you have `file' or equivalent on your system and you're not sure |
6022 | # whether `pass_all' will *always* work, you probably want this one. | |
6023 | ||
6024 | case $host_os in | |
d653fdfb | 6025 | aix[4-9]*) |
953ff289 DN |
6026 | lt_cv_deplibs_check_method=pass_all |
6027 | ;; | |
6028 | ||
6029 | beos*) | |
6030 | lt_cv_deplibs_check_method=pass_all | |
6031 | ;; | |
6032 | ||
1cf3d07d | 6033 | bsdi[45]*) |
953ff289 DN |
6034 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
6035 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6036 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6037 | ;; | |
6038 | ||
1cf3d07d SE |
6039 | cygwin*) |
6040 | # func_win32_libid is a shell function defined in ltmain.sh | |
6041 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6042 | lt_cv_file_magic_cmd='func_win32_libid' | |
6043 | ;; | |
6044 | ||
6045 | mingw* | pw32*) | |
6046 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6047 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6048 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
6049 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6050 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
6051 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6052 | lt_cv_file_magic_cmd='func_win32_libid' | |
6053 | else | |
6054 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6055 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6056 | fi | |
953ff289 DN |
6057 | ;; |
6058 | ||
43e02a8a | 6059 | cegcc*) |
6b4a97ed PG |
6060 | # use the weaker test based on 'objdump'. See mingw*. |
6061 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6062 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6063 | ;; | |
6064 | ||
953ff289 | 6065 | darwin* | rhapsody*) |
953ff289 DN |
6066 | lt_cv_deplibs_check_method=pass_all |
6067 | ;; | |
6068 | ||
1cf3d07d SE |
6069 | freebsd* | dragonfly*) |
6070 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
953ff289 DN |
6071 | case $host_cpu in |
6072 | i*86 ) | |
6073 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6074 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 6075 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
953ff289 DN |
6076 | lt_cv_file_magic_cmd=/usr/bin/file |
6077 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6078 | ;; | |
6079 | esac | |
6080 | else | |
6081 | lt_cv_deplibs_check_method=pass_all | |
6082 | fi | |
6083 | ;; | |
6084 | ||
6085 | gnu*) | |
6086 | lt_cv_deplibs_check_method=pass_all | |
6087 | ;; | |
6088 | ||
43e02a8a RW |
6089 | haiku*) |
6090 | lt_cv_deplibs_check_method=pass_all | |
6091 | ;; | |
6092 | ||
1cf3d07d SE |
6093 | hpux10.20* | hpux11*) |
6094 | lt_cv_file_magic_cmd=/usr/bin/file | |
953ff289 | 6095 | case $host_cpu in |
953ff289 DN |
6096 | ia64*) |
6097 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
953ff289 DN |
6098 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
6099 | ;; | |
1cf3d07d | 6100 | hppa*64*) |
43e02a8a | 6101 | 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]' |
1cf3d07d | 6102 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
953ff289 DN |
6103 | ;; |
6104 | *) | |
43e02a8a | 6105 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d | 6106 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
953ff289 DN |
6107 | ;; |
6108 | esac | |
1cf3d07d SE |
6109 | ;; |
6110 | ||
6111 | interix[3-9]*) | |
6112 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6113 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6114 | ;; | |
6115 | ||
6116 | irix5* | irix6* | nonstopux*) | |
6117 | case $LD in | |
6118 | *-32|*"-32 ") libmagic=32-bit;; | |
6119 | *-n32|*"-n32 ") libmagic=N32;; | |
6120 | *-64|*"-64 ") libmagic=64-bit;; | |
6121 | *) libmagic=never-match;; | |
6122 | esac | |
953ff289 DN |
6123 | lt_cv_deplibs_check_method=pass_all |
6124 | ;; | |
6125 | ||
6126 | # This must be Linux ELF. | |
e9085da5 | 6127 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
953ff289 DN |
6128 | lt_cv_deplibs_check_method=pass_all |
6129 | ;; | |
6130 | ||
1cf3d07d SE |
6131 | netbsd*) |
6132 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6133 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
953ff289 | 6134 | else |
1cf3d07d | 6135 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
953ff289 DN |
6136 | fi |
6137 | ;; | |
6138 | ||
1cf3d07d | 6139 | newos6*) |
953ff289 DN |
6140 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
6141 | lt_cv_file_magic_cmd=/usr/bin/file | |
6142 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6143 | ;; | |
6144 | ||
1cf3d07d SE |
6145 | *nto* | *qnx*) |
6146 | lt_cv_deplibs_check_method=pass_all | |
6147 | ;; | |
6148 | ||
6149 | openbsd*) | |
6150 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6151 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6152 | else | |
6153 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6154 | fi | |
6155 | ;; | |
6156 | ||
953ff289 | 6157 | osf3* | osf4* | osf5*) |
953ff289 DN |
6158 | lt_cv_deplibs_check_method=pass_all |
6159 | ;; | |
6160 | ||
1cf3d07d | 6161 | rdos*) |
953ff289 DN |
6162 | lt_cv_deplibs_check_method=pass_all |
6163 | ;; | |
6164 | ||
6165 | solaris*) | |
6166 | lt_cv_deplibs_check_method=pass_all | |
953ff289 DN |
6167 | ;; |
6168 | ||
1cf3d07d | 6169 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
953ff289 DN |
6170 | lt_cv_deplibs_check_method=pass_all |
6171 | ;; | |
6172 | ||
1cf3d07d | 6173 | sysv4 | sysv4.3*) |
953ff289 | 6174 | case $host_vendor in |
953ff289 DN |
6175 | motorola) |
6176 | 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]' | |
6177 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6178 | ;; | |
1cf3d07d SE |
6179 | ncr) |
6180 | lt_cv_deplibs_check_method=pass_all | |
6181 | ;; | |
6182 | sequent) | |
6183 | lt_cv_file_magic_cmd='/bin/file' | |
6184 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6185 | ;; | |
6186 | sni) | |
6187 | lt_cv_file_magic_cmd='/bin/file' | |
6188 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6189 | lt_cv_file_magic_test_file=/lib/libc.so | |
6190 | ;; | |
6191 | siemens) | |
6192 | lt_cv_deplibs_check_method=pass_all | |
6193 | ;; | |
6194 | pc) | |
6195 | lt_cv_deplibs_check_method=pass_all | |
6196 | ;; | |
953ff289 DN |
6197 | esac |
6198 | ;; | |
1cf3d07d SE |
6199 | |
6200 | tpf*) | |
6201 | lt_cv_deplibs_check_method=pass_all | |
6202 | ;; | |
953ff289 DN |
6203 | esac |
6204 | ||
6205 | fi | |
5213506e RW |
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6207 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
953ff289 DN |
6208 | file_magic_cmd=$lt_cv_file_magic_cmd |
6209 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 6210 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
953ff289 DN |
6211 | |
6212 | ||
6213 | ||
6214 | ||
6215 | ||
953ff289 | 6216 | |
953ff289 | 6217 | |
953ff289 | 6218 | |
953ff289 | 6219 | |
953ff289 | 6220 | |
953ff289 | 6221 | |
953ff289 DN |
6222 | |
6223 | if test -n "$ac_tool_prefix"; then | |
1cf3d07d SE |
6224 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6225 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6227 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6228 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 6229 | $as_echo_n "(cached) " >&6 |
953ff289 | 6230 | else |
1cf3d07d SE |
6231 | if test -n "$AR"; then |
6232 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
953ff289 DN |
6233 | else |
6234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6235 | for as_dir in $PATH | |
6236 | do | |
6237 | IFS=$as_save_IFS | |
6238 | test -z "$as_dir" && as_dir=. | |
5213506e | 6239 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 6241 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 6242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6243 | break 2 |
6244 | fi | |
6245 | done | |
5213506e RW |
6246 | done |
6247 | IFS=$as_save_IFS | |
953ff289 DN |
6248 | |
6249 | fi | |
6250 | fi | |
1cf3d07d SE |
6251 | AR=$ac_cv_prog_AR |
6252 | if test -n "$AR"; then | |
5213506e RW |
6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6254 | $as_echo "$AR" >&6; } | |
953ff289 | 6255 | else |
5213506e RW |
6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6257 | $as_echo "no" >&6; } | |
953ff289 DN |
6258 | fi |
6259 | ||
5213506e | 6260 | |
953ff289 | 6261 | fi |
1cf3d07d SE |
6262 | if test -z "$ac_cv_prog_AR"; then |
6263 | ac_ct_AR=$AR | |
6264 | # Extract the first word of "ar", so it can be a program name with args. | |
6265 | set dummy ar; ac_word=$2 | |
5213506e RW |
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6267 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6268 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 6269 | $as_echo_n "(cached) " >&6 |
953ff289 | 6270 | else |
1cf3d07d SE |
6271 | if test -n "$ac_ct_AR"; then |
6272 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
953ff289 DN |
6273 | else |
6274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6275 | for as_dir in $PATH | |
6276 | do | |
6277 | IFS=$as_save_IFS | |
6278 | test -z "$as_dir" && as_dir=. | |
5213506e | 6279 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 6281 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 6282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6283 | break 2 |
6284 | fi | |
6285 | done | |
5213506e RW |
6286 | done |
6287 | IFS=$as_save_IFS | |
953ff289 | 6288 | |
953ff289 DN |
6289 | fi |
6290 | fi | |
1cf3d07d SE |
6291 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6292 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6294 | $as_echo "$ac_ct_AR" >&6; } | |
953ff289 | 6295 | else |
5213506e RW |
6296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6297 | $as_echo "no" >&6; } | |
953ff289 DN |
6298 | fi |
6299 | ||
5213506e RW |
6300 | if test "x$ac_ct_AR" = x; then |
6301 | AR="false" | |
6302 | else | |
6303 | case $cross_compiling:$ac_tool_warned in | |
6304 | yes:) | |
6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6306 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6307 | ac_tool_warned=yes ;; | |
6308 | esac | |
6309 | AR=$ac_ct_AR | |
6310 | fi | |
953ff289 | 6311 | else |
1cf3d07d | 6312 | AR="$ac_cv_prog_AR" |
953ff289 DN |
6313 | fi |
6314 | ||
1cf3d07d SE |
6315 | test -z "$AR" && AR=ar |
6316 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6317 | ||
6318 | ||
6319 | ||
6320 | ||
6321 | ||
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
953ff289 DN |
6328 | if test -n "$ac_tool_prefix"; then |
6329 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6330 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6332 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6333 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 6334 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
6335 | else |
6336 | if test -n "$STRIP"; then | |
6337 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6338 | else | |
6339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6340 | for as_dir in $PATH | |
6341 | do | |
6342 | IFS=$as_save_IFS | |
6343 | test -z "$as_dir" && as_dir=. | |
5213506e | 6344 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 6346 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 6347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6348 | break 2 |
6349 | fi | |
6350 | done | |
5213506e RW |
6351 | done |
6352 | IFS=$as_save_IFS | |
953ff289 DN |
6353 | |
6354 | fi | |
6355 | fi | |
6356 | STRIP=$ac_cv_prog_STRIP | |
6357 | if test -n "$STRIP"; then | |
5213506e RW |
6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6359 | $as_echo "$STRIP" >&6; } | |
953ff289 | 6360 | else |
5213506e RW |
6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6362 | $as_echo "no" >&6; } | |
953ff289 DN |
6363 | fi |
6364 | ||
5213506e | 6365 | |
953ff289 DN |
6366 | fi |
6367 | if test -z "$ac_cv_prog_STRIP"; then | |
6368 | ac_ct_STRIP=$STRIP | |
6369 | # Extract the first word of "strip", so it can be a program name with args. | |
6370 | set dummy strip; ac_word=$2 | |
5213506e RW |
6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6372 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6373 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 6374 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
6375 | else |
6376 | if test -n "$ac_ct_STRIP"; then | |
6377 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6378 | else | |
6379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6380 | for as_dir in $PATH | |
6381 | do | |
6382 | IFS=$as_save_IFS | |
6383 | test -z "$as_dir" && as_dir=. | |
5213506e | 6384 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 6386 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 6387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6388 | break 2 |
6389 | fi | |
6390 | done | |
5213506e RW |
6391 | done |
6392 | IFS=$as_save_IFS | |
953ff289 | 6393 | |
953ff289 DN |
6394 | fi |
6395 | fi | |
6396 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6397 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6399 | $as_echo "$ac_ct_STRIP" >&6; } | |
953ff289 | 6400 | else |
5213506e RW |
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6402 | $as_echo "no" >&6; } | |
953ff289 DN |
6403 | fi |
6404 | ||
5213506e RW |
6405 | if test "x$ac_ct_STRIP" = x; then |
6406 | STRIP=":" | |
6407 | else | |
6408 | case $cross_compiling:$ac_tool_warned in | |
6409 | yes:) | |
6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6411 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6412 | ac_tool_warned=yes ;; | |
6413 | esac | |
6414 | STRIP=$ac_ct_STRIP | |
6415 | fi | |
953ff289 DN |
6416 | else |
6417 | STRIP="$ac_cv_prog_STRIP" | |
6418 | fi | |
6419 | ||
1cf3d07d | 6420 | test -z "$STRIP" && STRIP=: |
953ff289 DN |
6421 | |
6422 | ||
953ff289 | 6423 | |
953ff289 DN |
6424 | |
6425 | ||
953ff289 | 6426 | |
1cf3d07d SE |
6427 | if test -n "$ac_tool_prefix"; then |
6428 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6429 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6431 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6432 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 6433 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
6434 | else |
6435 | if test -n "$RANLIB"; then | |
6436 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6437 | else | |
6438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6439 | for as_dir in $PATH | |
6440 | do | |
6441 | IFS=$as_save_IFS | |
6442 | test -z "$as_dir" && as_dir=. | |
5213506e | 6443 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6444 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 6445 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 6446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
6447 | break 2 |
6448 | fi | |
6449 | done | |
5213506e RW |
6450 | done |
6451 | IFS=$as_save_IFS | |
1cf3d07d SE |
6452 | |
6453 | fi | |
6454 | fi | |
6455 | RANLIB=$ac_cv_prog_RANLIB | |
6456 | if test -n "$RANLIB"; then | |
5213506e RW |
6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6458 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 6459 | else |
5213506e RW |
6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6461 | $as_echo "no" >&6; } | |
1cf3d07d SE |
6462 | fi |
6463 | ||
5213506e | 6464 | |
1cf3d07d SE |
6465 | fi |
6466 | if test -z "$ac_cv_prog_RANLIB"; then | |
6467 | ac_ct_RANLIB=$RANLIB | |
6468 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6469 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6471 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6472 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 6473 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
6474 | else |
6475 | if test -n "$ac_ct_RANLIB"; then | |
6476 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6477 | else | |
6478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6479 | for as_dir in $PATH | |
6480 | do | |
6481 | IFS=$as_save_IFS | |
6482 | test -z "$as_dir" && as_dir=. | |
5213506e | 6483 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6484 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 6485 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 6486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
6487 | break 2 |
6488 | fi | |
6489 | done | |
5213506e RW |
6490 | done |
6491 | IFS=$as_save_IFS | |
1cf3d07d | 6492 | |
1cf3d07d SE |
6493 | fi |
6494 | fi | |
6495 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6496 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6498 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 6499 | else |
5213506e RW |
6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6501 | $as_echo "no" >&6; } | |
1cf3d07d SE |
6502 | fi |
6503 | ||
5213506e RW |
6504 | if test "x$ac_ct_RANLIB" = x; then |
6505 | RANLIB=":" | |
6506 | else | |
6507 | case $cross_compiling:$ac_tool_warned in | |
6508 | yes:) | |
6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6510 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6511 | ac_tool_warned=yes ;; | |
6512 | esac | |
6513 | RANLIB=$ac_ct_RANLIB | |
6514 | fi | |
1cf3d07d SE |
6515 | else |
6516 | RANLIB="$ac_cv_prog_RANLIB" | |
6517 | fi | |
6518 | ||
6519 | test -z "$RANLIB" && RANLIB=: | |
6520 | ||
6521 | ||
6522 | ||
6523 | ||
6524 | ||
6525 | ||
6526 | # Determine commands to create old-style static archives. | |
6b4a97ed | 6527 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
6528 | old_postinstall_cmds='chmod 644 $oldlib' |
6529 | old_postuninstall_cmds= | |
6530 | ||
6531 | if test -n "$RANLIB"; then | |
6532 | case $host_os in | |
6533 | openbsd*) | |
6534 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6535 | ;; | |
6536 | *) | |
6537 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6538 | ;; | |
6539 | esac | |
6540 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6541 | fi | |
6542 | ||
43e02a8a RW |
6543 | case $host_os in |
6544 | darwin*) | |
6545 | lock_old_archive_extraction=yes ;; | |
6546 | *) | |
6547 | lock_old_archive_extraction=no ;; | |
6548 | esac | |
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
1cf3d07d SE |
6555 | |
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
6577 | ||
6578 | ||
6579 | ||
6580 | ||
6581 | ||
6582 | ||
6583 | ||
6584 | ||
6585 | ||
6586 | ||
6587 | ||
6588 | # If no C compiler was specified, use CC. | |
6589 | LTCC=${LTCC-"$CC"} | |
6590 | ||
6591 | # If no C compiler flags were specified, use CFLAGS. | |
6592 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6593 | ||
6594 | # Allow CC to be a program name with arguments. | |
6595 | compiler=$CC | |
6596 | ||
6597 | ||
6598 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6600 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 6601 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
5213506e | 6602 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
6603 | else |
6604 | ||
6605 | # These are sane defaults that work on at least a few old systems. | |
6606 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6607 | ||
6608 | # Character class describing NM global symbol codes. | |
6609 | symcode='[BCDEGRST]' | |
6610 | ||
6611 | # Regexp to match symbols that can be accessed directly from C. | |
6612 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6613 | ||
6614 | # Define system-specific variables. | |
6615 | case $host_os in | |
6616 | aix*) | |
6617 | symcode='[BCDT]' | |
6618 | ;; | |
6b4a97ed | 6619 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
6620 | symcode='[ABCDGISTW]' |
6621 | ;; | |
6622 | hpux*) | |
6623 | if test "$host_cpu" = ia64; then | |
6624 | symcode='[ABCDEGRST]' | |
6625 | fi | |
6626 | ;; | |
6627 | irix* | nonstopux*) | |
6628 | symcode='[BCDEGRST]' | |
6629 | ;; | |
6630 | osf*) | |
6631 | symcode='[BCDEGQRST]' | |
6632 | ;; | |
6633 | solaris*) | |
6634 | symcode='[BDRT]' | |
6635 | ;; | |
6636 | sco3.2v5*) | |
6637 | symcode='[DT]' | |
6638 | ;; | |
6639 | sysv4.2uw2*) | |
6640 | symcode='[DT]' | |
6641 | ;; | |
6642 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6643 | symcode='[ABDT]' | |
6644 | ;; | |
6645 | sysv4) | |
6646 | symcode='[DFNSTU]' | |
6647 | ;; | |
6648 | esac | |
6649 | ||
6650 | # If we're using GNU nm, then use its standard symbol codes. | |
6651 | case `$NM -V 2>&1` in | |
6652 | *GNU* | *'with BFD'*) | |
6653 | symcode='[ABCDGIRSTW]' ;; | |
6654 | esac | |
6655 | ||
6656 | # Transform an extracted symbol line into a proper C declaration. | |
6657 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6658 | # so use this general approach. | |
6659 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6660 | ||
6661 | # Transform an extracted symbol line into symbol name and symbol address | |
6662 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6b4a97ed | 6663 | 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'" |
1cf3d07d SE |
6664 | |
6665 | # Handle CRLF in mingw tool chain | |
6666 | opt_cr= | |
6667 | case $build_os in | |
6668 | mingw*) | |
6669 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6670 | ;; | |
6671 | esac | |
6672 | ||
6673 | # Try without a prefix underscore, then with it. | |
6674 | for ac_symprfx in "" "_"; do | |
6675 | ||
6676 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6677 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6678 | ||
6679 | # Write the raw and C identifiers. | |
6680 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6681 | # Fake it for dumpbin and say T for any non-static function | |
6682 | # and D for any global variable. | |
6683 | # Also find C++ and __fastcall symbols from MSVC++, | |
6684 | # which start with @ or ?. | |
6685 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6686 | " {last_section=section; section=\$ 3};"\ | |
6687 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6688 | " \$ 0!~/External *\|/{next};"\ | |
6689 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6690 | " {if(hide[section]) next};"\ | |
6691 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6692 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6693 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6694 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6695 | " ' prfx=^$ac_symprfx" | |
6696 | else | |
6697 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6698 | fi | |
6699 | ||
6700 | # Check to see that the pipe works correctly. | |
6701 | pipe_works=no | |
6702 | ||
6703 | rm -f conftest* | |
6704 | cat > conftest.$ac_ext <<_LT_EOF | |
6705 | #ifdef __cplusplus | |
6706 | extern "C" { | |
6707 | #endif | |
6708 | char nm_test_var; | |
6709 | void nm_test_func(void); | |
6710 | void nm_test_func(void){} | |
6711 | #ifdef __cplusplus | |
6712 | } | |
6713 | #endif | |
6714 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6715 | _LT_EOF | |
6716 | ||
5213506e | 6717 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6718 | (eval $ac_compile) 2>&5 |
6719 | ac_status=$? | |
5213506e RW |
6720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6721 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6722 | # Now try to grab the symbols. |
6723 | nlist=conftest.nm | |
43e02a8a RW |
6724 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6725 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 6726 | ac_status=$? |
5213506e RW |
6727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6728 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
6729 | # Try sorting and uniquifying the output. |
6730 | if sort "$nlist" | uniq > "$nlist"T; then | |
6731 | mv -f "$nlist"T "$nlist" | |
6732 | else | |
6733 | rm -f "$nlist"T | |
6734 | fi | |
6735 | ||
6736 | # Make sure that we snagged all the symbols we need. | |
6737 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6738 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6739 | cat <<_LT_EOF > conftest.$ac_ext | |
6740 | #ifdef __cplusplus | |
6741 | extern "C" { | |
6742 | #endif | |
6743 | ||
6744 | _LT_EOF | |
6745 | # Now generate the symbol file. | |
6746 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6747 | ||
6748 | cat <<_LT_EOF >> conftest.$ac_ext | |
6749 | ||
6750 | /* The mapping between symbol names and symbols. */ | |
6751 | const struct { | |
6752 | const char *name; | |
6753 | void *address; | |
6754 | } | |
6755 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6756 | { | |
6757 | { "@PROGRAM@", (void *) 0 }, | |
6758 | _LT_EOF | |
6759 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6760 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6761 | {0, (void *) 0} | |
6762 | }; | |
6763 | ||
6764 | /* This works around a problem in FreeBSD linker */ | |
6765 | #ifdef FREEBSD_WORKAROUND | |
6766 | static const void *lt_preloaded_setup() { | |
6767 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6768 | } | |
6769 | #endif | |
6770 | ||
6771 | #ifdef __cplusplus | |
6772 | } | |
6773 | #endif | |
6774 | _LT_EOF | |
6775 | # Now try linking the two files. | |
6776 | mv conftest.$ac_objext conftstm.$ac_objext | |
6777 | lt_save_LIBS="$LIBS" | |
6778 | lt_save_CFLAGS="$CFLAGS" | |
6779 | LIBS="conftstm.$ac_objext" | |
6780 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 6781 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
6782 | (eval $ac_link) 2>&5 |
6783 | ac_status=$? | |
5213506e RW |
6784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6785 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
6786 | pipe_works=yes |
6787 | fi | |
6788 | LIBS="$lt_save_LIBS" | |
6789 | CFLAGS="$lt_save_CFLAGS" | |
6790 | else | |
6791 | echo "cannot find nm_test_func in $nlist" >&5 | |
6792 | fi | |
6793 | else | |
6794 | echo "cannot find nm_test_var in $nlist" >&5 | |
6795 | fi | |
6796 | else | |
6797 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6798 | fi | |
6799 | else | |
6800 | echo "$progname: failed program was:" >&5 | |
6801 | cat conftest.$ac_ext >&5 | |
6802 | fi | |
6b4a97ed | 6803 | rm -rf conftest* conftst* |
1cf3d07d SE |
6804 | |
6805 | # Do not use the global_symbol_pipe unless it works. | |
6806 | if test "$pipe_works" = yes; then | |
6807 | break | |
6808 | else | |
6809 | lt_cv_sys_global_symbol_pipe= | |
6810 | fi | |
6811 | done | |
6812 | ||
6813 | fi | |
6814 | ||
6815 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6816 | lt_cv_sys_global_symbol_to_cdecl= | |
6817 | fi | |
6818 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6820 | $as_echo "failed" >&6; } | |
1cf3d07d | 6821 | else |
5213506e RW |
6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6823 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
6824 | fi |
6825 | ||
6826 | ||
6827 | ||
6828 | ||
6829 | ||
6830 | ||
6831 | ||
6832 | ||
6833 | ||
6834 | ||
6835 | ||
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6b4a97ed PG |
6840 | |
6841 | ||
6842 | ||
6843 | ||
6844 | ||
1cf3d07d SE |
6845 | |
6846 | ||
6847 | ||
5213506e RW |
6848 | # Check whether --enable-libtool-lock was given. |
6849 | if test "${enable_libtool_lock+set}" = set; then : | |
6850 | enableval=$enable_libtool_lock; | |
6851 | fi | |
1cf3d07d | 6852 | |
1cf3d07d SE |
6853 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6854 | ||
6855 | # Some flags need to be propagated to the compiler or linker for good | |
953ff289 DN |
6856 | # libtool support. |
6857 | case $host in | |
1cf3d07d | 6858 | ia64-*-hpux*) |
953ff289 | 6859 | # Find out which ABI we are using. |
1cf3d07d | 6860 | echo 'int i;' > conftest.$ac_ext |
5213506e | 6861 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
953ff289 DN |
6862 | (eval $ac_compile) 2>&5 |
6863 | ac_status=$? | |
5213506e RW |
6864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6865 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6866 | case `/usr/bin/file conftest.$ac_objext` in |
6867 | *ELF-32*) | |
6868 | HPUX_IA64_MODE="32" | |
6869 | ;; | |
6870 | *ELF-64*) | |
6871 | HPUX_IA64_MODE="64" | |
6872 | ;; | |
6873 | esac | |
6874 | fi | |
6875 | rm -rf conftest* | |
6876 | ;; | |
6877 | *-*-irix6*) | |
6878 | # Find out which ABI we are using. | |
43e02a8a | 6879 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 6880 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6881 | (eval $ac_compile) 2>&5 |
6882 | ac_status=$? | |
5213506e RW |
6883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6884 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6885 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6886 | case `/usr/bin/file conftest.$ac_objext` in | |
6887 | *32-bit*) | |
6888 | LD="${LD-ld} -melf32bsmip" | |
6889 | ;; | |
6890 | *N32*) | |
6891 | LD="${LD-ld} -melf32bmipn32" | |
6892 | ;; | |
6893 | *64-bit*) | |
6894 | LD="${LD-ld} -melf64bmip" | |
6895 | ;; | |
6896 | esac | |
6897 | else | |
6898 | case `/usr/bin/file conftest.$ac_objext` in | |
6899 | *32-bit*) | |
6900 | LD="${LD-ld} -32" | |
6901 | ;; | |
6902 | *N32*) | |
6903 | LD="${LD-ld} -n32" | |
6904 | ;; | |
6905 | *64-bit*) | |
6906 | LD="${LD-ld} -64" | |
6907 | ;; | |
6908 | esac | |
6909 | fi | |
6910 | fi | |
6911 | rm -rf conftest* | |
6912 | ;; | |
6913 | ||
3cbe17f7 | 6914 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1cf3d07d SE |
6915 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6916 | # Find out which ABI we are using. | |
6917 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6918 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6919 | (eval $ac_compile) 2>&5 |
6920 | ac_status=$? | |
5213506e RW |
6921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6922 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6923 | case `/usr/bin/file conftest.o` in |
6924 | *32-bit*) | |
6925 | case $host in | |
6926 | x86_64-*kfreebsd*-gnu) | |
6927 | LD="${LD-ld} -m elf_i386_fbsd" | |
6928 | ;; | |
6929 | x86_64-*linux*) | |
e6d5f8c9 L |
6930 | case `/usr/bin/file conftest.o` in |
6931 | *x86-64*) | |
6932 | LD="${LD-ld} -m elf32_x86_64" | |
6933 | ;; | |
6934 | *) | |
6935 | LD="${LD-ld} -m elf_i386" | |
6936 | ;; | |
6937 | esac | |
1cf3d07d | 6938 | ;; |
3cbe17f7 AM |
6939 | powerpc64le-*linux*) |
6940 | LD="${LD-ld} -m elf32lppclinux" | |
6941 | ;; | |
6942 | powerpc64-*linux*) | |
1cf3d07d SE |
6943 | LD="${LD-ld} -m elf32ppclinux" |
6944 | ;; | |
6945 | s390x-*linux*) | |
6946 | LD="${LD-ld} -m elf_s390" | |
6947 | ;; | |
6948 | sparc64-*linux*) | |
6949 | LD="${LD-ld} -m elf32_sparc" | |
6950 | ;; | |
6951 | esac | |
6952 | ;; | |
6953 | *64-bit*) | |
6954 | case $host in | |
6955 | x86_64-*kfreebsd*-gnu) | |
6956 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6957 | ;; | |
6958 | x86_64-*linux*) | |
6959 | LD="${LD-ld} -m elf_x86_64" | |
6960 | ;; | |
3cbe17f7 AM |
6961 | powerpcle-*linux*) |
6962 | LD="${LD-ld} -m elf64lppc" | |
6963 | ;; | |
6964 | powerpc-*linux*) | |
1cf3d07d SE |
6965 | LD="${LD-ld} -m elf64ppc" |
6966 | ;; | |
6967 | s390*-*linux*|s390*-*tpf*) | |
6968 | LD="${LD-ld} -m elf64_s390" | |
6969 | ;; | |
6970 | sparc*-*linux*) | |
6971 | LD="${LD-ld} -m elf64_sparc" | |
6972 | ;; | |
6973 | esac | |
6974 | ;; | |
6975 | esac | |
6976 | fi | |
6977 | rm -rf conftest* | |
6978 | ;; | |
6979 | ||
6980 | *-*-sco3.2v5*) | |
6981 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6982 | SAVE_CFLAGS="$CFLAGS" | |
6983 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6985 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 6986 | if ${lt_cv_cc_needs_belf+:} false; then : |
5213506e | 6987 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
6988 | else |
6989 | ac_ext=c | |
6990 | ac_cpp='$CPP $CPPFLAGS' | |
6991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6994 | ||
5213506e | 6995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
6996 | /* end confdefs.h. */ |
6997 | ||
6998 | int | |
6999 | main () | |
7000 | { | |
7001 | ||
7002 | ; | |
7003 | return 0; | |
7004 | } | |
7005 | _ACEOF | |
5213506e | 7006 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
7007 | lt_cv_cc_needs_belf=yes |
7008 | else | |
5213506e | 7009 | lt_cv_cc_needs_belf=no |
1cf3d07d | 7010 | fi |
5213506e RW |
7011 | rm -f core conftest.err conftest.$ac_objext \ |
7012 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
7013 | ac_ext=c |
7014 | ac_cpp='$CPP $CPPFLAGS' | |
7015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7018 | ||
7019 | fi | |
5213506e RW |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7021 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
1cf3d07d SE |
7022 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7023 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7024 | CFLAGS="$SAVE_CFLAGS" | |
7025 | fi | |
7026 | ;; | |
7027 | sparc*-*solaris*) | |
7028 | # Find out which ABI we are using. | |
7029 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 7030 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
7031 | (eval $ac_compile) 2>&5 |
7032 | ac_status=$? | |
5213506e RW |
7033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7034 | test $ac_status = 0; }; then | |
1cf3d07d SE |
7035 | case `/usr/bin/file conftest.o` in |
7036 | *64-bit*) | |
7037 | case $lt_cv_prog_gnu_ld in | |
7038 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6b4a97ed PG |
7039 | *) |
7040 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7041 | LD="${LD-ld} -64" | |
7042 | fi | |
7043 | ;; | |
1cf3d07d SE |
7044 | esac |
7045 | ;; | |
7046 | esac | |
7047 | fi | |
7048 | rm -rf conftest* | |
7049 | ;; | |
7050 | esac | |
7051 | ||
7052 | need_locks="$enable_libtool_lock" | |
7053 | ||
6b4a97ed PG |
7054 | |
7055 | case $host_os in | |
7056 | rhapsody* | darwin*) | |
7057 | if test -n "$ac_tool_prefix"; then | |
7058 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7059 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7061 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7062 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
5213506e | 7063 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 7064 | else |
6b4a97ed PG |
7065 | if test -n "$DSYMUTIL"; then |
7066 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7067 | else | |
7068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7069 | for as_dir in $PATH | |
1cf3d07d | 7070 | do |
6b4a97ed PG |
7071 | IFS=$as_save_IFS |
7072 | test -z "$as_dir" && as_dir=. | |
5213506e | 7073 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7075 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 7076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed | 7077 | break 2 |
1cf3d07d | 7078 | fi |
6b4a97ed | 7079 | done |
5213506e RW |
7080 | done |
7081 | IFS=$as_save_IFS | |
6b4a97ed PG |
7082 | |
7083 | fi | |
7084 | fi | |
7085 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7086 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7088 | $as_echo "$DSYMUTIL" >&6; } | |
6b4a97ed | 7089 | else |
5213506e RW |
7090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7091 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7092 | fi |
7093 | ||
5213506e | 7094 | |
6b4a97ed PG |
7095 | fi |
7096 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7097 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7098 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7099 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7101 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7102 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
5213506e | 7103 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7104 | else |
7105 | if test -n "$ac_ct_DSYMUTIL"; then | |
7106 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7107 | else | |
7108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7109 | for as_dir in $PATH | |
7110 | do | |
7111 | IFS=$as_save_IFS | |
7112 | test -z "$as_dir" && as_dir=. | |
5213506e | 7113 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7115 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 7116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7117 | break 2 |
7118 | fi | |
7119 | done | |
5213506e RW |
7120 | done |
7121 | IFS=$as_save_IFS | |
6b4a97ed | 7122 | |
6b4a97ed PG |
7123 | fi |
7124 | fi | |
7125 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7126 | if test -n "$ac_ct_DSYMUTIL"; then | |
5213506e RW |
7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7128 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6b4a97ed | 7129 | else |
5213506e RW |
7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7131 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7132 | fi |
7133 | ||
5213506e RW |
7134 | if test "x$ac_ct_DSYMUTIL" = x; then |
7135 | DSYMUTIL=":" | |
7136 | else | |
7137 | case $cross_compiling:$ac_tool_warned in | |
7138 | yes:) | |
7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7140 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7141 | ac_tool_warned=yes ;; | |
7142 | esac | |
7143 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7144 | fi | |
6b4a97ed PG |
7145 | else |
7146 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7147 | fi | |
7148 | ||
7149 | if test -n "$ac_tool_prefix"; then | |
7150 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7151 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7153 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7154 | if ${ac_cv_prog_NMEDIT+:} false; then : |
5213506e | 7155 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7156 | else |
7157 | if test -n "$NMEDIT"; then | |
7158 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7159 | else | |
7160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7161 | for as_dir in $PATH | |
7162 | do | |
7163 | IFS=$as_save_IFS | |
7164 | test -z "$as_dir" && as_dir=. | |
5213506e | 7165 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7167 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 7168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7169 | break 2 |
7170 | fi | |
7171 | done | |
5213506e RW |
7172 | done |
7173 | IFS=$as_save_IFS | |
6b4a97ed PG |
7174 | |
7175 | fi | |
7176 | fi | |
7177 | NMEDIT=$ac_cv_prog_NMEDIT | |
7178 | if test -n "$NMEDIT"; then | |
5213506e RW |
7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7180 | $as_echo "$NMEDIT" >&6; } | |
6b4a97ed | 7181 | else |
5213506e RW |
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7183 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7184 | fi |
7185 | ||
5213506e | 7186 | |
6b4a97ed PG |
7187 | fi |
7188 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7189 | ac_ct_NMEDIT=$NMEDIT | |
7190 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7191 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7193 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7194 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
5213506e | 7195 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7196 | else |
7197 | if test -n "$ac_ct_NMEDIT"; then | |
7198 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7199 | else | |
7200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7201 | for as_dir in $PATH | |
7202 | do | |
7203 | IFS=$as_save_IFS | |
7204 | test -z "$as_dir" && as_dir=. | |
5213506e | 7205 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7207 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 7208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7209 | break 2 |
7210 | fi | |
7211 | done | |
5213506e RW |
7212 | done |
7213 | IFS=$as_save_IFS | |
6b4a97ed | 7214 | |
6b4a97ed PG |
7215 | fi |
7216 | fi | |
7217 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7218 | if test -n "$ac_ct_NMEDIT"; then | |
5213506e RW |
7219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7220 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6b4a97ed | 7221 | else |
5213506e RW |
7222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7223 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7224 | fi |
7225 | ||
5213506e RW |
7226 | if test "x$ac_ct_NMEDIT" = x; then |
7227 | NMEDIT=":" | |
7228 | else | |
7229 | case $cross_compiling:$ac_tool_warned in | |
7230 | yes:) | |
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7232 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7233 | ac_tool_warned=yes ;; | |
7234 | esac | |
7235 | NMEDIT=$ac_ct_NMEDIT | |
7236 | fi | |
6b4a97ed PG |
7237 | else |
7238 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7239 | fi | |
7240 | ||
7241 | if test -n "$ac_tool_prefix"; then | |
7242 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7243 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7245 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7246 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 7247 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7248 | else |
7249 | if test -n "$LIPO"; then | |
7250 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7251 | else | |
7252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7253 | for as_dir in $PATH | |
7254 | do | |
7255 | IFS=$as_save_IFS | |
7256 | test -z "$as_dir" && as_dir=. | |
5213506e | 7257 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7258 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7259 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 7260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7261 | break 2 |
7262 | fi | |
7263 | done | |
5213506e RW |
7264 | done |
7265 | IFS=$as_save_IFS | |
6b4a97ed PG |
7266 | |
7267 | fi | |
7268 | fi | |
7269 | LIPO=$ac_cv_prog_LIPO | |
7270 | if test -n "$LIPO"; then | |
5213506e RW |
7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7272 | $as_echo "$LIPO" >&6; } | |
6b4a97ed | 7273 | else |
5213506e RW |
7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7275 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7276 | fi |
7277 | ||
5213506e | 7278 | |
6b4a97ed PG |
7279 | fi |
7280 | if test -z "$ac_cv_prog_LIPO"; then | |
7281 | ac_ct_LIPO=$LIPO | |
7282 | # Extract the first word of "lipo", so it can be a program name with args. | |
7283 | set dummy lipo; ac_word=$2 | |
5213506e RW |
7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7285 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7286 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 7287 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7288 | else |
7289 | if test -n "$ac_ct_LIPO"; then | |
7290 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7291 | else | |
7292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7293 | for as_dir in $PATH | |
7294 | do | |
7295 | IFS=$as_save_IFS | |
7296 | test -z "$as_dir" && as_dir=. | |
5213506e | 7297 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7299 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 7300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7301 | break 2 |
7302 | fi | |
7303 | done | |
5213506e RW |
7304 | done |
7305 | IFS=$as_save_IFS | |
6b4a97ed | 7306 | |
6b4a97ed PG |
7307 | fi |
7308 | fi | |
7309 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7310 | if test -n "$ac_ct_LIPO"; then | |
5213506e RW |
7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7312 | $as_echo "$ac_ct_LIPO" >&6; } | |
6b4a97ed | 7313 | else |
5213506e RW |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7315 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7316 | fi |
7317 | ||
5213506e RW |
7318 | if test "x$ac_ct_LIPO" = x; then |
7319 | LIPO=":" | |
7320 | else | |
7321 | case $cross_compiling:$ac_tool_warned in | |
7322 | yes:) | |
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7324 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7325 | ac_tool_warned=yes ;; | |
7326 | esac | |
7327 | LIPO=$ac_ct_LIPO | |
7328 | fi | |
6b4a97ed PG |
7329 | else |
7330 | LIPO="$ac_cv_prog_LIPO" | |
7331 | fi | |
7332 | ||
7333 | if test -n "$ac_tool_prefix"; then | |
7334 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7335 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5213506e RW |
7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7337 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7338 | if ${ac_cv_prog_OTOOL+:} false; then : |
5213506e | 7339 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7340 | else |
7341 | if test -n "$OTOOL"; then | |
7342 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7343 | else | |
7344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7345 | for as_dir in $PATH | |
7346 | do | |
7347 | IFS=$as_save_IFS | |
7348 | test -z "$as_dir" && as_dir=. | |
5213506e | 7349 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7350 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7351 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
5213506e | 7352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7353 | break 2 |
7354 | fi | |
7355 | done | |
5213506e RW |
7356 | done |
7357 | IFS=$as_save_IFS | |
6b4a97ed PG |
7358 | |
7359 | fi | |
7360 | fi | |
7361 | OTOOL=$ac_cv_prog_OTOOL | |
7362 | if test -n "$OTOOL"; then | |
5213506e RW |
7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7364 | $as_echo "$OTOOL" >&6; } | |
6b4a97ed | 7365 | else |
5213506e RW |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7367 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7368 | fi |
7369 | ||
5213506e | 7370 | |
6b4a97ed PG |
7371 | fi |
7372 | if test -z "$ac_cv_prog_OTOOL"; then | |
7373 | ac_ct_OTOOL=$OTOOL | |
7374 | # Extract the first word of "otool", so it can be a program name with args. | |
7375 | set dummy otool; ac_word=$2 | |
5213506e RW |
7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7377 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7378 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
5213506e | 7379 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7380 | else |
7381 | if test -n "$ac_ct_OTOOL"; then | |
7382 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7383 | else | |
7384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7385 | for as_dir in $PATH | |
7386 | do | |
7387 | IFS=$as_save_IFS | |
7388 | test -z "$as_dir" && as_dir=. | |
5213506e | 7389 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7391 | ac_cv_prog_ac_ct_OTOOL="otool" |
5213506e | 7392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7393 | break 2 |
7394 | fi | |
7395 | done | |
5213506e RW |
7396 | done |
7397 | IFS=$as_save_IFS | |
6b4a97ed | 7398 | |
6b4a97ed PG |
7399 | fi |
7400 | fi | |
7401 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7402 | if test -n "$ac_ct_OTOOL"; then | |
5213506e RW |
7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7404 | $as_echo "$ac_ct_OTOOL" >&6; } | |
6b4a97ed | 7405 | else |
5213506e RW |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7407 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7408 | fi |
7409 | ||
5213506e RW |
7410 | if test "x$ac_ct_OTOOL" = x; then |
7411 | OTOOL=":" | |
7412 | else | |
7413 | case $cross_compiling:$ac_tool_warned in | |
7414 | yes:) | |
7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7416 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7417 | ac_tool_warned=yes ;; | |
7418 | esac | |
7419 | OTOOL=$ac_ct_OTOOL | |
7420 | fi | |
6b4a97ed PG |
7421 | else |
7422 | OTOOL="$ac_cv_prog_OTOOL" | |
7423 | fi | |
7424 | ||
7425 | if test -n "$ac_tool_prefix"; then | |
7426 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7427 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5213506e RW |
7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7429 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7430 | if ${ac_cv_prog_OTOOL64+:} false; then : |
5213506e | 7431 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7432 | else |
7433 | if test -n "$OTOOL64"; then | |
7434 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7435 | else | |
7436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7437 | for as_dir in $PATH | |
7438 | do | |
7439 | IFS=$as_save_IFS | |
7440 | test -z "$as_dir" && as_dir=. | |
5213506e | 7441 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7443 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
5213506e | 7444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7445 | break 2 |
7446 | fi | |
7447 | done | |
5213506e RW |
7448 | done |
7449 | IFS=$as_save_IFS | |
6b4a97ed PG |
7450 | |
7451 | fi | |
7452 | fi | |
7453 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7454 | if test -n "$OTOOL64"; then | |
5213506e RW |
7455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7456 | $as_echo "$OTOOL64" >&6; } | |
6b4a97ed | 7457 | else |
5213506e RW |
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7459 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7460 | fi |
7461 | ||
5213506e | 7462 | |
6b4a97ed PG |
7463 | fi |
7464 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7465 | ac_ct_OTOOL64=$OTOOL64 | |
7466 | # Extract the first word of "otool64", so it can be a program name with args. | |
7467 | set dummy otool64; ac_word=$2 | |
5213506e RW |
7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7469 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7470 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
5213506e | 7471 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7472 | else |
7473 | if test -n "$ac_ct_OTOOL64"; then | |
7474 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7475 | else | |
7476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7477 | for as_dir in $PATH | |
7478 | do | |
7479 | IFS=$as_save_IFS | |
7480 | test -z "$as_dir" && as_dir=. | |
5213506e | 7481 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7482 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7483 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
5213506e | 7484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7485 | break 2 |
7486 | fi | |
7487 | done | |
5213506e RW |
7488 | done |
7489 | IFS=$as_save_IFS | |
6b4a97ed | 7490 | |
6b4a97ed PG |
7491 | fi |
7492 | fi | |
7493 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7494 | if test -n "$ac_ct_OTOOL64"; then | |
5213506e RW |
7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7496 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
6b4a97ed | 7497 | else |
5213506e RW |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7499 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7500 | fi |
7501 | ||
5213506e RW |
7502 | if test "x$ac_ct_OTOOL64" = x; then |
7503 | OTOOL64=":" | |
7504 | else | |
7505 | case $cross_compiling:$ac_tool_warned in | |
7506 | yes:) | |
7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7508 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7509 | ac_tool_warned=yes ;; | |
7510 | esac | |
7511 | OTOOL64=$ac_ct_OTOOL64 | |
7512 | fi | |
6b4a97ed PG |
7513 | else |
7514 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7515 | fi | |
7516 | ||
7517 | ||
7518 | ||
7519 | ||
7520 | ||
7521 | ||
7522 | ||
7523 | ||
7524 | ||
7525 | ||
7526 | ||
7527 | ||
7528 | ||
7529 | ||
7530 | ||
7531 | ||
7532 | ||
7533 | ||
7534 | ||
7535 | ||
7536 | ||
7537 | ||
7538 | ||
7539 | ||
7540 | ||
7541 | ||
7542 | ||
5213506e RW |
7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7544 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 7545 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
5213506e | 7546 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7547 | else |
7548 | lt_cv_apple_cc_single_mod=no | |
7549 | if test -z "${LT_MULTI_MODULE}"; then | |
7550 | # By default we will add the -single_module flag. You can override | |
7551 | # by either setting the environment variable LT_MULTI_MODULE | |
7552 | # non-empty at configure time, or by adding -multi_module to the | |
7553 | # link flags. | |
7554 | rm -rf libconftest.dylib* | |
7555 | echo "int foo(void){return 1;}" > conftest.c | |
7556 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7557 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7558 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7559 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7560 | _lt_result=$? | |
7561 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7562 | lt_cv_apple_cc_single_mod=yes | |
7563 | else | |
7564 | cat conftest.err >&5 | |
7565 | fi | |
7566 | rm -rf libconftest.dylib* | |
7567 | rm -f conftest.* | |
7568 | fi | |
7569 | fi | |
5213506e RW |
7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7571 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7573 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 7574 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
5213506e | 7575 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7576 | else |
7577 | lt_cv_ld_exported_symbols_list=no | |
7578 | save_LDFLAGS=$LDFLAGS | |
7579 | echo "_main" > conftest.sym | |
7580 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5213506e | 7581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6b4a97ed PG |
7582 | /* end confdefs.h. */ |
7583 | ||
7584 | int | |
7585 | main () | |
7586 | { | |
7587 | ||
7588 | ; | |
7589 | return 0; | |
7590 | } | |
7591 | _ACEOF | |
5213506e | 7592 | if ac_fn_c_try_link "$LINENO"; then : |
6b4a97ed PG |
7593 | lt_cv_ld_exported_symbols_list=yes |
7594 | else | |
5213506e | 7595 | lt_cv_ld_exported_symbols_list=no |
6b4a97ed | 7596 | fi |
5213506e RW |
7597 | rm -f core conftest.err conftest.$ac_objext \ |
7598 | conftest$ac_exeext conftest.$ac_ext | |
6b4a97ed PG |
7599 | LDFLAGS="$save_LDFLAGS" |
7600 | ||
7601 | fi | |
5213506e RW |
7602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7603 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
43e02a8a RW |
7604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7605 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 7606 | if ${lt_cv_ld_force_load+:} false; then : |
43e02a8a RW |
7607 | $as_echo_n "(cached) " >&6 |
7608 | else | |
7609 | lt_cv_ld_force_load=no | |
7610 | cat > conftest.c << _LT_EOF | |
7611 | int forced_loaded() { return 2;} | |
7612 | _LT_EOF | |
7613 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7614 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7615 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7616 | $AR cru libconftest.a conftest.o 2>&5 | |
7617 | cat > conftest.c << _LT_EOF | |
7618 | int main() { return 0;} | |
7619 | _LT_EOF | |
7620 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7621 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7622 | _lt_result=$? | |
7623 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7624 | lt_cv_ld_force_load=yes | |
7625 | else | |
7626 | cat conftest.err >&5 | |
7627 | fi | |
7628 | rm -f conftest.err libconftest.a conftest conftest.c | |
7629 | rm -rf conftest.dSYM | |
7630 | ||
7631 | fi | |
7632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7633 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1352bc88 IS |
7634 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
7635 | # build without first building modern cctools / linker. | |
7636 | case $host_cpu-$host_os in | |
7637 | *-rhapsody* | *-darwin1.[012]) | |
6b4a97ed | 7638 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1352bc88 | 7639 | *-darwin1.*) |
6b4a97ed | 7640 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1352bc88 IS |
7641 | *-darwin*) |
7642 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
7643 | # deployment target is forced to an earlier version. | |
7644 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
7645 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
7646 | ;; | |
ebf6d33b | 7647 | 10.[012][,.]*) |
1352bc88 IS |
7648 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7649 | ;; | |
7650 | *) | |
7651 | ;; | |
7652 | esac | |
6b4a97ed PG |
7653 | ;; |
7654 | esac | |
7655 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7656 | _lt_dar_single_mod='$single_module' | |
7657 | fi | |
7658 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7659 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7660 | else | |
7661 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7662 | fi | |
43e02a8a | 7663 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
6b4a97ed PG |
7664 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7665 | else | |
7666 | _lt_dsymutil= | |
7667 | fi | |
7668 | ;; | |
7669 | esac | |
7670 | ||
7671 | ac_ext=c | |
7672 | ac_cpp='$CPP $CPPFLAGS' | |
7673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7677 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6b4a97ed PG |
7678 | # On Suns, sometimes $CPP names a directory. |
7679 | if test -n "$CPP" && test -d "$CPP"; then | |
7680 | CPP= | |
7681 | fi | |
7682 | if test -z "$CPP"; then | |
22e05272 | 7683 | if ${ac_cv_prog_CPP+:} false; then : |
5213506e | 7684 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7685 | else |
7686 | # Double quotes because CPP needs to be expanded | |
7687 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7688 | do | |
7689 | ac_preproc_ok=false | |
7690 | for ac_c_preproc_warn_flag in '' yes | |
7691 | do | |
7692 | # Use a header file that comes with gcc, so configuring glibc | |
7693 | # with a fresh cross-compiler works. | |
7694 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7695 | # <limits.h> exists even on freestanding compilers. | |
7696 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7697 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 7698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6b4a97ed PG |
7699 | /* end confdefs.h. */ |
7700 | #ifdef __STDC__ | |
7701 | # include <limits.h> | |
7702 | #else | |
7703 | # include <assert.h> | |
7704 | #endif | |
7705 | Syntax error | |
7706 | _ACEOF | |
5213506e | 7707 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d | 7708 | |
5213506e | 7709 | else |
1cf3d07d SE |
7710 | # Broken: fails on valid input. |
7711 | continue | |
7712 | fi | |
22e05272 | 7713 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d | 7714 | |
5213506e | 7715 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 7716 | # can be detected and how. |
5213506e | 7717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7718 | /* end confdefs.h. */ |
7719 | #include <ac_nonexistent.h> | |
7720 | _ACEOF | |
5213506e | 7721 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
7722 | # Broken: success on invalid input. |
7723 | continue | |
7724 | else | |
1cf3d07d SE |
7725 | # Passes both tests. |
7726 | ac_preproc_ok=: | |
7727 | break | |
7728 | fi | |
22e05272 | 7729 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d SE |
7730 | |
7731 | done | |
7732 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 7733 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e | 7734 | if $ac_preproc_ok; then : |
1cf3d07d SE |
7735 | break |
7736 | fi | |
7737 | ||
7738 | done | |
7739 | ac_cv_prog_CPP=$CPP | |
7740 | ||
7741 | fi | |
7742 | CPP=$ac_cv_prog_CPP | |
7743 | else | |
7744 | ac_cv_prog_CPP=$CPP | |
7745 | fi | |
5213506e RW |
7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7747 | $as_echo "$CPP" >&6; } | |
1cf3d07d SE |
7748 | ac_preproc_ok=false |
7749 | for ac_c_preproc_warn_flag in '' yes | |
7750 | do | |
7751 | # Use a header file that comes with gcc, so configuring glibc | |
7752 | # with a fresh cross-compiler works. | |
7753 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7754 | # <limits.h> exists even on freestanding compilers. | |
7755 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7756 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 7757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7758 | /* end confdefs.h. */ |
7759 | #ifdef __STDC__ | |
7760 | # include <limits.h> | |
7761 | #else | |
7762 | # include <assert.h> | |
7763 | #endif | |
7764 | Syntax error | |
7765 | _ACEOF | |
5213506e | 7766 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d | 7767 | |
5213506e | 7768 | else |
1cf3d07d SE |
7769 | # Broken: fails on valid input. |
7770 | continue | |
7771 | fi | |
22e05272 | 7772 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d | 7773 | |
5213506e | 7774 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 7775 | # can be detected and how. |
5213506e | 7776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7777 | /* end confdefs.h. */ |
7778 | #include <ac_nonexistent.h> | |
7779 | _ACEOF | |
5213506e | 7780 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
7781 | # Broken: success on invalid input. |
7782 | continue | |
7783 | else | |
1cf3d07d SE |
7784 | # Passes both tests. |
7785 | ac_preproc_ok=: | |
7786 | break | |
7787 | fi | |
22e05272 | 7788 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d SE |
7789 | |
7790 | done | |
7791 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 7792 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e RW |
7793 | if $ac_preproc_ok; then : |
7794 | ||
1cf3d07d | 7795 | else |
5213506e RW |
7796 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7797 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
7798 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7799 | See \`config.log' for more details" "$LINENO" 5; } | |
1cf3d07d SE |
7800 | fi |
7801 | ||
7802 | ac_ext=c | |
7803 | ac_cpp='$CPP $CPPFLAGS' | |
7804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7807 | ||
7808 | ||
5213506e RW |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7810 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 7811 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 7812 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 7813 | else |
5213506e | 7814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7815 | /* end confdefs.h. */ |
7816 | #include <stdlib.h> | |
7817 | #include <stdarg.h> | |
7818 | #include <string.h> | |
7819 | #include <float.h> | |
7820 | ||
7821 | int | |
7822 | main () | |
7823 | { | |
7824 | ||
7825 | ; | |
7826 | return 0; | |
7827 | } | |
7828 | _ACEOF | |
5213506e | 7829 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d SE |
7830 | ac_cv_header_stdc=yes |
7831 | else | |
5213506e | 7832 | ac_cv_header_stdc=no |
1cf3d07d | 7833 | fi |
5213506e | 7834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
7835 | |
7836 | if test $ac_cv_header_stdc = yes; then | |
7837 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5213506e | 7838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7839 | /* end confdefs.h. */ |
7840 | #include <string.h> | |
7841 | ||
7842 | _ACEOF | |
7843 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
7844 | $EGREP "memchr" >/dev/null 2>&1; then : |
7845 | ||
1cf3d07d SE |
7846 | else |
7847 | ac_cv_header_stdc=no | |
7848 | fi | |
7849 | rm -f conftest* | |
7850 | ||
7851 | fi | |
7852 | ||
7853 | if test $ac_cv_header_stdc = yes; then | |
7854 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5213506e | 7855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7856 | /* end confdefs.h. */ |
7857 | #include <stdlib.h> | |
7858 | ||
7859 | _ACEOF | |
7860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
7861 | $EGREP "free" >/dev/null 2>&1; then : |
7862 | ||
1cf3d07d SE |
7863 | else |
7864 | ac_cv_header_stdc=no | |
7865 | fi | |
7866 | rm -f conftest* | |
7867 | ||
7868 | fi | |
7869 | ||
7870 | if test $ac_cv_header_stdc = yes; then | |
7871 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5213506e | 7872 | if test "$cross_compiling" = yes; then : |
1cf3d07d SE |
7873 | : |
7874 | else | |
5213506e | 7875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7876 | /* end confdefs.h. */ |
7877 | #include <ctype.h> | |
5213506e | 7878 | #include <stdlib.h> |
1cf3d07d SE |
7879 | #if ((' ' & 0x0FF) == 0x020) |
7880 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7881 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7882 | #else | |
7883 | # define ISLOWER(c) \ | |
7884 | (('a' <= (c) && (c) <= 'i') \ | |
7885 | || ('j' <= (c) && (c) <= 'r') \ | |
7886 | || ('s' <= (c) && (c) <= 'z')) | |
7887 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7888 | #endif | |
7889 | ||
7890 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7891 | int | |
7892 | main () | |
7893 | { | |
7894 | int i; | |
7895 | for (i = 0; i < 256; i++) | |
7896 | if (XOR (islower (i), ISLOWER (i)) | |
7897 | || toupper (i) != TOUPPER (i)) | |
5213506e RW |
7898 | return 2; |
7899 | return 0; | |
1cf3d07d SE |
7900 | } |
7901 | _ACEOF | |
5213506e | 7902 | if ac_fn_c_try_run "$LINENO"; then : |
1cf3d07d | 7903 | |
5213506e RW |
7904 | else |
7905 | ac_cv_header_stdc=no | |
1cf3d07d | 7906 | fi |
5213506e RW |
7907 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7908 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1cf3d07d | 7909 | fi |
5213506e | 7910 | |
1cf3d07d SE |
7911 | fi |
7912 | fi | |
5213506e RW |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7914 | $as_echo "$ac_cv_header_stdc" >&6; } | |
1cf3d07d SE |
7915 | if test $ac_cv_header_stdc = yes; then |
7916 | ||
5213506e | 7917 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
1cf3d07d SE |
7918 | |
7919 | fi | |
7920 | ||
7921 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
1cf3d07d SE |
7922 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7923 | inttypes.h stdint.h unistd.h | |
5213506e RW |
7924 | do : |
7925 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7926 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7927 | " | |
22e05272 | 7928 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
1cf3d07d | 7929 | cat >>confdefs.h <<_ACEOF |
5213506e | 7930 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1cf3d07d SE |
7931 | _ACEOF |
7932 | ||
7933 | fi | |
7934 | ||
7935 | done | |
7936 | ||
7937 | ||
1cf3d07d | 7938 | for ac_header in dlfcn.h |
5213506e RW |
7939 | do : |
7940 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7941 | " | |
22e05272 | 7942 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
1cf3d07d | 7943 | cat >>confdefs.h <<_ACEOF |
5213506e | 7944 | #define HAVE_DLFCN_H 1 |
1cf3d07d SE |
7945 | _ACEOF |
7946 | ||
7947 | fi | |
7948 | ||
7949 | done | |
7950 | ||
7951 | ||
7952 | ||
43e02a8a RW |
7953 | |
7954 | ||
6b4a97ed PG |
7955 | # Set options |
7956 | ||
7957 | ||
7958 | ||
7959 | enable_dlopen=no | |
7960 | ||
7961 | ||
7962 | enable_win32_dll=no | |
7963 | ||
7964 | ||
5213506e RW |
7965 | # Check whether --enable-shared was given. |
7966 | if test "${enable_shared+set}" = set; then : | |
7967 | enableval=$enable_shared; p=${PACKAGE-default} | |
6b4a97ed PG |
7968 | case $enableval in |
7969 | yes) enable_shared=yes ;; | |
7970 | no) enable_shared=no ;; | |
7971 | *) | |
7972 | enable_shared=no | |
7973 | # Look at the argument we got. We use all the common list separators. | |
7974 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7975 | for pkg in $enableval; do | |
7976 | IFS="$lt_save_ifs" | |
7977 | if test "X$pkg" = "X$p"; then | |
7978 | enable_shared=yes | |
7979 | fi | |
7980 | done | |
7981 | IFS="$lt_save_ifs" | |
7982 | ;; | |
7983 | esac | |
7984 | else | |
7985 | enable_shared=yes | |
5213506e RW |
7986 | fi |
7987 | ||
6b4a97ed PG |
7988 | |
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | ||
7995 | ||
5213506e RW |
7996 | # Check whether --enable-static was given. |
7997 | if test "${enable_static+set}" = set; then : | |
7998 | enableval=$enable_static; p=${PACKAGE-default} | |
6b4a97ed PG |
7999 | case $enableval in |
8000 | yes) enable_static=yes ;; | |
8001 | no) enable_static=no ;; | |
8002 | *) | |
8003 | enable_static=no | |
8004 | # Look at the argument we got. We use all the common list separators. | |
8005 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8006 | for pkg in $enableval; do | |
8007 | IFS="$lt_save_ifs" | |
8008 | if test "X$pkg" = "X$p"; then | |
8009 | enable_static=yes | |
8010 | fi | |
8011 | done | |
8012 | IFS="$lt_save_ifs" | |
8013 | ;; | |
8014 | esac | |
8015 | else | |
8016 | enable_static=yes | |
5213506e RW |
8017 | fi |
8018 | ||
6b4a97ed PG |
8019 | |
8020 | ||
8021 | ||
8022 | ||
8023 | ||
8024 | ||
8025 | ||
8026 | ||
8027 | ||
5213506e RW |
8028 | # Check whether --with-pic was given. |
8029 | if test "${with_pic+set}" = set; then : | |
8030 | withval=$with_pic; pic_mode="$withval" | |
6b4a97ed PG |
8031 | else |
8032 | pic_mode=default | |
5213506e RW |
8033 | fi |
8034 | ||
6b4a97ed PG |
8035 | |
8036 | test -z "$pic_mode" && pic_mode=default | |
8037 | ||
8038 | ||
8039 | ||
8040 | ||
8041 | ||
8042 | ||
8043 | ||
5213506e RW |
8044 | # Check whether --enable-fast-install was given. |
8045 | if test "${enable_fast_install+set}" = set; then : | |
8046 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6b4a97ed PG |
8047 | case $enableval in |
8048 | yes) enable_fast_install=yes ;; | |
8049 | no) enable_fast_install=no ;; | |
8050 | *) | |
8051 | enable_fast_install=no | |
8052 | # Look at the argument we got. We use all the common list separators. | |
8053 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8054 | for pkg in $enableval; do | |
8055 | IFS="$lt_save_ifs" | |
8056 | if test "X$pkg" = "X$p"; then | |
8057 | enable_fast_install=yes | |
8058 | fi | |
8059 | done | |
8060 | IFS="$lt_save_ifs" | |
8061 | ;; | |
8062 | esac | |
8063 | else | |
8064 | enable_fast_install=yes | |
5213506e RW |
8065 | fi |
8066 | ||
6b4a97ed PG |
8067 | |
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
1cf3d07d SE |
8077 | # This can be used to rebuild libtool when needed |
8078 | LIBTOOL_DEPS="$ltmain" | |
8079 | ||
8080 | # Always use our own libtool. | |
8081 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
8091 | ||
8092 | ||
8093 | ||
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
43e02a8a | 8105 | |
1cf3d07d SE |
8106 | |
8107 | ||
8108 | test -z "$LN_S" && LN_S="ln -s" | |
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | ||
8119 | ||
8120 | ||
8121 | ||
8122 | ||
8123 | if test -n "${ZSH_VERSION+set}" ; then | |
8124 | setopt NO_GLOB_SUBST | |
8125 | fi | |
8126 | ||
5213506e RW |
8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8128 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 8129 | if ${lt_cv_objdir+:} false; then : |
5213506e | 8130 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8131 | else |
8132 | rm -f .libs 2>/dev/null | |
8133 | mkdir .libs 2>/dev/null | |
8134 | if test -d .libs; then | |
8135 | lt_cv_objdir=.libs | |
8136 | else | |
8137 | # MS-DOS does not allow filenames that begin with a dot. | |
8138 | lt_cv_objdir=_libs | |
8139 | fi | |
8140 | rmdir .libs 2>/dev/null | |
8141 | fi | |
5213506e RW |
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8143 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
8144 | objdir=$lt_cv_objdir |
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | cat >>confdefs.h <<_ACEOF | |
8151 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8152 | _ACEOF | |
8153 | ||
8154 | ||
8155 | ||
8156 | ||
1cf3d07d SE |
8157 | case $host_os in |
8158 | aix3*) | |
8159 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8160 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8161 | # vanish in a puff of smoke. | |
8162 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8163 | COLLECT_NAMES= | |
8164 | export COLLECT_NAMES | |
8165 | fi | |
8166 | ;; | |
8167 | esac | |
8168 | ||
1cf3d07d SE |
8169 | # Global variables: |
8170 | ofile=libtool | |
8171 | can_build_shared=yes | |
8172 | ||
8173 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8174 | # which needs '.lib'). | |
8175 | libext=a | |
8176 | ||
8177 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8178 | ||
8179 | old_CC="$CC" | |
8180 | old_CFLAGS="$CFLAGS" | |
8181 | ||
8182 | # Set sane defaults for various variables | |
8183 | test -z "$CC" && CC=cc | |
8184 | test -z "$LTCC" && LTCC=$CC | |
8185 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8186 | test -z "$LD" && LD=ld | |
8187 | test -z "$ac_objext" && ac_objext=o | |
8188 | ||
8189 | for cc_temp in $compiler""; do | |
8190 | case $cc_temp in | |
8191 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8192 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8193 | \-*) ;; | |
8194 | *) break;; | |
8195 | esac | |
8196 | done | |
43e02a8a | 8197 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
8198 | |
8199 | ||
8200 | # Only perform the check for file, if the check method requires it | |
8201 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8202 | case $deplibs_check_method in | |
8203 | file_magic*) | |
8204 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8206 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 8207 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 8208 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8209 | else |
8210 | case $MAGIC_CMD in | |
8211 | [\\/*] | ?:[\\/]*) | |
8212 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8213 | ;; | |
8214 | *) | |
8215 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8216 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8217 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8218 | for ac_dir in $ac_dummy; do | |
8219 | IFS="$lt_save_ifs" | |
8220 | test -z "$ac_dir" && ac_dir=. | |
8221 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8222 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8223 | if test -n "$file_magic_test_file"; then | |
8224 | case $deplibs_check_method in | |
8225 | "file_magic "*) | |
8226 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8227 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8228 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8229 | $EGREP "$file_magic_regex" > /dev/null; then | |
8230 | : | |
8231 | else | |
8232 | cat <<_LT_EOF 1>&2 | |
8233 | ||
8234 | *** Warning: the command libtool uses to detect shared libraries, | |
8235 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8236 | *** The result is that libtool may fail to recognize shared libraries | |
8237 | *** as such. This will affect the creation of libtool libraries that | |
8238 | *** depend on shared libraries, but programs linked with such libtool | |
8239 | *** libraries will work regardless of this problem. Nevertheless, you | |
8240 | *** may want to report the problem to your system manager and/or to | |
8241 | *** bug-libtool@gnu.org | |
8242 | ||
8243 | _LT_EOF | |
8244 | fi ;; | |
8245 | esac | |
8246 | fi | |
8247 | break | |
8248 | fi | |
8249 | done | |
8250 | IFS="$lt_save_ifs" | |
8251 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8252 | ;; | |
8253 | esac | |
8254 | fi | |
8255 | ||
8256 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8257 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8259 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 8260 | else |
5213506e RW |
8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8262 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8263 | fi |
8264 | ||
8265 | ||
8266 | ||
8267 | ||
8268 | ||
8269 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8270 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8272 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 8273 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 8274 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8275 | else |
8276 | case $MAGIC_CMD in | |
8277 | [\\/*] | ?:[\\/]*) | |
8278 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8279 | ;; | |
8280 | *) | |
8281 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8282 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8283 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8284 | for ac_dir in $ac_dummy; do | |
8285 | IFS="$lt_save_ifs" | |
8286 | test -z "$ac_dir" && ac_dir=. | |
8287 | if test -f $ac_dir/file; then | |
8288 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8289 | if test -n "$file_magic_test_file"; then | |
8290 | case $deplibs_check_method in | |
8291 | "file_magic "*) | |
8292 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8293 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8294 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8295 | $EGREP "$file_magic_regex" > /dev/null; then | |
8296 | : | |
8297 | else | |
8298 | cat <<_LT_EOF 1>&2 | |
8299 | ||
8300 | *** Warning: the command libtool uses to detect shared libraries, | |
8301 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8302 | *** The result is that libtool may fail to recognize shared libraries | |
8303 | *** as such. This will affect the creation of libtool libraries that | |
8304 | *** depend on shared libraries, but programs linked with such libtool | |
8305 | *** libraries will work regardless of this problem. Nevertheless, you | |
8306 | *** may want to report the problem to your system manager and/or to | |
8307 | *** bug-libtool@gnu.org | |
8308 | ||
8309 | _LT_EOF | |
8310 | fi ;; | |
8311 | esac | |
8312 | fi | |
8313 | break | |
8314 | fi | |
8315 | done | |
8316 | IFS="$lt_save_ifs" | |
8317 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8318 | ;; | |
8319 | esac | |
8320 | fi | |
8321 | ||
8322 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8323 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8325 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 8326 | else |
5213506e RW |
8327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8328 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8329 | fi |
8330 | ||
8331 | ||
8332 | else | |
8333 | MAGIC_CMD=: | |
8334 | fi | |
8335 | fi | |
8336 | ||
8337 | fi | |
8338 | ;; | |
8339 | esac | |
8340 | ||
8341 | # Use C for the default configuration in the libtool script | |
8342 | ||
8343 | lt_save_CC="$CC" | |
8344 | ac_ext=c | |
8345 | ac_cpp='$CPP $CPPFLAGS' | |
8346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8349 | ||
8350 | ||
8351 | # Source file extension for C test sources. | |
8352 | ac_ext=c | |
8353 | ||
8354 | # Object file extension for compiled C test sources. | |
8355 | objext=o | |
8356 | objext=$objext | |
8357 | ||
8358 | # Code to be used in simple compile tests | |
8359 | lt_simple_compile_test_code="int some_variable = 0;" | |
8360 | ||
8361 | # Code to be used in simple link tests | |
8362 | lt_simple_link_test_code='int main(){return(0);}' | |
8363 | ||
8364 | ||
8365 | ||
8366 | ||
8367 | ||
8368 | ||
8369 | ||
8370 | # If no C compiler was specified, use CC. | |
8371 | LTCC=${LTCC-"$CC"} | |
8372 | ||
8373 | # If no C compiler flags were specified, use CFLAGS. | |
8374 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8375 | ||
8376 | # Allow CC to be a program name with arguments. | |
8377 | compiler=$CC | |
8378 | ||
8379 | # Save the default compiler, since it gets overwritten when the other | |
8380 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8381 | compiler_DEFAULT=$CC | |
8382 | ||
8383 | # save warnings/boilerplate of simple test code | |
8384 | ac_outfile=conftest.$ac_objext | |
8385 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8386 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8387 | _lt_compiler_boilerplate=`cat conftest.err` | |
8388 | $RM conftest* | |
8389 | ||
8390 | ac_outfile=conftest.$ac_objext | |
8391 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8392 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8393 | _lt_linker_boilerplate=`cat conftest.err` | |
6b4a97ed | 8394 | $RM -r conftest* |
1cf3d07d SE |
8395 | |
8396 | ||
8397 | ## CAVEAT EMPTOR: | |
8398 | ## There is no encapsulation within the following macros, do not change | |
8399 | ## the running order or otherwise move them around unless you know exactly | |
8400 | ## what you are doing... | |
8401 | if test -n "$compiler"; then | |
8402 | ||
8403 | lt_prog_compiler_no_builtin_flag= | |
8404 | ||
8405 | if test "$GCC" = yes; then | |
43e02a8a RW |
8406 | case $cc_basename in |
8407 | nvcc*) | |
8408 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8409 | *) | |
8410 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8411 | esac | |
1cf3d07d | 8412 | |
5213506e RW |
8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8414 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 8415 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
5213506e | 8416 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8417 | else |
8418 | lt_cv_prog_compiler_rtti_exceptions=no | |
8419 | ac_outfile=conftest.$ac_objext | |
8420 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8421 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8422 | # Insert the option either (1) after the last *FLAGS variable, or | |
8423 | # (2) before a word containing "conftest.", or (3) at the end. | |
8424 | # Note that $ac_compile itself does not contain backslashes and begins | |
8425 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8426 | # The option is referenced via a variable to avoid confusing sed. | |
8427 | lt_compile=`echo "$ac_compile" | $SED \ | |
8428 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8429 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8430 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8431 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8432 | (eval "$lt_compile" 2>conftest.err) |
8433 | ac_status=$? | |
8434 | cat conftest.err >&5 | |
43e02a8a | 8435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8436 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8437 | # The compiler can only warn and ignore the option if not recognized | |
8438 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 8439 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
8440 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8441 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8442 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8443 | fi | |
8444 | fi | |
8445 | $RM conftest* | |
8446 | ||
8447 | fi | |
5213506e RW |
8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8449 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
8450 | |
8451 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8452 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8453 | else | |
8454 | : | |
8455 | fi | |
8456 | ||
8457 | fi | |
8458 | ||
8459 | ||
8460 | ||
8461 | ||
8462 | ||
8463 | ||
8464 | lt_prog_compiler_wl= | |
8465 | lt_prog_compiler_pic= | |
8466 | lt_prog_compiler_static= | |
8467 | ||
5213506e RW |
8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8469 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
8470 | |
8471 | if test "$GCC" = yes; then | |
8472 | lt_prog_compiler_wl='-Wl,' | |
8473 | lt_prog_compiler_static='-static' | |
8474 | ||
8475 | case $host_os in | |
8476 | aix*) | |
8477 | # All AIX code is PIC. | |
8478 | if test "$host_cpu" = ia64; then | |
8479 | # AIX 5 now supports IA64 processor | |
8480 | lt_prog_compiler_static='-Bstatic' | |
8481 | fi | |
6608378b | 8482 | lt_prog_compiler_pic='-fPIC' |
1cf3d07d SE |
8483 | ;; |
8484 | ||
8485 | amigaos*) | |
6b4a97ed PG |
8486 | case $host_cpu in |
8487 | powerpc) | |
8488 | # see comment about AmigaOS4 .so support | |
8489 | lt_prog_compiler_pic='-fPIC' | |
8490 | ;; | |
8491 | m68k) | |
8492 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8493 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8494 | # like `-m68040'. | |
8495 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8496 | ;; | |
8497 | esac | |
1cf3d07d SE |
8498 | ;; |
8499 | ||
8500 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8501 | # PIC is the default for these OSes. | |
8502 | ;; | |
8503 | ||
6b4a97ed | 8504 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
8505 | # This hack is so that the source file can tell whether it is being |
8506 | # built for inclusion in a dll (and should export symbols for example). | |
8507 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8508 | # (--disable-auto-import) libraries | |
8509 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8510 | ;; | |
8511 | ||
8512 | darwin* | rhapsody*) | |
8513 | # PIC is the default on this platform | |
8514 | # Common symbols not allowed in MH_DYLIB files | |
8515 | lt_prog_compiler_pic='-fno-common' | |
8516 | ;; | |
8517 | ||
43e02a8a RW |
8518 | haiku*) |
8519 | # PIC is the default for Haiku. | |
8520 | # The "-static" flag exists, but is broken. | |
8521 | lt_prog_compiler_static= | |
8522 | ;; | |
8523 | ||
1cf3d07d | 8524 | hpux*) |
6b4a97ed PG |
8525 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8526 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8527 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 8528 | case $host_cpu in |
6b4a97ed | 8529 | hppa*64*) |
1cf3d07d SE |
8530 | # +Z the default |
8531 | ;; | |
8532 | *) | |
8533 | lt_prog_compiler_pic='-fPIC' | |
8534 | ;; | |
8535 | esac | |
8536 | ;; | |
8537 | ||
8538 | interix[3-9]*) | |
8539 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8540 | # Instead, we relocate shared libraries at runtime. | |
8541 | ;; | |
8542 | ||
8543 | msdosdjgpp*) | |
8544 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8545 | # on systems that don't support them. | |
8546 | lt_prog_compiler_can_build_shared=no | |
8547 | enable_shared=no | |
8548 | ;; | |
8549 | ||
8550 | *nto* | *qnx*) | |
8551 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8552 | # it will coredump. | |
8553 | lt_prog_compiler_pic='-fPIC -shared' | |
8554 | ;; | |
8555 | ||
8556 | sysv4*MP*) | |
8557 | if test -d /usr/nec; then | |
8558 | lt_prog_compiler_pic=-Kconform_pic | |
8559 | fi | |
8560 | ;; | |
8561 | ||
8562 | *) | |
8563 | lt_prog_compiler_pic='-fPIC' | |
8564 | ;; | |
8565 | esac | |
43e02a8a RW |
8566 | |
8567 | case $cc_basename in | |
8568 | nvcc*) # Cuda Compiler Driver 2.2 | |
8569 | lt_prog_compiler_wl='-Xlinker ' | |
8570 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8571 | ;; | |
8572 | esac | |
1cf3d07d SE |
8573 | else |
8574 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8575 | case $host_os in | |
8576 | aix*) | |
8577 | lt_prog_compiler_wl='-Wl,' | |
8578 | if test "$host_cpu" = ia64; then | |
8579 | # AIX 5 now supports IA64 processor | |
8580 | lt_prog_compiler_static='-Bstatic' | |
8581 | else | |
8582 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8583 | fi | |
8584 | ;; | |
1cf3d07d | 8585 | |
6b4a97ed | 8586 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
8587 | # This hack is so that the source file can tell whether it is being |
8588 | # built for inclusion in a dll (and should export symbols for example). | |
8589 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8590 | ;; | |
8591 | ||
8592 | hpux9* | hpux10* | hpux11*) | |
8593 | lt_prog_compiler_wl='-Wl,' | |
8594 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8595 | # not for PA HP-UX. | |
8596 | case $host_cpu in | |
8597 | hppa*64*|ia64*) | |
8598 | # +Z the default | |
8599 | ;; | |
8600 | *) | |
8601 | lt_prog_compiler_pic='+Z' | |
8602 | ;; | |
8603 | esac | |
8604 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8605 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8606 | ;; | |
8607 | ||
8608 | irix5* | irix6* | nonstopux*) | |
8609 | lt_prog_compiler_wl='-Wl,' | |
8610 | # PIC (with -KPIC) is the default. | |
8611 | lt_prog_compiler_static='-non_shared' | |
8612 | ;; | |
8613 | ||
7a9d3fe8 | 8614 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 8615 | case $cc_basename in |
6b4a97ed PG |
8616 | # old Intel for x86_64 which still supported -KPIC. |
8617 | ecc*) | |
1cf3d07d SE |
8618 | lt_prog_compiler_wl='-Wl,' |
8619 | lt_prog_compiler_pic='-KPIC' | |
8620 | lt_prog_compiler_static='-static' | |
8621 | ;; | |
6b4a97ed PG |
8622 | # icc used to be incompatible with GCC. |
8623 | # ICC 10 doesn't accept -KPIC any more. | |
8624 | icc* | ifort*) | |
8625 | lt_prog_compiler_wl='-Wl,' | |
8626 | lt_prog_compiler_pic='-fPIC' | |
8627 | lt_prog_compiler_static='-static' | |
8628 | ;; | |
8629 | # Lahey Fortran 8.1. | |
8630 | lf95*) | |
8631 | lt_prog_compiler_wl='-Wl,' | |
8632 | lt_prog_compiler_pic='--shared' | |
8633 | lt_prog_compiler_static='--static' | |
8634 | ;; | |
43e02a8a | 8635 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
8636 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8637 | # which looks to be a dead project) | |
8638 | lt_prog_compiler_wl='-Wl,' | |
8639 | lt_prog_compiler_pic='-fpic' | |
8640 | lt_prog_compiler_static='-Bstatic' | |
8641 | ;; | |
8642 | ccc*) | |
8643 | lt_prog_compiler_wl='-Wl,' | |
8644 | # All Alpha code is PIC. | |
8645 | lt_prog_compiler_static='-non_shared' | |
8646 | ;; | |
43e02a8a RW |
8647 | xl* | bgxl* | bgf* | mpixl*) |
8648 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
6b4a97ed PG |
8649 | lt_prog_compiler_wl='-Wl,' |
8650 | lt_prog_compiler_pic='-qpic' | |
8651 | lt_prog_compiler_static='-qstaticlink' | |
8652 | ;; | |
1cf3d07d SE |
8653 | *) |
8654 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
8655 | *Sun\ F* | *Sun*Fortran*) |
8656 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
8657 | lt_prog_compiler_pic='-KPIC' |
8658 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 8659 | lt_prog_compiler_wl='' |
1cf3d07d | 8660 | ;; |
43e02a8a RW |
8661 | *Sun\ C*) |
8662 | # Sun C 5.9 | |
1cf3d07d SE |
8663 | lt_prog_compiler_pic='-KPIC' |
8664 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 8665 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
8666 | ;; |
8667 | esac | |
8668 | ;; | |
8669 | esac | |
8670 | ;; | |
8671 | ||
8672 | newsos6) | |
8673 | lt_prog_compiler_pic='-KPIC' | |
8674 | lt_prog_compiler_static='-Bstatic' | |
8675 | ;; | |
8676 | ||
8677 | *nto* | *qnx*) | |
8678 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8679 | # it will coredump. | |
8680 | lt_prog_compiler_pic='-fPIC -shared' | |
8681 | ;; | |
8682 | ||
8683 | osf3* | osf4* | osf5*) | |
8684 | lt_prog_compiler_wl='-Wl,' | |
8685 | # All OSF/1 code is PIC. | |
8686 | lt_prog_compiler_static='-non_shared' | |
8687 | ;; | |
8688 | ||
8689 | rdos*) | |
8690 | lt_prog_compiler_static='-non_shared' | |
8691 | ;; | |
8692 | ||
8693 | solaris*) | |
8694 | lt_prog_compiler_pic='-KPIC' | |
8695 | lt_prog_compiler_static='-Bstatic' | |
8696 | case $cc_basename in | |
8697 | f77* | f90* | f95*) | |
8698 | lt_prog_compiler_wl='-Qoption ld ';; | |
8699 | *) | |
8700 | lt_prog_compiler_wl='-Wl,';; | |
8701 | esac | |
8702 | ;; | |
8703 | ||
8704 | sunos4*) | |
8705 | lt_prog_compiler_wl='-Qoption ld ' | |
8706 | lt_prog_compiler_pic='-PIC' | |
8707 | lt_prog_compiler_static='-Bstatic' | |
8708 | ;; | |
8709 | ||
8710 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8711 | lt_prog_compiler_wl='-Wl,' | |
8712 | lt_prog_compiler_pic='-KPIC' | |
8713 | lt_prog_compiler_static='-Bstatic' | |
8714 | ;; | |
8715 | ||
8716 | sysv4*MP*) | |
8717 | if test -d /usr/nec ;then | |
8718 | lt_prog_compiler_pic='-Kconform_pic' | |
8719 | lt_prog_compiler_static='-Bstatic' | |
8720 | fi | |
8721 | ;; | |
8722 | ||
8723 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8724 | lt_prog_compiler_wl='-Wl,' | |
8725 | lt_prog_compiler_pic='-KPIC' | |
8726 | lt_prog_compiler_static='-Bstatic' | |
8727 | ;; | |
8728 | ||
8729 | unicos*) | |
8730 | lt_prog_compiler_wl='-Wl,' | |
8731 | lt_prog_compiler_can_build_shared=no | |
8732 | ;; | |
8733 | ||
8734 | uts4*) | |
8735 | lt_prog_compiler_pic='-pic' | |
8736 | lt_prog_compiler_static='-Bstatic' | |
8737 | ;; | |
8738 | ||
8739 | *) | |
8740 | lt_prog_compiler_can_build_shared=no | |
8741 | ;; | |
8742 | esac | |
8743 | fi | |
8744 | ||
8745 | case $host_os in | |
8746 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8747 | *djgpp*) | |
8748 | lt_prog_compiler_pic= | |
8749 | ;; | |
8750 | *) | |
8751 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8752 | ;; | |
8753 | esac | |
5213506e RW |
8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8755 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
8756 | |
8757 | ||
8758 | ||
8759 | ||
8760 | ||
8761 | ||
8762 | # | |
8763 | # Check to make sure the PIC flag actually works. | |
8764 | # | |
8765 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8767 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 8768 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
5213506e | 8769 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8770 | else |
6b4a97ed | 8771 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
8772 | ac_outfile=conftest.$ac_objext |
8773 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8774 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8775 | # Insert the option either (1) after the last *FLAGS variable, or | |
8776 | # (2) before a word containing "conftest.", or (3) at the end. | |
8777 | # Note that $ac_compile itself does not contain backslashes and begins | |
8778 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8779 | # The option is referenced via a variable to avoid confusing sed. | |
8780 | lt_compile=`echo "$ac_compile" | $SED \ | |
8781 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8782 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8783 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8784 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8785 | (eval "$lt_compile" 2>conftest.err) |
8786 | ac_status=$? | |
8787 | cat conftest.err >&5 | |
43e02a8a | 8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8789 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8790 | # The compiler can only warn and ignore the option if not recognized | |
8791 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 8792 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
8793 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8794 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 8795 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
8796 | fi |
8797 | fi | |
8798 | $RM conftest* | |
8799 | ||
8800 | fi | |
5213506e RW |
8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8802 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 8803 | |
6b4a97ed | 8804 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
8805 | case $lt_prog_compiler_pic in |
8806 | "" | " "*) ;; | |
8807 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8808 | esac | |
8809 | else | |
8810 | lt_prog_compiler_pic= | |
8811 | lt_prog_compiler_can_build_shared=no | |
8812 | fi | |
8813 | ||
8814 | fi | |
8815 | ||
8816 | ||
8817 | ||
8818 | ||
8819 | ||
8820 | ||
8821 | # | |
8822 | # Check to make sure the static flag actually works. | |
8823 | # | |
8824 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8826 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 8827 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
5213506e | 8828 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8829 | else |
6b4a97ed | 8830 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
8831 | save_LDFLAGS="$LDFLAGS" |
8832 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8833 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8834 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8835 | # The linker can only warn and ignore the option if not recognized | |
8836 | # So say no if there are warnings | |
8837 | if test -s conftest.err; then | |
8838 | # Append any errors to the config.log. | |
8839 | cat conftest.err 1>&5 | |
43e02a8a | 8840 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
8841 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8842 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 8843 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8844 | fi |
8845 | else | |
6b4a97ed | 8846 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8847 | fi |
8848 | fi | |
6b4a97ed | 8849 | $RM -r conftest* |
1cf3d07d SE |
8850 | LDFLAGS="$save_LDFLAGS" |
8851 | ||
8852 | fi | |
5213506e RW |
8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8854 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 8855 | |
6b4a97ed | 8856 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
8857 | : |
8858 | else | |
8859 | lt_prog_compiler_static= | |
8860 | fi | |
8861 | ||
8862 | ||
8863 | ||
8864 | ||
8865 | ||
8866 | ||
8867 | ||
5213506e RW |
8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8869 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8870 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 8871 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8872 | else |
8873 | lt_cv_prog_compiler_c_o=no | |
8874 | $RM -r conftest 2>/dev/null | |
8875 | mkdir conftest | |
8876 | cd conftest | |
8877 | mkdir out | |
8878 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8879 | ||
8880 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8881 | # Insert the option either (1) after the last *FLAGS variable, or | |
8882 | # (2) before a word containing "conftest.", or (3) at the end. | |
8883 | # Note that $ac_compile itself does not contain backslashes and begins | |
8884 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8885 | lt_compile=`echo "$ac_compile" | $SED \ | |
8886 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8887 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8888 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8889 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8890 | (eval "$lt_compile" 2>out/conftest.err) |
8891 | ac_status=$? | |
8892 | cat out/conftest.err >&5 | |
43e02a8a | 8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8894 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8895 | then | |
8896 | # The compiler can only warn and ignore the option if not recognized | |
8897 | # So say no if there are warnings | |
43e02a8a | 8898 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
8899 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8900 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8901 | lt_cv_prog_compiler_c_o=yes | |
8902 | fi | |
8903 | fi | |
8904 | chmod u+w . 2>&5 | |
8905 | $RM conftest* | |
8906 | # SGI C++ compiler will create directory out/ii_files/ for | |
8907 | # template instantiation | |
8908 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8909 | $RM out/* && rmdir out | |
8910 | cd .. | |
8911 | $RM -r conftest | |
8912 | $RM conftest* | |
8913 | ||
8914 | fi | |
5213506e RW |
8915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8916 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8917 | |
8918 | ||
8919 | ||
8920 | ||
8921 | ||
8922 | ||
5213506e RW |
8923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8924 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8925 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 8926 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8927 | else |
8928 | lt_cv_prog_compiler_c_o=no | |
8929 | $RM -r conftest 2>/dev/null | |
8930 | mkdir conftest | |
8931 | cd conftest | |
8932 | mkdir out | |
8933 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8934 | ||
8935 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8936 | # Insert the option either (1) after the last *FLAGS variable, or | |
8937 | # (2) before a word containing "conftest.", or (3) at the end. | |
8938 | # Note that $ac_compile itself does not contain backslashes and begins | |
8939 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8940 | lt_compile=`echo "$ac_compile" | $SED \ | |
8941 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8942 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8943 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8944 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8945 | (eval "$lt_compile" 2>out/conftest.err) |
8946 | ac_status=$? | |
8947 | cat out/conftest.err >&5 | |
43e02a8a | 8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8949 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8950 | then | |
8951 | # The compiler can only warn and ignore the option if not recognized | |
8952 | # So say no if there are warnings | |
43e02a8a | 8953 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
8954 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8955 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8956 | lt_cv_prog_compiler_c_o=yes | |
8957 | fi | |
8958 | fi | |
8959 | chmod u+w . 2>&5 | |
8960 | $RM conftest* | |
8961 | # SGI C++ compiler will create directory out/ii_files/ for | |
8962 | # template instantiation | |
8963 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8964 | $RM out/* && rmdir out | |
8965 | cd .. | |
8966 | $RM -r conftest | |
8967 | $RM conftest* | |
8968 | ||
8969 | fi | |
5213506e RW |
8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8971 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8972 | |
8973 | ||
8974 | ||
8975 | ||
8976 | hard_links="nottested" | |
8977 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8978 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8980 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
8981 | hard_links=yes |
8982 | $RM conftest* | |
8983 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8984 | touch conftest.a | |
8985 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8986 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8988 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 8989 | if test "$hard_links" = no; then |
5213506e RW |
8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8991 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
8992 | need_locks=warn |
8993 | fi | |
8994 | else | |
8995 | need_locks=no | |
8996 | fi | |
8997 | ||
8998 | ||
8999 | ||
9000 | ||
9001 | ||
9002 | ||
5213506e RW |
9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9004 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
9005 | |
9006 | runpath_var= | |
9007 | allow_undefined_flag= | |
9008 | always_export_symbols=no | |
9009 | archive_cmds= | |
9010 | archive_expsym_cmds= | |
9011 | compiler_needs_object=no | |
9012 | enable_shared_with_static_runtimes=no | |
9013 | export_dynamic_flag_spec= | |
9014 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9015 | hardcode_automatic=no | |
9016 | hardcode_direct=no | |
9017 | hardcode_direct_absolute=no | |
9018 | hardcode_libdir_flag_spec= | |
9019 | hardcode_libdir_flag_spec_ld= | |
9020 | hardcode_libdir_separator= | |
9021 | hardcode_minus_L=no | |
9022 | hardcode_shlibpath_var=unsupported | |
9023 | inherit_rpath=no | |
9024 | link_all_deplibs=unknown | |
9025 | module_cmds= | |
9026 | module_expsym_cmds= | |
9027 | old_archive_from_new_cmds= | |
9028 | old_archive_from_expsyms_cmds= | |
9029 | thread_safe_flag_spec= | |
9030 | whole_archive_flag_spec= | |
9031 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9032 | # included in the symbol list | |
9033 | include_expsyms= | |
9034 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9035 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9036 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9037 | # as well as any symbol that contains `d'. | |
6b4a97ed | 9038 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
9039 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9040 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9041 | # the symbol is explicitly referenced. Since portable code cannot | |
9042 | # rely on this symbol name, it's probably fine to never include it in | |
9043 | # preloaded symbol tables. | |
6b4a97ed | 9044 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
9045 | extract_expsyms_cmds= |
9046 | ||
9047 | case $host_os in | |
6b4a97ed | 9048 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9049 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9050 | # When not using gcc, we currently assume that we are using | |
9051 | # Microsoft Visual C++. | |
9052 | if test "$GCC" != yes; then | |
9053 | with_gnu_ld=no | |
9054 | fi | |
9055 | ;; | |
9056 | interix*) | |
9057 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9058 | with_gnu_ld=yes | |
9059 | ;; | |
9060 | openbsd*) | |
9061 | with_gnu_ld=no | |
9062 | ;; | |
9063 | esac | |
9064 | ||
9065 | ld_shlibs=yes | |
43e02a8a RW |
9066 | |
9067 | # On some targets, GNU ld is compatible enough with the native linker | |
9068 | # that we're better off using the native interface for both. | |
9069 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 9070 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
9071 | case $host_os in |
9072 | aix*) | |
9073 | # The AIX port of GNU ld has always aspired to compatibility | |
9074 | # with the native linker. However, as the warning in the GNU ld | |
9075 | # block says, versions before 2.19.5* couldn't really create working | |
9076 | # shared libraries, regardless of the interface used. | |
9077 | case `$LD -v 2>&1` in | |
9078 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9079 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9080 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9081 | *) | |
9082 | lt_use_gnu_ld_interface=yes | |
9083 | ;; | |
9084 | esac | |
9085 | ;; | |
9086 | *) | |
9087 | lt_use_gnu_ld_interface=yes | |
9088 | ;; | |
9089 | esac | |
9090 | fi | |
9091 | ||
9092 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
9093 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9094 | wlarc='${wl}' | |
9095 | ||
9096 | # Set some defaults for GNU ld with shared library support. These | |
9097 | # are reset later if shared libraries are not supported. Putting them | |
9098 | # here allows them to be overridden if necessary. | |
9099 | runpath_var=LD_RUN_PATH | |
9100 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9101 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9102 | # ancient GNU ld didn't support --whole-archive et. al. | |
9103 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9104 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9105 | else | |
9106 | whole_archive_flag_spec= | |
9107 | fi | |
9108 | supports_anon_versioning=no | |
9109 | case `$LD -v 2>&1` in | |
43e02a8a | 9110 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
9111 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9112 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9113 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9114 | *\ 2.11.*) ;; # other 2.11 versions | |
9115 | *) supports_anon_versioning=yes ;; | |
9116 | esac | |
9117 | ||
9118 | # See if GNU ld supports shared libraries. | |
9119 | case $host_os in | |
d653fdfb | 9120 | aix[3-9]*) |
1cf3d07d SE |
9121 | # On AIX/PPC, the GNU linker is very broken |
9122 | if test "$host_cpu" != ia64; then | |
9123 | ld_shlibs=no | |
9124 | cat <<_LT_EOF 1>&2 | |
9125 | ||
43e02a8a | 9126 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
9127 | *** to be unable to reliably create shared libraries on AIX. |
9128 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
9129 | *** really care for shared libraries, you may want to install binutils |
9130 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9131 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
9132 | |
9133 | _LT_EOF | |
9134 | fi | |
9135 | ;; | |
9136 | ||
9137 | amigaos*) | |
6b4a97ed PG |
9138 | case $host_cpu in |
9139 | powerpc) | |
9140 | # see comment about AmigaOS4 .so support | |
9141 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9142 | archive_expsym_cmds='' | |
9143 | ;; | |
9144 | m68k) | |
9145 | 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)' | |
9146 | hardcode_libdir_flag_spec='-L$libdir' | |
9147 | hardcode_minus_L=yes | |
9148 | ;; | |
9149 | esac | |
1cf3d07d SE |
9150 | ;; |
9151 | ||
9152 | beos*) | |
9153 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9154 | allow_undefined_flag=unsupported | |
9155 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9156 | # support --undefined. This deserves some investigation. FIXME | |
9157 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9158 | else | |
9159 | ld_shlibs=no | |
9160 | fi | |
9161 | ;; | |
9162 | ||
6b4a97ed | 9163 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9164 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9165 | # as there is no search path for DLLs. | |
9166 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 9167 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
9168 | allow_undefined_flag=unsupported |
9169 | always_export_symbols=no | |
9170 | enable_shared_with_static_runtimes=yes | |
9171 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9172 | ||
9173 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9174 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9175 | # If the export-symbols file already is a .def file (1st line | |
9176 | # is EXPORTS), use it as is; otherwise, prepend... | |
9177 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9178 | cp $export_symbols $output_objdir/$soname.def; | |
9179 | else | |
9180 | echo EXPORTS > $output_objdir/$soname.def; | |
9181 | cat $export_symbols >> $output_objdir/$soname.def; | |
9182 | fi~ | |
9183 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9184 | else | |
9185 | ld_shlibs=no | |
9186 | fi | |
9187 | ;; | |
9188 | ||
43e02a8a RW |
9189 | haiku*) |
9190 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9191 | link_all_deplibs=yes | |
9192 | ;; | |
9193 | ||
1cf3d07d SE |
9194 | interix[3-9]*) |
9195 | hardcode_direct=no | |
9196 | hardcode_shlibpath_var=no | |
9197 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9198 | export_dynamic_flag_spec='${wl}-E' | |
9199 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9200 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9201 | # default) and relocated if they conflict, which is a slow very memory | |
9202 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9203 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9204 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9205 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9206 | 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' | |
9207 | ;; | |
9208 | ||
e9085da5 | 9209 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
9210 | tmp_diet=no |
9211 | if test "$host_os" = linux-dietlibc; then | |
9212 | case $cc_basename in | |
9213 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9214 | esac | |
9215 | fi | |
9216 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9217 | && test "$tmp_diet" = no | |
9218 | then | |
a699d672 | 9219 | tmp_addflag=' $pic_flag' |
6b4a97ed | 9220 | tmp_sharedflag='-shared' |
1cf3d07d SE |
9221 | case $cc_basename,$host_cpu in |
9222 | pgcc*) # Portland Group C compiler | |
43e02a8a | 9223 | 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' |
1cf3d07d SE |
9224 | tmp_addflag=' $pic_flag' |
9225 | ;; | |
43e02a8a RW |
9226 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9227 | # Portland Group f77 and f90 compilers | |
9228 | 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' | |
1cf3d07d SE |
9229 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9230 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9231 | tmp_addflag=' -i_dynamic' ;; | |
9232 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9233 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9234 | ifc* | ifort*) # Intel Fortran compiler | |
9235 | tmp_addflag=' -nofor_main' ;; | |
6b4a97ed PG |
9236 | lf95*) # Lahey Fortran 8.1 |
9237 | whole_archive_flag_spec= | |
9238 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 9239 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
6b4a97ed PG |
9240 | tmp_sharedflag='-qmkshrobj' |
9241 | tmp_addflag= ;; | |
43e02a8a RW |
9242 | nvcc*) # Cuda Compiler Driver 2.2 |
9243 | 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' | |
9244 | compiler_needs_object=yes | |
9245 | ;; | |
1cf3d07d SE |
9246 | esac |
9247 | case `$CC -V 2>&1 | sed 5q` in | |
9248 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 9249 | 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' |
1cf3d07d SE |
9250 | compiler_needs_object=yes |
9251 | tmp_sharedflag='-G' ;; | |
9252 | *Sun\ F*) # Sun Fortran 8.3 | |
9253 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
9254 | esac |
9255 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9256 | ||
9257 | if test "x$supports_anon_versioning" = xyes; then | |
9258 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9259 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9260 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9261 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9262 | fi | |
6b4a97ed PG |
9263 | |
9264 | case $cc_basename in | |
43e02a8a | 9265 | xlf* | bgf* | bgxlf* | mpixlf*) |
6b4a97ed PG |
9266 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9267 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9268 | hardcode_libdir_flag_spec= | |
9269 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9270 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9271 | if test "x$supports_anon_versioning" = xyes; then | |
9272 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9273 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9274 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9275 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9276 | fi | |
9277 | ;; | |
9278 | esac | |
1cf3d07d SE |
9279 | else |
9280 | ld_shlibs=no | |
9281 | fi | |
9282 | ;; | |
9283 | ||
9284 | netbsd*) | |
9285 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9286 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9287 | wlarc= | |
9288 | else | |
9289 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9290 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9291 | fi | |
9292 | ;; | |
9293 | ||
9294 | solaris*) | |
9295 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9296 | ld_shlibs=no | |
9297 | cat <<_LT_EOF 1>&2 | |
9298 | ||
9299 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9300 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9301 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9302 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9303 | *** your PATH or compiler configuration so that the native linker is | |
9304 | *** used, and then restart. | |
9305 | ||
9306 | _LT_EOF | |
9307 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9308 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9309 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9310 | else | |
9311 | ld_shlibs=no | |
9312 | fi | |
9313 | ;; | |
9314 | ||
9315 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9316 | case `$LD -v 2>&1` in | |
9317 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9318 | ld_shlibs=no | |
9319 | cat <<_LT_EOF 1>&2 | |
9320 | ||
9321 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9322 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9323 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9324 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9325 | *** your PATH or compiler configuration so that the native linker is | |
9326 | *** used, and then restart. | |
9327 | ||
9328 | _LT_EOF | |
9329 | ;; | |
9330 | *) | |
9331 | # For security reasons, it is highly recommended that you always | |
9332 | # use absolute paths for naming shared libraries, and exclude the | |
9333 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9334 | # requires that you compile everything twice, which is a pain. | |
9335 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9336 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9337 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9338 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9339 | else | |
9340 | ld_shlibs=no | |
9341 | fi | |
9342 | ;; | |
9343 | esac | |
9344 | ;; | |
9345 | ||
9346 | sunos4*) | |
9347 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9348 | wlarc= | |
9349 | hardcode_direct=yes | |
9350 | hardcode_shlibpath_var=no | |
9351 | ;; | |
9352 | ||
9353 | *) | |
9354 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9355 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9356 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9357 | else | |
9358 | ld_shlibs=no | |
9359 | fi | |
9360 | ;; | |
9361 | esac | |
9362 | ||
9363 | if test "$ld_shlibs" = no; then | |
9364 | runpath_var= | |
9365 | hardcode_libdir_flag_spec= | |
9366 | export_dynamic_flag_spec= | |
9367 | whole_archive_flag_spec= | |
9368 | fi | |
9369 | else | |
9370 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9371 | case $host_os in | |
9372 | aix3*) | |
9373 | allow_undefined_flag=unsupported | |
9374 | always_export_symbols=yes | |
9375 | 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' | |
9376 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9377 | # are no directories specified by -L. | |
9378 | hardcode_minus_L=yes | |
9379 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9380 | # Neither direct hardcoding nor static linking is supported with a | |
9381 | # broken collect2. | |
9382 | hardcode_direct=unsupported | |
9383 | fi | |
9384 | ;; | |
9385 | ||
d653fdfb | 9386 | aix[4-9]*) |
1cf3d07d SE |
9387 | if test "$host_cpu" = ia64; then |
9388 | # On IA64, the linker does run time linking by default, so we don't | |
9389 | # have to do anything special. | |
9390 | aix_use_runtimelinking=no | |
9391 | exp_sym_flag='-Bexport' | |
9392 | no_entry_flag="" | |
9393 | else | |
9394 | # If we're using GNU nm, then we don't want the "-C" option. | |
9395 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
9396 | # Also, AIX nm treats weak defined symbols like other global |
9397 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 9398 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 9399 | 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' |
1cf3d07d | 9400 | else |
6cfe90e6 | 9401 | 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' |
1cf3d07d SE |
9402 | fi |
9403 | aix_use_runtimelinking=no | |
9404 | ||
9405 | # Test if we are trying to use run time linking or normal | |
9406 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9407 | # need to do runtime linking. | |
d653fdfb | 9408 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
9409 | for ld_flag in $LDFLAGS; do |
9410 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9411 | aix_use_runtimelinking=yes | |
9412 | break | |
9413 | fi | |
9414 | done | |
9415 | ;; | |
9416 | esac | |
9417 | ||
9418 | exp_sym_flag='-bexport' | |
9419 | no_entry_flag='-bnoentry' | |
9420 | fi | |
9421 | ||
9422 | # When large executables or shared objects are built, AIX ld can | |
9423 | # have problems creating the table of contents. If linking a library | |
9424 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9425 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9426 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9427 | ||
9428 | archive_cmds='' | |
9429 | hardcode_direct=yes | |
9430 | hardcode_direct_absolute=yes | |
9431 | hardcode_libdir_separator=':' | |
9432 | link_all_deplibs=yes | |
9433 | file_list_spec='${wl}-f,' | |
9434 | ||
9435 | if test "$GCC" = yes; then | |
9436 | case $host_os in aix4.[012]|aix4.[012].*) | |
9437 | # We only want to do this on AIX 4.2 and lower, the check | |
9438 | # below for broken collect2 doesn't work under 4.3+ | |
9439 | collect2name=`${CC} -print-prog-name=collect2` | |
9440 | if test -f "$collect2name" && | |
9441 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9442 | then | |
9443 | # We have reworked collect2 | |
9444 | : | |
9445 | else | |
9446 | # We have old collect2 | |
9447 | hardcode_direct=unsupported | |
9448 | # It fails to find uninstalled libraries when the uninstalled | |
9449 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9450 | # to unsupported forces relinking | |
9451 | hardcode_minus_L=yes | |
9452 | hardcode_libdir_flag_spec='-L$libdir' | |
9453 | hardcode_libdir_separator= | |
9454 | fi | |
9455 | ;; | |
9456 | esac | |
9457 | shared_flag='-shared' | |
9458 | if test "$aix_use_runtimelinking" = yes; then | |
9459 | shared_flag="$shared_flag "'${wl}-G' | |
9460 | fi | |
9461 | else | |
9462 | # not using gcc | |
9463 | if test "$host_cpu" = ia64; then | |
9464 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9465 | # chokes on -Wl,-G. The following line is correct: | |
9466 | shared_flag='-G' | |
9467 | else | |
9468 | if test "$aix_use_runtimelinking" = yes; then | |
9469 | shared_flag='${wl}-G' | |
9470 | else | |
9471 | shared_flag='${wl}-bM:SRE' | |
9472 | fi | |
9473 | fi | |
9474 | fi | |
9475 | ||
6b4a97ed | 9476 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
9477 | # It seems that -bexpall does not export symbols beginning with |
9478 | # underscore (_), so it is better to generate a list of symbols to export. | |
9479 | always_export_symbols=yes | |
9480 | if test "$aix_use_runtimelinking" = yes; then | |
9481 | # Warning - without using the other runtime loading flags (-brtl), | |
9482 | # -berok will link without error, but may produce a broken library. | |
9483 | allow_undefined_flag='-berok' | |
9484 | # Determine the default libpath from the value encoded in an | |
9485 | # empty executable. | |
5213506e | 9486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
9487 | /* end confdefs.h. */ |
9488 | ||
9489 | int | |
9490 | main () | |
9491 | { | |
9492 | ||
9493 | ; | |
9494 | return 0; | |
9495 | } | |
9496 | _ACEOF | |
5213506e | 9497 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
9498 | |
9499 | lt_aix_libpath_sed=' | |
9500 | /Import File Strings/,/^$/ { | |
9501 | /^0/ { | |
9502 | s/^0 *\(.*\)$/\1/ | |
9503 | p | |
9504 | } | |
9505 | }' | |
9506 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9507 | # Check for a 64-bit object if we didn't find anything. | |
9508 | if test -z "$aix_libpath"; then | |
9509 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9510 | fi | |
1cf3d07d | 9511 | fi |
5213506e RW |
9512 | rm -f core conftest.err conftest.$ac_objext \ |
9513 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9514 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9515 | ||
9516 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 9517 | 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" |
1cf3d07d SE |
9518 | else |
9519 | if test "$host_cpu" = ia64; then | |
9520 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9521 | allow_undefined_flag="-z nodefs" | |
9522 | 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" | |
9523 | else | |
9524 | # Determine the default libpath from the value encoded in an | |
9525 | # empty executable. | |
5213506e | 9526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
9527 | /* end confdefs.h. */ |
9528 | ||
9529 | int | |
9530 | main () | |
9531 | { | |
9532 | ||
9533 | ; | |
9534 | return 0; | |
9535 | } | |
9536 | _ACEOF | |
5213506e | 9537 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
9538 | |
9539 | lt_aix_libpath_sed=' | |
9540 | /Import File Strings/,/^$/ { | |
9541 | /^0/ { | |
9542 | s/^0 *\(.*\)$/\1/ | |
9543 | p | |
9544 | } | |
9545 | }' | |
9546 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9547 | # Check for a 64-bit object if we didn't find anything. | |
9548 | if test -z "$aix_libpath"; then | |
9549 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9550 | fi | |
1cf3d07d | 9551 | fi |
5213506e RW |
9552 | rm -f core conftest.err conftest.$ac_objext \ |
9553 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9554 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9555 | ||
9556 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9557 | # Warning - without using the other run time loading flags, | |
9558 | # -berok will link without error, but may produce a broken library. | |
9559 | no_undefined_flag=' ${wl}-bernotok' | |
9560 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
9561 | if test "$with_gnu_ld" = yes; then |
9562 | # We only use this code for GNU lds that support --whole-archive. | |
9563 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9564 | else | |
9565 | # Exported symbols can be pulled into shared objects from archives | |
9566 | whole_archive_flag_spec='$convenience' | |
9567 | fi | |
1cf3d07d SE |
9568 | archive_cmds_need_lc=yes |
9569 | # This is similar to how AIX traditionally builds its shared libraries. | |
9570 | 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' | |
9571 | fi | |
9572 | fi | |
9573 | ;; | |
9574 | ||
9575 | amigaos*) | |
6b4a97ed PG |
9576 | case $host_cpu in |
9577 | powerpc) | |
9578 | # see comment about AmigaOS4 .so support | |
9579 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9580 | archive_expsym_cmds='' | |
9581 | ;; | |
9582 | m68k) | |
9583 | 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)' | |
9584 | hardcode_libdir_flag_spec='-L$libdir' | |
9585 | hardcode_minus_L=yes | |
9586 | ;; | |
9587 | esac | |
1cf3d07d SE |
9588 | ;; |
9589 | ||
9590 | bsdi[45]*) | |
9591 | export_dynamic_flag_spec=-rdynamic | |
9592 | ;; | |
9593 | ||
6b4a97ed | 9594 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9595 | # When not using gcc, we currently assume that we are using |
9596 | # Microsoft Visual C++. | |
9597 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9598 | # no search path for DLLs. | |
9599 | hardcode_libdir_flag_spec=' ' | |
9600 | allow_undefined_flag=unsupported | |
9601 | # Tell ltmain to make .lib files, not .a files. | |
9602 | libext=lib | |
9603 | # Tell ltmain to make .dll files, not .so files. | |
9604 | shrext_cmds=".dll" | |
9605 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 9606 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
9607 | # The linker will automatically build a .lib file if we build a DLL. |
9608 | old_archive_from_new_cmds='true' | |
9609 | # FIXME: Should let the user specify the lib program. | |
9610 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9611 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9612 | enable_shared_with_static_runtimes=yes | |
9613 | ;; | |
9614 | ||
9615 | darwin* | rhapsody*) | |
1cf3d07d | 9616 | |
6b4a97ed PG |
9617 | |
9618 | archive_cmds_need_lc=no | |
9619 | hardcode_direct=no | |
9620 | hardcode_automatic=yes | |
9621 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
9622 | if test "$lt_cv_ld_force_load" = "yes"; then |
9623 | 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\"`' | |
9624 | else | |
9625 | whole_archive_flag_spec='' | |
9626 | fi | |
6b4a97ed PG |
9627 | link_all_deplibs=yes |
9628 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9629 | case $cc_basename in | |
9630 | ifort*) _lt_dar_can_shared=yes ;; | |
9631 | *) _lt_dar_can_shared=$GCC ;; | |
9632 | esac | |
9633 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 9634 | output_verbose_link_cmd=func_echo_all |
6b4a97ed PG |
9635 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9636 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9637 | 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}" | |
9638 | 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}" | |
9639 | ||
9640 | else | |
9641 | ld_shlibs=no | |
9642 | fi | |
9643 | ||
1cf3d07d SE |
9644 | ;; |
9645 | ||
9646 | dgux*) | |
9647 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9648 | hardcode_libdir_flag_spec='-L$libdir' | |
9649 | hardcode_shlibpath_var=no | |
9650 | ;; | |
9651 | ||
1cf3d07d SE |
9652 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9653 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9654 | # does not break anything, and helps significantly (at the cost of a little | |
9655 | # extra space). | |
9656 | freebsd2.2*) | |
9657 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9658 | hardcode_libdir_flag_spec='-R$libdir' | |
9659 | hardcode_direct=yes | |
9660 | hardcode_shlibpath_var=no | |
9661 | ;; | |
9662 | ||
9663 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 9664 | freebsd2.*) |
1cf3d07d SE |
9665 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9666 | hardcode_direct=yes | |
9667 | hardcode_minus_L=yes | |
9668 | hardcode_shlibpath_var=no | |
9669 | ;; | |
9670 | ||
9671 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9672 | freebsd* | dragonfly*) | |
9673 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9674 | hardcode_libdir_flag_spec='-R$libdir' | |
9675 | hardcode_direct=yes | |
9676 | hardcode_shlibpath_var=no | |
9677 | ;; | |
9678 | ||
9679 | hpux9*) | |
9680 | if test "$GCC" = yes; then | |
9681 | 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' | |
9682 | else | |
9683 | 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' | |
9684 | fi | |
9685 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9686 | hardcode_libdir_separator=: | |
9687 | hardcode_direct=yes | |
9688 | ||
9689 | # hardcode_minus_L: Not really in the search PATH, | |
9690 | # but as the default location of the library. | |
9691 | hardcode_minus_L=yes | |
9692 | export_dynamic_flag_spec='${wl}-E' | |
9693 | ;; | |
9694 | ||
9695 | hpux10*) | |
43e02a8a | 9696 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
9697 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9698 | else | |
9699 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9700 | fi | |
9701 | if test "$with_gnu_ld" = no; then | |
9702 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9703 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9704 | hardcode_libdir_separator=: | |
9705 | hardcode_direct=yes | |
9706 | hardcode_direct_absolute=yes | |
9707 | export_dynamic_flag_spec='${wl}-E' | |
9708 | # hardcode_minus_L: Not really in the search PATH, | |
9709 | # but as the default location of the library. | |
9710 | hardcode_minus_L=yes | |
9711 | fi | |
9712 | ;; | |
9713 | ||
9714 | hpux11*) | |
43e02a8a | 9715 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
9716 | case $host_cpu in |
9717 | hppa*64*) | |
4e4ba647 | 9718 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
9719 | ;; |
9720 | ia64*) | |
6b4a97ed | 9721 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
9722 | ;; |
9723 | *) | |
9724 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9725 | ;; | |
9726 | esac | |
9727 | else | |
9728 | case $host_cpu in | |
9729 | hppa*64*) | |
4e4ba647 | 9730 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
9731 | ;; |
9732 | ia64*) | |
9733 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9734 | ;; | |
9735 | *) | |
43e02a8a RW |
9736 | |
9737 | # Older versions of the 11.00 compiler do not understand -b yet | |
9738 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9740 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 9741 | if ${lt_cv_prog_compiler__b+:} false; then : |
43e02a8a RW |
9742 | $as_echo_n "(cached) " >&6 |
9743 | else | |
9744 | lt_cv_prog_compiler__b=no | |
9745 | save_LDFLAGS="$LDFLAGS" | |
9746 | LDFLAGS="$LDFLAGS -b" | |
9747 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9748 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9749 | # The linker can only warn and ignore the option if not recognized | |
9750 | # So say no if there are warnings | |
9751 | if test -s conftest.err; then | |
9752 | # Append any errors to the config.log. | |
9753 | cat conftest.err 1>&5 | |
9754 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9755 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9756 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9757 | lt_cv_prog_compiler__b=yes | |
9758 | fi | |
9759 | else | |
9760 | lt_cv_prog_compiler__b=yes | |
9761 | fi | |
9762 | fi | |
9763 | $RM -r conftest* | |
9764 | LDFLAGS="$save_LDFLAGS" | |
9765 | ||
9766 | fi | |
9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9768 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9769 | ||
9770 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9771 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9772 | else | |
9773 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9774 | fi | |
9775 | ||
1cf3d07d SE |
9776 | ;; |
9777 | esac | |
9778 | fi | |
9779 | if test "$with_gnu_ld" = no; then | |
9780 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9781 | hardcode_libdir_separator=: | |
9782 | ||
9783 | case $host_cpu in | |
9784 | hppa*64*|ia64*) | |
9785 | hardcode_direct=no | |
9786 | hardcode_shlibpath_var=no | |
9787 | ;; | |
9788 | *) | |
9789 | hardcode_direct=yes | |
9790 | hardcode_direct_absolute=yes | |
9791 | export_dynamic_flag_spec='${wl}-E' | |
9792 | ||
9793 | # hardcode_minus_L: Not really in the search PATH, | |
9794 | # but as the default location of the library. | |
9795 | hardcode_minus_L=yes | |
9796 | ;; | |
9797 | esac | |
9798 | fi | |
9799 | ;; | |
9800 | ||
9801 | irix5* | irix6* | nonstopux*) | |
9802 | if test "$GCC" = yes; then | |
43e02a8a | 9803 | 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' |
1cf3d07d SE |
9804 | # Try to use the -exported_symbol ld option, if it does not |
9805 | # work, assume that -exports_file does not work either and | |
9806 | # implicitly export all symbols. | |
9807 | save_LDFLAGS="$LDFLAGS" | |
9808 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
5213506e RW |
9809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9810 | /* end confdefs.h. */ | |
1cf3d07d SE |
9811 | int foo(void) {} |
9812 | _ACEOF | |
5213506e | 9813 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 9814 | 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' |
1cf3d07d | 9815 | |
1cf3d07d | 9816 | fi |
5213506e RW |
9817 | rm -f core conftest.err conftest.$ac_objext \ |
9818 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9819 | LDFLAGS="$save_LDFLAGS" |
9820 | else | |
43e02a8a RW |
9821 | 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' |
9822 | 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' | |
1cf3d07d SE |
9823 | fi |
9824 | archive_cmds_need_lc='no' | |
9825 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9826 | hardcode_libdir_separator=: | |
9827 | inherit_rpath=yes | |
9828 | link_all_deplibs=yes | |
9829 | ;; | |
9830 | ||
9831 | netbsd*) | |
9832 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9833 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9834 | else | |
9835 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9836 | fi | |
9837 | hardcode_libdir_flag_spec='-R$libdir' | |
9838 | hardcode_direct=yes | |
9839 | hardcode_shlibpath_var=no | |
9840 | ;; | |
9841 | ||
9842 | newsos6) | |
9843 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9844 | hardcode_direct=yes | |
9845 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9846 | hardcode_libdir_separator=: | |
9847 | hardcode_shlibpath_var=no | |
9848 | ;; | |
9849 | ||
9850 | *nto* | *qnx*) | |
9851 | ;; | |
9852 | ||
9853 | openbsd*) | |
6b4a97ed PG |
9854 | if test -f /usr/libexec/ld.so; then |
9855 | hardcode_direct=yes | |
9856 | hardcode_shlibpath_var=no | |
9857 | hardcode_direct_absolute=yes | |
9858 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 9859 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6b4a97ed | 9860 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 9861 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6b4a97ed PG |
9862 | export_dynamic_flag_spec='${wl}-E' |
9863 | else | |
9864 | case $host_os in | |
9865 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9866 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9867 | hardcode_libdir_flag_spec='-R$libdir' | |
9868 | ;; | |
9869 | *) | |
9870 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9871 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9872 | ;; | |
9873 | esac | |
9874 | fi | |
9875 | else | |
9876 | ld_shlibs=no | |
1cf3d07d SE |
9877 | fi |
9878 | ;; | |
9879 | ||
9880 | os2*) | |
9881 | hardcode_libdir_flag_spec='-L$libdir' | |
9882 | hardcode_minus_L=yes | |
9883 | allow_undefined_flag=unsupported | |
43e02a8a | 9884 | 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' |
1cf3d07d SE |
9885 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9886 | ;; | |
9887 | ||
9888 | osf3*) | |
9889 | if test "$GCC" = yes; then | |
9890 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 9891 | 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' |
1cf3d07d SE |
9892 | else |
9893 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 9894 | 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' |
1cf3d07d SE |
9895 | fi |
9896 | archive_cmds_need_lc='no' | |
9897 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9898 | hardcode_libdir_separator=: | |
9899 | ;; | |
9900 | ||
9901 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9902 | if test "$GCC" = yes; then | |
9903 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 9904 | 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' |
1cf3d07d SE |
9905 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9906 | else | |
9907 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 9908 | 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' |
1cf3d07d | 9909 | 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~ |
43e02a8a | 9910 | $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' |
1cf3d07d SE |
9911 | |
9912 | # Both c and cxx compiler support -rpath directly | |
9913 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9914 | fi | |
9915 | archive_cmds_need_lc='no' | |
9916 | hardcode_libdir_separator=: | |
9917 | ;; | |
9918 | ||
9919 | solaris*) | |
9920 | no_undefined_flag=' -z defs' | |
9921 | if test "$GCC" = yes; then | |
9922 | wlarc='${wl}' | |
9923 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9924 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9925 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9926 | else | |
9927 | case `$CC -V 2>&1` in | |
9928 | *"Compilers 5.0"*) | |
9929 | wlarc='' | |
9930 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9931 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9932 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9933 | ;; | |
9934 | *) | |
9935 | wlarc='${wl}' | |
9936 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9937 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9938 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9939 | ;; | |
9940 | esac | |
9941 | fi | |
9942 | hardcode_libdir_flag_spec='-R$libdir' | |
9943 | hardcode_shlibpath_var=no | |
9944 | case $host_os in | |
9945 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9946 | *) | |
9947 | # The compiler driver will combine and reorder linker options, | |
9948 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9949 | # but is careful enough not to reorder. | |
9950 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9951 | if test "$GCC" = yes; then | |
9952 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9953 | else | |
9954 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9955 | fi | |
9956 | ;; | |
9957 | esac | |
9958 | link_all_deplibs=yes | |
9959 | ;; | |
9960 | ||
9961 | sunos4*) | |
9962 | if test "x$host_vendor" = xsequent; then | |
9963 | # Use $CC to link under sequent, because it throws in some extra .o | |
9964 | # files that make .init and .fini sections work. | |
9965 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9966 | else | |
9967 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9968 | fi | |
9969 | hardcode_libdir_flag_spec='-L$libdir' | |
9970 | hardcode_direct=yes | |
9971 | hardcode_minus_L=yes | |
9972 | hardcode_shlibpath_var=no | |
9973 | ;; | |
9974 | ||
9975 | sysv4) | |
9976 | case $host_vendor in | |
9977 | sni) | |
9978 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9979 | hardcode_direct=yes # is this really true??? | |
9980 | ;; | |
9981 | siemens) | |
9982 | ## LD is ld it makes a PLAMLIB | |
9983 | ## CC just makes a GrossModule. | |
9984 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9985 | reload_cmds='$CC -r -o $output$reload_objs' | |
9986 | hardcode_direct=no | |
9987 | ;; | |
9988 | motorola) | |
9989 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9990 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9991 | ;; | |
9992 | esac | |
9993 | runpath_var='LD_RUN_PATH' | |
9994 | hardcode_shlibpath_var=no | |
9995 | ;; | |
9996 | ||
9997 | sysv4.3*) | |
9998 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9999 | hardcode_shlibpath_var=no | |
10000 | export_dynamic_flag_spec='-Bexport' | |
10001 | ;; | |
10002 | ||
10003 | sysv4*MP*) | |
10004 | if test -d /usr/nec; then | |
10005 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10006 | hardcode_shlibpath_var=no | |
10007 | runpath_var=LD_RUN_PATH | |
10008 | hardcode_runpath_var=yes | |
10009 | ld_shlibs=yes | |
10010 | fi | |
10011 | ;; | |
10012 | ||
10013 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10014 | no_undefined_flag='${wl}-z,text' | |
10015 | archive_cmds_need_lc=no | |
10016 | hardcode_shlibpath_var=no | |
10017 | runpath_var='LD_RUN_PATH' | |
10018 | ||
10019 | if test "$GCC" = yes; then | |
10020 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10021 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10022 | else | |
10023 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10024 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10025 | fi | |
10026 | ;; | |
10027 | ||
10028 | sysv5* | sco3.2v5* | sco5v6*) | |
10029 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10030 | # link with -lc, and that would cause any symbols used from libc to | |
10031 | # always be unresolved, which means just about no library would | |
10032 | # ever link correctly. If we're not using GNU ld we use -z text | |
10033 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10034 | # as -z defs. | |
10035 | no_undefined_flag='${wl}-z,text' | |
10036 | allow_undefined_flag='${wl}-z,nodefs' | |
10037 | archive_cmds_need_lc=no | |
10038 | hardcode_shlibpath_var=no | |
10039 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10040 | hardcode_libdir_separator=':' | |
10041 | link_all_deplibs=yes | |
10042 | export_dynamic_flag_spec='${wl}-Bexport' | |
10043 | runpath_var='LD_RUN_PATH' | |
10044 | ||
10045 | if test "$GCC" = yes; then | |
10046 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10047 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10048 | else | |
10049 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10050 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10051 | fi | |
10052 | ;; | |
10053 | ||
10054 | uts4*) | |
10055 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10056 | hardcode_libdir_flag_spec='-L$libdir' | |
10057 | hardcode_shlibpath_var=no | |
10058 | ;; | |
10059 | ||
10060 | *) | |
10061 | ld_shlibs=no | |
10062 | ;; | |
10063 | esac | |
10064 | ||
10065 | if test x$host_vendor = xsni; then | |
10066 | case $host in | |
10067 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10068 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10069 | ;; | |
10070 | esac | |
10071 | fi | |
10072 | fi | |
10073 | ||
5213506e RW |
10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10075 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
10076 | test "$ld_shlibs" = no && can_build_shared=no |
10077 | ||
10078 | with_gnu_ld=$with_gnu_ld | |
10079 | ||
10080 | ||
10081 | ||
10082 | ||
10083 | ||
10084 | ||
10085 | ||
10086 | ||
10087 | ||
10088 | ||
10089 | ||
10090 | ||
10091 | ||
10092 | ||
10093 | ||
10094 | # | |
10095 | # Do we need to explicitly link libc? | |
10096 | # | |
10097 | case "x$archive_cmds_need_lc" in | |
10098 | x|xyes) | |
10099 | # Assume -lc should be added | |
10100 | archive_cmds_need_lc=yes | |
10101 | ||
10102 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10103 | case $archive_cmds in | |
10104 | *'~'*) | |
10105 | # FIXME: we may have to deal with multi-command sequences. | |
10106 | ;; | |
10107 | '$CC '*) | |
10108 | # Test whether the compiler implicitly links with -lc since on some | |
10109 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10110 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
10111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10112 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 10113 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
5213506e | 10114 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
10115 | else |
10116 | $RM conftest* | |
10117 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 10118 | |
5213506e | 10119 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
10120 | (eval $ac_compile) 2>&5 |
10121 | ac_status=$? | |
5213506e RW |
10122 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10123 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
10124 | soname=conftest |
10125 | lib=conftest | |
10126 | libobjs=conftest.$ac_objext | |
10127 | deplibs= | |
10128 | wl=$lt_prog_compiler_wl | |
10129 | pic_flag=$lt_prog_compiler_pic | |
10130 | compiler_flags=-v | |
10131 | linker_flags=-v | |
10132 | verstring= | |
10133 | output_objdir=. | |
10134 | libname=conftest | |
10135 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10136 | allow_undefined_flag= | |
5213506e | 10137 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
10138 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10139 | ac_status=$? | |
5213506e RW |
10140 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10141 | test $ac_status = 0; } | |
baafc534 RW |
10142 | then |
10143 | lt_cv_archive_cmds_need_lc=no | |
10144 | else | |
10145 | lt_cv_archive_cmds_need_lc=yes | |
10146 | fi | |
10147 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10148 | else | |
10149 | cat conftest.err 1>&5 | |
10150 | fi | |
10151 | $RM conftest* | |
10152 | ||
10153 | fi | |
5213506e RW |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10155 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 10156 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
10157 | ;; |
10158 | esac | |
10159 | fi | |
10160 | ;; | |
10161 | esac | |
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 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
5213506e RW |
10319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10320 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
6b4a97ed PG |
10321 | |
10322 | if test "$GCC" = yes; then | |
1cf3d07d SE |
10323 | case $host_os in |
10324 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10325 | *) lt_awk_arg="/^libraries:/" ;; | |
10326 | esac | |
43e02a8a RW |
10327 | case $host_os in |
10328 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10329 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10330 | esac | |
10331 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10332 | case $lt_search_path_spec in | |
10333 | *\;*) | |
1cf3d07d SE |
10334 | # if the path contains ";" then we assume it to be the separator |
10335 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10336 | # assumed that no part of a normal pathname contains ";" but that should | |
10337 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
10338 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10339 | ;; | |
10340 | *) | |
10341 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10342 | ;; | |
10343 | esac | |
1cf3d07d SE |
10344 | # Ok, now we have the path, separated by spaces, we can step through it |
10345 | # and add multilib dir if necessary. | |
10346 | lt_tmp_lt_search_path_spec= | |
10347 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10348 | for lt_sys_path in $lt_search_path_spec; do | |
10349 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10350 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10351 | else | |
10352 | test -d "$lt_sys_path" && \ | |
10353 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10354 | fi | |
10355 | done | |
43e02a8a | 10356 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
10357 | BEGIN {RS=" "; FS="/|\n";} { |
10358 | lt_foo=""; | |
10359 | lt_count=0; | |
10360 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10361 | if ($lt_i != "" && $lt_i != ".") { | |
10362 | if ($lt_i == "..") { | |
10363 | lt_count++; | |
10364 | } else { | |
10365 | if (lt_count == 0) { | |
10366 | lt_foo="/" $lt_i lt_foo; | |
10367 | } else { | |
10368 | lt_count--; | |
10369 | } | |
10370 | } | |
10371 | } | |
10372 | } | |
10373 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10374 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10375 | }'` | |
43e02a8a RW |
10376 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10377 | # for these hosts. | |
10378 | case $host_os in | |
10379 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10380 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10381 | esac | |
10382 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
10383 | else |
10384 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10385 | fi | |
10386 | library_names_spec= | |
10387 | libname_spec='lib$name' | |
10388 | soname_spec= | |
10389 | shrext_cmds=".so" | |
10390 | postinstall_cmds= | |
10391 | postuninstall_cmds= | |
10392 | finish_cmds= | |
10393 | finish_eval= | |
10394 | shlibpath_var= | |
10395 | shlibpath_overrides_runpath=unknown | |
10396 | version_type=none | |
10397 | dynamic_linker="$host_os ld.so" | |
10398 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10399 | need_lib_prefix=unknown | |
10400 | hardcode_into_libs=no | |
10401 | ||
10402 | # when you set need_version to no, make sure it does not cause -set_version | |
10403 | # flags to be left without arguments | |
10404 | need_version=unknown | |
10405 | ||
10406 | case $host_os in | |
10407 | aix3*) | |
10408 | version_type=linux | |
10409 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10410 | shlibpath_var=LIBPATH | |
10411 | ||
10412 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10413 | soname_spec='${libname}${release}${shared_ext}$major' | |
10414 | ;; | |
10415 | ||
d653fdfb | 10416 | aix[4-9]*) |
1cf3d07d SE |
10417 | version_type=linux |
10418 | need_lib_prefix=no | |
10419 | need_version=no | |
10420 | hardcode_into_libs=yes | |
10421 | if test "$host_cpu" = ia64; then | |
10422 | # AIX 5 supports IA64 | |
10423 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10424 | shlibpath_var=LD_LIBRARY_PATH | |
10425 | else | |
10426 | # With GCC up to 2.95.x, collect2 would create an import file | |
10427 | # for dependence libraries. The import file would start with | |
10428 | # the line `#! .'. This would cause the generated library to | |
10429 | # depend on `.', always an invalid library. This was fixed in | |
10430 | # development snapshots of GCC prior to 3.0. | |
10431 | case $host_os in | |
10432 | aix4 | aix4.[01] | aix4.[01].*) | |
10433 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10434 | echo ' yes ' | |
10435 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10436 | : | |
10437 | else | |
10438 | can_build_shared=no | |
10439 | fi | |
10440 | ;; | |
10441 | esac | |
10442 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10443 | # soname into executable. Probably we can add versioning support to | |
10444 | # collect2, so additional links can be useful in future. | |
10445 | if test "$aix_use_runtimelinking" = yes; then | |
10446 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10447 | # instead of lib<name>.a to let people know that these are not | |
10448 | # typical AIX shared libraries. | |
10449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10450 | else | |
10451 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10452 | # and later when we are not doing run time linking. | |
10453 | library_names_spec='${libname}${release}.a $libname.a' | |
10454 | soname_spec='${libname}${release}${shared_ext}$major' | |
10455 | fi | |
10456 | shlibpath_var=LIBPATH | |
10457 | fi | |
10458 | ;; | |
10459 | ||
10460 | amigaos*) | |
6b4a97ed PG |
10461 | case $host_cpu in |
10462 | powerpc) | |
10463 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10464 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10466 | ;; | |
10467 | m68k) | |
1cf3d07d SE |
10468 | library_names_spec='$libname.ixlibrary $libname.a' |
10469 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 10470 | 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' |
6b4a97ed PG |
10471 | ;; |
10472 | esac | |
1cf3d07d SE |
10473 | ;; |
10474 | ||
10475 | beos*) | |
10476 | library_names_spec='${libname}${shared_ext}' | |
10477 | dynamic_linker="$host_os ld.so" | |
10478 | shlibpath_var=LIBRARY_PATH | |
10479 | ;; | |
10480 | ||
10481 | bsdi[45]*) | |
10482 | version_type=linux | |
10483 | need_version=no | |
10484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10485 | soname_spec='${libname}${release}${shared_ext}$major' | |
10486 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10487 | shlibpath_var=LD_LIBRARY_PATH | |
10488 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10489 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10490 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10491 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10492 | # libtool to hard-code these into programs | |
10493 | ;; | |
10494 | ||
6b4a97ed | 10495 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10496 | version_type=windows |
10497 | shrext_cmds=".dll" | |
10498 | need_version=no | |
10499 | need_lib_prefix=no | |
10500 | ||
6b4a97ed PG |
10501 | case $GCC,$host_os in |
10502 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
10503 | library_names_spec='$libname.dll.a' |
10504 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10505 | postinstall_cmds='base_file=`basename \${file}`~ | |
10506 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10507 | dldir=$destdir/`dirname \$dlpath`~ | |
10508 | test -d \$dldir || mkdir -p \$dldir~ | |
10509 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10510 | chmod a+x \$dldir/$dlname~ | |
10511 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10512 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10513 | fi' | |
10514 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10515 | dlpath=$dir/\$dldll~ | |
10516 | $RM \$dlpath' | |
10517 | shlibpath_overrides_runpath=yes | |
10518 | ||
10519 | case $host_os in | |
10520 | cygwin*) | |
10521 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10522 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
10523 | |
10524 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 10525 | ;; |
6b4a97ed | 10526 | mingw* | cegcc*) |
1cf3d07d SE |
10527 | # MinGW DLLs use traditional 'lib' prefix |
10528 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
10529 | ;; |
10530 | pw32*) | |
10531 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10532 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10533 | ;; | |
10534 | esac | |
10535 | ;; | |
10536 | ||
10537 | *) | |
10538 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10539 | ;; | |
10540 | esac | |
10541 | dynamic_linker='Win32 ld.exe' | |
10542 | # FIXME: first we should search . and the directory the executable is in | |
10543 | shlibpath_var=PATH | |
10544 | ;; | |
10545 | ||
10546 | darwin* | rhapsody*) | |
10547 | dynamic_linker="$host_os dyld" | |
10548 | version_type=darwin | |
10549 | need_lib_prefix=no | |
10550 | need_version=no | |
10551 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10552 | soname_spec='${libname}${release}${major}$shared_ext' | |
10553 | shlibpath_overrides_runpath=yes | |
10554 | shlibpath_var=DYLD_LIBRARY_PATH | |
10555 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10556 | ||
10557 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10558 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10559 | ;; | |
10560 | ||
10561 | dgux*) | |
10562 | version_type=linux | |
10563 | need_lib_prefix=no | |
10564 | need_version=no | |
10565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10566 | soname_spec='${libname}${release}${shared_ext}$major' | |
10567 | shlibpath_var=LD_LIBRARY_PATH | |
10568 | ;; | |
10569 | ||
1cf3d07d SE |
10570 | freebsd* | dragonfly*) |
10571 | # DragonFly does not have aout. When/if they implement a new | |
10572 | # versioning mechanism, adjust this. | |
10573 | if test -x /usr/bin/objformat; then | |
10574 | objformat=`/usr/bin/objformat` | |
10575 | else | |
10576 | case $host_os in | |
c6084f68 | 10577 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
10578 | *) objformat=elf ;; |
10579 | esac | |
10580 | fi | |
10581 | version_type=freebsd-$objformat | |
10582 | case $version_type in | |
10583 | freebsd-elf*) | |
10584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10585 | need_version=no | |
10586 | need_lib_prefix=no | |
10587 | ;; | |
10588 | freebsd-*) | |
10589 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10590 | need_version=yes | |
10591 | ;; | |
10592 | esac | |
10593 | shlibpath_var=LD_LIBRARY_PATH | |
10594 | case $host_os in | |
c6084f68 | 10595 | freebsd2.*) |
1cf3d07d SE |
10596 | shlibpath_overrides_runpath=yes |
10597 | ;; | |
10598 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10599 | shlibpath_overrides_runpath=yes | |
10600 | hardcode_into_libs=yes | |
10601 | ;; | |
10602 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10603 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10604 | shlibpath_overrides_runpath=no | |
10605 | hardcode_into_libs=yes | |
10606 | ;; | |
10607 | *) # from 4.6 on, and DragonFly | |
10608 | shlibpath_overrides_runpath=yes | |
10609 | hardcode_into_libs=yes | |
10610 | ;; | |
10611 | esac | |
10612 | ;; | |
10613 | ||
43e02a8a RW |
10614 | haiku*) |
10615 | version_type=linux | |
10616 | need_lib_prefix=no | |
10617 | need_version=no | |
10618 | dynamic_linker="$host_os runtime_loader" | |
10619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10620 | soname_spec='${libname}${release}${shared_ext}$major' | |
10621 | shlibpath_var=LIBRARY_PATH | |
10622 | shlibpath_overrides_runpath=yes | |
10623 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10624 | hardcode_into_libs=yes | |
10625 | ;; | |
10626 | ||
1cf3d07d SE |
10627 | hpux9* | hpux10* | hpux11*) |
10628 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10629 | # link against other versions. | |
10630 | version_type=sunos | |
10631 | need_lib_prefix=no | |
10632 | need_version=no | |
10633 | case $host_cpu in | |
10634 | ia64*) | |
10635 | shrext_cmds='.so' | |
10636 | hardcode_into_libs=yes | |
10637 | dynamic_linker="$host_os dld.so" | |
10638 | shlibpath_var=LD_LIBRARY_PATH | |
10639 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10641 | soname_spec='${libname}${release}${shared_ext}$major' | |
10642 | if test "X$HPUX_IA64_MODE" = X32; then | |
10643 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10644 | else | |
10645 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10646 | fi | |
10647 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10648 | ;; | |
10649 | hppa*64*) | |
10650 | shrext_cmds='.sl' | |
10651 | hardcode_into_libs=yes | |
10652 | dynamic_linker="$host_os dld.sl" | |
10653 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10654 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10656 | soname_spec='${libname}${release}${shared_ext}$major' | |
10657 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10658 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10659 | ;; | |
10660 | *) | |
10661 | shrext_cmds='.sl' | |
10662 | dynamic_linker="$host_os dld.sl" | |
10663 | shlibpath_var=SHLIB_PATH | |
10664 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10666 | soname_spec='${libname}${release}${shared_ext}$major' | |
10667 | ;; | |
10668 | esac | |
43e02a8a | 10669 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 10670 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
10671 | # or fails outright, so override atomically: |
10672 | install_override_mode=555 | |
1cf3d07d SE |
10673 | ;; |
10674 | ||
10675 | interix[3-9]*) | |
10676 | version_type=linux | |
10677 | need_lib_prefix=no | |
10678 | need_version=no | |
10679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10680 | soname_spec='${libname}${release}${shared_ext}$major' | |
10681 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10682 | shlibpath_var=LD_LIBRARY_PATH | |
10683 | shlibpath_overrides_runpath=no | |
10684 | hardcode_into_libs=yes | |
10685 | ;; | |
10686 | ||
10687 | irix5* | irix6* | nonstopux*) | |
10688 | case $host_os in | |
10689 | nonstopux*) version_type=nonstopux ;; | |
10690 | *) | |
10691 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10692 | version_type=linux | |
10693 | else | |
10694 | version_type=irix | |
10695 | fi ;; | |
10696 | esac | |
10697 | need_lib_prefix=no | |
10698 | need_version=no | |
10699 | soname_spec='${libname}${release}${shared_ext}$major' | |
10700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10701 | case $host_os in | |
10702 | irix5* | nonstopux*) | |
10703 | libsuff= shlibsuff= | |
10704 | ;; | |
10705 | *) | |
10706 | case $LD in # libtool.m4 will add one of these switches to LD | |
10707 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10708 | libsuff= shlibsuff= libmagic=32-bit;; | |
10709 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10710 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10711 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10712 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10713 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10714 | esac | |
10715 | ;; | |
10716 | esac | |
10717 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10718 | shlibpath_overrides_runpath=no | |
10719 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10720 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10721 | hardcode_into_libs=yes | |
10722 | ;; | |
10723 | ||
10724 | # No shared lib support for Linux oldld, aout, or coff. | |
10725 | linux*oldld* | linux*aout* | linux*coff*) | |
10726 | dynamic_linker=no | |
10727 | ;; | |
10728 | ||
10729 | # This must be Linux ELF. | |
e9085da5 MR |
10730 | |
10731 | # uclinux* changes (here and below) have been submitted to the libtool | |
10732 | # project, but have not yet been accepted: they are GCC-local changes | |
10733 | # for the time being. (See | |
10734 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
f56de355 | 10735 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
10736 | version_type=linux |
10737 | need_lib_prefix=no | |
10738 | need_version=no | |
10739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10740 | soname_spec='${libname}${release}${shared_ext}$major' | |
10741 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10742 | shlibpath_var=LD_LIBRARY_PATH | |
10743 | shlibpath_overrides_runpath=no | |
baafc534 | 10744 | |
1cf3d07d | 10745 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 10746 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 10747 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
10748 | else |
10749 | lt_cv_shlibpath_overrides_runpath=no | |
10750 | save_LDFLAGS=$LDFLAGS | |
10751 | save_libdir=$libdir | |
10752 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10753 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
5213506e | 10754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10755 | /* end confdefs.h. */ |
10756 | ||
10757 | int | |
10758 | main () | |
10759 | { | |
10760 | ||
10761 | ; | |
10762 | return 0; | |
10763 | } | |
10764 | _ACEOF | |
5213506e RW |
10765 | if ac_fn_c_try_link "$LINENO"; then : |
10766 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 10767 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 10768 | fi |
1cf3d07d | 10769 | fi |
5213506e RW |
10770 | rm -f core conftest.err conftest.$ac_objext \ |
10771 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
10772 | LDFLAGS=$save_LDFLAGS |
10773 | libdir=$save_libdir | |
10774 | ||
10775 | fi | |
10776 | ||
10777 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
10778 | |
10779 | # This implies no fast_install, which is unacceptable. | |
10780 | # Some rework will be needed to allow for fast_install | |
10781 | # before this can be enabled. | |
10782 | hardcode_into_libs=yes | |
10783 | ||
10784 | # Append ld.so.conf contents to the search path | |
10785 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 10786 | 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' ' '` |
1cf3d07d SE |
10787 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10788 | fi | |
10789 | ||
10790 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10791 | # powerpc, because MkLinux only supported shared libraries with the | |
10792 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10793 | # most powerpc-linux boxes support dynamic linking these days and | |
10794 | # people can always --disable-shared, the test was removed, and we | |
10795 | # assume the GNU/Linux dynamic linker is in use. | |
10796 | dynamic_linker='GNU/Linux ld.so' | |
10797 | ;; | |
10798 | ||
10799 | netbsd*) | |
10800 | version_type=sunos | |
10801 | need_lib_prefix=no | |
10802 | need_version=no | |
10803 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10805 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10806 | dynamic_linker='NetBSD (a.out) ld.so' | |
10807 | else | |
10808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10809 | soname_spec='${libname}${release}${shared_ext}$major' | |
10810 | dynamic_linker='NetBSD ld.elf_so' | |
10811 | fi | |
10812 | shlibpath_var=LD_LIBRARY_PATH | |
10813 | shlibpath_overrides_runpath=yes | |
10814 | hardcode_into_libs=yes | |
10815 | ;; | |
10816 | ||
10817 | newsos6) | |
10818 | version_type=linux | |
10819 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10820 | shlibpath_var=LD_LIBRARY_PATH | |
10821 | shlibpath_overrides_runpath=yes | |
10822 | ;; | |
10823 | ||
10824 | *nto* | *qnx*) | |
10825 | version_type=qnx | |
10826 | need_lib_prefix=no | |
10827 | need_version=no | |
10828 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10829 | soname_spec='${libname}${release}${shared_ext}$major' | |
10830 | shlibpath_var=LD_LIBRARY_PATH | |
10831 | shlibpath_overrides_runpath=no | |
10832 | hardcode_into_libs=yes | |
10833 | dynamic_linker='ldqnx.so' | |
10834 | ;; | |
10835 | ||
10836 | openbsd*) | |
10837 | version_type=sunos | |
10838 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10839 | need_lib_prefix=no | |
10840 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10841 | case $host_os in | |
10842 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10843 | *) need_version=no ;; | |
10844 | esac | |
10845 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10846 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10847 | shlibpath_var=LD_LIBRARY_PATH | |
10848 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10849 | case $host_os in | |
10850 | openbsd2.[89] | openbsd2.[89].*) | |
10851 | shlibpath_overrides_runpath=no | |
10852 | ;; | |
10853 | *) | |
10854 | shlibpath_overrides_runpath=yes | |
10855 | ;; | |
10856 | esac | |
10857 | else | |
10858 | shlibpath_overrides_runpath=yes | |
10859 | fi | |
10860 | ;; | |
10861 | ||
10862 | os2*) | |
10863 | libname_spec='$name' | |
10864 | shrext_cmds=".dll" | |
10865 | need_lib_prefix=no | |
10866 | library_names_spec='$libname${shared_ext} $libname.a' | |
10867 | dynamic_linker='OS/2 ld.exe' | |
10868 | shlibpath_var=LIBPATH | |
10869 | ;; | |
10870 | ||
10871 | osf3* | osf4* | osf5*) | |
10872 | version_type=osf | |
10873 | need_lib_prefix=no | |
10874 | need_version=no | |
10875 | soname_spec='${libname}${release}${shared_ext}$major' | |
10876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10877 | shlibpath_var=LD_LIBRARY_PATH | |
10878 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10879 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10880 | ;; | |
10881 | ||
10882 | rdos*) | |
10883 | dynamic_linker=no | |
10884 | ;; | |
10885 | ||
10886 | solaris*) | |
10887 | version_type=linux | |
10888 | need_lib_prefix=no | |
10889 | need_version=no | |
10890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10891 | soname_spec='${libname}${release}${shared_ext}$major' | |
10892 | shlibpath_var=LD_LIBRARY_PATH | |
10893 | shlibpath_overrides_runpath=yes | |
10894 | hardcode_into_libs=yes | |
10895 | # ldd complains unless libraries are executable | |
10896 | postinstall_cmds='chmod +x $lib' | |
10897 | ;; | |
10898 | ||
10899 | sunos4*) | |
10900 | version_type=sunos | |
10901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10902 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10903 | shlibpath_var=LD_LIBRARY_PATH | |
10904 | shlibpath_overrides_runpath=yes | |
10905 | if test "$with_gnu_ld" = yes; then | |
10906 | need_lib_prefix=no | |
10907 | fi | |
10908 | need_version=yes | |
10909 | ;; | |
10910 | ||
10911 | sysv4 | sysv4.3*) | |
10912 | version_type=linux | |
10913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10914 | soname_spec='${libname}${release}${shared_ext}$major' | |
10915 | shlibpath_var=LD_LIBRARY_PATH | |
10916 | case $host_vendor in | |
10917 | sni) | |
10918 | shlibpath_overrides_runpath=no | |
10919 | need_lib_prefix=no | |
10920 | runpath_var=LD_RUN_PATH | |
10921 | ;; | |
10922 | siemens) | |
10923 | need_lib_prefix=no | |
10924 | ;; | |
10925 | motorola) | |
10926 | need_lib_prefix=no | |
10927 | need_version=no | |
10928 | shlibpath_overrides_runpath=no | |
10929 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10930 | ;; | |
10931 | esac | |
10932 | ;; | |
10933 | ||
10934 | sysv4*MP*) | |
10935 | if test -d /usr/nec ;then | |
10936 | version_type=linux | |
10937 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10938 | soname_spec='$libname${shared_ext}.$major' | |
10939 | shlibpath_var=LD_LIBRARY_PATH | |
10940 | fi | |
10941 | ;; | |
10942 | ||
10943 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10944 | version_type=freebsd-elf | |
10945 | need_lib_prefix=no | |
10946 | need_version=no | |
10947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10948 | soname_spec='${libname}${release}${shared_ext}$major' | |
10949 | shlibpath_var=LD_LIBRARY_PATH | |
10950 | shlibpath_overrides_runpath=yes | |
10951 | hardcode_into_libs=yes | |
10952 | if test "$with_gnu_ld" = yes; then | |
10953 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10954 | else | |
10955 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10956 | case $host_os in | |
10957 | sco3.2v5*) | |
10958 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10959 | ;; | |
10960 | esac | |
10961 | fi | |
10962 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10963 | ;; | |
10964 | ||
10965 | tpf*) | |
10966 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10967 | version_type=linux | |
10968 | need_lib_prefix=no | |
10969 | need_version=no | |
6b4a97ed | 10970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
10971 | shlibpath_var=LD_LIBRARY_PATH |
10972 | shlibpath_overrides_runpath=no | |
10973 | hardcode_into_libs=yes | |
10974 | ;; | |
10975 | ||
10976 | uts4*) | |
10977 | version_type=linux | |
10978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10979 | soname_spec='${libname}${release}${shared_ext}$major' | |
10980 | shlibpath_var=LD_LIBRARY_PATH | |
10981 | ;; | |
10982 | ||
10983 | *) | |
10984 | dynamic_linker=no | |
10985 | ;; | |
10986 | esac | |
5213506e RW |
10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10988 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
10989 | test "$dynamic_linker" = no && can_build_shared=no |
10990 | ||
10991 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10992 | if test "$GCC" = yes; then | |
10993 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10994 | fi | |
10995 | ||
6b4a97ed PG |
10996 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10997 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10998 | fi | |
10999 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11000 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11001 | fi | |
11002 | ||
1cf3d07d SE |
11003 | |
11004 | ||
11005 | ||
11006 | ||
11007 | ||
11008 | ||
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | ||
11014 | ||
11015 | ||
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | ||
11055 | ||
11056 | ||
11057 | ||
11058 | ||
11059 | ||
11060 | ||
11061 | ||
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | ||
11072 | ||
11073 | ||
11074 | ||
11075 | ||
11076 | ||
11077 | ||
11078 | ||
11079 | ||
11080 | ||
11081 | ||
11082 | ||
43e02a8a RW |
11083 | |
11084 | ||
11085 | ||
11086 | ||
11087 | ||
1cf3d07d SE |
11088 | |
11089 | ||
11090 | ||
11091 | ||
11092 | ||
11093 | ||
5213506e RW |
11094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11095 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
11096 | hardcode_action= |
11097 | if test -n "$hardcode_libdir_flag_spec" || | |
11098 | test -n "$runpath_var" || | |
11099 | test "X$hardcode_automatic" = "Xyes" ; then | |
11100 | ||
11101 | # We can hardcode non-existent directories. | |
11102 | if test "$hardcode_direct" != no && | |
11103 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11104 | # have to relink, otherwise we might link with an installed library | |
11105 | # when we should be linking with a yet-to-be-installed one | |
11106 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11107 | test "$hardcode_minus_L" != no; then | |
11108 | # Linking always hardcodes the temporary library directory. | |
11109 | hardcode_action=relink | |
11110 | else | |
11111 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11112 | hardcode_action=immediate | |
11113 | fi | |
11114 | else | |
11115 | # We cannot hardcode anything, or else we can only hardcode existing | |
11116 | # directories. | |
11117 | hardcode_action=unsupported | |
11118 | fi | |
5213506e RW |
11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11120 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
11121 | |
11122 | if test "$hardcode_action" = relink || | |
11123 | test "$inherit_rpath" = yes; then | |
11124 | # Fast installation is not supported | |
11125 | enable_fast_install=no | |
11126 | elif test "$shlibpath_overrides_runpath" = yes || | |
11127 | test "$enable_shared" = no; then | |
11128 | # Fast installation is not necessary | |
11129 | enable_fast_install=needless | |
11130 | fi | |
11131 | ||
11132 | ||
11133 | ||
11134 | ||
11135 | ||
11136 | ||
11137 | if test "x$enable_dlopen" != xyes; then | |
11138 | enable_dlopen=unknown | |
11139 | enable_dlopen_self=unknown | |
11140 | enable_dlopen_self_static=unknown | |
11141 | else | |
11142 | lt_cv_dlopen=no | |
11143 | lt_cv_dlopen_libs= | |
11144 | ||
11145 | case $host_os in | |
11146 | beos*) | |
11147 | lt_cv_dlopen="load_add_on" | |
11148 | lt_cv_dlopen_libs= | |
11149 | lt_cv_dlopen_self=yes | |
11150 | ;; | |
11151 | ||
6b4a97ed | 11152 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11153 | lt_cv_dlopen="LoadLibrary" |
11154 | lt_cv_dlopen_libs= | |
11155 | ;; | |
11156 | ||
11157 | cygwin*) | |
11158 | lt_cv_dlopen="dlopen" | |
11159 | lt_cv_dlopen_libs= | |
11160 | ;; | |
11161 | ||
11162 | darwin*) | |
11163 | # if libdl is installed we need to link against it | |
5213506e RW |
11164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11165 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11166 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 11167 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11168 | else |
11169 | ac_check_lib_save_LIBS=$LIBS | |
11170 | LIBS="-ldl $LIBS" | |
5213506e | 11171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11172 | /* end confdefs.h. */ |
11173 | ||
5213506e RW |
11174 | /* Override any GCC internal prototype to avoid an error. |
11175 | Use char because int might match the return type of a GCC | |
11176 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11177 | #ifdef __cplusplus |
11178 | extern "C" | |
11179 | #endif | |
1cf3d07d SE |
11180 | char dlopen (); |
11181 | int | |
11182 | main () | |
11183 | { | |
5213506e | 11184 | return dlopen (); |
1cf3d07d SE |
11185 | ; |
11186 | return 0; | |
11187 | } | |
11188 | _ACEOF | |
5213506e | 11189 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11190 | ac_cv_lib_dl_dlopen=yes |
11191 | else | |
5213506e | 11192 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 11193 | fi |
5213506e RW |
11194 | rm -f core conftest.err conftest.$ac_objext \ |
11195 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11196 | LIBS=$ac_check_lib_save_LIBS |
11197 | fi | |
5213506e RW |
11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11199 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11200 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
11201 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11202 | else | |
11203 | ||
11204 | lt_cv_dlopen="dyld" | |
11205 | lt_cv_dlopen_libs= | |
11206 | lt_cv_dlopen_self=yes | |
11207 | ||
11208 | fi | |
11209 | ||
11210 | ;; | |
11211 | ||
11212 | *) | |
5213506e | 11213 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
22e05272 | 11214 | if test "x$ac_cv_func_shl_load" = xyes; then : |
1cf3d07d SE |
11215 | lt_cv_dlopen="shl_load" |
11216 | else | |
5213506e RW |
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11218 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 11219 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
5213506e | 11220 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11221 | else |
11222 | ac_check_lib_save_LIBS=$LIBS | |
11223 | LIBS="-ldld $LIBS" | |
5213506e | 11224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11225 | /* end confdefs.h. */ |
11226 | ||
5213506e RW |
11227 | /* Override any GCC internal prototype to avoid an error. |
11228 | Use char because int might match the return type of a GCC | |
11229 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11230 | #ifdef __cplusplus |
11231 | extern "C" | |
11232 | #endif | |
1cf3d07d SE |
11233 | char shl_load (); |
11234 | int | |
11235 | main () | |
11236 | { | |
5213506e | 11237 | return shl_load (); |
1cf3d07d SE |
11238 | ; |
11239 | return 0; | |
11240 | } | |
11241 | _ACEOF | |
5213506e | 11242 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11243 | ac_cv_lib_dld_shl_load=yes |
11244 | else | |
5213506e | 11245 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 11246 | fi |
5213506e RW |
11247 | rm -f core conftest.err conftest.$ac_objext \ |
11248 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11249 | LIBS=$ac_check_lib_save_LIBS |
11250 | fi | |
5213506e RW |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11252 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 11253 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
6b4a97ed | 11254 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 11255 | else |
5213506e | 11256 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
22e05272 | 11257 | if test "x$ac_cv_func_dlopen" = xyes; then : |
1cf3d07d SE |
11258 | lt_cv_dlopen="dlopen" |
11259 | else | |
5213506e RW |
11260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11261 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11262 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 11263 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11264 | else |
11265 | ac_check_lib_save_LIBS=$LIBS | |
11266 | LIBS="-ldl $LIBS" | |
5213506e | 11267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11268 | /* end confdefs.h. */ |
11269 | ||
5213506e RW |
11270 | /* Override any GCC internal prototype to avoid an error. |
11271 | Use char because int might match the return type of a GCC | |
11272 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11273 | #ifdef __cplusplus |
11274 | extern "C" | |
11275 | #endif | |
1cf3d07d SE |
11276 | char dlopen (); |
11277 | int | |
11278 | main () | |
11279 | { | |
5213506e | 11280 | return dlopen (); |
1cf3d07d SE |
11281 | ; |
11282 | return 0; | |
11283 | } | |
11284 | _ACEOF | |
5213506e | 11285 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11286 | ac_cv_lib_dl_dlopen=yes |
11287 | else | |
5213506e | 11288 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 11289 | fi |
5213506e RW |
11290 | rm -f core conftest.err conftest.$ac_objext \ |
11291 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11292 | LIBS=$ac_check_lib_save_LIBS |
11293 | fi | |
5213506e RW |
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11295 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11296 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
11297 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11298 | else | |
5213506e RW |
11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11300 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 11301 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
5213506e | 11302 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11303 | else |
11304 | ac_check_lib_save_LIBS=$LIBS | |
11305 | LIBS="-lsvld $LIBS" | |
5213506e | 11306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11307 | /* end confdefs.h. */ |
11308 | ||
5213506e RW |
11309 | /* Override any GCC internal prototype to avoid an error. |
11310 | Use char because int might match the return type of a GCC | |
11311 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11312 | #ifdef __cplusplus |
11313 | extern "C" | |
11314 | #endif | |
1cf3d07d SE |
11315 | char dlopen (); |
11316 | int | |
11317 | main () | |
11318 | { | |
5213506e | 11319 | return dlopen (); |
1cf3d07d SE |
11320 | ; |
11321 | return 0; | |
11322 | } | |
11323 | _ACEOF | |
5213506e | 11324 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11325 | ac_cv_lib_svld_dlopen=yes |
11326 | else | |
5213506e | 11327 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 11328 | fi |
5213506e RW |
11329 | rm -f core conftest.err conftest.$ac_objext \ |
11330 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11331 | LIBS=$ac_check_lib_save_LIBS |
11332 | fi | |
5213506e RW |
11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11334 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 11335 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
1cf3d07d SE |
11336 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11337 | else | |
5213506e RW |
11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11339 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 11340 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
5213506e | 11341 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11342 | else |
11343 | ac_check_lib_save_LIBS=$LIBS | |
11344 | LIBS="-ldld $LIBS" | |
5213506e | 11345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11346 | /* end confdefs.h. */ |
11347 | ||
5213506e RW |
11348 | /* Override any GCC internal prototype to avoid an error. |
11349 | Use char because int might match the return type of a GCC | |
11350 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11351 | #ifdef __cplusplus |
11352 | extern "C" | |
11353 | #endif | |
1cf3d07d SE |
11354 | char dld_link (); |
11355 | int | |
11356 | main () | |
11357 | { | |
5213506e | 11358 | return dld_link (); |
1cf3d07d SE |
11359 | ; |
11360 | return 0; | |
11361 | } | |
11362 | _ACEOF | |
5213506e | 11363 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11364 | ac_cv_lib_dld_dld_link=yes |
11365 | else | |
5213506e | 11366 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 11367 | fi |
5213506e RW |
11368 | rm -f core conftest.err conftest.$ac_objext \ |
11369 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11370 | LIBS=$ac_check_lib_save_LIBS |
11371 | fi | |
5213506e RW |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11373 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 11374 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
6b4a97ed | 11375 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
11376 | fi |
11377 | ||
11378 | ||
11379 | fi | |
11380 | ||
11381 | ||
11382 | fi | |
11383 | ||
11384 | ||
11385 | fi | |
11386 | ||
11387 | ||
11388 | fi | |
11389 | ||
11390 | ||
11391 | fi | |
11392 | ||
11393 | ;; | |
11394 | esac | |
11395 | ||
11396 | if test "x$lt_cv_dlopen" != xno; then | |
11397 | enable_dlopen=yes | |
11398 | else | |
11399 | enable_dlopen=no | |
11400 | fi | |
11401 | ||
11402 | case $lt_cv_dlopen in | |
11403 | dlopen) | |
11404 | save_CPPFLAGS="$CPPFLAGS" | |
11405 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11406 | ||
11407 | save_LDFLAGS="$LDFLAGS" | |
11408 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11409 | ||
11410 | save_LIBS="$LIBS" | |
11411 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11412 | ||
5213506e RW |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11414 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 11415 | if ${lt_cv_dlopen_self+:} false; then : |
5213506e | 11416 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11417 | else |
11418 | if test "$cross_compiling" = yes; then : | |
11419 | lt_cv_dlopen_self=cross | |
11420 | else | |
11421 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11422 | lt_status=$lt_dlunknown | |
11423 | cat > conftest.$ac_ext <<_LT_EOF | |
f65e551f | 11424 | #line 11424 "configure" |
1cf3d07d SE |
11425 | #include "confdefs.h" |
11426 | ||
11427 | #if HAVE_DLFCN_H | |
11428 | #include <dlfcn.h> | |
11429 | #endif | |
11430 | ||
11431 | #include <stdio.h> | |
11432 | ||
11433 | #ifdef RTLD_GLOBAL | |
11434 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11435 | #else | |
11436 | # ifdef DL_GLOBAL | |
11437 | # define LT_DLGLOBAL DL_GLOBAL | |
11438 | # else | |
11439 | # define LT_DLGLOBAL 0 | |
11440 | # endif | |
11441 | #endif | |
11442 | ||
11443 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11444 | find out it does not work in some platform. */ | |
11445 | #ifndef LT_DLLAZY_OR_NOW | |
11446 | # ifdef RTLD_LAZY | |
11447 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11448 | # else | |
11449 | # ifdef DL_LAZY | |
11450 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11451 | # else | |
11452 | # ifdef RTLD_NOW | |
11453 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11454 | # else | |
11455 | # ifdef DL_NOW | |
11456 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11457 | # else | |
11458 | # define LT_DLLAZY_OR_NOW 0 | |
11459 | # endif | |
11460 | # endif | |
11461 | # endif | |
11462 | # endif | |
11463 | #endif | |
11464 | ||
43e02a8a RW |
11465 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11466 | correspondingly for the symbols needed. */ | |
11467 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11468 | void fnord () __attribute__((visibility("default"))); | |
11469 | #endif | |
11470 | ||
11471 | void fnord () { int i=42; } | |
1cf3d07d SE |
11472 | int main () |
11473 | { | |
11474 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11475 | int status = $lt_dlunknown; | |
11476 | ||
11477 | if (self) | |
11478 | { | |
11479 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
11480 | else |
11481 | { | |
11482 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11483 | else puts (dlerror ()); | |
11484 | } | |
1cf3d07d SE |
11485 | /* dlclose (self); */ |
11486 | } | |
11487 | else | |
11488 | puts (dlerror ()); | |
11489 | ||
6b4a97ed | 11490 | return status; |
1cf3d07d SE |
11491 | } |
11492 | _LT_EOF | |
5213506e | 11493 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
11494 | (eval $ac_link) 2>&5 |
11495 | ac_status=$? | |
5213506e RW |
11496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11497 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
11498 | (./conftest; exit; ) >&5 2>/dev/null |
11499 | lt_status=$? | |
11500 | case x$lt_status in | |
11501 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11502 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11503 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11504 | esac | |
11505 | else : | |
11506 | # compilation failed | |
11507 | lt_cv_dlopen_self=no | |
11508 | fi | |
11509 | fi | |
11510 | rm -fr conftest* | |
11511 | ||
11512 | ||
11513 | fi | |
5213506e RW |
11514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11515 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
11516 | |
11517 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11518 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11520 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 11521 | if ${lt_cv_dlopen_self_static+:} false; then : |
5213506e | 11522 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11523 | else |
11524 | if test "$cross_compiling" = yes; then : | |
11525 | lt_cv_dlopen_self_static=cross | |
11526 | else | |
11527 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11528 | lt_status=$lt_dlunknown | |
11529 | cat > conftest.$ac_ext <<_LT_EOF | |
f65e551f | 11530 | #line 11530 "configure" |
1cf3d07d SE |
11531 | #include "confdefs.h" |
11532 | ||
11533 | #if HAVE_DLFCN_H | |
11534 | #include <dlfcn.h> | |
11535 | #endif | |
11536 | ||
11537 | #include <stdio.h> | |
11538 | ||
11539 | #ifdef RTLD_GLOBAL | |
11540 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11541 | #else | |
11542 | # ifdef DL_GLOBAL | |
11543 | # define LT_DLGLOBAL DL_GLOBAL | |
11544 | # else | |
11545 | # define LT_DLGLOBAL 0 | |
11546 | # endif | |
11547 | #endif | |
11548 | ||
11549 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11550 | find out it does not work in some platform. */ | |
11551 | #ifndef LT_DLLAZY_OR_NOW | |
11552 | # ifdef RTLD_LAZY | |
11553 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11554 | # else | |
11555 | # ifdef DL_LAZY | |
11556 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11557 | # else | |
11558 | # ifdef RTLD_NOW | |
11559 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11560 | # else | |
11561 | # ifdef DL_NOW | |
11562 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11563 | # else | |
11564 | # define LT_DLLAZY_OR_NOW 0 | |
11565 | # endif | |
11566 | # endif | |
11567 | # endif | |
11568 | # endif | |
11569 | #endif | |
11570 | ||
43e02a8a RW |
11571 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11572 | correspondingly for the symbols needed. */ | |
11573 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11574 | void fnord () __attribute__((visibility("default"))); | |
11575 | #endif | |
11576 | ||
11577 | void fnord () { int i=42; } | |
1cf3d07d SE |
11578 | int main () |
11579 | { | |
11580 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11581 | int status = $lt_dlunknown; | |
11582 | ||
11583 | if (self) | |
11584 | { | |
11585 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
11586 | else |
11587 | { | |
11588 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11589 | else puts (dlerror ()); | |
11590 | } | |
1cf3d07d SE |
11591 | /* dlclose (self); */ |
11592 | } | |
11593 | else | |
11594 | puts (dlerror ()); | |
11595 | ||
6b4a97ed | 11596 | return status; |
1cf3d07d SE |
11597 | } |
11598 | _LT_EOF | |
5213506e | 11599 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
11600 | (eval $ac_link) 2>&5 |
11601 | ac_status=$? | |
5213506e RW |
11602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11603 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
11604 | (./conftest; exit; ) >&5 2>/dev/null |
11605 | lt_status=$? | |
11606 | case x$lt_status in | |
11607 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11608 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11609 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11610 | esac | |
11611 | else : | |
11612 | # compilation failed | |
11613 | lt_cv_dlopen_self_static=no | |
11614 | fi | |
11615 | fi | |
11616 | rm -fr conftest* | |
11617 | ||
11618 | ||
11619 | fi | |
5213506e RW |
11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11621 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
11622 | fi |
11623 | ||
11624 | CPPFLAGS="$save_CPPFLAGS" | |
11625 | LDFLAGS="$save_LDFLAGS" | |
11626 | LIBS="$save_LIBS" | |
11627 | ;; | |
11628 | esac | |
11629 | ||
11630 | case $lt_cv_dlopen_self in | |
11631 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11632 | *) enable_dlopen_self=unknown ;; | |
11633 | esac | |
11634 | ||
11635 | case $lt_cv_dlopen_self_static in | |
11636 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11637 | *) enable_dlopen_self_static=unknown ;; | |
11638 | esac | |
11639 | fi | |
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | striplib= | |
11658 | old_striplib= | |
5213506e RW |
11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11660 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
11661 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11662 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11663 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11665 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
11666 | else |
11667 | # FIXME - insert some real tests, host_os isn't really good enough | |
11668 | case $host_os in | |
11669 | darwin*) | |
11670 | if test -n "$STRIP" ; then | |
11671 | striplib="$STRIP -x" | |
11672 | old_striplib="$STRIP -S" | |
5213506e RW |
11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11674 | $as_echo "yes" >&6; } | |
1cf3d07d | 11675 | else |
5213506e RW |
11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11677 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11678 | fi |
11679 | ;; | |
11680 | *) | |
5213506e RW |
11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11682 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11683 | ;; |
11684 | esac | |
11685 | fi | |
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | # Report which library types will actually be built | |
5213506e RW |
11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11700 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11702 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 11703 | |
5213506e RW |
11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11705 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
11706 | test "$can_build_shared" = "no" && enable_shared=no |
11707 | ||
11708 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11709 | # are all built from PIC. | |
11710 | case $host_os in | |
11711 | aix3*) | |
11712 | test "$enable_shared" = yes && enable_static=no | |
11713 | if test -n "$RANLIB"; then | |
11714 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11715 | postinstall_cmds='$RANLIB $lib' | |
11716 | fi | |
11717 | ;; | |
11718 | ||
d653fdfb | 11719 | aix[4-9]*) |
1cf3d07d SE |
11720 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11721 | test "$enable_shared" = yes && enable_static=no | |
11722 | fi | |
11723 | ;; | |
11724 | esac | |
5213506e RW |
11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11726 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 11727 | |
5213506e RW |
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11729 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
11730 | # Make sure either enable_shared or enable_static is yes. |
11731 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11733 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
11734 | |
11735 | ||
11736 | ||
11737 | ||
11738 | fi | |
11739 | ac_ext=c | |
11740 | ac_cpp='$CPP $CPPFLAGS' | |
11741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11744 | ||
11745 | CC="$lt_save_CC" | |
11746 | ||
11747 | ||
11748 | ||
11749 | ||
11750 | ||
11751 | ||
11752 | ||
11753 | ||
11754 | ||
11755 | ||
11756 | ||
11757 | ||
11758 | ||
5213506e | 11759 | ac_config_commands="$ac_config_commands libtool" |
1cf3d07d SE |
11760 | |
11761 | ||
11762 | ||
11763 | ||
11764 | # Only expand once: | |
11765 | ||
11766 | ||
11767 | ||
11768 | ||
11769 | ||
7de6ba7a DK |
11770 | case $host in |
11771 | *-cygwin* | *-mingw*) | |
11772 | # 'host' will be top-level target in the case of a target lib, | |
11773 | # we must compare to with_cross_host to decide if this is a native | |
11774 | # or cross-compiler and select where to install dlls appropriately. | |
11775 | if test -n "$with_cross_host" && | |
11776 | test x"$with_cross_host" != x"no"; then | |
11777 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
11778 | else | |
11779 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
11780 | fi | |
11781 | ;; | |
11782 | *) | |
11783 | lt_host_flags= | |
11784 | ;; | |
11785 | esac | |
11786 | ||
11787 | ||
11788 | ||
11789 | ||
11790 | ||
11791 | ||
5213506e RW |
11792 | |
11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11794 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11795 | # Check whether --enable-maintainer-mode was given. | |
11796 | if test "${enable_maintainer_mode+set}" = set; then : | |
11797 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
1cf3d07d SE |
11798 | else |
11799 | USE_MAINTAINER_MODE=no | |
5213506e | 11800 | fi |
1cf3d07d | 11801 | |
5213506e RW |
11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
11803 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11804 | if test $USE_MAINTAINER_MODE = yes; then | |
1cf3d07d SE |
11805 | MAINTAINER_MODE_TRUE= |
11806 | MAINTAINER_MODE_FALSE='#' | |
11807 | else | |
11808 | MAINTAINER_MODE_TRUE='#' | |
11809 | MAINTAINER_MODE_FALSE= | |
11810 | fi | |
11811 | ||
11812 | MAINT=$MAINTAINER_MODE_TRUE | |
11813 | ||
11814 | ||
11815 | ||
1ec601bf FXC |
11816 | # Create a spec file, so that compile/link tests don't fail |
11817 | test -f libgfortran.spec || touch libgfortran.spec | |
11818 | FCFLAGS="$FCFLAGS -L." | |
11819 | ||
1cf3d07d SE |
11820 | # We need gfortran to compile parts of the library |
11821 | # We can't use AC_PROG_FC because it expects a fully working gfortran. | |
11822 | #AC_PROG_FC(gfortran) | |
0046b1a7 RW |
11823 | case `echo $GFORTRAN` in |
11824 | -* | no* ) | |
11825 | FC=no ;; | |
11826 | *) | |
2122aa97 PB |
11827 | set dummy $GFORTRAN; ac_word=$2 |
11828 | if test -x "$ac_word"; then | |
d0709b6a PB |
11829 | FC="$GFORTRAN" |
11830 | else | |
11831 | FC=no | |
11832 | fi ;; | |
0046b1a7 | 11833 | esac |
5213506e RW |
11834 | ac_ext=${ac_fc_srcext-f} |
11835 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
11836 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
11837 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
11838 | if test -n "$ac_tool_prefix"; then | |
11839 | for ac_prog in gfortran | |
11840 | do | |
11841 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11842 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11844 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11845 | if ${ac_cv_prog_FC+:} false; then : |
5213506e | 11846 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11847 | else |
11848 | if test -n "$FC"; then | |
11849 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
11850 | else | |
11851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11852 | for as_dir in $PATH | |
11853 | do | |
11854 | IFS=$as_save_IFS | |
11855 | test -z "$as_dir" && as_dir=. | |
5213506e | 11856 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 11858 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 11859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
11860 | break 2 |
11861 | fi | |
11862 | done | |
5213506e RW |
11863 | done |
11864 | IFS=$as_save_IFS | |
1cf3d07d SE |
11865 | |
11866 | fi | |
11867 | fi | |
11868 | FC=$ac_cv_prog_FC | |
11869 | if test -n "$FC"; then | |
5213506e RW |
11870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
11871 | $as_echo "$FC" >&6; } | |
1cf3d07d | 11872 | else |
5213506e RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11874 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11875 | fi |
11876 | ||
5213506e | 11877 | |
1cf3d07d SE |
11878 | test -n "$FC" && break |
11879 | done | |
11880 | fi | |
11881 | if test -z "$FC"; then | |
11882 | ac_ct_FC=$FC | |
11883 | for ac_prog in gfortran | |
11884 | do | |
11885 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11886 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11888 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11889 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
5213506e | 11890 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11891 | else |
11892 | if test -n "$ac_ct_FC"; then | |
11893 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
11894 | else | |
11895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11896 | for as_dir in $PATH | |
11897 | do | |
11898 | IFS=$as_save_IFS | |
11899 | test -z "$as_dir" && as_dir=. | |
5213506e | 11900 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 11902 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 11903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
11904 | break 2 |
11905 | fi | |
11906 | done | |
5213506e RW |
11907 | done |
11908 | IFS=$as_save_IFS | |
1cf3d07d SE |
11909 | |
11910 | fi | |
11911 | fi | |
11912 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
11913 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
11915 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 11916 | else |
5213506e RW |
11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11918 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11919 | fi |
11920 | ||
5213506e | 11921 | |
1cf3d07d SE |
11922 | test -n "$ac_ct_FC" && break |
11923 | done | |
11924 | ||
5213506e RW |
11925 | if test "x$ac_ct_FC" = x; then |
11926 | FC="" | |
11927 | else | |
11928 | case $cross_compiling:$ac_tool_warned in | |
11929 | yes:) | |
11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11931 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11932 | ac_tool_warned=yes ;; | |
11933 | esac | |
11934 | FC=$ac_ct_FC | |
11935 | fi | |
1cf3d07d SE |
11936 | fi |
11937 | ||
11938 | ||
11939 | # Provide some information about the compiler. | |
5213506e RW |
11940 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
11941 | set X $ac_compile | |
11942 | ac_compiler=$2 | |
11943 | for ac_option in --version -v -V -qversion; do | |
11944 | { { ac_try="$ac_compiler $ac_option >&5" | |
11945 | case "(($ac_try" in | |
11946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11947 | *) ac_try_echo=$ac_try;; | |
11948 | esac | |
11949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11950 | $as_echo "$ac_try_echo"; } >&5 | |
11951 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 11952 | ac_status=$? |
5213506e RW |
11953 | if test -s conftest.err; then |
11954 | sed '10a\ | |
11955 | ... rest of stderr output deleted ... | |
11956 | 10q' conftest.err >conftest.er1 | |
11957 | cat conftest.er1 >&5 | |
5213506e | 11958 | fi |
22e05272 | 11959 | rm -f conftest.er1 conftest.err |
5213506e RW |
11960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11961 | test $ac_status = 0; } | |
11962 | done | |
1cf3d07d SE |
11963 | rm -f a.out |
11964 | ||
11965 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
11966 | # input file. (Note that this only needs to work for GNU compilers.) | |
11967 | ac_save_ext=$ac_ext | |
11968 | ac_ext=F | |
5213506e RW |
11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
11970 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
22e05272 | 11971 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
5213506e | 11972 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 11973 | else |
5213506e | 11974 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
11975 | program main |
11976 | #ifndef __GNUC__ | |
11977 | choke me | |
11978 | #endif | |
11979 | ||
11980 | end | |
11981 | _ACEOF | |
5213506e | 11982 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
11983 | ac_compiler_gnu=yes |
11984 | else | |
5213506e | 11985 | ac_compiler_gnu=no |
1cf3d07d | 11986 | fi |
5213506e | 11987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
11988 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
11989 | ||
11990 | fi | |
5213506e RW |
11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
11992 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 11993 | ac_ext=$ac_save_ext |
5213506e RW |
11994 | ac_test_FCFLAGS=${FCFLAGS+set} |
11995 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 11996 | FCFLAGS= |
5213506e RW |
11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
11998 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
22e05272 | 11999 | if ${ac_cv_prog_fc_g+:} false; then : |
5213506e | 12000 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12001 | else |
12002 | FCFLAGS=-g | |
5213506e | 12003 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
12004 | program main |
12005 | ||
12006 | end | |
12007 | _ACEOF | |
5213506e | 12008 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
12009 | ac_cv_prog_fc_g=yes |
12010 | else | |
5213506e | 12011 | ac_cv_prog_fc_g=no |
1cf3d07d | 12012 | fi |
5213506e | 12013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
12014 | |
12015 | fi | |
5213506e RW |
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
12017 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
12018 | if test "$ac_test_FCFLAGS" = set; then | |
12019 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
12020 | elif test $ac_cv_prog_fc_g = yes; then |
12021 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
12022 | FCFLAGS="-g -O2" | |
12023 | else | |
12024 | FCFLAGS="-g" | |
12025 | fi | |
12026 | else | |
12027 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
12028 | FCFLAGS="-O2" | |
12029 | else | |
12030 | FCFLAGS= | |
12031 | fi | |
12032 | fi | |
12033 | ||
22e05272 JM |
12034 | if test $ac_compiler_gnu = yes; then |
12035 | GFC=yes | |
12036 | else | |
12037 | GFC= | |
12038 | fi | |
1cf3d07d SE |
12039 | ac_ext=c |
12040 | ac_cpp='$CPP $CPPFLAGS' | |
12041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12044 | ||
43e02a8a | 12045 | ac_ext=${ac_fc_srcext-f} |
5213506e RW |
12046 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
12047 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d | 12048 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
1cf3d07d | 12049 | |
1cf3d07d SE |
12050 | |
12051 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
12052 | _lt_disable_FC=yes | |
12053 | fi | |
12054 | ||
1cf3d07d SE |
12055 | archive_cmds_need_lc_FC=no |
12056 | allow_undefined_flag_FC= | |
12057 | always_export_symbols_FC=no | |
12058 | archive_expsym_cmds_FC= | |
12059 | export_dynamic_flag_spec_FC= | |
12060 | hardcode_direct_FC=no | |
12061 | hardcode_direct_absolute_FC=no | |
12062 | hardcode_libdir_flag_spec_FC= | |
12063 | hardcode_libdir_flag_spec_ld_FC= | |
12064 | hardcode_libdir_separator_FC= | |
12065 | hardcode_minus_L_FC=no | |
12066 | hardcode_automatic_FC=no | |
12067 | inherit_rpath_FC=no | |
12068 | module_cmds_FC= | |
12069 | module_expsym_cmds_FC= | |
12070 | link_all_deplibs_FC=unknown | |
12071 | old_archive_cmds_FC=$old_archive_cmds | |
43e02a8a RW |
12072 | reload_flag_FC=$reload_flag |
12073 | reload_cmds_FC=$reload_cmds | |
1cf3d07d SE |
12074 | no_undefined_flag_FC= |
12075 | whole_archive_flag_spec_FC= | |
12076 | enable_shared_with_static_runtimes_FC=no | |
12077 | ||
12078 | # Source file extension for fc test sources. | |
12079 | ac_ext=${ac_fc_srcext-f} | |
12080 | ||
12081 | # Object file extension for compiled fc test sources. | |
12082 | objext=o | |
12083 | objext_FC=$objext | |
12084 | ||
12085 | # No sense in running all these tests if we already determined that | |
12086 | # the FC compiler isn't working. Some variables (like enable_shared) | |
12087 | # are currently assumed to apply to all compilers on this platform, | |
12088 | # and will be corrupted by setting them based on a non-working compiler. | |
12089 | if test "$_lt_disable_FC" != yes; then | |
12090 | # Code to be used in simple compile tests | |
12091 | lt_simple_compile_test_code="\ | |
12092 | subroutine t | |
12093 | return | |
12094 | end | |
12095 | " | |
12096 | ||
12097 | # Code to be used in simple link tests | |
12098 | lt_simple_link_test_code="\ | |
12099 | program t | |
12100 | end | |
12101 | " | |
12102 | ||
12103 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12104 | ||
12105 | ||
12106 | ||
12107 | ||
12108 | ||
12109 | ||
12110 | # If no C compiler was specified, use CC. | |
12111 | LTCC=${LTCC-"$CC"} | |
12112 | ||
12113 | # If no C compiler flags were specified, use CFLAGS. | |
12114 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12115 | ||
12116 | # Allow CC to be a program name with arguments. | |
12117 | compiler=$CC | |
12118 | ||
12119 | ||
12120 | # save warnings/boilerplate of simple test code | |
12121 | ac_outfile=conftest.$ac_objext | |
12122 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12123 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12124 | _lt_compiler_boilerplate=`cat conftest.err` | |
12125 | $RM conftest* | |
12126 | ||
12127 | ac_outfile=conftest.$ac_objext | |
12128 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12129 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12130 | _lt_linker_boilerplate=`cat conftest.err` | |
6b4a97ed | 12131 | $RM -r conftest* |
1cf3d07d SE |
12132 | |
12133 | ||
12134 | # Allow CC to be a program name with arguments. | |
12135 | lt_save_CC="$CC" | |
6b4a97ed | 12136 | lt_save_GCC=$GCC |
1cf3d07d SE |
12137 | CC=${FC-"f95"} |
12138 | compiler=$CC | |
6b4a97ed PG |
12139 | GCC=$ac_cv_fc_compiler_gnu |
12140 | ||
1cf3d07d SE |
12141 | compiler_FC=$CC |
12142 | for cc_temp in $compiler""; do | |
12143 | case $cc_temp in | |
12144 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12145 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12146 | \-*) ;; | |
12147 | *) break;; | |
12148 | esac | |
12149 | done | |
43e02a8a | 12150 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
12151 | |
12152 | ||
12153 | if test -n "$compiler"; then | |
5213506e RW |
12154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12155 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12157 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 12158 | |
5213506e RW |
12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12160 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
12161 | test "$can_build_shared" = "no" && enable_shared=no |
12162 | ||
12163 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12164 | # are all built from PIC. | |
12165 | case $host_os in | |
12166 | aix3*) | |
12167 | test "$enable_shared" = yes && enable_static=no | |
12168 | if test -n "$RANLIB"; then | |
12169 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12170 | postinstall_cmds='$RANLIB $lib' | |
12171 | fi | |
12172 | ;; | |
d653fdfb | 12173 | aix[4-9]*) |
1cf3d07d SE |
12174 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
12175 | test "$enable_shared" = yes && enable_static=no | |
12176 | fi | |
12177 | ;; | |
12178 | esac | |
5213506e RW |
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12180 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 12181 | |
5213506e RW |
12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12183 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
12184 | # Make sure either enable_shared or enable_static is yes. |
12185 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12187 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
12188 | |
12189 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
12190 | LD_FC="$LD" | |
12191 | ||
12192 | ## CAVEAT EMPTOR: | |
12193 | ## There is no encapsulation within the following macros, do not change | |
12194 | ## the running order or otherwise move them around unless you know exactly | |
12195 | ## what you are doing... | |
12196 | # Dependencies to place before and after the object being linked: | |
12197 | predep_objects_FC= | |
12198 | postdep_objects_FC= | |
12199 | predeps_FC= | |
12200 | postdeps_FC= | |
12201 | compiler_lib_search_path_FC= | |
12202 | ||
12203 | cat > conftest.$ac_ext <<_LT_EOF | |
12204 | subroutine foo | |
12205 | implicit none | |
12206 | integer a | |
12207 | a=0 | |
12208 | return | |
12209 | end | |
12210 | _LT_EOF | |
12211 | ||
5213506e | 12212 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
12213 | (eval $ac_compile) 2>&5 |
12214 | ac_status=$? | |
5213506e RW |
12215 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12216 | test $ac_status = 0; }; then | |
1cf3d07d SE |
12217 | # Parse the compiler output and extract the necessary |
12218 | # objects, libraries and library flags. | |
12219 | ||
12220 | # Sentinel used to keep track of whether or not we are before | |
12221 | # the conftest object file. | |
12222 | pre_test_object_deps_done=no | |
12223 | ||
6b4a97ed | 12224 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
12225 | case $p in |
12226 | ||
12227 | -L* | -R* | -l*) | |
12228 | # Some compilers place space between "-{L,R}" and the path. | |
12229 | # Remove the space. | |
12230 | if test $p = "-L" || | |
12231 | test $p = "-R"; then | |
12232 | prev=$p | |
12233 | continue | |
12234 | else | |
12235 | prev= | |
12236 | fi | |
12237 | ||
12238 | if test "$pre_test_object_deps_done" = no; then | |
12239 | case $p in | |
12240 | -L* | -R*) | |
12241 | # Internal compiler library paths should come after those | |
12242 | # provided the user. The postdeps already come after the | |
12243 | # user supplied libs so there is no need to process them. | |
12244 | if test -z "$compiler_lib_search_path_FC"; then | |
12245 | compiler_lib_search_path_FC="${prev}${p}" | |
12246 | else | |
12247 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
12248 | fi | |
12249 | ;; | |
12250 | # The "-l" case would never come before the object being | |
12251 | # linked, so don't bother handling this case. | |
12252 | esac | |
12253 | else | |
12254 | if test -z "$postdeps_FC"; then | |
12255 | postdeps_FC="${prev}${p}" | |
12256 | else | |
12257 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
12258 | fi | |
12259 | fi | |
12260 | ;; | |
12261 | ||
12262 | *.$objext) | |
12263 | # This assumes that the test object file only shows up | |
12264 | # once in the compiler output. | |
12265 | if test "$p" = "conftest.$objext"; then | |
12266 | pre_test_object_deps_done=yes | |
12267 | continue | |
12268 | fi | |
12269 | ||
12270 | if test "$pre_test_object_deps_done" = no; then | |
12271 | if test -z "$predep_objects_FC"; then | |
12272 | predep_objects_FC="$p" | |
12273 | else | |
12274 | predep_objects_FC="$predep_objects_FC $p" | |
12275 | fi | |
12276 | else | |
12277 | if test -z "$postdep_objects_FC"; then | |
12278 | postdep_objects_FC="$p" | |
12279 | else | |
12280 | postdep_objects_FC="$postdep_objects_FC $p" | |
12281 | fi | |
12282 | fi | |
12283 | ;; | |
12284 | ||
12285 | *) ;; # Ignore the rest. | |
12286 | ||
12287 | esac | |
12288 | done | |
12289 | ||
12290 | # Clean up. | |
12291 | rm -f a.out a.exe | |
12292 | else | |
12293 | echo "libtool.m4: error: problem compiling FC test program" | |
12294 | fi | |
12295 | ||
12296 | $RM -f confest.$objext | |
12297 | ||
12298 | # PORTME: override above test on systems where it is broken | |
12299 | ||
12300 | ||
12301 | case " $postdeps_FC " in | |
12302 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
12303 | esac | |
6b4a97ed PG |
12304 | compiler_lib_search_dirs_FC= |
12305 | if test -n "${compiler_lib_search_path_FC}"; then | |
12306 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12307 | fi | |
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | ||
1cf3d07d SE |
12313 | |
12314 | ||
12315 | ||
12316 | ||
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | ||
12322 | ||
12323 | ||
12324 | ||
12325 | ||
12326 | ||
12327 | ||
12328 | ||
12329 | ||
12330 | ||
12331 | ||
12332 | ||
12333 | ||
12334 | ||
12335 | ||
12336 | ||
12337 | ||
12338 | ||
12339 | lt_prog_compiler_wl_FC= | |
12340 | lt_prog_compiler_pic_FC= | |
12341 | lt_prog_compiler_static_FC= | |
12342 | ||
5213506e RW |
12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
12344 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
12345 | |
12346 | if test "$GCC" = yes; then | |
12347 | lt_prog_compiler_wl_FC='-Wl,' | |
12348 | lt_prog_compiler_static_FC='-static' | |
12349 | ||
12350 | case $host_os in | |
12351 | aix*) | |
12352 | # All AIX code is PIC. | |
12353 | if test "$host_cpu" = ia64; then | |
12354 | # AIX 5 now supports IA64 processor | |
12355 | lt_prog_compiler_static_FC='-Bstatic' | |
12356 | fi | |
6608378b | 12357 | lt_prog_compiler_pic_FC='-fPIC' |
1cf3d07d SE |
12358 | ;; |
12359 | ||
12360 | amigaos*) | |
6b4a97ed PG |
12361 | case $host_cpu in |
12362 | powerpc) | |
12363 | # see comment about AmigaOS4 .so support | |
12364 | lt_prog_compiler_pic_FC='-fPIC' | |
12365 | ;; | |
12366 | m68k) | |
12367 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12368 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12369 | # like `-m68040'. | |
12370 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
12371 | ;; | |
12372 | esac | |
1cf3d07d SE |
12373 | ;; |
12374 | ||
12375 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12376 | # PIC is the default for these OSes. | |
12377 | ;; | |
12378 | ||
6b4a97ed | 12379 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
12380 | # This hack is so that the source file can tell whether it is being |
12381 | # built for inclusion in a dll (and should export symbols for example). | |
12382 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12383 | # (--disable-auto-import) libraries | |
12384 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
12385 | ;; | |
12386 | ||
12387 | darwin* | rhapsody*) | |
12388 | # PIC is the default on this platform | |
12389 | # Common symbols not allowed in MH_DYLIB files | |
12390 | lt_prog_compiler_pic_FC='-fno-common' | |
12391 | ;; | |
12392 | ||
43e02a8a RW |
12393 | haiku*) |
12394 | # PIC is the default for Haiku. | |
12395 | # The "-static" flag exists, but is broken. | |
12396 | lt_prog_compiler_static_FC= | |
12397 | ;; | |
12398 | ||
1cf3d07d | 12399 | hpux*) |
6b4a97ed PG |
12400 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
12401 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12402 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 12403 | case $host_cpu in |
6b4a97ed | 12404 | hppa*64*) |
1cf3d07d SE |
12405 | # +Z the default |
12406 | ;; | |
12407 | *) | |
12408 | lt_prog_compiler_pic_FC='-fPIC' | |
12409 | ;; | |
12410 | esac | |
12411 | ;; | |
12412 | ||
12413 | interix[3-9]*) | |
12414 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12415 | # Instead, we relocate shared libraries at runtime. | |
12416 | ;; | |
12417 | ||
12418 | msdosdjgpp*) | |
12419 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
12420 | # on systems that don't support them. | |
12421 | lt_prog_compiler_can_build_shared_FC=no | |
12422 | enable_shared=no | |
12423 | ;; | |
12424 | ||
12425 | *nto* | *qnx*) | |
12426 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12427 | # it will coredump. | |
12428 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
12429 | ;; | |
12430 | ||
12431 | sysv4*MP*) | |
12432 | if test -d /usr/nec; then | |
12433 | lt_prog_compiler_pic_FC=-Kconform_pic | |
12434 | fi | |
12435 | ;; | |
12436 | ||
12437 | *) | |
12438 | lt_prog_compiler_pic_FC='-fPIC' | |
12439 | ;; | |
12440 | esac | |
43e02a8a RW |
12441 | |
12442 | case $cc_basename in | |
12443 | nvcc*) # Cuda Compiler Driver 2.2 | |
12444 | lt_prog_compiler_wl_FC='-Xlinker ' | |
12445 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
12446 | ;; | |
12447 | esac | |
1cf3d07d SE |
12448 | else |
12449 | # PORTME Check for flag to pass linker flags through the system compiler. | |
12450 | case $host_os in | |
12451 | aix*) | |
12452 | lt_prog_compiler_wl_FC='-Wl,' | |
12453 | if test "$host_cpu" = ia64; then | |
12454 | # AIX 5 now supports IA64 processor | |
12455 | lt_prog_compiler_static_FC='-Bstatic' | |
12456 | else | |
12457 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
12458 | fi | |
12459 | ;; | |
1cf3d07d | 12460 | |
6b4a97ed | 12461 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
12462 | # This hack is so that the source file can tell whether it is being |
12463 | # built for inclusion in a dll (and should export symbols for example). | |
12464 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
12465 | ;; | |
12466 | ||
12467 | hpux9* | hpux10* | hpux11*) | |
12468 | lt_prog_compiler_wl_FC='-Wl,' | |
12469 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12470 | # not for PA HP-UX. | |
12471 | case $host_cpu in | |
12472 | hppa*64*|ia64*) | |
12473 | # +Z the default | |
12474 | ;; | |
12475 | *) | |
12476 | lt_prog_compiler_pic_FC='+Z' | |
12477 | ;; | |
12478 | esac | |
12479 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
12480 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
12481 | ;; | |
12482 | ||
12483 | irix5* | irix6* | nonstopux*) | |
12484 | lt_prog_compiler_wl_FC='-Wl,' | |
12485 | # PIC (with -KPIC) is the default. | |
12486 | lt_prog_compiler_static_FC='-non_shared' | |
12487 | ;; | |
12488 | ||
7a9d3fe8 | 12489 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 12490 | case $cc_basename in |
6b4a97ed PG |
12491 | # old Intel for x86_64 which still supported -KPIC. |
12492 | ecc*) | |
1cf3d07d SE |
12493 | lt_prog_compiler_wl_FC='-Wl,' |
12494 | lt_prog_compiler_pic_FC='-KPIC' | |
12495 | lt_prog_compiler_static_FC='-static' | |
12496 | ;; | |
6b4a97ed PG |
12497 | # icc used to be incompatible with GCC. |
12498 | # ICC 10 doesn't accept -KPIC any more. | |
12499 | icc* | ifort*) | |
12500 | lt_prog_compiler_wl_FC='-Wl,' | |
12501 | lt_prog_compiler_pic_FC='-fPIC' | |
12502 | lt_prog_compiler_static_FC='-static' | |
12503 | ;; | |
12504 | # Lahey Fortran 8.1. | |
12505 | lf95*) | |
12506 | lt_prog_compiler_wl_FC='-Wl,' | |
12507 | lt_prog_compiler_pic_FC='--shared' | |
12508 | lt_prog_compiler_static_FC='--static' | |
12509 | ;; | |
43e02a8a | 12510 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
12511 | # Portland Group compilers (*not* the Pentium gcc compiler, |
12512 | # which looks to be a dead project) | |
12513 | lt_prog_compiler_wl_FC='-Wl,' | |
12514 | lt_prog_compiler_pic_FC='-fpic' | |
12515 | lt_prog_compiler_static_FC='-Bstatic' | |
12516 | ;; | |
12517 | ccc*) | |
12518 | lt_prog_compiler_wl_FC='-Wl,' | |
12519 | # All Alpha code is PIC. | |
12520 | lt_prog_compiler_static_FC='-non_shared' | |
12521 | ;; | |
43e02a8a RW |
12522 | xl* | bgxl* | bgf* | mpixl*) |
12523 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
6b4a97ed PG |
12524 | lt_prog_compiler_wl_FC='-Wl,' |
12525 | lt_prog_compiler_pic_FC='-qpic' | |
12526 | lt_prog_compiler_static_FC='-qstaticlink' | |
12527 | ;; | |
1cf3d07d SE |
12528 | *) |
12529 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
12530 | *Sun\ F* | *Sun*Fortran*) |
12531 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
12532 | lt_prog_compiler_pic_FC='-KPIC' |
12533 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 12534 | lt_prog_compiler_wl_FC='' |
1cf3d07d | 12535 | ;; |
43e02a8a RW |
12536 | *Sun\ C*) |
12537 | # Sun C 5.9 | |
1cf3d07d SE |
12538 | lt_prog_compiler_pic_FC='-KPIC' |
12539 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 12540 | lt_prog_compiler_wl_FC='-Wl,' |
1cf3d07d SE |
12541 | ;; |
12542 | esac | |
12543 | ;; | |
12544 | esac | |
12545 | ;; | |
12546 | ||
12547 | newsos6) | |
12548 | lt_prog_compiler_pic_FC='-KPIC' | |
12549 | lt_prog_compiler_static_FC='-Bstatic' | |
12550 | ;; | |
12551 | ||
12552 | *nto* | *qnx*) | |
12553 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12554 | # it will coredump. | |
12555 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
12556 | ;; | |
12557 | ||
12558 | osf3* | osf4* | osf5*) | |
12559 | lt_prog_compiler_wl_FC='-Wl,' | |
12560 | # All OSF/1 code is PIC. | |
12561 | lt_prog_compiler_static_FC='-non_shared' | |
12562 | ;; | |
12563 | ||
12564 | rdos*) | |
12565 | lt_prog_compiler_static_FC='-non_shared' | |
12566 | ;; | |
12567 | ||
12568 | solaris*) | |
12569 | lt_prog_compiler_pic_FC='-KPIC' | |
12570 | lt_prog_compiler_static_FC='-Bstatic' | |
12571 | case $cc_basename in | |
12572 | f77* | f90* | f95*) | |
12573 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
12574 | *) | |
12575 | lt_prog_compiler_wl_FC='-Wl,';; | |
12576 | esac | |
12577 | ;; | |
12578 | ||
12579 | sunos4*) | |
12580 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
12581 | lt_prog_compiler_pic_FC='-PIC' | |
12582 | lt_prog_compiler_static_FC='-Bstatic' | |
12583 | ;; | |
12584 | ||
12585 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
12586 | lt_prog_compiler_wl_FC='-Wl,' | |
12587 | lt_prog_compiler_pic_FC='-KPIC' | |
12588 | lt_prog_compiler_static_FC='-Bstatic' | |
12589 | ;; | |
12590 | ||
12591 | sysv4*MP*) | |
12592 | if test -d /usr/nec ;then | |
12593 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
12594 | lt_prog_compiler_static_FC='-Bstatic' | |
12595 | fi | |
12596 | ;; | |
12597 | ||
12598 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12599 | lt_prog_compiler_wl_FC='-Wl,' | |
12600 | lt_prog_compiler_pic_FC='-KPIC' | |
12601 | lt_prog_compiler_static_FC='-Bstatic' | |
12602 | ;; | |
12603 | ||
12604 | unicos*) | |
12605 | lt_prog_compiler_wl_FC='-Wl,' | |
12606 | lt_prog_compiler_can_build_shared_FC=no | |
12607 | ;; | |
12608 | ||
12609 | uts4*) | |
12610 | lt_prog_compiler_pic_FC='-pic' | |
12611 | lt_prog_compiler_static_FC='-Bstatic' | |
12612 | ;; | |
12613 | ||
12614 | *) | |
12615 | lt_prog_compiler_can_build_shared_FC=no | |
12616 | ;; | |
12617 | esac | |
12618 | fi | |
12619 | ||
12620 | case $host_os in | |
12621 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12622 | *djgpp*) | |
12623 | lt_prog_compiler_pic_FC= | |
12624 | ;; | |
12625 | *) | |
12626 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
12627 | ;; | |
12628 | esac | |
5213506e RW |
12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
12630 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
1cf3d07d SE |
12631 | |
12632 | ||
12633 | ||
12634 | # | |
12635 | # Check to make sure the PIC flag actually works. | |
12636 | # | |
12637 | if test -n "$lt_prog_compiler_pic_FC"; then | |
5213506e RW |
12638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
12639 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
22e05272 | 12640 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
5213506e | 12641 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 12642 | else |
6b4a97ed | 12643 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
12644 | ac_outfile=conftest.$ac_objext |
12645 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12646 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
12647 | # Insert the option either (1) after the last *FLAGS variable, or | |
12648 | # (2) before a word containing "conftest.", or (3) at the end. | |
12649 | # Note that $ac_compile itself does not contain backslashes and begins | |
12650 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12651 | # The option is referenced via a variable to avoid confusing sed. | |
12652 | lt_compile=`echo "$ac_compile" | $SED \ | |
12653 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12654 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12655 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 12656 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
12657 | (eval "$lt_compile" 2>conftest.err) |
12658 | ac_status=$? | |
12659 | cat conftest.err >&5 | |
43e02a8a | 12660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
12661 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12662 | # The compiler can only warn and ignore the option if not recognized | |
12663 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 12664 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
12665 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12666 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 12667 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
12668 | fi |
12669 | fi | |
12670 | $RM conftest* | |
12671 | ||
12672 | fi | |
5213506e RW |
12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
12674 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
1cf3d07d | 12675 | |
6b4a97ed | 12676 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
12677 | case $lt_prog_compiler_pic_FC in |
12678 | "" | " "*) ;; | |
12679 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
12680 | esac | |
12681 | else | |
12682 | lt_prog_compiler_pic_FC= | |
12683 | lt_prog_compiler_can_build_shared_FC=no | |
12684 | fi | |
12685 | ||
12686 | fi | |
12687 | ||
12688 | ||
12689 | ||
12690 | # | |
12691 | # Check to make sure the static flag actually works. | |
12692 | # | |
12693 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
5213506e RW |
12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12695 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 12696 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
5213506e | 12697 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 12698 | else |
6b4a97ed | 12699 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
12700 | save_LDFLAGS="$LDFLAGS" |
12701 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12702 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12703 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12704 | # The linker can only warn and ignore the option if not recognized | |
12705 | # So say no if there are warnings | |
12706 | if test -s conftest.err; then | |
12707 | # Append any errors to the config.log. | |
12708 | cat conftest.err 1>&5 | |
43e02a8a | 12709 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
12710 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12711 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 12712 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
12713 | fi |
12714 | else | |
6b4a97ed | 12715 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
12716 | fi |
12717 | fi | |
6b4a97ed | 12718 | $RM -r conftest* |
1cf3d07d SE |
12719 | LDFLAGS="$save_LDFLAGS" |
12720 | ||
12721 | fi | |
5213506e RW |
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
12723 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
1cf3d07d | 12724 | |
6b4a97ed | 12725 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
12726 | : |
12727 | else | |
12728 | lt_prog_compiler_static_FC= | |
12729 | fi | |
12730 | ||
12731 | ||
12732 | ||
12733 | ||
5213506e RW |
12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12735 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 12736 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 12737 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12738 | else |
12739 | lt_cv_prog_compiler_c_o_FC=no | |
12740 | $RM -r conftest 2>/dev/null | |
12741 | mkdir conftest | |
12742 | cd conftest | |
12743 | mkdir out | |
12744 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12745 | ||
12746 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12747 | # Insert the option either (1) after the last *FLAGS variable, or | |
12748 | # (2) before a word containing "conftest.", or (3) at the end. | |
12749 | # Note that $ac_compile itself does not contain backslashes and begins | |
12750 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12751 | lt_compile=`echo "$ac_compile" | $SED \ | |
12752 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12753 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12754 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 12755 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
12756 | (eval "$lt_compile" 2>out/conftest.err) |
12757 | ac_status=$? | |
12758 | cat out/conftest.err >&5 | |
43e02a8a | 12759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
12760 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12761 | then | |
12762 | # The compiler can only warn and ignore the option if not recognized | |
12763 | # So say no if there are warnings | |
43e02a8a | 12764 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
12765 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12766 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12767 | lt_cv_prog_compiler_c_o_FC=yes | |
12768 | fi | |
12769 | fi | |
12770 | chmod u+w . 2>&5 | |
12771 | $RM conftest* | |
12772 | # SGI C++ compiler will create directory out/ii_files/ for | |
12773 | # template instantiation | |
12774 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12775 | $RM out/* && rmdir out | |
12776 | cd .. | |
12777 | $RM -r conftest | |
12778 | $RM conftest* | |
12779 | ||
12780 | fi | |
5213506e RW |
12781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12782 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
12783 | |
12784 | ||
12785 | ||
5213506e RW |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12787 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 12788 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 12789 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12790 | else |
12791 | lt_cv_prog_compiler_c_o_FC=no | |
12792 | $RM -r conftest 2>/dev/null | |
12793 | mkdir conftest | |
12794 | cd conftest | |
12795 | mkdir out | |
12796 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12797 | ||
12798 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12799 | # Insert the option either (1) after the last *FLAGS variable, or | |
12800 | # (2) before a word containing "conftest.", or (3) at the end. | |
12801 | # Note that $ac_compile itself does not contain backslashes and begins | |
12802 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12803 | lt_compile=`echo "$ac_compile" | $SED \ | |
12804 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12805 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12806 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 12807 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
12808 | (eval "$lt_compile" 2>out/conftest.err) |
12809 | ac_status=$? | |
12810 | cat out/conftest.err >&5 | |
43e02a8a | 12811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
12812 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12813 | then | |
12814 | # The compiler can only warn and ignore the option if not recognized | |
12815 | # So say no if there are warnings | |
43e02a8a | 12816 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
12817 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12818 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12819 | lt_cv_prog_compiler_c_o_FC=yes | |
12820 | fi | |
12821 | fi | |
12822 | chmod u+w . 2>&5 | |
12823 | $RM conftest* | |
12824 | # SGI C++ compiler will create directory out/ii_files/ for | |
12825 | # template instantiation | |
12826 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12827 | $RM out/* && rmdir out | |
12828 | cd .. | |
12829 | $RM -r conftest | |
12830 | $RM conftest* | |
12831 | ||
12832 | fi | |
5213506e RW |
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12834 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
12835 | |
12836 | ||
12837 | ||
12838 | ||
12839 | hard_links="nottested" | |
12840 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
12841 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
12843 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
12844 | hard_links=yes |
12845 | $RM conftest* | |
12846 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12847 | touch conftest.a | |
12848 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12849 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
12850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
12851 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 12852 | if test "$hard_links" = no; then |
5213506e RW |
12853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12854 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
12855 | need_locks=warn |
12856 | fi | |
12857 | else | |
12858 | need_locks=no | |
12859 | fi | |
12860 | ||
12861 | ||
12862 | ||
5213506e RW |
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12864 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
12865 | |
12866 | runpath_var= | |
12867 | allow_undefined_flag_FC= | |
12868 | always_export_symbols_FC=no | |
12869 | archive_cmds_FC= | |
12870 | archive_expsym_cmds_FC= | |
12871 | compiler_needs_object_FC=no | |
12872 | enable_shared_with_static_runtimes_FC=no | |
12873 | export_dynamic_flag_spec_FC= | |
12874 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12875 | hardcode_automatic_FC=no | |
12876 | hardcode_direct_FC=no | |
12877 | hardcode_direct_absolute_FC=no | |
12878 | hardcode_libdir_flag_spec_FC= | |
12879 | hardcode_libdir_flag_spec_ld_FC= | |
12880 | hardcode_libdir_separator_FC= | |
12881 | hardcode_minus_L_FC=no | |
12882 | hardcode_shlibpath_var_FC=unsupported | |
12883 | inherit_rpath_FC=no | |
12884 | link_all_deplibs_FC=unknown | |
12885 | module_cmds_FC= | |
12886 | module_expsym_cmds_FC= | |
12887 | old_archive_from_new_cmds_FC= | |
12888 | old_archive_from_expsyms_cmds_FC= | |
12889 | thread_safe_flag_spec_FC= | |
12890 | whole_archive_flag_spec_FC= | |
12891 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12892 | # included in the symbol list | |
12893 | include_expsyms_FC= | |
12894 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
12895 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12896 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12897 | # as well as any symbol that contains `d'. | |
6b4a97ed | 12898 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
12899 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
12900 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12901 | # the symbol is explicitly referenced. Since portable code cannot | |
12902 | # rely on this symbol name, it's probably fine to never include it in | |
12903 | # preloaded symbol tables. | |
6b4a97ed | 12904 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
12905 | extract_expsyms_cmds= |
12906 | ||
12907 | case $host_os in | |
6b4a97ed | 12908 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12909 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
12910 | # When not using gcc, we currently assume that we are using | |
12911 | # Microsoft Visual C++. | |
12912 | if test "$GCC" != yes; then | |
12913 | with_gnu_ld=no | |
12914 | fi | |
12915 | ;; | |
12916 | interix*) | |
12917 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
12918 | with_gnu_ld=yes | |
12919 | ;; | |
12920 | openbsd*) | |
12921 | with_gnu_ld=no | |
12922 | ;; | |
12923 | esac | |
12924 | ||
12925 | ld_shlibs_FC=yes | |
43e02a8a RW |
12926 | |
12927 | # On some targets, GNU ld is compatible enough with the native linker | |
12928 | # that we're better off using the native interface for both. | |
12929 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 12930 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
12931 | case $host_os in |
12932 | aix*) | |
12933 | # The AIX port of GNU ld has always aspired to compatibility | |
12934 | # with the native linker. However, as the warning in the GNU ld | |
12935 | # block says, versions before 2.19.5* couldn't really create working | |
12936 | # shared libraries, regardless of the interface used. | |
12937 | case `$LD -v 2>&1` in | |
12938 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
12939 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
12940 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
12941 | *) | |
12942 | lt_use_gnu_ld_interface=yes | |
12943 | ;; | |
12944 | esac | |
12945 | ;; | |
12946 | *) | |
12947 | lt_use_gnu_ld_interface=yes | |
12948 | ;; | |
12949 | esac | |
12950 | fi | |
12951 | ||
12952 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
12953 | # If archive_cmds runs LD, not CC, wlarc should be empty |
12954 | wlarc='${wl}' | |
12955 | ||
12956 | # Set some defaults for GNU ld with shared library support. These | |
12957 | # are reset later if shared libraries are not supported. Putting them | |
12958 | # here allows them to be overridden if necessary. | |
12959 | runpath_var=LD_RUN_PATH | |
12960 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12961 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
12962 | # ancient GNU ld didn't support --whole-archive et. al. | |
12963 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
12964 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12965 | else | |
12966 | whole_archive_flag_spec_FC= | |
12967 | fi | |
12968 | supports_anon_versioning=no | |
12969 | case `$LD -v 2>&1` in | |
43e02a8a | 12970 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
12971 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
12972 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
12973 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
12974 | *\ 2.11.*) ;; # other 2.11 versions | |
12975 | *) supports_anon_versioning=yes ;; | |
12976 | esac | |
12977 | ||
12978 | # See if GNU ld supports shared libraries. | |
12979 | case $host_os in | |
d653fdfb | 12980 | aix[3-9]*) |
1cf3d07d SE |
12981 | # On AIX/PPC, the GNU linker is very broken |
12982 | if test "$host_cpu" != ia64; then | |
12983 | ld_shlibs_FC=no | |
12984 | cat <<_LT_EOF 1>&2 | |
12985 | ||
43e02a8a | 12986 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
12987 | *** to be unable to reliably create shared libraries on AIX. |
12988 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
12989 | *** really care for shared libraries, you may want to install binutils |
12990 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
12991 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
12992 | |
12993 | _LT_EOF | |
12994 | fi | |
12995 | ;; | |
12996 | ||
12997 | amigaos*) | |
6b4a97ed PG |
12998 | case $host_cpu in |
12999 | powerpc) | |
13000 | # see comment about AmigaOS4 .so support | |
13001 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13002 | archive_expsym_cmds_FC='' | |
13003 | ;; | |
13004 | m68k) | |
13005 | 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)' | |
13006 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13007 | hardcode_minus_L_FC=yes | |
13008 | ;; | |
13009 | esac | |
1cf3d07d SE |
13010 | ;; |
13011 | ||
13012 | beos*) | |
13013 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13014 | allow_undefined_flag_FC=unsupported | |
13015 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13016 | # support --undefined. This deserves some investigation. FIXME | |
13017 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13018 | else | |
13019 | ld_shlibs_FC=no | |
13020 | fi | |
13021 | ;; | |
13022 | ||
6b4a97ed | 13023 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
13024 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
13025 | # as there is no search path for DLLs. | |
13026 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
43e02a8a | 13027 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
1cf3d07d SE |
13028 | allow_undefined_flag_FC=unsupported |
13029 | always_export_symbols_FC=no | |
13030 | enable_shared_with_static_runtimes_FC=yes | |
13031 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
13032 | ||
13033 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13034 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13035 | # If the export-symbols file already is a .def file (1st line | |
13036 | # is EXPORTS), use it as is; otherwise, prepend... | |
13037 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13038 | cp $export_symbols $output_objdir/$soname.def; | |
13039 | else | |
13040 | echo EXPORTS > $output_objdir/$soname.def; | |
13041 | cat $export_symbols >> $output_objdir/$soname.def; | |
13042 | fi~ | |
13043 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13044 | else | |
13045 | ld_shlibs_FC=no | |
13046 | fi | |
13047 | ;; | |
13048 | ||
43e02a8a RW |
13049 | haiku*) |
13050 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13051 | link_all_deplibs_FC=yes | |
13052 | ;; | |
13053 | ||
1cf3d07d SE |
13054 | interix[3-9]*) |
13055 | hardcode_direct_FC=no | |
13056 | hardcode_shlibpath_var_FC=no | |
13057 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
13058 | export_dynamic_flag_spec_FC='${wl}-E' | |
13059 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13060 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13061 | # default) and relocated if they conflict, which is a slow very memory | |
13062 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13063 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13064 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13065 | 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' | |
13066 | 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' | |
13067 | ;; | |
13068 | ||
e9085da5 | 13069 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
13070 | tmp_diet=no |
13071 | if test "$host_os" = linux-dietlibc; then | |
13072 | case $cc_basename in | |
13073 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
13074 | esac | |
13075 | fi | |
13076 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
13077 | && test "$tmp_diet" = no | |
13078 | then | |
a699d672 | 13079 | tmp_addflag=' $pic_flag' |
6b4a97ed | 13080 | tmp_sharedflag='-shared' |
1cf3d07d SE |
13081 | case $cc_basename,$host_cpu in |
13082 | pgcc*) # Portland Group C compiler | |
43e02a8a | 13083 | 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' |
1cf3d07d SE |
13084 | tmp_addflag=' $pic_flag' |
13085 | ;; | |
43e02a8a RW |
13086 | pgf77* | pgf90* | pgf95* | pgfortran*) |
13087 | # Portland Group f77 and f90 compilers | |
13088 | 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' | |
1cf3d07d SE |
13089 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13090 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13091 | tmp_addflag=' -i_dynamic' ;; | |
13092 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13093 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13094 | ifc* | ifort*) # Intel Fortran compiler | |
13095 | tmp_addflag=' -nofor_main' ;; | |
6b4a97ed PG |
13096 | lf95*) # Lahey Fortran 8.1 |
13097 | whole_archive_flag_spec_FC= | |
13098 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 13099 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
6b4a97ed PG |
13100 | tmp_sharedflag='-qmkshrobj' |
13101 | tmp_addflag= ;; | |
43e02a8a RW |
13102 | nvcc*) # Cuda Compiler Driver 2.2 |
13103 | 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' | |
13104 | compiler_needs_object_FC=yes | |
13105 | ;; | |
1cf3d07d SE |
13106 | esac |
13107 | case `$CC -V 2>&1 | sed 5q` in | |
13108 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 13109 | 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' |
1cf3d07d SE |
13110 | compiler_needs_object_FC=yes |
13111 | tmp_sharedflag='-G' ;; | |
13112 | *Sun\ F*) # Sun Fortran 8.3 | |
13113 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
13114 | esac |
13115 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13116 | ||
13117 | if test "x$supports_anon_versioning" = xyes; then | |
13118 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
13119 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13120 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13121 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13122 | fi | |
6b4a97ed PG |
13123 | |
13124 | case $cc_basename in | |
43e02a8a | 13125 | xlf* | bgf* | bgxlf* | mpixlf*) |
6b4a97ed PG |
13126 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
13127 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
13128 | hardcode_libdir_flag_spec_FC= | |
13129 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
13130 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
13131 | if test "x$supports_anon_versioning" = xyes; then | |
13132 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
13133 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13134 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13135 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
13136 | fi | |
13137 | ;; | |
13138 | esac | |
1cf3d07d SE |
13139 | else |
13140 | ld_shlibs_FC=no | |
13141 | fi | |
13142 | ;; | |
13143 | ||
13144 | netbsd*) | |
13145 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13146 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13147 | wlarc= | |
13148 | else | |
13149 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13150 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13151 | fi | |
13152 | ;; | |
13153 | ||
13154 | solaris*) | |
13155 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
13156 | ld_shlibs_FC=no | |
13157 | cat <<_LT_EOF 1>&2 | |
13158 | ||
13159 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13160 | *** create shared libraries on Solaris systems. Therefore, libtool | |
13161 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13162 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
13163 | *** your PATH or compiler configuration so that the native linker is | |
13164 | *** used, and then restart. | |
13165 | ||
13166 | _LT_EOF | |
13167 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13168 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13169 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13170 | else | |
13171 | ld_shlibs_FC=no | |
13172 | fi | |
13173 | ;; | |
13174 | ||
13175 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
13176 | case `$LD -v 2>&1` in | |
13177 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
13178 | ld_shlibs_FC=no | |
13179 | cat <<_LT_EOF 1>&2 | |
13180 | ||
13181 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
13182 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
13183 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13184 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
13185 | *** your PATH or compiler configuration so that the native linker is | |
13186 | *** used, and then restart. | |
13187 | ||
13188 | _LT_EOF | |
13189 | ;; | |
13190 | *) | |
13191 | # For security reasons, it is highly recommended that you always | |
13192 | # use absolute paths for naming shared libraries, and exclude the | |
13193 | # DT_RUNPATH tag from executables and libraries. But doing so | |
13194 | # requires that you compile everything twice, which is a pain. | |
13195 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13196 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13197 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13198 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13199 | else | |
13200 | ld_shlibs_FC=no | |
13201 | fi | |
13202 | ;; | |
13203 | esac | |
13204 | ;; | |
13205 | ||
13206 | sunos4*) | |
13207 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13208 | wlarc= | |
13209 | hardcode_direct_FC=yes | |
13210 | hardcode_shlibpath_var_FC=no | |
13211 | ;; | |
13212 | ||
13213 | *) | |
13214 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13215 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13216 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13217 | else | |
13218 | ld_shlibs_FC=no | |
13219 | fi | |
13220 | ;; | |
13221 | esac | |
13222 | ||
13223 | if test "$ld_shlibs_FC" = no; then | |
13224 | runpath_var= | |
13225 | hardcode_libdir_flag_spec_FC= | |
13226 | export_dynamic_flag_spec_FC= | |
13227 | whole_archive_flag_spec_FC= | |
13228 | fi | |
13229 | else | |
13230 | # PORTME fill in a description of your system's linker (not GNU ld) | |
13231 | case $host_os in | |
13232 | aix3*) | |
13233 | allow_undefined_flag_FC=unsupported | |
13234 | always_export_symbols_FC=yes | |
13235 | 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' | |
13236 | # Note: this linker hardcodes the directories in LIBPATH if there | |
13237 | # are no directories specified by -L. | |
13238 | hardcode_minus_L_FC=yes | |
13239 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
13240 | # Neither direct hardcoding nor static linking is supported with a | |
13241 | # broken collect2. | |
13242 | hardcode_direct_FC=unsupported | |
13243 | fi | |
13244 | ;; | |
13245 | ||
d653fdfb | 13246 | aix[4-9]*) |
1cf3d07d SE |
13247 | if test "$host_cpu" = ia64; then |
13248 | # On IA64, the linker does run time linking by default, so we don't | |
13249 | # have to do anything special. | |
13250 | aix_use_runtimelinking=no | |
13251 | exp_sym_flag='-Bexport' | |
13252 | no_entry_flag="" | |
13253 | else | |
13254 | # If we're using GNU nm, then we don't want the "-C" option. | |
13255 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
13256 | # Also, AIX nm treats weak defined symbols like other global |
13257 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 13258 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 13259 | 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' |
1cf3d07d | 13260 | else |
3e0fb1a3 | 13261 | 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' |
1cf3d07d SE |
13262 | fi |
13263 | aix_use_runtimelinking=no | |
13264 | ||
13265 | # Test if we are trying to use run time linking or normal | |
13266 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13267 | # need to do runtime linking. | |
d653fdfb | 13268 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
13269 | for ld_flag in $LDFLAGS; do |
13270 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
13271 | aix_use_runtimelinking=yes | |
13272 | break | |
13273 | fi | |
13274 | done | |
13275 | ;; | |
13276 | esac | |
13277 | ||
13278 | exp_sym_flag='-bexport' | |
13279 | no_entry_flag='-bnoentry' | |
13280 | fi | |
13281 | ||
13282 | # When large executables or shared objects are built, AIX ld can | |
13283 | # have problems creating the table of contents. If linking a library | |
13284 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13285 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13286 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13287 | ||
13288 | archive_cmds_FC='' | |
13289 | hardcode_direct_FC=yes | |
13290 | hardcode_direct_absolute_FC=yes | |
13291 | hardcode_libdir_separator_FC=':' | |
13292 | link_all_deplibs_FC=yes | |
13293 | file_list_spec_FC='${wl}-f,' | |
13294 | ||
13295 | if test "$GCC" = yes; then | |
13296 | case $host_os in aix4.[012]|aix4.[012].*) | |
13297 | # We only want to do this on AIX 4.2 and lower, the check | |
13298 | # below for broken collect2 doesn't work under 4.3+ | |
13299 | collect2name=`${CC} -print-prog-name=collect2` | |
13300 | if test -f "$collect2name" && | |
13301 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13302 | then | |
13303 | # We have reworked collect2 | |
13304 | : | |
13305 | else | |
13306 | # We have old collect2 | |
13307 | hardcode_direct_FC=unsupported | |
13308 | # It fails to find uninstalled libraries when the uninstalled | |
13309 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13310 | # to unsupported forces relinking | |
13311 | hardcode_minus_L_FC=yes | |
13312 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13313 | hardcode_libdir_separator_FC= | |
13314 | fi | |
13315 | ;; | |
13316 | esac | |
13317 | shared_flag='-shared' | |
13318 | if test "$aix_use_runtimelinking" = yes; then | |
13319 | shared_flag="$shared_flag "'${wl}-G' | |
13320 | fi | |
13321 | else | |
13322 | # not using gcc | |
13323 | if test "$host_cpu" = ia64; then | |
13324 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13325 | # chokes on -Wl,-G. The following line is correct: | |
13326 | shared_flag='-G' | |
13327 | else | |
13328 | if test "$aix_use_runtimelinking" = yes; then | |
13329 | shared_flag='${wl}-G' | |
13330 | else | |
13331 | shared_flag='${wl}-bM:SRE' | |
13332 | fi | |
13333 | fi | |
13334 | fi | |
13335 | ||
6b4a97ed | 13336 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
13337 | # It seems that -bexpall does not export symbols beginning with |
13338 | # underscore (_), so it is better to generate a list of symbols to export. | |
13339 | always_export_symbols_FC=yes | |
13340 | if test "$aix_use_runtimelinking" = yes; then | |
13341 | # Warning - without using the other runtime loading flags (-brtl), | |
13342 | # -berok will link without error, but may produce a broken library. | |
13343 | allow_undefined_flag_FC='-berok' | |
13344 | # Determine the default libpath from the value encoded in an | |
13345 | # empty executable. | |
5213506e | 13346 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13347 | program main |
13348 | ||
13349 | end | |
13350 | _ACEOF | |
5213506e | 13351 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
13352 | |
13353 | lt_aix_libpath_sed=' | |
13354 | /Import File Strings/,/^$/ { | |
13355 | /^0/ { | |
13356 | s/^0 *\(.*\)$/\1/ | |
13357 | p | |
13358 | } | |
13359 | }' | |
13360 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13361 | # Check for a 64-bit object if we didn't find anything. | |
13362 | if test -z "$aix_libpath"; then | |
13363 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13364 | fi | |
1cf3d07d | 13365 | fi |
5213506e RW |
13366 | rm -f core conftest.err conftest.$ac_objext \ |
13367 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13368 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13369 | ||
13370 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 13371 | 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" |
1cf3d07d SE |
13372 | else |
13373 | if test "$host_cpu" = ia64; then | |
13374 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
13375 | allow_undefined_flag_FC="-z nodefs" | |
13376 | 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" | |
13377 | else | |
13378 | # Determine the default libpath from the value encoded in an | |
13379 | # empty executable. | |
5213506e | 13380 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13381 | program main |
13382 | ||
13383 | end | |
13384 | _ACEOF | |
5213506e | 13385 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
13386 | |
13387 | lt_aix_libpath_sed=' | |
13388 | /Import File Strings/,/^$/ { | |
13389 | /^0/ { | |
13390 | s/^0 *\(.*\)$/\1/ | |
13391 | p | |
13392 | } | |
13393 | }' | |
13394 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13395 | # Check for a 64-bit object if we didn't find anything. | |
13396 | if test -z "$aix_libpath"; then | |
13397 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13398 | fi | |
1cf3d07d | 13399 | fi |
5213506e RW |
13400 | rm -f core conftest.err conftest.$ac_objext \ |
13401 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13402 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13403 | ||
13404 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13405 | # Warning - without using the other run time loading flags, | |
13406 | # -berok will link without error, but may produce a broken library. | |
13407 | no_undefined_flag_FC=' ${wl}-bernotok' | |
13408 | allow_undefined_flag_FC=' ${wl}-berok' | |
43e02a8a RW |
13409 | if test "$with_gnu_ld" = yes; then |
13410 | # We only use this code for GNU lds that support --whole-archive. | |
13411 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13412 | else | |
13413 | # Exported symbols can be pulled into shared objects from archives | |
13414 | whole_archive_flag_spec_FC='$convenience' | |
13415 | fi | |
1cf3d07d SE |
13416 | archive_cmds_need_lc_FC=yes |
13417 | # This is similar to how AIX traditionally builds its shared libraries. | |
13418 | 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' | |
13419 | fi | |
13420 | fi | |
953ff289 | 13421 | ;; |
1cf3d07d SE |
13422 | |
13423 | amigaos*) | |
6b4a97ed PG |
13424 | case $host_cpu in |
13425 | powerpc) | |
13426 | # see comment about AmigaOS4 .so support | |
13427 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13428 | archive_expsym_cmds_FC='' | |
13429 | ;; | |
13430 | m68k) | |
13431 | 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)' | |
13432 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13433 | hardcode_minus_L_FC=yes | |
13434 | ;; | |
13435 | esac | |
953ff289 | 13436 | ;; |
1cf3d07d SE |
13437 | |
13438 | bsdi[45]*) | |
13439 | export_dynamic_flag_spec_FC=-rdynamic | |
953ff289 | 13440 | ;; |
1cf3d07d | 13441 | |
6b4a97ed | 13442 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
13443 | # When not using gcc, we currently assume that we are using |
13444 | # Microsoft Visual C++. | |
13445 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13446 | # no search path for DLLs. | |
13447 | hardcode_libdir_flag_spec_FC=' ' | |
13448 | allow_undefined_flag_FC=unsupported | |
13449 | # Tell ltmain to make .lib files, not .a files. | |
13450 | libext=lib | |
13451 | # Tell ltmain to make .dll files, not .so files. | |
13452 | shrext_cmds=".dll" | |
13453 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 13454 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
13455 | # The linker will automatically build a .lib file if we build a DLL. |
13456 | old_archive_from_new_cmds_FC='true' | |
13457 | # FIXME: Should let the user specify the lib program. | |
13458 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
13459 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
13460 | enable_shared_with_static_runtimes_FC=yes | |
953ff289 | 13461 | ;; |
1cf3d07d SE |
13462 | |
13463 | darwin* | rhapsody*) | |
1cf3d07d | 13464 | |
6b4a97ed PG |
13465 | |
13466 | archive_cmds_need_lc_FC=no | |
13467 | hardcode_direct_FC=no | |
13468 | hardcode_automatic_FC=yes | |
13469 | hardcode_shlibpath_var_FC=unsupported | |
43e02a8a RW |
13470 | if test "$lt_cv_ld_force_load" = "yes"; then |
13471 | 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\"`' | |
13472 | else | |
13473 | whole_archive_flag_spec_FC='' | |
13474 | fi | |
6b4a97ed PG |
13475 | link_all_deplibs_FC=yes |
13476 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
13477 | case $cc_basename in | |
13478 | ifort*) _lt_dar_can_shared=yes ;; | |
13479 | *) _lt_dar_can_shared=$GCC ;; | |
13480 | esac | |
13481 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 13482 | output_verbose_link_cmd=func_echo_all |
6b4a97ed PG |
13483 | 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}" |
13484 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13485 | 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}" | |
13486 | 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}" | |
13487 | ||
13488 | else | |
13489 | ld_shlibs_FC=no | |
13490 | fi | |
13491 | ||
953ff289 | 13492 | ;; |
1cf3d07d SE |
13493 | |
13494 | dgux*) | |
13495 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13496 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13497 | hardcode_shlibpath_var_FC=no | |
953ff289 | 13498 | ;; |
953ff289 | 13499 | |
1cf3d07d SE |
13500 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
13501 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
13502 | # does not break anything, and helps significantly (at the cost of a little | |
13503 | # extra space). | |
13504 | freebsd2.2*) | |
13505 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
13506 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13507 | hardcode_direct_FC=yes | |
13508 | hardcode_shlibpath_var_FC=no | |
953ff289 | 13509 | ;; |
953ff289 | 13510 | |
1cf3d07d | 13511 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
c6084f68 | 13512 | freebsd2.*) |
1cf3d07d SE |
13513 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13514 | hardcode_direct_FC=yes | |
13515 | hardcode_minus_L_FC=yes | |
13516 | hardcode_shlibpath_var_FC=no | |
13517 | ;; | |
13518 | ||
13519 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
13520 | freebsd* | dragonfly*) | |
13521 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
13522 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13523 | hardcode_direct_FC=yes | |
13524 | hardcode_shlibpath_var_FC=no | |
13525 | ;; | |
13526 | ||
13527 | hpux9*) | |
13528 | if test "$GCC" = yes; then | |
13529 | 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' | |
13530 | else | |
13531 | 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' | |
13532 | fi | |
13533 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13534 | hardcode_libdir_separator_FC=: | |
13535 | hardcode_direct_FC=yes | |
13536 | ||
13537 | # hardcode_minus_L: Not really in the search PATH, | |
13538 | # but as the default location of the library. | |
13539 | hardcode_minus_L_FC=yes | |
13540 | export_dynamic_flag_spec_FC='${wl}-E' | |
13541 | ;; | |
13542 | ||
13543 | hpux10*) | |
43e02a8a | 13544 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
13545 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
13546 | else | |
13547 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
13548 | fi | |
13549 | if test "$with_gnu_ld" = no; then | |
13550 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13551 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
13552 | hardcode_libdir_separator_FC=: | |
13553 | hardcode_direct_FC=yes | |
13554 | hardcode_direct_absolute_FC=yes | |
13555 | export_dynamic_flag_spec_FC='${wl}-E' | |
13556 | # hardcode_minus_L: Not really in the search PATH, | |
13557 | # but as the default location of the library. | |
13558 | hardcode_minus_L_FC=yes | |
13559 | fi | |
13560 | ;; | |
13561 | ||
13562 | hpux11*) | |
43e02a8a | 13563 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
13564 | case $host_cpu in |
13565 | hppa*64*) | |
4e4ba647 | 13566 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
13567 | ;; |
13568 | ia64*) | |
6b4a97ed | 13569 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
13570 | ;; |
13571 | *) | |
13572 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13573 | ;; | |
13574 | esac | |
13575 | else | |
13576 | case $host_cpu in | |
13577 | hppa*64*) | |
4e4ba647 | 13578 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
13579 | ;; |
13580 | ia64*) | |
13581 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
13582 | ;; | |
13583 | *) | |
43e02a8a | 13584 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
13585 | ;; |
13586 | esac | |
13587 | fi | |
13588 | if test "$with_gnu_ld" = no; then | |
13589 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13590 | hardcode_libdir_separator_FC=: | |
13591 | ||
13592 | case $host_cpu in | |
13593 | hppa*64*|ia64*) | |
13594 | hardcode_direct_FC=no | |
13595 | hardcode_shlibpath_var_FC=no | |
13596 | ;; | |
13597 | *) | |
13598 | hardcode_direct_FC=yes | |
13599 | hardcode_direct_absolute_FC=yes | |
13600 | export_dynamic_flag_spec_FC='${wl}-E' | |
13601 | ||
13602 | # hardcode_minus_L: Not really in the search PATH, | |
13603 | # but as the default location of the library. | |
13604 | hardcode_minus_L_FC=yes | |
13605 | ;; | |
13606 | esac | |
13607 | fi | |
13608 | ;; | |
13609 | ||
13610 | irix5* | irix6* | nonstopux*) | |
13611 | if test "$GCC" = yes; then | |
43e02a8a | 13612 | 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' |
1cf3d07d SE |
13613 | # Try to use the -exported_symbol ld option, if it does not |
13614 | # work, assume that -exports_file does not work either and | |
13615 | # implicitly export all symbols. | |
13616 | save_LDFLAGS="$LDFLAGS" | |
13617 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
5213506e | 13618 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13619 | int foo(void) {} |
13620 | _ACEOF | |
5213506e | 13621 | if ac_fn_fc_try_link "$LINENO"; then : |
43e02a8a | 13622 | 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' |
1cf3d07d | 13623 | |
1cf3d07d | 13624 | fi |
5213506e RW |
13625 | rm -f core conftest.err conftest.$ac_objext \ |
13626 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13627 | LDFLAGS="$save_LDFLAGS" |
13628 | else | |
43e02a8a RW |
13629 | 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' |
13630 | 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' | |
1cf3d07d SE |
13631 | fi |
13632 | archive_cmds_need_lc_FC='no' | |
13633 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13634 | hardcode_libdir_separator_FC=: | |
13635 | inherit_rpath_FC=yes | |
13636 | link_all_deplibs_FC=yes | |
13637 | ;; | |
13638 | ||
13639 | netbsd*) | |
13640 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13641 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
13642 | else | |
13643 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
13644 | fi | |
13645 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13646 | hardcode_direct_FC=yes | |
13647 | hardcode_shlibpath_var_FC=no | |
13648 | ;; | |
13649 | ||
13650 | newsos6) | |
13651 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13652 | hardcode_direct_FC=yes | |
13653 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13654 | hardcode_libdir_separator_FC=: | |
13655 | hardcode_shlibpath_var_FC=no | |
13656 | ;; | |
13657 | ||
13658 | *nto* | *qnx*) | |
13659 | ;; | |
13660 | ||
13661 | openbsd*) | |
6b4a97ed PG |
13662 | if test -f /usr/libexec/ld.so; then |
13663 | hardcode_direct_FC=yes | |
13664 | hardcode_shlibpath_var_FC=no | |
13665 | hardcode_direct_absolute_FC=yes | |
13666 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 13667 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6b4a97ed | 13668 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 13669 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
6b4a97ed PG |
13670 | export_dynamic_flag_spec_FC='${wl}-E' |
13671 | else | |
13672 | case $host_os in | |
13673 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
13674 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13675 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13676 | ;; | |
13677 | *) | |
13678 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
13679 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
13680 | ;; | |
13681 | esac | |
13682 | fi | |
13683 | else | |
13684 | ld_shlibs_FC=no | |
1cf3d07d SE |
13685 | fi |
13686 | ;; | |
13687 | ||
13688 | os2*) | |
13689 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13690 | hardcode_minus_L_FC=yes | |
13691 | allow_undefined_flag_FC=unsupported | |
43e02a8a | 13692 | 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' |
1cf3d07d SE |
13693 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
13694 | ;; | |
13695 | ||
13696 | osf3*) | |
13697 | if test "$GCC" = yes; then | |
13698 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 13699 | 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' |
1cf3d07d SE |
13700 | else |
13701 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 13702 | 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' |
1cf3d07d SE |
13703 | fi |
13704 | archive_cmds_need_lc_FC='no' | |
13705 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13706 | hardcode_libdir_separator_FC=: | |
13707 | ;; | |
13708 | ||
13709 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
13710 | if test "$GCC" = yes; then | |
13711 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 13712 | 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' |
1cf3d07d SE |
13713 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
13714 | else | |
13715 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 13716 | 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' |
1cf3d07d | 13717 | 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~ |
43e02a8a | 13718 | $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' |
1cf3d07d SE |
13719 | |
13720 | # Both c and cxx compiler support -rpath directly | |
13721 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
13722 | fi | |
13723 | archive_cmds_need_lc_FC='no' | |
13724 | hardcode_libdir_separator_FC=: | |
13725 | ;; | |
13726 | ||
13727 | solaris*) | |
13728 | no_undefined_flag_FC=' -z defs' | |
13729 | if test "$GCC" = yes; then | |
13730 | wlarc='${wl}' | |
13731 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13732 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13733 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13734 | else | |
13735 | case `$CC -V 2>&1` in | |
13736 | *"Compilers 5.0"*) | |
13737 | wlarc='' | |
13738 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13739 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13740 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
13741 | ;; | |
13742 | *) | |
13743 | wlarc='${wl}' | |
13744 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13745 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13746 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13747 | ;; | |
13748 | esac | |
13749 | fi | |
13750 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13751 | hardcode_shlibpath_var_FC=no | |
13752 | case $host_os in | |
13753 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13754 | *) | |
13755 | # The compiler driver will combine and reorder linker options, | |
13756 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
13757 | # but is careful enough not to reorder. | |
13758 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13759 | if test "$GCC" = yes; then | |
13760 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13761 | else | |
13762 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
13763 | fi | |
13764 | ;; | |
13765 | esac | |
13766 | link_all_deplibs_FC=yes | |
13767 | ;; | |
13768 | ||
13769 | sunos4*) | |
13770 | if test "x$host_vendor" = xsequent; then | |
13771 | # Use $CC to link under sequent, because it throws in some extra .o | |
13772 | # files that make .init and .fini sections work. | |
13773 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13774 | else | |
13775 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
13776 | fi | |
13777 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13778 | hardcode_direct_FC=yes | |
13779 | hardcode_minus_L_FC=yes | |
13780 | hardcode_shlibpath_var_FC=no | |
13781 | ;; | |
13782 | ||
13783 | sysv4) | |
13784 | case $host_vendor in | |
13785 | sni) | |
13786 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13787 | hardcode_direct_FC=yes # is this really true??? | |
13788 | ;; | |
13789 | siemens) | |
13790 | ## LD is ld it makes a PLAMLIB | |
13791 | ## CC just makes a GrossModule. | |
13792 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
13793 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
13794 | hardcode_direct_FC=no | |
13795 | ;; | |
13796 | motorola) | |
13797 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13798 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
13799 | ;; | |
953ff289 | 13800 | esac |
1cf3d07d SE |
13801 | runpath_var='LD_RUN_PATH' |
13802 | hardcode_shlibpath_var_FC=no | |
13803 | ;; | |
13804 | ||
13805 | sysv4.3*) | |
13806 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13807 | hardcode_shlibpath_var_FC=no | |
13808 | export_dynamic_flag_spec_FC='-Bexport' | |
13809 | ;; | |
13810 | ||
13811 | sysv4*MP*) | |
13812 | if test -d /usr/nec; then | |
13813 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13814 | hardcode_shlibpath_var_FC=no | |
13815 | runpath_var=LD_RUN_PATH | |
13816 | hardcode_runpath_var=yes | |
13817 | ld_shlibs_FC=yes | |
13818 | fi | |
13819 | ;; | |
13820 | ||
13821 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13822 | no_undefined_flag_FC='${wl}-z,text' | |
13823 | archive_cmds_need_lc_FC=no | |
13824 | hardcode_shlibpath_var_FC=no | |
13825 | runpath_var='LD_RUN_PATH' | |
13826 | ||
13827 | if test "$GCC" = yes; then | |
13828 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13829 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13830 | else | |
13831 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13832 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13833 | fi | |
13834 | ;; | |
13835 | ||
13836 | sysv5* | sco3.2v5* | sco5v6*) | |
13837 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13838 | # link with -lc, and that would cause any symbols used from libc to | |
13839 | # always be unresolved, which means just about no library would | |
13840 | # ever link correctly. If we're not using GNU ld we use -z text | |
13841 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13842 | # as -z defs. | |
13843 | no_undefined_flag_FC='${wl}-z,text' | |
13844 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
13845 | archive_cmds_need_lc_FC=no | |
13846 | hardcode_shlibpath_var_FC=no | |
13847 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
13848 | hardcode_libdir_separator_FC=':' | |
13849 | link_all_deplibs_FC=yes | |
13850 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
13851 | runpath_var='LD_RUN_PATH' | |
13852 | ||
13853 | if test "$GCC" = yes; then | |
13854 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13855 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13856 | else | |
13857 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13858 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13859 | fi | |
13860 | ;; | |
13861 | ||
13862 | uts4*) | |
13863 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13864 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13865 | hardcode_shlibpath_var_FC=no | |
13866 | ;; | |
13867 | ||
13868 | *) | |
13869 | ld_shlibs_FC=no | |
953ff289 | 13870 | ;; |
1cf3d07d SE |
13871 | esac |
13872 | ||
13873 | if test x$host_vendor = xsni; then | |
953ff289 | 13874 | case $host in |
1cf3d07d SE |
13875 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13876 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
13877 | ;; | |
953ff289 | 13878 | esac |
1cf3d07d | 13879 | fi |
953ff289 | 13880 | fi |
953ff289 | 13881 | |
5213506e RW |
13882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
13883 | $as_echo "$ld_shlibs_FC" >&6; } | |
1cf3d07d | 13884 | test "$ld_shlibs_FC" = no && can_build_shared=no |
953ff289 | 13885 | |
1cf3d07d | 13886 | with_gnu_ld_FC=$with_gnu_ld |
953ff289 | 13887 | |
953ff289 | 13888 | |
953ff289 | 13889 | |
953ff289 | 13890 | |
1cf3d07d SE |
13891 | |
13892 | ||
13893 | # | |
13894 | # Do we need to explicitly link libc? | |
13895 | # | |
13896 | case "x$archive_cmds_need_lc_FC" in | |
13897 | x|xyes) | |
13898 | # Assume -lc should be added | |
13899 | archive_cmds_need_lc_FC=yes | |
13900 | ||
13901 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13902 | case $archive_cmds_FC in | |
13903 | *'~'*) | |
13904 | # FIXME: we may have to deal with multi-command sequences. | |
13905 | ;; | |
13906 | '$CC '*) | |
13907 | # Test whether the compiler implicitly links with -lc since on some | |
13908 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13909 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
13911 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 13912 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
5213506e | 13913 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
13914 | else |
13915 | $RM conftest* | |
13916 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 13917 | |
5213506e | 13918 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d | 13919 | (eval $ac_compile) 2>&5 |
953ff289 | 13920 | ac_status=$? |
5213506e RW |
13921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13922 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
13923 | soname=conftest |
13924 | lib=conftest | |
13925 | libobjs=conftest.$ac_objext | |
13926 | deplibs= | |
13927 | wl=$lt_prog_compiler_wl_FC | |
13928 | pic_flag=$lt_prog_compiler_pic_FC | |
13929 | compiler_flags=-v | |
13930 | linker_flags=-v | |
13931 | verstring= | |
13932 | output_objdir=. | |
13933 | libname=conftest | |
13934 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
13935 | allow_undefined_flag_FC= | |
5213506e | 13936 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 13937 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
953ff289 | 13938 | ac_status=$? |
5213506e RW |
13939 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13940 | test $ac_status = 0; } | |
baafc534 RW |
13941 | then |
13942 | lt_cv_archive_cmds_need_lc_FC=no | |
13943 | else | |
13944 | lt_cv_archive_cmds_need_lc_FC=yes | |
13945 | fi | |
13946 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
13947 | else | |
13948 | cat conftest.err 1>&5 | |
13949 | fi | |
13950 | $RM conftest* | |
13951 | ||
13952 | fi | |
5213506e RW |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
13954 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
baafc534 | 13955 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
1cf3d07d SE |
13956 | ;; |
13957 | esac | |
953ff289 DN |
13958 | fi |
13959 | ;; | |
1cf3d07d SE |
13960 | esac |
13961 | ||
953ff289 DN |
13962 | |
13963 | ||
953ff289 DN |
13964 | |
13965 | ||
953ff289 | 13966 | |
953ff289 | 13967 | |
953ff289 | 13968 | |
953ff289 | 13969 | |
953ff289 DN |
13970 | |
13971 | ||
953ff289 | 13972 | |
953ff289 | 13973 | |
953ff289 DN |
13974 | |
13975 | ||
13976 | ||
13977 | ||
13978 | ||
13979 | ||
13980 | ||
13981 | ||
13982 | ||
c41303c6 RH |
13983 | |
13984 | ||
c41303c6 | 13985 | |
c41303c6 RH |
13986 | |
13987 | ||
13988 | ||
953ff289 | 13989 | |
953ff289 | 13990 | |
953ff289 | 13991 | |
953ff289 | 13992 | |
953ff289 | 13993 | |
953ff289 DN |
13994 | |
13995 | ||
953ff289 | 13996 | |
953ff289 | 13997 | |
953ff289 | 13998 | |
953ff289 | 13999 | |
953ff289 | 14000 | |
953ff289 | 14001 | |
953ff289 | 14002 | |
1cf3d07d SE |
14003 | |
14004 | ||
14005 | ||
14006 | ||
14007 | ||
14008 | ||
14009 | ||
14010 | ||
14011 | ||
14012 | ||
14013 | ||
14014 | ||
14015 | ||
14016 | ||
14017 | ||
14018 | ||
14019 | ||
14020 | ||
14021 | ||
14022 | ||
14023 | ||
14024 | ||
5213506e RW |
14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
14026 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
6b4a97ed | 14027 | |
1cf3d07d SE |
14028 | library_names_spec= |
14029 | libname_spec='lib$name' | |
14030 | soname_spec= | |
14031 | shrext_cmds=".so" | |
14032 | postinstall_cmds= | |
14033 | postuninstall_cmds= | |
14034 | finish_cmds= | |
14035 | finish_eval= | |
14036 | shlibpath_var= | |
14037 | shlibpath_overrides_runpath=unknown | |
14038 | version_type=none | |
14039 | dynamic_linker="$host_os ld.so" | |
14040 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14041 | need_lib_prefix=unknown | |
14042 | hardcode_into_libs=no | |
14043 | ||
14044 | # when you set need_version to no, make sure it does not cause -set_version | |
14045 | # flags to be left without arguments | |
14046 | need_version=unknown | |
14047 | ||
14048 | case $host_os in | |
14049 | aix3*) | |
14050 | version_type=linux | |
14051 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14052 | shlibpath_var=LIBPATH | |
14053 | ||
14054 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14055 | soname_spec='${libname}${release}${shared_ext}$major' | |
14056 | ;; | |
14057 | ||
d653fdfb | 14058 | aix[4-9]*) |
1cf3d07d SE |
14059 | version_type=linux |
14060 | need_lib_prefix=no | |
14061 | need_version=no | |
14062 | hardcode_into_libs=yes | |
14063 | if test "$host_cpu" = ia64; then | |
14064 | # AIX 5 supports IA64 | |
14065 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14066 | shlibpath_var=LD_LIBRARY_PATH | |
953ff289 | 14067 | else |
1cf3d07d SE |
14068 | # With GCC up to 2.95.x, collect2 would create an import file |
14069 | # for dependence libraries. The import file would start with | |
14070 | # the line `#! .'. This would cause the generated library to | |
14071 | # depend on `.', always an invalid library. This was fixed in | |
14072 | # development snapshots of GCC prior to 3.0. | |
14073 | case $host_os in | |
14074 | aix4 | aix4.[01] | aix4.[01].*) | |
14075 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14076 | echo ' yes ' | |
14077 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14078 | : | |
14079 | else | |
14080 | can_build_shared=no | |
14081 | fi | |
14082 | ;; | |
14083 | esac | |
14084 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14085 | # soname into executable. Probably we can add versioning support to | |
14086 | # collect2, so additional links can be useful in future. | |
14087 | if test "$aix_use_runtimelinking" = yes; then | |
14088 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14089 | # instead of lib<name>.a to let people know that these are not | |
14090 | # typical AIX shared libraries. | |
14091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14092 | else | |
14093 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14094 | # and later when we are not doing run time linking. | |
14095 | library_names_spec='${libname}${release}.a $libname.a' | |
14096 | soname_spec='${libname}${release}${shared_ext}$major' | |
14097 | fi | |
14098 | shlibpath_var=LIBPATH | |
953ff289 | 14099 | fi |
1cf3d07d SE |
14100 | ;; |
14101 | ||
14102 | amigaos*) | |
6b4a97ed PG |
14103 | case $host_cpu in |
14104 | powerpc) | |
14105 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14106 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14108 | ;; | |
14109 | m68k) | |
1cf3d07d SE |
14110 | library_names_spec='$libname.ixlibrary $libname.a' |
14111 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 14112 | 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' |
6b4a97ed PG |
14113 | ;; |
14114 | esac | |
1cf3d07d | 14115 | ;; |
953ff289 | 14116 | |
1cf3d07d SE |
14117 | beos*) |
14118 | library_names_spec='${libname}${shared_ext}' | |
14119 | dynamic_linker="$host_os ld.so" | |
14120 | shlibpath_var=LIBRARY_PATH | |
14121 | ;; | |
953ff289 | 14122 | |
1cf3d07d SE |
14123 | bsdi[45]*) |
14124 | version_type=linux | |
14125 | need_version=no | |
14126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14127 | soname_spec='${libname}${release}${shared_ext}$major' | |
14128 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14129 | shlibpath_var=LD_LIBRARY_PATH | |
14130 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14131 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14132 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14133 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14134 | # libtool to hard-code these into programs | |
14135 | ;; | |
953ff289 | 14136 | |
6b4a97ed | 14137 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14138 | version_type=windows |
14139 | shrext_cmds=".dll" | |
14140 | need_version=no | |
14141 | need_lib_prefix=no | |
14142 | ||
6b4a97ed PG |
14143 | case $GCC,$host_os in |
14144 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
14145 | library_names_spec='$libname.dll.a' |
14146 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14147 | postinstall_cmds='base_file=`basename \${file}`~ | |
14148 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14149 | dldir=$destdir/`dirname \$dlpath`~ | |
14150 | test -d \$dldir || mkdir -p \$dldir~ | |
14151 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14152 | chmod a+x \$dldir/$dlname~ | |
14153 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14154 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14155 | fi' | |
14156 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14157 | dlpath=$dir/\$dldll~ | |
14158 | $RM \$dlpath' | |
14159 | shlibpath_overrides_runpath=yes | |
14160 | ||
14161 | case $host_os in | |
14162 | cygwin*) | |
14163 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14164 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a | 14165 | |
1cf3d07d | 14166 | ;; |
6b4a97ed | 14167 | mingw* | cegcc*) |
1cf3d07d SE |
14168 | # MinGW DLLs use traditional 'lib' prefix |
14169 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
14170 | ;; |
14171 | pw32*) | |
14172 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14173 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14174 | ;; | |
14175 | esac | |
14176 | ;; | |
953ff289 | 14177 | |
1cf3d07d SE |
14178 | *) |
14179 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14180 | ;; | |
14181 | esac | |
14182 | dynamic_linker='Win32 ld.exe' | |
14183 | # FIXME: first we should search . and the directory the executable is in | |
14184 | shlibpath_var=PATH | |
14185 | ;; | |
953ff289 | 14186 | |
1cf3d07d SE |
14187 | darwin* | rhapsody*) |
14188 | dynamic_linker="$host_os dyld" | |
14189 | version_type=darwin | |
14190 | need_lib_prefix=no | |
14191 | need_version=no | |
14192 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14193 | soname_spec='${libname}${release}${major}$shared_ext' | |
14194 | shlibpath_overrides_runpath=yes | |
14195 | shlibpath_var=DYLD_LIBRARY_PATH | |
14196 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14197 | ||
14198 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14199 | ;; | |
14200 | ||
14201 | dgux*) | |
14202 | version_type=linux | |
14203 | need_lib_prefix=no | |
14204 | need_version=no | |
14205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14206 | soname_spec='${libname}${release}${shared_ext}$major' | |
14207 | shlibpath_var=LD_LIBRARY_PATH | |
14208 | ;; | |
14209 | ||
1cf3d07d SE |
14210 | freebsd* | dragonfly*) |
14211 | # DragonFly does not have aout. When/if they implement a new | |
14212 | # versioning mechanism, adjust this. | |
14213 | if test -x /usr/bin/objformat; then | |
14214 | objformat=`/usr/bin/objformat` | |
953ff289 | 14215 | else |
1cf3d07d | 14216 | case $host_os in |
c6084f68 | 14217 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
14218 | *) objformat=elf ;; |
14219 | esac | |
953ff289 | 14220 | fi |
1cf3d07d SE |
14221 | version_type=freebsd-$objformat |
14222 | case $version_type in | |
14223 | freebsd-elf*) | |
14224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14225 | need_version=no | |
14226 | need_lib_prefix=no | |
14227 | ;; | |
14228 | freebsd-*) | |
14229 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14230 | need_version=yes | |
14231 | ;; | |
14232 | esac | |
14233 | shlibpath_var=LD_LIBRARY_PATH | |
14234 | case $host_os in | |
c6084f68 | 14235 | freebsd2.*) |
1cf3d07d SE |
14236 | shlibpath_overrides_runpath=yes |
14237 | ;; | |
14238 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14239 | shlibpath_overrides_runpath=yes | |
14240 | hardcode_into_libs=yes | |
14241 | ;; | |
14242 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14243 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14244 | shlibpath_overrides_runpath=no | |
14245 | hardcode_into_libs=yes | |
14246 | ;; | |
14247 | *) # from 4.6 on, and DragonFly | |
14248 | shlibpath_overrides_runpath=yes | |
14249 | hardcode_into_libs=yes | |
14250 | ;; | |
14251 | esac | |
14252 | ;; | |
953ff289 | 14253 | |
43e02a8a RW |
14254 | haiku*) |
14255 | version_type=linux | |
14256 | need_lib_prefix=no | |
14257 | need_version=no | |
14258 | dynamic_linker="$host_os runtime_loader" | |
14259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14260 | soname_spec='${libname}${release}${shared_ext}$major' | |
14261 | shlibpath_var=LIBRARY_PATH | |
14262 | shlibpath_overrides_runpath=yes | |
14263 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
14264 | hardcode_into_libs=yes | |
14265 | ;; | |
14266 | ||
1cf3d07d SE |
14267 | hpux9* | hpux10* | hpux11*) |
14268 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14269 | # link against other versions. | |
14270 | version_type=sunos | |
14271 | need_lib_prefix=no | |
14272 | need_version=no | |
14273 | case $host_cpu in | |
14274 | ia64*) | |
14275 | shrext_cmds='.so' | |
14276 | hardcode_into_libs=yes | |
14277 | dynamic_linker="$host_os dld.so" | |
14278 | shlibpath_var=LD_LIBRARY_PATH | |
14279 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14281 | soname_spec='${libname}${release}${shared_ext}$major' | |
14282 | if test "X$HPUX_IA64_MODE" = X32; then | |
14283 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14284 | else | |
14285 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14286 | fi | |
14287 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14288 | ;; | |
14289 | hppa*64*) | |
14290 | shrext_cmds='.sl' | |
14291 | hardcode_into_libs=yes | |
14292 | dynamic_linker="$host_os dld.sl" | |
14293 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14294 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14295 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14296 | soname_spec='${libname}${release}${shared_ext}$major' | |
14297 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14298 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14299 | ;; | |
14300 | *) | |
14301 | shrext_cmds='.sl' | |
14302 | dynamic_linker="$host_os dld.sl" | |
14303 | shlibpath_var=SHLIB_PATH | |
14304 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14306 | soname_spec='${libname}${release}${shared_ext}$major' | |
14307 | ;; | |
14308 | esac | |
43e02a8a | 14309 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 14310 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
14311 | # or fails outright, so override atomically: |
14312 | install_override_mode=555 | |
1cf3d07d SE |
14313 | ;; |
14314 | ||
14315 | interix[3-9]*) | |
14316 | version_type=linux | |
14317 | need_lib_prefix=no | |
14318 | need_version=no | |
14319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14320 | soname_spec='${libname}${release}${shared_ext}$major' | |
14321 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14322 | shlibpath_var=LD_LIBRARY_PATH | |
14323 | shlibpath_overrides_runpath=no | |
14324 | hardcode_into_libs=yes | |
14325 | ;; | |
14326 | ||
14327 | irix5* | irix6* | nonstopux*) | |
14328 | case $host_os in | |
14329 | nonstopux*) version_type=nonstopux ;; | |
14330 | *) | |
14331 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14332 | version_type=linux | |
14333 | else | |
14334 | version_type=irix | |
14335 | fi ;; | |
14336 | esac | |
14337 | need_lib_prefix=no | |
14338 | need_version=no | |
14339 | soname_spec='${libname}${release}${shared_ext}$major' | |
14340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14341 | case $host_os in | |
14342 | irix5* | nonstopux*) | |
14343 | libsuff= shlibsuff= | |
14344 | ;; | |
14345 | *) | |
14346 | case $LD in # libtool.m4 will add one of these switches to LD | |
14347 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14348 | libsuff= shlibsuff= libmagic=32-bit;; | |
14349 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14350 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14351 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14352 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14353 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14354 | esac | |
14355 | ;; | |
14356 | esac | |
14357 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14358 | shlibpath_overrides_runpath=no | |
14359 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14360 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14361 | hardcode_into_libs=yes | |
14362 | ;; | |
14363 | ||
14364 | # No shared lib support for Linux oldld, aout, or coff. | |
14365 | linux*oldld* | linux*aout* | linux*coff*) | |
14366 | dynamic_linker=no | |
14367 | ;; | |
14368 | ||
14369 | # This must be Linux ELF. | |
e9085da5 MR |
14370 | |
14371 | # uclinux* changes (here and below) have been submitted to the libtool | |
14372 | # project, but have not yet been accepted: they are GCC-local changes | |
14373 | # for the time being. (See | |
14374 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
f65e551f | 14375 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
14376 | version_type=linux |
14377 | need_lib_prefix=no | |
14378 | need_version=no | |
14379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14380 | soname_spec='${libname}${release}${shared_ext}$major' | |
14381 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14382 | shlibpath_var=LD_LIBRARY_PATH | |
14383 | shlibpath_overrides_runpath=no | |
baafc534 | 14384 | |
1cf3d07d | 14385 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 14386 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 14387 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
14388 | else |
14389 | lt_cv_shlibpath_overrides_runpath=no | |
14390 | save_LDFLAGS=$LDFLAGS | |
14391 | save_libdir=$libdir | |
14392 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
14393 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
5213506e | 14394 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14395 | program main |
14396 | ||
14397 | end | |
953ff289 | 14398 | _ACEOF |
5213506e RW |
14399 | if ac_fn_fc_try_link "$LINENO"; then : |
14400 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 14401 | lt_cv_shlibpath_overrides_runpath=yes |
953ff289 | 14402 | fi |
953ff289 | 14403 | fi |
5213506e RW |
14404 | rm -f core conftest.err conftest.$ac_objext \ |
14405 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
14406 | LDFLAGS=$save_LDFLAGS |
14407 | libdir=$save_libdir | |
14408 | ||
14409 | fi | |
14410 | ||
14411 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
14412 | |
14413 | # This implies no fast_install, which is unacceptable. | |
14414 | # Some rework will be needed to allow for fast_install | |
14415 | # before this can be enabled. | |
14416 | hardcode_into_libs=yes | |
14417 | ||
14418 | # Append ld.so.conf contents to the search path | |
14419 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 14420 | 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' ' '` |
1cf3d07d SE |
14421 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
14422 | fi | |
953ff289 | 14423 | |
1cf3d07d SE |
14424 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14425 | # powerpc, because MkLinux only supported shared libraries with the | |
14426 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14427 | # most powerpc-linux boxes support dynamic linking these days and | |
14428 | # people can always --disable-shared, the test was removed, and we | |
14429 | # assume the GNU/Linux dynamic linker is in use. | |
14430 | dynamic_linker='GNU/Linux ld.so' | |
14431 | ;; | |
953ff289 | 14432 | |
1cf3d07d SE |
14433 | netbsd*) |
14434 | version_type=sunos | |
14435 | need_lib_prefix=no | |
14436 | need_version=no | |
14437 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14439 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14440 | dynamic_linker='NetBSD (a.out) ld.so' | |
14441 | else | |
14442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14443 | soname_spec='${libname}${release}${shared_ext}$major' | |
14444 | dynamic_linker='NetBSD ld.elf_so' | |
14445 | fi | |
14446 | shlibpath_var=LD_LIBRARY_PATH | |
14447 | shlibpath_overrides_runpath=yes | |
14448 | hardcode_into_libs=yes | |
14449 | ;; | |
953ff289 | 14450 | |
1cf3d07d SE |
14451 | newsos6) |
14452 | version_type=linux | |
14453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14454 | shlibpath_var=LD_LIBRARY_PATH | |
14455 | shlibpath_overrides_runpath=yes | |
14456 | ;; | |
14457 | ||
14458 | *nto* | *qnx*) | |
14459 | version_type=qnx | |
14460 | need_lib_prefix=no | |
14461 | need_version=no | |
14462 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14463 | soname_spec='${libname}${release}${shared_ext}$major' | |
14464 | shlibpath_var=LD_LIBRARY_PATH | |
14465 | shlibpath_overrides_runpath=no | |
14466 | hardcode_into_libs=yes | |
14467 | dynamic_linker='ldqnx.so' | |
14468 | ;; | |
14469 | ||
14470 | openbsd*) | |
14471 | version_type=sunos | |
14472 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14473 | need_lib_prefix=no | |
14474 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14475 | case $host_os in | |
14476 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14477 | *) need_version=no ;; | |
14478 | esac | |
14479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14480 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14481 | shlibpath_var=LD_LIBRARY_PATH | |
14482 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14483 | case $host_os in | |
14484 | openbsd2.[89] | openbsd2.[89].*) | |
14485 | shlibpath_overrides_runpath=no | |
14486 | ;; | |
14487 | *) | |
14488 | shlibpath_overrides_runpath=yes | |
14489 | ;; | |
14490 | esac | |
953ff289 | 14491 | else |
1cf3d07d | 14492 | shlibpath_overrides_runpath=yes |
953ff289 | 14493 | fi |
1cf3d07d | 14494 | ;; |
953ff289 | 14495 | |
1cf3d07d SE |
14496 | os2*) |
14497 | libname_spec='$name' | |
14498 | shrext_cmds=".dll" | |
14499 | need_lib_prefix=no | |
14500 | library_names_spec='$libname${shared_ext} $libname.a' | |
14501 | dynamic_linker='OS/2 ld.exe' | |
14502 | shlibpath_var=LIBPATH | |
14503 | ;; | |
14504 | ||
14505 | osf3* | osf4* | osf5*) | |
14506 | version_type=osf | |
14507 | need_lib_prefix=no | |
14508 | need_version=no | |
14509 | soname_spec='${libname}${release}${shared_ext}$major' | |
14510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14511 | shlibpath_var=LD_LIBRARY_PATH | |
14512 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14513 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14514 | ;; | |
14515 | ||
14516 | rdos*) | |
14517 | dynamic_linker=no | |
14518 | ;; | |
14519 | ||
14520 | solaris*) | |
14521 | version_type=linux | |
14522 | need_lib_prefix=no | |
14523 | need_version=no | |
14524 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14525 | soname_spec='${libname}${release}${shared_ext}$major' | |
14526 | shlibpath_var=LD_LIBRARY_PATH | |
14527 | shlibpath_overrides_runpath=yes | |
14528 | hardcode_into_libs=yes | |
14529 | # ldd complains unless libraries are executable | |
14530 | postinstall_cmds='chmod +x $lib' | |
14531 | ;; | |
14532 | ||
14533 | sunos4*) | |
14534 | version_type=sunos | |
14535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14536 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14537 | shlibpath_var=LD_LIBRARY_PATH | |
14538 | shlibpath_overrides_runpath=yes | |
14539 | if test "$with_gnu_ld" = yes; then | |
14540 | need_lib_prefix=no | |
14541 | fi | |
14542 | need_version=yes | |
14543 | ;; | |
14544 | ||
14545 | sysv4 | sysv4.3*) | |
14546 | version_type=linux | |
14547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14548 | soname_spec='${libname}${release}${shared_ext}$major' | |
14549 | shlibpath_var=LD_LIBRARY_PATH | |
14550 | case $host_vendor in | |
14551 | sni) | |
14552 | shlibpath_overrides_runpath=no | |
14553 | need_lib_prefix=no | |
14554 | runpath_var=LD_RUN_PATH | |
14555 | ;; | |
14556 | siemens) | |
14557 | need_lib_prefix=no | |
14558 | ;; | |
14559 | motorola) | |
14560 | need_lib_prefix=no | |
14561 | need_version=no | |
14562 | shlibpath_overrides_runpath=no | |
14563 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14564 | ;; | |
14565 | esac | |
14566 | ;; | |
14567 | ||
14568 | sysv4*MP*) | |
14569 | if test -d /usr/nec ;then | |
14570 | version_type=linux | |
14571 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14572 | soname_spec='$libname${shared_ext}.$major' | |
14573 | shlibpath_var=LD_LIBRARY_PATH | |
14574 | fi | |
14575 | ;; | |
14576 | ||
14577 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14578 | version_type=freebsd-elf | |
14579 | need_lib_prefix=no | |
14580 | need_version=no | |
14581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14582 | soname_spec='${libname}${release}${shared_ext}$major' | |
14583 | shlibpath_var=LD_LIBRARY_PATH | |
14584 | shlibpath_overrides_runpath=yes | |
14585 | hardcode_into_libs=yes | |
14586 | if test "$with_gnu_ld" = yes; then | |
14587 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14588 | else | |
14589 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14590 | case $host_os in | |
14591 | sco3.2v5*) | |
14592 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14593 | ;; | |
14594 | esac | |
14595 | fi | |
14596 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14597 | ;; | |
14598 | ||
14599 | tpf*) | |
14600 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14601 | version_type=linux | |
14602 | need_lib_prefix=no | |
14603 | need_version=no | |
6b4a97ed | 14604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
14605 | shlibpath_var=LD_LIBRARY_PATH |
14606 | shlibpath_overrides_runpath=no | |
14607 | hardcode_into_libs=yes | |
14608 | ;; | |
14609 | ||
14610 | uts4*) | |
14611 | version_type=linux | |
14612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14613 | soname_spec='${libname}${release}${shared_ext}$major' | |
14614 | shlibpath_var=LD_LIBRARY_PATH | |
14615 | ;; | |
14616 | ||
14617 | *) | |
14618 | dynamic_linker=no | |
14619 | ;; | |
14620 | esac | |
5213506e RW |
14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
14622 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
14623 | test "$dynamic_linker" = no && can_build_shared=no |
14624 | ||
5213506e RW |
14625 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
14626 | if test "$GCC" = yes; then | |
14627 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14628 | fi | |
876080ff | 14629 | |
5213506e RW |
14630 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14631 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14632 | fi | |
14633 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14634 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
876080ff JJ |
14635 | fi |
14636 | ||
953ff289 DN |
14637 | |
14638 | ||
953ff289 | 14639 | |
953ff289 DN |
14640 | |
14641 | ||
a68ab351 | 14642 | |
a68ab351 | 14643 | |
a68ab351 | 14644 | |
953ff289 | 14645 | |
953ff289 | 14646 | |
953ff289 | 14647 | |
953ff289 | 14648 | |
953ff289 | 14649 | |
953ff289 | 14650 | |
953ff289 | 14651 | |
953ff289 | 14652 | |
953ff289 DN |
14653 | |
14654 | ||
14655 | ||
14656 | ||
14657 | ||
953ff289 | 14658 | |
953ff289 | 14659 | |
953ff289 | 14660 | |
953ff289 | 14661 | |
953ff289 DN |
14662 | |
14663 | ||
14664 | ||
14665 | ||
953ff289 DN |
14666 | |
14667 | ||
03b8fe49 | 14668 | |
43e02a8a RW |
14669 | |
14670 | ||
03b8fe49 | 14671 | |
03b8fe49 | 14672 | |
03b8fe49 | 14673 | |
5213506e RW |
14674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
14675 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14676 | hardcode_action_FC= | |
14677 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
14678 | test -n "$runpath_var_FC" || | |
14679 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
03b8fe49 | 14680 | |
5213506e RW |
14681 | # We can hardcode non-existent directories. |
14682 | if test "$hardcode_direct_FC" != no && | |
14683 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14684 | # have to relink, otherwise we might link with an installed library | |
14685 | # when we should be linking with a yet-to-be-installed one | |
14686 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
14687 | test "$hardcode_minus_L_FC" != no; then | |
14688 | # Linking always hardcodes the temporary library directory. | |
14689 | hardcode_action_FC=relink | |
14690 | else | |
14691 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14692 | hardcode_action_FC=immediate | |
14693 | fi | |
03b8fe49 | 14694 | else |
5213506e RW |
14695 | # We cannot hardcode anything, or else we can only hardcode existing |
14696 | # directories. | |
14697 | hardcode_action_FC=unsupported | |
14698 | fi | |
14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 | |
14700 | $as_echo "$hardcode_action_FC" >&6; } | |
03b8fe49 | 14701 | |
5213506e RW |
14702 | if test "$hardcode_action_FC" = relink || |
14703 | test "$inherit_rpath_FC" = yes; then | |
14704 | # Fast installation is not supported | |
14705 | enable_fast_install=no | |
14706 | elif test "$shlibpath_overrides_runpath" = yes || | |
14707 | test "$enable_shared" = no; then | |
14708 | # Fast installation is not necessary | |
14709 | enable_fast_install=needless | |
03b8fe49 | 14710 | fi |
03b8fe49 | 14711 | |
03b8fe49 | 14712 | |
03b8fe49 | 14713 | |
03b8fe49 | 14714 | |
03b8fe49 | 14715 | |
03b8fe49 | 14716 | |
03b8fe49 | 14717 | |
5213506e | 14718 | fi # test -n "$compiler" |
03b8fe49 | 14719 | |
5213506e RW |
14720 | GCC=$lt_save_GCC |
14721 | CC="$lt_save_CC" | |
14722 | fi # test "$_lt_disable_FC" != yes | |
03b8fe49 | 14723 | |
5213506e RW |
14724 | ac_ext=c |
14725 | ac_cpp='$CPP $CPPFLAGS' | |
14726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14729 | ||
14730 | ||
1ec601bf | 14731 | FCFLAGS="$FCFLAGS -Wall -L../libgfortran" |
5213506e RW |
14732 | |
14733 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
14734 | libtool_VERSION=1:0:0 | |
03b8fe49 | 14735 | |
5213506e RW |
14736 | |
14737 | # Check header files. | |
14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
14739 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 14740 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 14741 | $as_echo_n "(cached) " >&6 |
03b8fe49 | 14742 | else |
5213506e | 14743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
03b8fe49 | 14744 | /* end confdefs.h. */ |
03b8fe49 | 14745 | #include <stdlib.h> |
5213506e RW |
14746 | #include <stdarg.h> |
14747 | #include <string.h> | |
14748 | #include <float.h> | |
14749 | ||
03b8fe49 PB |
14750 | int |
14751 | main () | |
14752 | { | |
14753 | ||
03b8fe49 PB |
14754 | ; |
14755 | return 0; | |
14756 | } | |
14757 | _ACEOF | |
5213506e RW |
14758 | if ac_fn_c_try_compile "$LINENO"; then : |
14759 | ac_cv_header_stdc=yes | |
03b8fe49 | 14760 | else |
5213506e | 14761 | ac_cv_header_stdc=no |
03b8fe49 | 14762 | fi |
5213506e | 14763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
03b8fe49 | 14764 | |
5213506e RW |
14765 | if test $ac_cv_header_stdc = yes; then |
14766 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14768 | /* end confdefs.h. */ |
5213506e | 14769 | #include <string.h> |
03b8fe49 | 14770 | |
03b8fe49 | 14771 | _ACEOF |
5213506e RW |
14772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14773 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14774 | ||
03b8fe49 | 14775 | else |
5213506e RW |
14776 | ac_cv_header_stdc=no |
14777 | fi | |
14778 | rm -f conftest* | |
03b8fe49 | 14779 | |
03b8fe49 | 14780 | fi |
03b8fe49 | 14781 | |
5213506e RW |
14782 | if test $ac_cv_header_stdc = yes; then |
14783 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14785 | /* end confdefs.h. */ |
5213506e | 14786 | #include <stdlib.h> |
03b8fe49 | 14787 | |
03b8fe49 | 14788 | _ACEOF |
5213506e RW |
14789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14790 | $EGREP "free" >/dev/null 2>&1; then : | |
14791 | ||
14792 | else | |
14793 | ac_cv_header_stdc=no | |
14794 | fi | |
14795 | rm -f conftest* | |
14796 | ||
14797 | fi | |
14798 | ||
14799 | if test $ac_cv_header_stdc = yes; then | |
14800 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14801 | if test "$cross_compiling" = yes; then : | |
14802 | : | |
14803 | else | |
14804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14805 | /* end confdefs.h. */ |
5213506e RW |
14806 | #include <ctype.h> |
14807 | #include <stdlib.h> | |
14808 | #if ((' ' & 0x0FF) == 0x020) | |
14809 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14810 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14811 | #else | |
14812 | # define ISLOWER(c) \ | |
14813 | (('a' <= (c) && (c) <= 'i') \ | |
14814 | || ('j' <= (c) && (c) <= 'r') \ | |
14815 | || ('s' <= (c) && (c) <= 'z')) | |
14816 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
14817 | #endif | |
03b8fe49 | 14818 | |
5213506e | 14819 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
03b8fe49 PB |
14820 | int |
14821 | main () | |
14822 | { | |
5213506e RW |
14823 | int i; |
14824 | for (i = 0; i < 256; i++) | |
14825 | if (XOR (islower (i), ISLOWER (i)) | |
14826 | || toupper (i) != TOUPPER (i)) | |
14827 | return 2; | |
03b8fe49 PB |
14828 | return 0; |
14829 | } | |
14830 | _ACEOF | |
5213506e | 14831 | if ac_fn_c_try_run "$LINENO"; then : |
03b8fe49 | 14832 | |
03b8fe49 | 14833 | else |
5213506e RW |
14834 | ac_cv_header_stdc=no |
14835 | fi | |
14836 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14837 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14838 | fi | |
03b8fe49 | 14839 | |
03b8fe49 | 14840 | fi |
03b8fe49 | 14841 | fi |
5213506e RW |
14842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
14843 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14844 | if test $ac_cv_header_stdc = yes; then | |
14845 | ||
14846 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
14847 | ||
14848 | fi | |
14849 | ||
14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
14851 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
22e05272 | 14852 | if ${ac_cv_header_time+:} false; then : |
5213506e RW |
14853 | $as_echo_n "(cached) " >&6 |
14854 | else | |
14855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14856 | /* end confdefs.h. */ |
5213506e RW |
14857 | #include <sys/types.h> |
14858 | #include <sys/time.h> | |
14859 | #include <time.h> | |
03b8fe49 PB |
14860 | |
14861 | int | |
14862 | main () | |
14863 | { | |
5213506e RW |
14864 | if ((struct tm *) 0) |
14865 | return 0; | |
03b8fe49 PB |
14866 | ; |
14867 | return 0; | |
14868 | } | |
14869 | _ACEOF | |
5213506e RW |
14870 | if ac_fn_c_try_compile "$LINENO"; then : |
14871 | ac_cv_header_time=yes | |
03b8fe49 | 14872 | else |
5213506e RW |
14873 | ac_cv_header_time=no |
14874 | fi | |
14875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14876 | fi | |
14877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
14878 | $as_echo "$ac_cv_header_time" >&6; } | |
14879 | if test $ac_cv_header_time = yes; then | |
14880 | ||
14881 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
03b8fe49 | 14882 | |
03b8fe49 | 14883 | fi |
5213506e RW |
14884 | |
14885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
14886 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
22e05272 | 14887 | if ${gcc_cv_header_string+:} false; then : |
5213506e | 14888 | $as_echo_n "(cached) " >&6 |
03b8fe49 | 14889 | else |
5213506e | 14890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
03b8fe49 | 14891 | /* end confdefs.h. */ |
5213506e RW |
14892 | #include <string.h> |
14893 | #include <strings.h> | |
03b8fe49 PB |
14894 | int |
14895 | main () | |
14896 | { | |
14897 | ||
03b8fe49 PB |
14898 | ; |
14899 | return 0; | |
14900 | } | |
14901 | _ACEOF | |
5213506e RW |
14902 | if ac_fn_c_try_compile "$LINENO"; then : |
14903 | gcc_cv_header_string=yes | |
03b8fe49 | 14904 | else |
5213506e | 14905 | gcc_cv_header_string=no |
03b8fe49 | 14906 | fi |
5213506e | 14907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
03b8fe49 | 14908 | fi |
5213506e RW |
14909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
14910 | $as_echo "$gcc_cv_header_string" >&6; } | |
14911 | if test $gcc_cv_header_string = yes; then | |
14912 | ||
14913 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
14914 | ||
03b8fe49 | 14915 | fi |
5213506e | 14916 | |
6d9d1eeb | 14917 | for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h |
5213506e RW |
14918 | do : |
14919 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14920 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22e05272 | 14921 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5213506e RW |
14922 | cat >>confdefs.h <<_ACEOF |
14923 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
03b8fe49 | 14924 | _ACEOF |
03b8fe49 | 14925 | |
5213506e | 14926 | fi |
03b8fe49 | 14927 | |
5213506e | 14928 | done |
03b8fe49 | 14929 | |
03b8fe49 | 14930 | |
5213506e | 14931 | XPCFLAGS="" |
cd93945d SH |
14932 | case "$host" in |
14933 | *-*-rtems*) | |
14934 | # RTEMS supports Pthreads, but the library is not available at GCC build time. | |
14935 | ;; | |
fa499995 | 14936 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 14937 | # NVPTX does not support Pthreads, has its own code replacement. |
6103184e | 14938 | libgomp_use_pthreads=no |
9e38af5c AM |
14939 | # NVPTX is an accelerator-only target |
14940 | libgomp_offloaded_only=yes | |
44a7d18d | 14941 | ;; |
cd93945d SH |
14942 | *) |
14943 | # Check to see if -pthread or -lpthread is needed. Prefer the former. | |
14944 | # In case the pthread.h system header is not found, this test will fail. | |
14945 | CFLAGS="$CFLAGS -pthread" | |
14946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e RW |
14947 | /* end confdefs.h. */ |
14948 | #include <pthread.h> | |
cd93945d | 14949 | void *g(void *d) { return NULL; } |
a68ab351 JJ |
14950 | int |
14951 | main () | |
14952 | { | |
5213506e | 14953 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
a68ab351 JJ |
14954 | ; |
14955 | return 0; | |
14956 | } | |
14957 | _ACEOF | |
5213506e RW |
14958 | if ac_fn_c_try_link "$LINENO"; then : |
14959 | XPCFLAGS=" -Wc,-pthread" | |
14960 | else | |
14961 | CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" | |
cd93945d | 14962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a68ab351 | 14963 | /* end confdefs.h. */ |
5213506e | 14964 | #include <pthread.h> |
cd93945d | 14965 | void *g(void *d) { return NULL; } |
a68ab351 JJ |
14966 | int |
14967 | main () | |
14968 | { | |
5213506e | 14969 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
a68ab351 JJ |
14970 | ; |
14971 | return 0; | |
14972 | } | |
14973 | _ACEOF | |
5213506e | 14974 | if ac_fn_c_try_link "$LINENO"; then : |
a68ab351 | 14975 | |
a68ab351 | 14976 | else |
22e05272 | 14977 | as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5 |
5213506e RW |
14978 | fi |
14979 | rm -f core conftest.err conftest.$ac_objext \ | |
14980 | conftest$ac_exeext conftest.$ac_ext | |
14981 | fi | |
14982 | rm -f core conftest.err conftest.$ac_objext \ | |
14983 | conftest$ac_exeext conftest.$ac_ext | |
cd93945d | 14984 | esac |
a68ab351 | 14985 | |
6103184e AM |
14986 | if test x$libgomp_use_pthreads != xno; then |
14987 | ||
14988 | $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h | |
14989 | ||
14990 | fi | |
14991 | ||
9e38af5c AM |
14992 | if test x$libgomp_offloaded_only = xyes; then |
14993 | ||
14994 | $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h | |
14995 | ||
14996 | fi | |
14997 | ||
fe5bfa67 TB |
14998 | if test "x$enable_offload_defaulted" = xyes; then |
14999 | ||
15000 | $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h | |
15001 | ||
15002 | fi | |
15003 | ||
f65e551f JJ |
15004 | # The cast to long int works around a bug in the HP C Compiler |
15005 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15006 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15007 | # This bug is HP SR number 8606223364. | |
15008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
15009 | $as_echo_n "checking size of void *... " >&6; } | |
15010 | if ${ac_cv_sizeof_void_p+:} false; then : | |
15011 | $as_echo_n "(cached) " >&6 | |
15012 | else | |
15013 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
15014 | ||
15015 | else | |
15016 | if test "$ac_cv_type_void_p" = yes; then | |
15017 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15019 | as_fn_error 77 "cannot compute sizeof (void *) | |
15020 | See \`config.log' for more details" "$LINENO" 5; } | |
15021 | else | |
15022 | ac_cv_sizeof_void_p=0 | |
15023 | fi | |
15024 | fi | |
15025 | ||
15026 | fi | |
15027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
15028 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
15029 | ||
15030 | ||
15031 | ||
15032 | cat >>confdefs.h <<_ACEOF | |
15033 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15034 | _ACEOF | |
15035 | ||
15036 | ||
15037 | ||
41dbbb37 TS |
15038 | # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*- |
15039 | # | |
f65e551f | 15040 | # Copyright (C) 2014-2021 Free Software Foundation, Inc. |
41dbbb37 TS |
15041 | # |
15042 | # Contributed by Mentor Embedded. | |
15043 | # | |
15044 | # This file is part of the GNU Offloading and Multi Processing Library | |
15045 | # (libgomp). | |
15046 | # | |
15047 | # Libgomp is free software; you can redistribute it and/or modify it | |
15048 | # under the terms of the GNU General Public License as published by | |
15049 | # the Free Software Foundation; either version 3, or (at your option) | |
15050 | # any later version. | |
15051 | # | |
15052 | # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY | |
15053 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
15054 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
15055 | # more details. | |
15056 | # | |
15057 | # Under Section 7 of GPL version 3, you are granted additional | |
15058 | # permissions described in the GCC Runtime Library Exception, version | |
15059 | # 3.1, as published by the Free Software Foundation. | |
15060 | # | |
15061 | # You should have received a copy of the GNU General Public License and | |
15062 | # a copy of the GCC Runtime Library Exception along with this program; | |
15063 | # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | |
15064 | # <http://www.gnu.org/licenses/>. | |
15065 | ||
85c64bbe BS |
15066 | plugin_support=yes |
15067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | |
15068 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | |
22e05272 | 15069 | if ${ac_cv_lib_dl_dlsym+:} false; then : |
85c64bbe BS |
15070 | $as_echo_n "(cached) " >&6 |
15071 | else | |
15072 | ac_check_lib_save_LIBS=$LIBS | |
15073 | LIBS="-ldl $LIBS" | |
15074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15075 | /* end confdefs.h. */ | |
15076 | ||
15077 | /* Override any GCC internal prototype to avoid an error. | |
15078 | Use char because int might match the return type of a GCC | |
15079 | builtin and then its argument prototype would still apply. */ | |
15080 | #ifdef __cplusplus | |
15081 | extern "C" | |
15082 | #endif | |
15083 | char dlsym (); | |
15084 | int | |
15085 | main () | |
15086 | { | |
15087 | return dlsym (); | |
15088 | ; | |
15089 | return 0; | |
15090 | } | |
15091 | _ACEOF | |
15092 | if ac_fn_c_try_link "$LINENO"; then : | |
15093 | ac_cv_lib_dl_dlsym=yes | |
15094 | else | |
15095 | ac_cv_lib_dl_dlsym=no | |
15096 | fi | |
15097 | rm -f core conftest.err conftest.$ac_objext \ | |
15098 | conftest$ac_exeext conftest.$ac_ext | |
15099 | LIBS=$ac_check_lib_save_LIBS | |
15100 | fi | |
15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | |
15102 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | |
22e05272 | 15103 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
85c64bbe BS |
15104 | cat >>confdefs.h <<_ACEOF |
15105 | #define HAVE_LIBDL 1 | |
15106 | _ACEOF | |
15107 | ||
15108 | LIBS="-ldl $LIBS" | |
15109 | ||
15110 | else | |
15111 | plugin_support=no | |
15112 | fi | |
15113 | ||
15114 | if test x"$plugin_support" = xyes; then | |
15115 | ||
15116 | $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h | |
15117 | ||
41dbbb37 | 15118 | elif test "x${enable_offload_targets-no}" != xno; then |
22e05272 | 15119 | as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5 |
41dbbb37 TS |
15120 | fi |
15121 | ||
b8d89b03 ML |
15122 | |
15123 | ||
15124 | for ac_header in $ac_header_list | |
15125 | do : | |
15126 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15127 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
15128 | " | |
22e05272 | 15129 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
b8d89b03 ML |
15130 | cat >>confdefs.h <<_ACEOF |
15131 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15132 | _ACEOF | |
15133 | ||
15134 | fi | |
15135 | ||
15136 | done | |
15137 | ||
15138 | ||
15139 | ||
15140 | ||
15141 | ||
15142 | ||
15143 | ||
15144 | for ac_func in $ac_func_list | |
15145 | do : | |
15146 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15147 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 15148 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
b8d89b03 ML |
15149 | cat >>confdefs.h <<_ACEOF |
15150 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15151 | _ACEOF | |
15152 | ||
15153 | fi | |
15154 | done | |
15155 | ||
15156 | ||
15157 | ||
15158 | ||
15159 | ||
15160 | ||
15161 | ||
15162 | ||
15163 | ||
15164 | ||
15165 | ||
15166 | ||
15167 | ||
15168 | ||
15169 | ||
15170 | ||
41dbbb37 TS |
15171 | # Look for the CUDA driver package. |
15172 | CUDA_DRIVER_INCLUDE= | |
15173 | CUDA_DRIVER_LIB= | |
15174 | ||
15175 | ||
15176 | CUDA_DRIVER_CPPFLAGS= | |
15177 | CUDA_DRIVER_LDFLAGS= | |
15178 | ||
15179 | # Check whether --with-cuda-driver was given. | |
15180 | if test "${with_cuda_driver+set}" = set; then : | |
15181 | withval=$with_cuda_driver; | |
85c64bbe BS |
15182 | fi |
15183 | ||
41dbbb37 TS |
15184 | |
15185 | # Check whether --with-cuda-driver-include was given. | |
15186 | if test "${with_cuda_driver_include+set}" = set; then : | |
15187 | withval=$with_cuda_driver_include; | |
15188 | fi | |
15189 | ||
15190 | ||
15191 | # Check whether --with-cuda-driver-lib was given. | |
15192 | if test "${with_cuda_driver_lib+set}" = set; then : | |
15193 | withval=$with_cuda_driver_lib; | |
15194 | fi | |
15195 | ||
2393d337 | 15196 | case "x$with_cuda_driver" in |
09940090 TV |
15197 | x) ;; |
15198 | xno) | |
15199 | CUDA_DRIVER_INCLUDE=no | |
15200 | CUDA_DRIVER_LIB=no | |
15201 | ;; | |
2393d337 JJ |
15202 | *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include |
15203 | CUDA_DRIVER_LIB=$with_cuda_driver/lib | |
15204 | ;; | |
15205 | esac | |
41dbbb37 TS |
15206 | if test "x$with_cuda_driver_include" != x; then |
15207 | CUDA_DRIVER_INCLUDE=$with_cuda_driver_include | |
15208 | fi | |
15209 | if test "x$with_cuda_driver_lib" != x; then | |
15210 | CUDA_DRIVER_LIB=$with_cuda_driver_lib | |
15211 | fi | |
09940090 TV |
15212 | if test "x$CUDA_DRIVER_INCLUDE" != x \ |
15213 | && test "x$CUDA_DRIVER_INCLUDE" != xno; then | |
41dbbb37 TS |
15214 | CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE |
15215 | fi | |
09940090 TV |
15216 | if test "x$CUDA_DRIVER_LIB" != x \ |
15217 | && test "x$CUDA_DRIVER_LIB" != xno; then | |
41dbbb37 TS |
15218 | CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB |
15219 | fi | |
15220 | ||
15221 | PLUGIN_NVPTX=0 | |
15222 | PLUGIN_NVPTX_CPPFLAGS= | |
15223 | PLUGIN_NVPTX_LDFLAGS= | |
15224 | PLUGIN_NVPTX_LIBS= | |
2393d337 | 15225 | PLUGIN_NVPTX_DYNAMIC=0 |
41dbbb37 TS |
15226 | |
15227 | ||
15228 | ||
15229 | ||
15230 | ||
b2b40051 MJ |
15231 | # Look for HSA run-time, its includes and libraries |
15232 | ||
15233 | HSA_RUNTIME_INCLUDE= | |
15234 | HSA_RUNTIME_LIB= | |
15235 | ||
15236 | ||
15237 | HSA_RUNTIME_CPPFLAGS= | |
15238 | HSA_RUNTIME_LDFLAGS= | |
15239 | ||
15240 | ||
15241 | # Check whether --with-hsa-runtime was given. | |
15242 | if test "${with_hsa_runtime+set}" = set; then : | |
15243 | withval=$with_hsa_runtime; | |
15244 | fi | |
15245 | ||
15246 | ||
15247 | # Check whether --with-hsa-runtime-include was given. | |
15248 | if test "${with_hsa_runtime_include+set}" = set; then : | |
15249 | withval=$with_hsa_runtime_include; | |
15250 | fi | |
15251 | ||
15252 | ||
15253 | # Check whether --with-hsa-runtime-lib was given. | |
15254 | if test "${with_hsa_runtime_lib+set}" = set; then : | |
15255 | withval=$with_hsa_runtime_lib; | |
15256 | fi | |
15257 | ||
15258 | if test "x$with_hsa_runtime" != x; then | |
15259 | HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include | |
15260 | HSA_RUNTIME_LIB=$with_hsa_runtime/lib | |
15261 | fi | |
15262 | if test "x$with_hsa_runtime_include" != x; then | |
15263 | HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include | |
15264 | fi | |
15265 | if test "x$with_hsa_runtime_lib" != x; then | |
15266 | HSA_RUNTIME_LIB=$with_hsa_runtime_lib | |
15267 | fi | |
15268 | if test "x$HSA_RUNTIME_INCLUDE" != x; then | |
15269 | HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE | |
15270 | fi | |
15271 | if test "x$HSA_RUNTIME_LIB" != x; then | |
15272 | HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB | |
15273 | fi | |
15274 | ||
237957cc AS |
15275 | PLUGIN_GCN=0 |
15276 | PLUGIN_GCN_CPPFLAGS= | |
15277 | PLUGIN_GCN_LDFLAGS= | |
15278 | PLUGIN_GCN_LIBS= | |
15279 | ||
15280 | ||
15281 | ||
15282 | ||
15283 | ||
ee332b4a TS |
15284 | # Parse '--enable-offload-targets', figure out the corresponding libgomp |
15285 | # plugins, and configure to find the corresponding offload compilers. | |
0a0384b4 | 15286 | # 'offload_plugins' and 'offload_targets' will be populated in the same order. |
ee332b4a | 15287 | offload_plugins= |
0a0384b4 TS |
15288 | offload_targets= |
15289 | ||
ee332b4a | 15290 | |
41dbbb37 TS |
15291 | offload_additional_options= |
15292 | offload_additional_lib_paths= | |
15293 | ||
15294 | ||
15295 | if test x"$enable_offload_targets" != x; then | |
15296 | for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do | |
15297 | tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'` | |
15298 | tgt=`echo $tgt | sed 's/=.*//'` | |
ee332b4a | 15299 | tgt_plugin= |
41dbbb37 TS |
15300 | case $tgt in |
15301 | *-intelmic-* | *-intelmicemul-*) | |
ee332b4a | 15302 | tgt_plugin=intelmic |
41dbbb37 TS |
15303 | ;; |
15304 | nvptx*) | |
6106dfb9 TS |
15305 | case "${target}" in |
15306 | aarch64*-*-* | powerpc64le-*-* | x86_64-*-*) | |
f65e551f JJ |
15307 | case "$ac_cv_sizeof_void_p" in |
15308 | 4) | |
6106dfb9 TS |
15309 | # PR libgomp/65099: Currently, we only support offloading in |
15310 | # 64-bit configurations. | |
15311 | PLUGIN_NVPTX=0 | |
15312 | ;; | |
15313 | *) | |
15314 | tgt_plugin=nvptx | |
15315 | PLUGIN_NVPTX=$tgt | |
15316 | if test "x$CUDA_DRIVER_LIB" != xno \ | |
15317 | && test "x$CUDA_DRIVER_LIB" != xno; then | |
15318 | PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS | |
15319 | PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS | |
15320 | PLUGIN_NVPTX_LIBS='-lcuda' | |
15321 | ||
15322 | PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS | |
15323 | CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS" | |
15324 | PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS | |
15325 | LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS" | |
15326 | PLUGIN_NVPTX_save_LIBS=$LIBS | |
15327 | LIBS="$PLUGIN_NVPTX_LIBS $LIBS" | |
15328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
41dbbb37 TS |
15329 | /* end confdefs.h. */ |
15330 | #include "cuda.h" | |
15331 | int | |
15332 | main () | |
15333 | { | |
15334 | CUresult r = cuCtxPushCurrent (NULL); | |
15335 | ; | |
15336 | return 0; | |
15337 | } | |
15338 | _ACEOF | |
15339 | if ac_fn_c_try_link "$LINENO"; then : | |
15340 | PLUGIN_NVPTX=1 | |
15341 | fi | |
15342 | rm -f core conftest.err conftest.$ac_objext \ | |
15343 | conftest$ac_exeext conftest.$ac_ext | |
6106dfb9 TS |
15344 | CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS |
15345 | LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS | |
15346 | LIBS=$PLUGIN_NVPTX_save_LIBS | |
15347 | fi | |
15348 | case $PLUGIN_NVPTX in | |
15349 | nvptx*) | |
15350 | if (test "x$CUDA_DRIVER_INCLUDE" = x \ | |
15351 | || test "x$CUDA_DRIVER_INCLUDE" = xno) \ | |
15352 | && (test "x$CUDA_DRIVER_LIB" = x \ | |
15353 | || test "x$CUDA_DRIVER_LIB" = xno); then | |
15354 | PLUGIN_NVPTX=1 | |
15355 | PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda' | |
15356 | PLUGIN_NVPTX_LIBS='-ldl' | |
15357 | PLUGIN_NVPTX_DYNAMIC=1 | |
15358 | else | |
15359 | PLUGIN_NVPTX=0 | |
15360 | as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5 | |
15361 | fi | |
15362 | ;; | |
15363 | esac | |
15364 | ;; | |
15365 | esac | |
15366 | ;; | |
15367 | *-*-*) | |
15368 | # Target architecture not supported. | |
15369 | PLUGIN_NVPTX=0 | |
15370 | ;; | |
41dbbb37 TS |
15371 | esac |
15372 | ;; | |
237957cc AS |
15373 | amdgcn*) |
15374 | case "${target}" in | |
15375 | x86_64-*-*) | |
f65e551f JJ |
15376 | case "$ac_cv_sizeof_void_p" in |
15377 | 4) | |
237957cc AS |
15378 | PLUGIN_GCN=0 |
15379 | ;; | |
15380 | *) | |
15381 | tgt_plugin=gcn | |
15382 | PLUGIN_GCN=$tgt | |
15383 | PLUGIN_GCN_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS | |
15384 | PLUGIN_GCN_LDFLAGS="$HSA_RUNTIME_LDFLAGS" | |
15385 | PLUGIN_GCN_LIBS="-ldl" | |
15386 | PLUGIN_GCN=1 | |
15387 | ;; | |
15388 | esac | |
15389 | ;; | |
15390 | *-*-*) | |
15391 | PLUGIN_GCN=0 | |
15392 | ;; | |
15393 | esac | |
15394 | ;; | |
41dbbb37 | 15395 | *) |
22e05272 | 15396 | as_fn_error $? "unknown offload target specified" "$LINENO" 5 |
41dbbb37 TS |
15397 | ;; |
15398 | esac | |
ee332b4a TS |
15399 | if test x"$tgt_plugin" = x; then |
15400 | # Not configuring libgomp for this offload target if we're not building | |
15401 | # the corresponding offload plugin. | |
41d809d3 | 15402 | continue |
ee332b4a TS |
15403 | elif test x"$offload_plugins" = x; then |
15404 | offload_plugins=$tgt_plugin | |
0a0384b4 | 15405 | offload_targets=$tgt |
41dbbb37 | 15406 | else |
ee332b4a | 15407 | offload_plugins=$offload_plugins,$tgt_plugin |
0a0384b4 | 15408 | offload_targets=$offload_targets,$tgt |
41dbbb37 | 15409 | fi |
ee332b4a | 15410 | # Configure additional search paths. |
c56684fd | 15411 | if test x"$tgt_dir" != x; then |
41dbbb37 TS |
15412 | offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin" |
15413 | offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32" | |
15414 | else | |
15415 | offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)" | |
15416 | offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir" | |
15417 | fi | |
15418 | done | |
15419 | fi | |
15420 | ||
15421 | cat >>confdefs.h <<_ACEOF | |
ee332b4a | 15422 | #define OFFLOAD_PLUGINS "$offload_plugins" |
41dbbb37 TS |
15423 | _ACEOF |
15424 | ||
15425 | if test $PLUGIN_NVPTX = 1; then | |
15426 | PLUGIN_NVPTX_TRUE= | |
15427 | PLUGIN_NVPTX_FALSE='#' | |
15428 | else | |
15429 | PLUGIN_NVPTX_TRUE='#' | |
15430 | PLUGIN_NVPTX_FALSE= | |
15431 | fi | |
15432 | ||
15433 | ||
15434 | cat >>confdefs.h <<_ACEOF | |
15435 | #define PLUGIN_NVPTX $PLUGIN_NVPTX | |
15436 | _ACEOF | |
15437 | ||
2393d337 JJ |
15438 | |
15439 | cat >>confdefs.h <<_ACEOF | |
15440 | #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC | |
b2b40051 MJ |
15441 | _ACEOF |
15442 | ||
237957cc AS |
15443 | if test $PLUGIN_GCN = 1; then |
15444 | PLUGIN_GCN_TRUE= | |
15445 | PLUGIN_GCN_FALSE='#' | |
15446 | else | |
15447 | PLUGIN_GCN_TRUE='#' | |
15448 | PLUGIN_GCN_FALSE= | |
15449 | fi | |
15450 | ||
15451 | ||
15452 | cat >>confdefs.h <<_ACEOF | |
15453 | #define PLUGIN_GCN $PLUGIN_GCN | |
15454 | _ACEOF | |
15455 | ||
41dbbb37 TS |
15456 | |
15457 | ||
5213506e RW |
15458 | # Check for functions needed. |
15459 | for ac_func in getloadavg clock_gettime strtoull | |
15460 | do : | |
15461 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15462 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 15463 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5213506e RW |
15464 | cat >>confdefs.h <<_ACEOF |
15465 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
a68ab351 | 15466 | _ACEOF |
a68ab351 | 15467 | |
5213506e RW |
15468 | fi |
15469 | done | |
15470 | ||
28567c40 JJ |
15471 | for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc |
15472 | do : | |
15473 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15474 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
a7155c2e | 15475 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
28567c40 JJ |
15476 | cat >>confdefs.h <<_ACEOF |
15477 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15478 | _ACEOF | |
15479 | ||
15480 | fi | |
15481 | done | |
15482 | ||
5213506e RW |
15483 | |
15484 | # Check for broken semaphore implementation on darwin. | |
15485 | # sem_init returns: sem_init error: Function not implemented. | |
15486 | case "$host" in | |
15487 | *-darwin*) | |
15488 | ||
15489 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | |
15490 | ||
15491 | ;; | |
15492 | esac | |
15493 | ||
13c41b2e SH |
15494 | # RTEMS specific checks |
15495 | case "$host" in | |
15496 | *-*-rtems*) | |
15497 | ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h> | |
15498 | " | |
22e05272 | 15499 | if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then : |
13c41b2e SH |
15500 | |
15501 | cat >>confdefs.h <<_ACEOF | |
15502 | #define HAVE_STRUCT__MUTEX_CONTROL 1 | |
15503 | _ACEOF | |
15504 | ||
15505 | ||
15506 | fi | |
15507 | ||
15508 | ;; | |
15509 | esac | |
15510 | ||
5213506e RW |
15511 | # Check whether --enable-linux-futex was given. |
15512 | if test "${enable_linux_futex+set}" = set; then : | |
15513 | enableval=$enable_linux_futex; | |
15514 | case "$enableval" in | |
15515 | yes|no|default) ;; | |
22e05272 | 15516 | *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;; |
5213506e RW |
15517 | esac |
15518 | ||
15519 | else | |
15520 | enable_linux_futex=default | |
15521 | fi | |
a68ab351 | 15522 | |
a68ab351 | 15523 | |
5213506e | 15524 | case "$target" in |
e9085da5 | 15525 | *-linux* | *-uclinux*) |
5213506e RW |
15526 | case "$enable_linux_futex" in |
15527 | default) | |
15528 | # If headers don't have gettid/futex syscalls definition, then | |
15529 | # default to no, otherwise there will be compile time failures. | |
15530 | # Otherwise, default to yes. If we don't detect we are | |
15531 | # compiled/linked against NPTL and not cross-compiling, check | |
15532 | # if programs are run by default against NPTL and if not, issue | |
15533 | # a warning. | |
15534 | enable_linux_futex=no | |
15535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15536 | /* end confdefs.h. */ | |
15537 | #include <sys/syscall.h> | |
3c086f8d | 15538 | #include <unistd.h> |
5213506e | 15539 | int lk; |
a68ab351 JJ |
15540 | int |
15541 | main () | |
15542 | { | |
5213506e | 15543 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); |
a68ab351 JJ |
15544 | ; |
15545 | return 0; | |
15546 | } | |
15547 | _ACEOF | |
5213506e RW |
15548 | if ac_fn_c_try_link "$LINENO"; then : |
15549 | save_LIBS="$LIBS" | |
15550 | LIBS="-lpthread $LIBS" | |
15551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15552 | /* end confdefs.h. */ |
5213506e RW |
15553 | #ifndef _GNU_SOURCE |
15554 | #define _GNU_SOURCE 1 | |
15555 | #endif | |
15556 | #include <pthread.h> | |
15557 | pthread_t th; void *status; | |
a68ab351 JJ |
15558 | int |
15559 | main () | |
15560 | { | |
5213506e | 15561 | pthread_tryjoin_np (th, &status); |
a68ab351 JJ |
15562 | ; |
15563 | return 0; | |
15564 | } | |
15565 | _ACEOF | |
5213506e RW |
15566 | if ac_fn_c_try_link "$LINENO"; then : |
15567 | enable_linux_futex=yes | |
a68ab351 | 15568 | else |
5213506e RW |
15569 | if test x$cross_compiling = xno; then |
15570 | if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ | |
15571 | | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else | |
15572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls. | |
15573 | If so, please configure with --disable-linux-futex" >&5 | |
15574 | $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. | |
15575 | If so, please configure with --disable-linux-futex" >&2;} | |
15576 | fi | |
15577 | fi | |
15578 | enable_linux_futex=yes | |
a68ab351 | 15579 | fi |
5213506e RW |
15580 | rm -f core conftest.err conftest.$ac_objext \ |
15581 | conftest$ac_exeext conftest.$ac_ext | |
15582 | LIBS="$save_LIBS" | |
15583 | fi | |
15584 | rm -f core conftest.err conftest.$ac_objext \ | |
15585 | conftest$ac_exeext conftest.$ac_ext | |
15586 | ;; | |
15587 | yes) | |
15588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15589 | /* end confdefs.h. */ |
5213506e | 15590 | #include <sys/syscall.h> |
3c086f8d | 15591 | #include <unistd.h> |
5213506e | 15592 | int lk; |
a68ab351 JJ |
15593 | int |
15594 | main () | |
15595 | { | |
5213506e | 15596 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); |
a68ab351 JJ |
15597 | ; |
15598 | return 0; | |
15599 | } | |
15600 | _ACEOF | |
5213506e | 15601 | if ac_fn_c_try_link "$LINENO"; then : |
a68ab351 | 15602 | |
5213506e | 15603 | else |
22e05272 | 15604 | as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5 |
a68ab351 | 15605 | fi |
5213506e RW |
15606 | rm -f core conftest.err conftest.$ac_objext \ |
15607 | conftest$ac_exeext conftest.$ac_ext | |
15608 | ;; | |
15609 | esac | |
15610 | ;; | |
15611 | *) | |
15612 | enable_linux_futex=no | |
15613 | ;; | |
15614 | esac | |
15615 | if test x$enable_linux_futex = xyes; then | |
15616 | : | |
a68ab351 | 15617 | fi |
a68ab351 | 15618 | |
5213506e RW |
15619 | |
15620 | # Check for pthread_{,attr_}[sg]etaffinity_np. | |
15621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15622 | /* end confdefs.h. */ | |
15623 | #define _GNU_SOURCE | |
15624 | #include <pthread.h> | |
a68ab351 JJ |
15625 | int |
15626 | main () | |
15627 | { | |
5213506e RW |
15628 | cpu_set_t cpuset; |
15629 | pthread_attr_t attr; | |
15630 | pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
15631 | if (CPU_ISSET (0, &cpuset)) | |
15632 | CPU_SET (1, &cpuset); | |
15633 | else | |
15634 | CPU_ZERO (&cpuset); | |
15635 | pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
15636 | pthread_attr_init (&attr); | |
15637 | pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
15638 | pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
a68ab351 JJ |
15639 | ; |
15640 | return 0; | |
15641 | } | |
15642 | _ACEOF | |
5213506e RW |
15643 | if ac_fn_c_try_link "$LINENO"; then : |
15644 | ||
15645 | $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h | |
15646 | ||
15647 | fi | |
15648 | rm -f core conftest.err conftest.$ac_objext \ | |
15649 | conftest$ac_exeext conftest.$ac_ext | |
15650 | ||
15651 | # At least for glibc, clock_gettime is in librt. But don't pull that | |
15652 | # in if it still doesn't give us the function we want. | |
15653 | if test $ac_cv_func_clock_gettime = no; then | |
15654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
15655 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 15656 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
5213506e RW |
15657 | $as_echo_n "(cached) " >&6 |
15658 | else | |
15659 | ac_check_lib_save_LIBS=$LIBS | |
15660 | LIBS="-lrt $LIBS" | |
15661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
15662 | /* end confdefs.h. */ |
15663 | ||
5213506e RW |
15664 | /* Override any GCC internal prototype to avoid an error. |
15665 | Use char because int might match the return type of a GCC | |
15666 | builtin and then its argument prototype would still apply. */ | |
15667 | #ifdef __cplusplus | |
15668 | extern "C" | |
15669 | #endif | |
15670 | char clock_gettime (); | |
a68ab351 JJ |
15671 | int |
15672 | main () | |
15673 | { | |
5213506e | 15674 | return clock_gettime (); |
a68ab351 JJ |
15675 | ; |
15676 | return 0; | |
15677 | } | |
15678 | _ACEOF | |
5213506e RW |
15679 | if ac_fn_c_try_link "$LINENO"; then : |
15680 | ac_cv_lib_rt_clock_gettime=yes | |
a68ab351 | 15681 | else |
5213506e RW |
15682 | ac_cv_lib_rt_clock_gettime=no |
15683 | fi | |
15684 | rm -f core conftest.err conftest.$ac_objext \ | |
15685 | conftest$ac_exeext conftest.$ac_ext | |
15686 | LIBS=$ac_check_lib_save_LIBS | |
15687 | fi | |
15688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
15689 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 15690 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
5213506e RW |
15691 | LIBS="-lrt $LIBS" |
15692 | ||
15693 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |
a68ab351 | 15694 | |
a68ab351 | 15695 | fi |
5213506e RW |
15696 | |
15697 | fi | |
15698 | ||
28567c40 JJ |
15699 | # Check for uname. |
15700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15701 | /* end confdefs.h. */ | |
15702 | #include <string.h> | |
15703 | #include <stdlib.h> | |
15704 | #include <sys/utsname.h> | |
15705 | int | |
15706 | main () | |
15707 | { | |
15708 | struct utsname buf; | |
15709 | volatile size_t len = 0; | |
15710 | if (!uname (buf)) | |
15711 | len = strlen (buf.nodename); | |
15712 | ; | |
15713 | return 0; | |
15714 | } | |
15715 | _ACEOF | |
15716 | if ac_fn_c_try_compile "$LINENO"; then : | |
15717 | ||
15718 | $as_echo "#define HAVE_UNAME 1" >>confdefs.h | |
15719 | ||
15720 | fi | |
15721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15722 | ||
15723 | # Check for gethostname. | |
15724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15725 | /* end confdefs.h. */ | |
15726 | #include <unistd.h> | |
15727 | int | |
15728 | main () | |
15729 | { | |
15730 | ||
15731 | char buf[256]; | |
15732 | if (gethostname (buf, sizeof (buf) - 1) == 0) | |
15733 | buf[255] = '\0'; | |
15734 | ||
15735 | ; | |
15736 | return 0; | |
15737 | } | |
15738 | _ACEOF | |
15739 | if ac_fn_c_try_compile "$LINENO"; then : | |
15740 | ||
15741 | $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h | |
15742 | ||
15743 | fi | |
15744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15745 | ||
15746 | # Check for getpid. | |
15747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15748 | /* end confdefs.h. */ | |
15749 | #include <unistd.h> | |
15750 | int | |
15751 | main () | |
15752 | { | |
15753 | int pid = getpid (); | |
15754 | ; | |
15755 | return 0; | |
15756 | } | |
15757 | _ACEOF | |
15758 | if ac_fn_c_try_compile "$LINENO"; then : | |
15759 | ||
15760 | $as_echo "#define HAVE_GETPID 1" >>confdefs.h | |
15761 | ||
15762 | fi | |
15763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15764 | ||
5213506e RW |
15765 | # See if we support thread-local storage. |
15766 | ||
15767 | ||
15768 | # Check whether --enable-tls was given. | |
15769 | if test "${enable_tls+set}" = set; then : | |
15770 | enableval=$enable_tls; | |
15771 | case "$enableval" in | |
15772 | yes|no) ;; | |
22e05272 | 15773 | *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; |
5213506e RW |
15774 | esac |
15775 | ||
15776 | else | |
15777 | enable_tls=yes | |
15778 | fi | |
15779 | ||
15780 | ||
15781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 | |
15782 | $as_echo_n "checking whether the target supports thread-local storage... " >&6; } | |
22e05272 | 15783 | if ${gcc_cv_have_tls+:} false; then : |
5213506e | 15784 | $as_echo_n "(cached) " >&6 |
a68ab351 | 15785 | else |
a68ab351 | 15786 | |
5213506e RW |
15787 | if test "$cross_compiling" = yes; then : |
15788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15789 | /* end confdefs.h. */ | |
15790 | __thread int a; int b; int main() { return a = b; } | |
15791 | _ACEOF | |
15792 | if ac_fn_c_try_link "$LINENO"; then : | |
15793 | chktls_save_LDFLAGS="$LDFLAGS" | |
15794 | case $host in | |
e9085da5 | 15795 | *-*-linux* | -*-uclinuxfdpic*) |
5213506e RW |
15796 | LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" |
15797 | ;; | |
15798 | esac | |
15799 | chktls_save_CFLAGS="$CFLAGS" | |
15800 | CFLAGS="-fPIC $CFLAGS" | |
15801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15802 | /* end confdefs.h. */ | |
15803 | int f() { return 0; } | |
a68ab351 | 15804 | _ACEOF |
5213506e RW |
15805 | if ac_fn_c_try_link "$LINENO"; then : |
15806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15807 | /* end confdefs.h. */ |
5213506e RW |
15808 | __thread int a; int b; int f() { return a = b; } |
15809 | _ACEOF | |
15810 | if ac_fn_c_try_link "$LINENO"; then : | |
15811 | gcc_cv_have_tls=yes | |
15812 | else | |
15813 | gcc_cv_have_tls=no | |
15814 | fi | |
15815 | rm -f core conftest.err conftest.$ac_objext \ | |
15816 | conftest$ac_exeext conftest.$ac_ext | |
15817 | else | |
15818 | gcc_cv_have_tls=yes | |
15819 | fi | |
15820 | rm -f core conftest.err conftest.$ac_objext \ | |
15821 | conftest$ac_exeext conftest.$ac_ext | |
15822 | CFLAGS="$chktls_save_CFLAGS" | |
15823 | LDFLAGS="$chktls_save_LDFLAGS" | |
15824 | else | |
15825 | gcc_cv_have_tls=no | |
15826 | fi | |
15827 | rm -f core conftest.err conftest.$ac_objext \ | |
15828 | conftest$ac_exeext conftest.$ac_ext | |
a68ab351 | 15829 | |
a68ab351 | 15830 | |
5213506e RW |
15831 | else |
15832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15833 | /* end confdefs.h. */ | |
15834 | __thread int a; int b; int main() { return a = b; } | |
a68ab351 | 15835 | _ACEOF |
5213506e RW |
15836 | if ac_fn_c_try_run "$LINENO"; then : |
15837 | chktls_save_LDFLAGS="$LDFLAGS" | |
15838 | LDFLAGS="-static $LDFLAGS" | |
15839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15840 | /* end confdefs.h. */ | |
15841 | int main() { return 0; } | |
a68ab351 | 15842 | _ACEOF |
5213506e RW |
15843 | if ac_fn_c_try_link "$LINENO"; then : |
15844 | if test "$cross_compiling" = yes; then : | |
15845 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15846 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15847 | as_fn_error $? "cannot run test program while cross compiling |
15848 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
15849 | else |
15850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15851 | /* end confdefs.h. */ |
5213506e RW |
15852 | __thread int a; int b; int main() { return a = b; } |
15853 | _ACEOF | |
15854 | if ac_fn_c_try_run "$LINENO"; then : | |
15855 | gcc_cv_have_tls=yes | |
15856 | else | |
15857 | gcc_cv_have_tls=no | |
15858 | fi | |
15859 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15860 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15861 | fi | |
a68ab351 | 15862 | |
5213506e RW |
15863 | else |
15864 | gcc_cv_have_tls=yes | |
15865 | fi | |
15866 | rm -f core conftest.err conftest.$ac_objext \ | |
15867 | conftest$ac_exeext conftest.$ac_ext | |
15868 | LDFLAGS="$chktls_save_LDFLAGS" | |
15869 | if test $gcc_cv_have_tls = yes; then | |
15870 | chktls_save_CFLAGS="$CFLAGS" | |
15871 | thread_CFLAGS=failed | |
15872 | for flag in '' '-pthread' '-lpthread'; do | |
15873 | CFLAGS="$flag $chktls_save_CFLAGS" | |
15874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15875 | /* end confdefs.h. */ | |
15876 | #include <pthread.h> | |
15877 | void *g(void *d) { return NULL; } | |
a68ab351 JJ |
15878 | int |
15879 | main () | |
15880 | { | |
5213506e | 15881 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
a68ab351 JJ |
15882 | ; |
15883 | return 0; | |
15884 | } | |
15885 | _ACEOF | |
5213506e RW |
15886 | if ac_fn_c_try_link "$LINENO"; then : |
15887 | thread_CFLAGS="$flag" | |
a68ab351 | 15888 | fi |
5213506e RW |
15889 | rm -f core conftest.err conftest.$ac_objext \ |
15890 | conftest$ac_exeext conftest.$ac_ext | |
15891 | if test "X$thread_CFLAGS" != Xfailed; then | |
15892 | break | |
15893 | fi | |
15894 | done | |
15895 | CFLAGS="$chktls_save_CFLAGS" | |
15896 | if test "X$thread_CFLAGS" != Xfailed; then | |
15897 | CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" | |
75bc9e5e | 15898 | if test "$cross_compiling" = yes; then : |
5213506e RW |
15899 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
15900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15901 | as_fn_error $? "cannot run test program while cross compiling |
15902 | See \`config.log' for more details" "$LINENO" 5; } | |
a68ab351 | 15903 | else |
5213506e | 15904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a68ab351 | 15905 | /* end confdefs.h. */ |
5213506e RW |
15906 | #include <pthread.h> |
15907 | __thread int a; | |
dbd34b89 | 15908 | static int *volatile a_in_other_thread; |
5213506e RW |
15909 | static void * |
15910 | thread_func (void *arg) | |
15911 | { | |
15912 | a_in_other_thread = &a; | |
15913 | return (void *)0; | |
15914 | } | |
a68ab351 JJ |
15915 | int |
15916 | main () | |
15917 | { | |
5213506e RW |
15918 | pthread_t thread; |
15919 | void *thread_retval; | |
dbd34b89 IS |
15920 | int *volatile a_in_main_thread; |
15921 | a_in_main_thread = &a; | |
5213506e RW |
15922 | if (pthread_create (&thread, (pthread_attr_t *)0, |
15923 | thread_func, (void *)0)) | |
15924 | return 0; | |
5213506e RW |
15925 | if (pthread_join (thread, &thread_retval)) |
15926 | return 0; | |
15927 | return (a_in_other_thread == a_in_main_thread); | |
a68ab351 JJ |
15928 | ; |
15929 | return 0; | |
15930 | } | |
15931 | _ACEOF | |
5213506e RW |
15932 | if ac_fn_c_try_run "$LINENO"; then : |
15933 | gcc_cv_have_tls=yes | |
a68ab351 | 15934 | else |
5213506e RW |
15935 | gcc_cv_have_tls=no |
15936 | fi | |
15937 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15938 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15939 | fi | |
15940 | ||
15941 | CFLAGS="$chktls_save_CFLAGS" | |
15942 | fi | |
15943 | fi | |
15944 | else | |
15945 | gcc_cv_have_tls=no | |
15946 | fi | |
15947 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15948 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15949 | fi | |
a68ab351 | 15950 | |
a68ab351 | 15951 | fi |
5213506e RW |
15952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 |
15953 | $as_echo "$gcc_cv_have_tls" >&6; } | |
15954 | if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then | |
15955 | ||
15956 | $as_echo "#define HAVE_TLS 1" >>confdefs.h | |
15957 | ||
15958 | fi | |
15959 | ||
f50eecba VR |
15960 | # See if we have emulated thread-local storage. |
15961 | ||
15962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5 | |
15963 | $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; } | |
22e05272 | 15964 | if ${gcc_cv_use_emutls+:} false; then : |
f50eecba VR |
15965 | $as_echo_n "(cached) " >&6 |
15966 | else | |
15967 | ||
15968 | gcc_cv_use_emutls=no | |
15969 | echo '__thread int a; int b; int main() { return a = b; }' > conftest.c | |
15970 | if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5' | |
15971 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15972 | (eval $ac_try) 2>&5 | |
15973 | ac_status=$? | |
15974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15975 | test $ac_status = 0; }; }; then | |
15976 | if grep __emutls_get_address conftest.s > /dev/null; then | |
15977 | gcc_cv_use_emutls=yes | |
15978 | fi | |
15979 | fi | |
15980 | rm -f conftest.* | |
15981 | ||
15982 | fi | |
15983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5 | |
15984 | $as_echo "$gcc_cv_use_emutls" >&6; } | |
15985 | if test "$gcc_cv_use_emutls" = "yes" ; then | |
15986 | ||
15987 | $as_echo "#define USE_EMUTLS 1" >>confdefs.h | |
15988 | ||
15989 | fi | |
15990 | ||
451c19c4 | 15991 | # See what sort of export controls are available. |
5213506e RW |
15992 | |
15993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 | |
15994 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 15995 | if ${libgomp_cv_have_attribute_visibility+:} false; then : |
5213506e | 15996 | $as_echo_n "(cached) " >&6 |
a68ab351 | 15997 | else |
a68ab351 | 15998 | |
5213506e RW |
15999 | save_CFLAGS="$CFLAGS" |
16000 | CFLAGS="$CFLAGS -Werror" | |
16001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16002 | /* end confdefs.h. */ | |
16003 | void __attribute__((visibility("hidden"))) foo(void) { } | |
a68ab351 JJ |
16004 | int |
16005 | main () | |
16006 | { | |
16007 | ||
a68ab351 JJ |
16008 | ; |
16009 | return 0; | |
16010 | } | |
16011 | _ACEOF | |
5213506e RW |
16012 | if ac_fn_c_try_compile "$LINENO"; then : |
16013 | libgomp_cv_have_attribute_visibility=yes | |
a68ab351 | 16014 | else |
5213506e | 16015 | libgomp_cv_have_attribute_visibility=no |
a68ab351 | 16016 | fi |
5213506e RW |
16017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16018 | CFLAGS="$save_CFLAGS" | |
a68ab351 | 16019 | fi |
5213506e RW |
16020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5 |
16021 | $as_echo "$libgomp_cv_have_attribute_visibility" >&6; } | |
16022 | if test $libgomp_cv_have_attribute_visibility = yes; then | |
16023 | ||
16024 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h | |
16025 | ||
16026 | fi | |
16027 | ||
16028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 | |
16029 | $as_echo_n "checking whether the target supports dllexport... " >&6; } | |
22e05272 | 16030 | if ${libgomp_cv_have_attribute_dllexport+:} false; then : |
5213506e RW |
16031 | $as_echo_n "(cached) " >&6 |
16032 | else | |
a68ab351 | 16033 | |
5213506e RW |
16034 | save_CFLAGS="$CFLAGS" |
16035 | CFLAGS="$CFLAGS -Werror" | |
16036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16037 | /* end confdefs.h. */ | |
16038 | void __attribute__((dllexport)) foo(void) { } | |
a68ab351 JJ |
16039 | int |
16040 | main () | |
16041 | { | |
a68ab351 JJ |
16042 | |
16043 | ; | |
16044 | return 0; | |
16045 | } | |
16046 | _ACEOF | |
5213506e RW |
16047 | if ac_fn_c_try_compile "$LINENO"; then : |
16048 | libgomp_cv_have_attribute_dllexport=yes | |
16049 | else | |
16050 | libgomp_cv_have_attribute_dllexport=no | |
16051 | fi | |
16052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16053 | CFLAGS="$save_CFLAGS" | |
16054 | fi | |
16055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5 | |
16056 | $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; } | |
16057 | if test $libgomp_cv_have_attribute_dllexport = yes; then | |
16058 | ||
16059 | $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h | |
16060 | ||
16061 | fi | |
16062 | ||
16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 | |
16064 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 16065 | if ${libgomp_cv_have_attribute_alias+:} false; then : |
5213506e RW |
16066 | $as_echo_n "(cached) " >&6 |
16067 | else | |
16068 | ||
16069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
16070 | /* end confdefs.h. */ |
16071 | ||
5213506e RW |
16072 | void foo(void) { } |
16073 | extern void bar(void) __attribute__((alias("foo"))); | |
a68ab351 JJ |
16074 | int |
16075 | main () | |
16076 | { | |
5213506e | 16077 | bar(); |
a68ab351 JJ |
16078 | ; |
16079 | return 0; | |
16080 | } | |
16081 | _ACEOF | |
5213506e RW |
16082 | if ac_fn_c_try_link "$LINENO"; then : |
16083 | libgomp_cv_have_attribute_alias=yes | |
a68ab351 | 16084 | else |
5213506e RW |
16085 | libgomp_cv_have_attribute_alias=no |
16086 | fi | |
16087 | rm -f core conftest.err conftest.$ac_objext \ | |
16088 | conftest$ac_exeext conftest.$ac_ext | |
16089 | fi | |
16090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5 | |
16091 | $as_echo "$libgomp_cv_have_attribute_alias" >&6; } | |
16092 | if test $libgomp_cv_have_attribute_alias = yes; then | |
16093 | ||
16094 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h | |
16095 | ||
16096 | fi | |
16097 | ||
16098 | ||
16099 | # Check whether --with-gnu-ld was given. | |
16100 | if test "${with_gnu_ld+set}" = set; then : | |
16101 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
16102 | else | |
16103 | with_gnu_ld=no | |
16104 | fi | |
a68ab351 | 16105 | |
5213506e RW |
16106 | ac_prog=ld |
16107 | if test "$GCC" = yes; then | |
16108 | # Check if gcc -print-prog-name=ld gives a path. | |
16109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
16110 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
16111 | case $host in | |
16112 | *-*-mingw*) | |
16113 | # gcc leaves a trailing carriage return which upsets mingw | |
16114 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
16115 | *) | |
16116 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
16117 | esac | |
16118 | case $ac_prog in | |
16119 | # Accept absolute paths. | |
16120 | [\\/]* | ?:[\\/]*) | |
16121 | re_direlt='/[^/][^/]*/\.\./' | |
16122 | # Canonicalize the pathname of ld | |
16123 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
16124 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
16125 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
16126 | done | |
16127 | test -z "$LD" && LD="$ac_prog" | |
16128 | ;; | |
16129 | "") | |
16130 | # If it fails, then pretend we aren't using GCC. | |
16131 | ac_prog=ld | |
16132 | ;; | |
16133 | *) | |
16134 | # If it is relative, then search for the first ld in PATH. | |
16135 | with_gnu_ld=unknown | |
16136 | ;; | |
16137 | esac | |
16138 | elif test "$with_gnu_ld" = yes; then | |
16139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
16140 | $as_echo_n "checking for GNU ld... " >&6; } | |
16141 | else | |
16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
16143 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
a68ab351 | 16144 | fi |
22e05272 | 16145 | if ${lt_cv_path_LD+:} false; then : |
5213506e RW |
16146 | $as_echo_n "(cached) " >&6 |
16147 | else | |
16148 | if test -z "$LD"; then | |
16149 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
16150 | for ac_dir in $PATH; do | |
16151 | IFS="$lt_save_ifs" | |
16152 | test -z "$ac_dir" && ac_dir=. | |
16153 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
16154 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
16155 | # Check to see if the program is GNU ld. I'd rather use --version, | |
16156 | # but apparently some variants of GNU ld only accept -v. | |
16157 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
16158 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
16159 | *GNU* | *'with BFD'*) | |
16160 | test "$with_gnu_ld" != no && break | |
16161 | ;; | |
16162 | *) | |
16163 | test "$with_gnu_ld" != yes && break | |
16164 | ;; | |
16165 | esac | |
16166 | fi | |
a68ab351 | 16167 | done |
5213506e | 16168 | IFS="$lt_save_ifs" |
a68ab351 | 16169 | else |
5213506e RW |
16170 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
16171 | fi | |
16172 | fi | |
16173 | ||
16174 | LD="$lt_cv_path_LD" | |
16175 | if test -n "$LD"; then | |
16176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
16177 | $as_echo "$LD" >&6; } | |
16178 | else | |
16179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16180 | $as_echo "no" >&6; } | |
16181 | fi | |
22e05272 | 16182 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5213506e RW |
16183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
16184 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 16185 | if ${lt_cv_prog_gnu_ld+:} false; then : |
5213506e RW |
16186 | $as_echo_n "(cached) " >&6 |
16187 | else | |
16188 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
16189 | case `$LD -v 2>&1 </dev/null` in | |
16190 | *GNU* | *'with BFD'*) | |
16191 | lt_cv_prog_gnu_ld=yes | |
16192 | ;; | |
16193 | *) | |
16194 | lt_cv_prog_gnu_ld=no | |
16195 | ;; | |
16196 | esac | |
16197 | fi | |
16198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
16199 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
16200 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
16201 | ||
16202 | ||
16203 | ||
16204 | ||
16205 | ||
16206 | ||
16207 | ||
16208 | # If we're not using GNU ld, then there's no point in even trying these | |
16209 | # tests. Check for that first. We should have already tested for gld | |
16210 | # by now (in libtool), but require it now just to be safe... | |
16211 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | |
16212 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | |
16213 | ||
16214 | ||
16215 | ||
16216 | # The name set by libtool depends on the version of libtool. Shame on us | |
16217 | # for depending on an impl detail, but c'est la vie. Older versions used | |
16218 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | |
16219 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | |
16220 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | |
16221 | # set (hence we're using an older libtool), then set it. | |
16222 | if test x${with_gnu_ld+set} != xset; then | |
16223 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | |
16224 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | |
16225 | with_gnu_ld=no | |
16226 | else | |
16227 | with_gnu_ld=$ac_cv_prog_gnu_ld | |
16228 | fi | |
16229 | fi | |
16230 | ||
16231 | # Start by getting the version number. I think the libtool test already | |
16232 | # does some of this, but throws away the result. | |
16233 | libgomp_ld_is_gold=no | |
16234 | if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then | |
16235 | libgomp_ld_is_gold=yes | |
16236 | fi | |
16237 | ||
c82852f7 | 16238 | ldver=`$LD --version 2>/dev/null | |
c6c2d1bc | 16239 | sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'` |
5213506e RW |
16240 | |
16241 | libgomp_gnu_ld_version=`echo $ldver | \ | |
16242 | $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` | |
16243 | ||
16244 | # Set --gc-sections. | |
16245 | if test "$with_gnu_ld" = "notbroken"; then | |
16246 | # GNU ld it is! Joy and bunny rabbits! | |
16247 | ||
16248 | # All these tests are for C++; save the language and the compiler flags. | |
16249 | # Need to do this so that g++ won't try to link in libstdc++ | |
16250 | ac_test_CFLAGS="${CFLAGS+set}" | |
16251 | ac_save_CFLAGS="$CFLAGS" | |
16252 | CFLAGS='-x c++ -Wl,--gc-sections' | |
16253 | ||
16254 | # Check for -Wl,--gc-sections | |
16255 | # XXX This test is broken at the moment, as symbols required for linking | |
16256 | # are now in libsupc++ (not built yet). In addition, this test has | |
16257 | # cored on solaris in the past. In addition, --gc-sections doesn't | |
16258 | # really work at the moment (keeps on discarding used sections, first | |
16259 | # .eh_frame and now some of the glibc sections for iconv). | |
16260 | # Bzzzzt. Thanks for playing, maybe next time. | |
16261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 | |
16262 | $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } | |
16263 | if test "$cross_compiling" = yes; then : | |
16264 | ac_sectionLDflags=yes | |
16265 | else | |
16266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16267 | /* end confdefs.h. */ | |
16268 | ||
16269 | int main(void) | |
16270 | { | |
16271 | try { throw 1; } | |
16272 | catch (...) { }; | |
16273 | return 0; | |
16274 | } | |
a68ab351 | 16275 | |
a68ab351 | 16276 | _ACEOF |
5213506e RW |
16277 | if ac_fn_c_try_run "$LINENO"; then : |
16278 | ac_sectionLDflags=yes | |
16279 | else | |
16280 | ac_sectionLDflags=no | |
16281 | fi | |
16282 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16283 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16284 | fi | |
16285 | ||
16286 | if test "$ac_test_CFLAGS" = set; then | |
16287 | CFLAGS="$ac_save_CFLAGS" | |
16288 | else | |
16289 | # this is the suspicious part | |
16290 | CFLAGS='' | |
16291 | fi | |
16292 | if test "$ac_sectionLDflags" = "yes"; then | |
16293 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | |
16294 | fi | |
16295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 | |
16296 | $as_echo "$ac_sectionLDflags" >&6; } | |
16297 | fi | |
16298 | ||
16299 | # Set linker optimization flags. | |
16300 | if test x"$with_gnu_ld" = x"yes"; then | |
16301 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | |
16302 | fi | |
16303 | ||
16304 | ||
16305 | ||
16306 | ||
16307 | ||
16308 | ||
16309 | # Check whether --enable-symvers was given. | |
16310 | if test "${enable_symvers+set}" = set; then : | |
16311 | enableval=$enable_symvers; | |
16312 | case "$enableval" in | |
bddd6626 | 16313 | yes|no|gnu*|sun) ;; |
22e05272 | 16314 | *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; |
5213506e RW |
16315 | esac |
16316 | ||
16317 | else | |
16318 | enable_symvers=yes | |
16319 | fi | |
16320 | ||
16321 | ||
16322 | ||
16323 | # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we | |
16324 | # don't know enough about $LD to do tricks... | |
16325 | ||
bf382f5f RO |
16326 | |
16327 | # Turn a 'yes' into a suitable default. | |
16328 | if test x$enable_symvers = xyes ; then | |
16329 | # FIXME The following test is too strict, in theory. | |
16330 | if test $enable_shared = no || test "x$LD" = x; then | |
16331 | enable_symvers=no | |
6d28b933 | 16332 | else |
bf382f5f RO |
16333 | if test $with_gnu_ld = yes ; then |
16334 | enable_symvers=gnu | |
16335 | else | |
16336 | case ${target_os} in | |
16337 | # Sun symbol versioning exists since Solaris 2.5. | |
16338 | solaris2.[5-9]* | solaris2.1[0-9]*) | |
16339 | enable_symvers=sun ;; | |
16340 | *) | |
16341 | enable_symvers=no ;; | |
16342 | esac | |
16343 | fi | |
6d28b933 RO |
16344 | fi |
16345 | fi | |
16346 | ||
16347 | # Check if 'sun' was requested on non-Solaris 2 platforms. | |
16348 | if test x$enable_symvers = xsun ; then | |
16349 | case ${target_os} in | |
16350 | solaris2*) | |
16351 | # All fine. | |
16352 | ;; | |
16353 | *) | |
16354 | # Unlikely to work. | |
16355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 | |
16356 | $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} | |
16357 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 | |
16358 | $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} | |
16359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16360 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16361 | enable_symvers=no | |
16362 | ;; | |
16363 | esac | |
5213506e RW |
16364 | fi |
16365 | ||
16366 | # Check to see if libgcc_s exists, indicating that shared libgcc is possible. | |
16367 | if test $enable_symvers != no; then | |
16368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 | |
16369 | $as_echo_n "checking for shared libgcc... " >&6; } | |
16370 | ac_save_CFLAGS="$CFLAGS" | |
16371 | CFLAGS=' -lgcc_s' | |
16372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
16373 | /* end confdefs.h. */ |
16374 | ||
16375 | int | |
16376 | main () | |
16377 | { | |
5213506e | 16378 | return 0; |
a68ab351 JJ |
16379 | ; |
16380 | return 0; | |
16381 | } | |
16382 | _ACEOF | |
5213506e RW |
16383 | if ac_fn_c_try_link "$LINENO"; then : |
16384 | libgomp_shared_libgcc=yes | |
16385 | else | |
16386 | libgomp_shared_libgcc=no | |
16387 | fi | |
16388 | rm -f core conftest.err conftest.$ac_objext \ | |
16389 | conftest$ac_exeext conftest.$ac_ext | |
16390 | CFLAGS="$ac_save_CFLAGS" | |
16391 | if test $libgomp_shared_libgcc = no; then | |
16392 | cat > conftest.c <<EOF | |
16393 | int main (void) { return 0; } | |
16394 | EOF | |
16395 | libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
16396 | -shared -shared-libgcc -o conftest.so \ | |
16397 | conftest.c -v 2>&1 >/dev/null \ | |
16398 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
16399 | rm -f conftest.c conftest.so | |
16400 | if test x${libgomp_libgcc_s_suffix+set} = xset; then | |
16401 | CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" | |
16402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
16403 | /* end confdefs.h. */ |
16404 | ||
16405 | int | |
16406 | main () | |
16407 | { | |
5213506e | 16408 | return 0; |
a68ab351 JJ |
16409 | ; |
16410 | return 0; | |
16411 | } | |
16412 | _ACEOF | |
5213506e RW |
16413 | if ac_fn_c_try_link "$LINENO"; then : |
16414 | libgomp_shared_libgcc=yes | |
16415 | fi | |
16416 | rm -f core conftest.err conftest.$ac_objext \ | |
16417 | conftest$ac_exeext conftest.$ac_ext | |
16418 | CFLAGS="$ac_save_CFLAGS" | |
16419 | fi | |
16420 | fi | |
16421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5 | |
16422 | $as_echo "$libgomp_shared_libgcc" >&6; } | |
16423 | fi | |
16424 | ||
16425 | # For GNU ld, we need at least this version. The format is described in | |
16426 | # LIBGOMP_CHECK_LINKER_FEATURES above. | |
16427 | libgomp_min_gnu_ld_version=21400 | |
16428 | # XXXXXXXXXXX libgomp_gnu_ld_version=21390 | |
a68ab351 | 16429 | |
5213506e RW |
16430 | # Check to see if unspecified "yes" value can win, given results above. |
16431 | # Change "yes" into either "no" or a style name. | |
6d28b933 RO |
16432 | if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then |
16433 | if test $with_gnu_ld = yes; then | |
5213506e RW |
16434 | if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then |
16435 | enable_symvers=gnu | |
16436 | elif test $libgomp_ld_is_gold = yes ; then | |
16437 | enable_symvers=gnu | |
16438 | else | |
16439 | # The right tools, the right setup, but too old. Fallbacks? | |
16440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 | |
16441 | $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} | |
16442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 | |
16443 | $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} | |
16444 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 | |
16445 | $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} | |
16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 | |
16447 | $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} | |
16448 | if test $libgomp_gnu_ld_version -ge 21200 ; then | |
16449 | # Globbing fix is present, proper block support is not. | |
16450 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16451 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16452 | enable_symvers=no | |
16453 | else | |
16454 | # 2.11 or older. | |
16455 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16456 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16457 | enable_symvers=no | |
16458 | fi | |
16459 | fi | |
6d28b933 RO |
16460 | elif test $enable_symvers = sun; then |
16461 | : All interesting versions of Sun ld support sun style symbol versioning. | |
5213506e RW |
16462 | else |
16463 | # just fail for now | |
16464 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 | |
16465 | $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} | |
16466 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 | |
16467 | $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} | |
16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 | |
16469 | $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} | |
16470 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16471 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16472 | enable_symvers=no | |
16473 | fi | |
a68ab351 | 16474 | fi |
5213506e RW |
16475 | |
16476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5 | |
16477 | $as_echo_n "checking whether the target supports .symver directive... " >&6; } | |
22e05272 | 16478 | if ${libgomp_cv_have_as_symver_directive+:} false; then : |
5213506e | 16479 | $as_echo_n "(cached) " >&6 |
a68ab351 | 16480 | else |
a68ab351 | 16481 | |
5213506e | 16482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a68ab351 | 16483 | /* end confdefs.h. */ |
5213506e | 16484 | void foo (void); __asm (".symver foo, bar@SYMVER"); |
a68ab351 JJ |
16485 | int |
16486 | main () | |
16487 | { | |
a68ab351 JJ |
16488 | |
16489 | ; | |
16490 | return 0; | |
16491 | } | |
16492 | _ACEOF | |
5213506e RW |
16493 | if ac_fn_c_try_compile "$LINENO"; then : |
16494 | libgomp_cv_have_as_symver_directive=yes | |
a68ab351 | 16495 | else |
5213506e RW |
16496 | libgomp_cv_have_as_symver_directive=no |
16497 | fi | |
16498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16499 | fi | |
16500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5 | |
16501 | $as_echo "$libgomp_cv_have_as_symver_directive" >&6; } | |
16502 | if test $libgomp_cv_have_as_symver_directive = yes; then | |
16503 | ||
16504 | $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h | |
a68ab351 | 16505 | |
a68ab351 | 16506 | fi |
5213506e RW |
16507 | |
16508 | if test $enable_symvers != no; then | |
16509 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= | |
16510 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' | |
a68ab351 | 16511 | else |
5213506e RW |
16512 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' |
16513 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= | |
16514 | fi | |
a68ab351 | 16515 | |
6d28b933 RO |
16516 | if test $enable_symvers = gnu; then |
16517 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE= | |
16518 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' | |
16519 | else | |
16520 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' | |
16521 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE= | |
16522 | fi | |
16523 | ||
16524 | if test $enable_symvers = sun; then | |
16525 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE= | |
16526 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' | |
16527 | else | |
16528 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' | |
16529 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE= | |
16530 | fi | |
16531 | ||
5213506e RW |
16532 | { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 |
16533 | $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} | |
a68ab351 | 16534 | |
6d28b933 RO |
16535 | if test $enable_symvers != no ; then |
16536 | case ${target_os} in | |
16537 | # The Solaris 2 runtime linker doesn't support the GNU extension of | |
16538 | # binding the same symbol to different versions | |
16539 | solaris2*) | |
cc2de92d | 16540 | ;; |
6d28b933 RO |
16541 | # Other platforms with GNU symbol versioning (GNU/Linux, more?) do. |
16542 | *) | |
16543 | ||
16544 | $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h | |
16545 | ||
cc2de92d | 16546 | ;; |
6d28b933 | 16547 | esac |
6d28b933 RO |
16548 | fi |
16549 | ||
16550 | ||
5213506e RW |
16551 | if test $enable_symvers = gnu; then |
16552 | ||
16553 | $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h | |
a68ab351 JJ |
16554 | |
16555 | fi | |
5213506e | 16556 | |
a7155c2e RO |
16557 | # Determine cpu count to limit testsuite parallelism. |
16558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5 | |
16559 | $as_echo_n "checking the number of available CPUs... " >&6; } | |
16560 | CPU_COUNT="0" | |
16561 | ||
16562 | # Try generic methods | |
16563 | ||
16564 | # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and | |
16565 | # 'NPROCESSORS_ONLN' are platform-specific | |
16566 | command -v getconf >/dev/null 2>&1 && \ | |
16567 | CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0" | |
16568 | if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then : | |
16569 | : # empty | |
16570 | else | |
16571 | # 'nproc' is part of GNU Coreutils and is widely available | |
16572 | CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0" | |
16573 | ||
16574 | fi | |
16575 | if test "$CPU_COUNT" -gt "0" 2>/dev/null; then : | |
16576 | : # empty | |
16577 | else | |
16578 | # Try platform-specific preferred methods | |
16579 | case $host_os in #( | |
16580 | *linux*) : | |
16581 | CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #( | |
16582 | *darwin*) : | |
16583 | CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #( | |
16584 | freebsd*) : | |
16585 | command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #( | |
16586 | netbsd*) : | |
16587 | command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #( | |
16588 | solaris*) : | |
16589 | 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" ;; #( | |
16590 | mingw*) : | |
16591 | CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( | |
16592 | msys*) : | |
16593 | CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( | |
16594 | cygwin*) : | |
16595 | CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( | |
16596 | *) : | |
16597 | ;; | |
16598 | esac | |
16599 | fi | |
16600 | if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then : | |
16601 | : # empty | |
16602 | else | |
16603 | # Try less preferred generic method | |
16604 | # 'hw.ncpu' exist on many platforms, but not on GNU/Linux | |
16605 | CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0" | |
16606 | ||
16607 | fi | |
16608 | if test "$CPU_COUNT" -gt "0" 2>/dev/null; then : | |
16609 | : # empty | |
16610 | else | |
16611 | # Try platform-specific fallback methods | |
16612 | # They can be less accurate and slower then preferred methods | |
16613 | case $host_os in #( | |
16614 | *linux*) : | |
16615 | CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #( | |
16616 | *darwin*) : | |
16617 | CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #( | |
16618 | freebsd*) : | |
16619 | CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( | |
16620 | netbsd*) : | |
16621 | CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \ | |
16622 | CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( | |
16623 | solaris*) : | |
16624 | command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \ | |
16625 | CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #( | |
16626 | mingw*) : | |
16627 | if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then : | |
16628 | : # empty | |
16629 | else | |
16630 | test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" | |
16631 | fi ;; #( | |
16632 | msys*) : | |
16633 | test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( | |
16634 | cygwin*) : | |
16635 | test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( | |
16636 | *) : | |
16637 | ;; | |
16638 | esac | |
16639 | fi | |
16640 | if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then : | |
16641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5 | |
16642 | $as_echo "$CPU_COUNT" >&6; } | |
16643 | ||
16644 | else | |
16645 | CPU_COUNT="1" | |
16646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5 | |
16647 | $as_echo "unable to detect (assuming 1)" >&6; } | |
16648 | ||
16649 | fi | |
16650 | ||
16651 | ||
5213506e RW |
16652 | # Get target configury. |
16653 | . ${srcdir}/configure.tgt | |
16654 | CFLAGS="$save_CFLAGS $XCFLAGS" | |
16655 | ||
16656 | # Check for __sync_val_compare_and_swap, but only after the target has | |
16657 | # had a chance to set XCFLAGS. | |
16658 | ||
16659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 | |
16660 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } | |
22e05272 | 16661 | if ${libgomp_cv_have_sync_builtins+:} false; then : |
5213506e RW |
16662 | $as_echo_n "(cached) " >&6 |
16663 | else | |
16664 | ||
16665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
16666 | /* end confdefs.h. */ |
16667 | ||
16668 | int | |
16669 | main () | |
16670 | { | |
289a9f86 | 16671 | int foo; __sync_val_compare_and_swap(&foo, 0, 1); |
a68ab351 JJ |
16672 | ; |
16673 | return 0; | |
16674 | } | |
16675 | _ACEOF | |
5213506e RW |
16676 | if ac_fn_c_try_link "$LINENO"; then : |
16677 | libgomp_cv_have_sync_builtins=yes | |
16678 | else | |
16679 | libgomp_cv_have_sync_builtins=no | |
16680 | fi | |
16681 | rm -f core conftest.err conftest.$ac_objext \ | |
16682 | conftest$ac_exeext conftest.$ac_ext | |
16683 | fi | |
16684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5 | |
16685 | $as_echo "$libgomp_cv_have_sync_builtins" >&6; } | |
16686 | if test $libgomp_cv_have_sync_builtins = yes; then | |
a68ab351 | 16687 | |
5213506e RW |
16688 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h |
16689 | ||
16690 | fi | |
16691 | ||
16692 | XCFLAGS="$XCFLAGS$XPCFLAGS" | |
16693 | ||
efe33ced IT |
16694 | # Add CET specific flags if CET is enabled |
16695 | # Check whether --enable-cet was given. | |
16696 | if test "${enable_cet+set}" = set; then : | |
16697 | enableval=$enable_cet; | |
16698 | case "$enableval" in | |
a0e1df88 | 16699 | yes|no|auto) ;; |
22e05272 | 16700 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
efe33ced IT |
16701 | esac |
16702 | ||
16703 | else | |
8d286dd1 | 16704 | enable_cet=auto |
efe33ced IT |
16705 | fi |
16706 | ||
16707 | ||
14e335ed IT |
16708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
16709 | $as_echo_n "checking for CET support... " >&6; } | |
16710 | ||
47ddb895 | 16711 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. |
efe33ced IT |
16712 | case "$host" in |
16713 | i[34567]86-*-linux* | x86_64-*-linux*) | |
16714 | case "$enable_cet" in | |
a0e1df88 | 16715 | auto) |
14e335ed | 16716 | # Check if target supports multi-byte NOPs |
c56684fd | 16717 | # and if compiler and assembler support CET insn. |
9051b548 | 16718 | cet_save_CFLAGS="$CFLAGS" |
4c1a5d8b | 16719 | CFLAGS="$CFLAGS -fcf-protection" |
efe33ced IT |
16720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16721 | /* end confdefs.h. */ | |
16722 | ||
16723 | int | |
16724 | main () | |
16725 | { | |
14e335ed IT |
16726 | |
16727 | #if !defined(__SSE2__) | |
16728 | #error target does not support multi-byte NOPs | |
16729 | #else | |
efe33ced | 16730 | asm ("setssbsy"); |
14e335ed IT |
16731 | #endif |
16732 | ||
efe33ced IT |
16733 | ; |
16734 | return 0; | |
16735 | } | |
16736 | _ACEOF | |
16737 | if ac_fn_c_try_compile "$LINENO"; then : | |
16738 | enable_cet=yes | |
16739 | else | |
16740 | enable_cet=no | |
16741 | fi | |
16742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9051b548 | 16743 | CFLAGS="$cet_save_CFLAGS" |
efe33ced IT |
16744 | ;; |
16745 | yes) | |
16746 | # Check if assembler supports CET. | |
16747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16748 | /* end confdefs.h. */ | |
16749 | ||
16750 | int | |
16751 | main () | |
16752 | { | |
16753 | asm ("setssbsy"); | |
16754 | ; | |
16755 | return 0; | |
16756 | } | |
16757 | _ACEOF | |
16758 | if ac_fn_c_try_compile "$LINENO"; then : | |
16759 | ||
16760 | else | |
22e05272 | 16761 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
efe33ced IT |
16762 | fi |
16763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16764 | ;; | |
16765 | esac | |
16766 | ;; | |
16767 | *) | |
16768 | enable_cet=no | |
16769 | ;; | |
16770 | esac | |
16771 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 16772 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16774 | $as_echo "yes" >&6; } | |
16775 | else | |
16776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16777 | $as_echo "no" >&6; } | |
efe33ced IT |
16778 | fi |
16779 | ||
16780 | XCFLAGS="$XCFLAGS $CET_FLAGS" | |
16781 | FCFLAGS="$FCFLAGS $CET_FLAGS" | |
16782 | ||
5213506e RW |
16783 | |
16784 | ||
16785 | ||
16786 | ||
47ddb895 DE |
16787 | # Conditionalize the makefile for this target machine. |
16788 | tmake_file_= | |
16789 | for f in ${tmake_file} | |
16790 | do | |
16791 | if test -f ${srcdir}/config/$f | |
16792 | then | |
16793 | tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | |
16794 | fi | |
16795 | done | |
16796 | tmake_file="${tmake_file_}" | |
16797 | ||
16798 | ||
5213506e RW |
16799 | # Cleanup and exit. |
16800 | CFLAGS="$save_CFLAGS" | |
16801 | cat >confcache <<\_ACEOF | |
16802 | # This file is a shell script that caches the results of configure | |
16803 | # tests run on this system so they can be shared between configure | |
16804 | # scripts and configure runs, see configure's option --config-cache. | |
16805 | # It is not useful on other systems. If it contains results you don't | |
16806 | # want to keep, you may remove or edit it. | |
16807 | # | |
16808 | # config.status only pays attention to the cache file if you give it | |
16809 | # the --recheck option to rerun configure. | |
16810 | # | |
16811 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16812 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16813 | # following values. | |
a68ab351 | 16814 | |
a68ab351 | 16815 | _ACEOF |
5213506e RW |
16816 | |
16817 | # The following way of writing the cache mishandles newlines in values, | |
16818 | # but we know of no workaround that is simple, portable, and efficient. | |
16819 | # So, we kill variables containing newlines. | |
16820 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16821 | # and sets the high bit in the cache file unless we assign to the vars. | |
16822 | ( | |
16823 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16824 | eval ac_val=\$$ac_var | |
16825 | case $ac_val in #( | |
16826 | *${as_nl}*) | |
16827 | case $ac_var in #( | |
16828 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16829 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16830 | esac | |
16831 | case $ac_var in #( | |
16832 | _ | IFS | as_nl) ;; #( | |
16833 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16834 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16835 | esac ;; | |
16836 | esac | |
16837 | done | |
16838 | ||
16839 | (set) 2>&1 | | |
16840 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16841 | *${as_nl}ac_space=\ *) | |
16842 | # `set' does not quote correctly, so add quotes: double-quote | |
16843 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16844 | sed -n \ | |
16845 | "s/'/'\\\\''/g; | |
16846 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16847 | ;; #( | |
16848 | *) | |
16849 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16850 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16851 | ;; | |
16852 | esac | | |
16853 | sort | |
16854 | ) | | |
16855 | sed ' | |
16856 | /^ac_cv_env_/b end | |
16857 | t clear | |
16858 | :clear | |
16859 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16860 | t end | |
16861 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16862 | :end' >>confcache | |
16863 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16864 | if test -w "$cache_file"; then | |
22e05272 | 16865 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
16866 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
16867 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
16868 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
16869 | cat confcache >"$cache_file" | |
16870 | else | |
16871 | case $cache_file in #( | |
16872 | */* | ?:*) | |
16873 | mv -f confcache "$cache_file"$$ && | |
16874 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16875 | *) | |
16876 | mv -f confcache "$cache_file" ;; | |
16877 | esac | |
16878 | fi | |
16879 | fi | |
5213506e RW |
16880 | else |
16881 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16882 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16883 | fi | |
16884 | fi | |
16885 | rm -f confcache | |
16886 | ||
16887 | if test ${multilib} = yes; then | |
16888 | multilib_arg="--enable-multilib" | |
a68ab351 | 16889 | else |
5213506e RW |
16890 | multilib_arg= |
16891 | fi | |
16892 | ||
16893 | # Set up the set of libraries that we need to link against for libgomp. | |
de14871c | 16894 | # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread, |
5213506e RW |
16895 | # which will force linkage against -lpthread (or equivalent for the system). |
16896 | # That's not 100% ideal, but about the best we can do easily. | |
16897 | if test $enable_shared = yes; then | |
16898 | link_gomp="-lgomp %{static: $LIBS}" | |
16899 | else | |
16900 | link_gomp="-lgomp $LIBS" | |
16901 | fi | |
16902 | ||
16903 | ||
16904 | if test "$ac_cv_fc_compiler_gnu" = yes; then | |
16905 | USE_FORTRAN_TRUE= | |
16906 | USE_FORTRAN_FALSE='#' | |
16907 | else | |
16908 | USE_FORTRAN_TRUE='#' | |
16909 | USE_FORTRAN_FALSE= | |
16910 | fi | |
16911 | ||
16912 | ||
16913 | # ??? 2006-01-24: Paulo committed to asking autoconf folk to document | |
16914 | # and export AC_COMPUTE_INT. If that happens, then we'll need to remove | |
16915 | # the underscore here and update the PREREQ. If it doesn't, then we'll | |
16916 | # need to copy this macro to our acinclude.m4. | |
16917 | save_CFLAGS="$CFLAGS" | |
16918 | for i in $config_path; do | |
16919 | if test -f $srcdir/config/$i/omp-lock.h; then | |
16920 | CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h" | |
16921 | break | |
16922 | fi | |
16923 | done | |
a68ab351 | 16924 | |
fff15bad TB |
16925 | if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then : |
16926 | ||
16927 | fi | |
16928 | ||
16929 | ||
2631d95a TB |
16930 | if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then : |
16931 | ||
16932 | else | |
16933 | OMP_INT128_SIZE=0 | |
16934 | fi | |
16935 | ||
16936 | ||
16937 | if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then : | |
16938 | ||
16939 | else | |
16940 | OMP_DEPEND_KIND=0 | |
16941 | fi | |
16942 | ||
16943 | ||
5213506e | 16944 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then : |
a68ab351 | 16945 | |
5213506e | 16946 | else |
22e05272 | 16947 | as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5 |
5213506e | 16948 | fi |
a68ab351 | 16949 | |
a68ab351 | 16950 | |
5213506e | 16951 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then : |
a68ab351 | 16952 | |
5213506e | 16953 | fi |
a68ab351 | 16954 | |
a68ab351 | 16955 | |
5213506e | 16956 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then : |
a68ab351 | 16957 | |
a68ab351 | 16958 | fi |
a68ab351 | 16959 | |
a68ab351 | 16960 | |
5213506e | 16961 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then : |
a68ab351 | 16962 | |
a68ab351 | 16963 | fi |
a68ab351 | 16964 | |
a68ab351 | 16965 | |
5213506e | 16966 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then : |
a68ab351 | 16967 | |
a68ab351 | 16968 | else |
22e05272 | 16969 | as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5 |
5213506e RW |
16970 | fi |
16971 | ||
16972 | ||
16973 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then : | |
a68ab351 JJ |
16974 | |
16975 | fi | |
5213506e RW |
16976 | |
16977 | ||
16978 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then : | |
16979 | ||
a68ab351 | 16980 | fi |
5213506e RW |
16981 | |
16982 | ||
16983 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then : | |
16984 | ||
a68ab351 | 16985 | fi |
5213506e RW |
16986 | |
16987 | ||
a68ab351 JJ |
16988 | |
16989 | # If the lock fits in an integer, then arrange for Fortran to use that | |
16990 | # integer. If it doesn't, then arrange for Fortran to use a pointer. | |
16991 | # Except that we don't have a way at present to multi-lib the installed | |
16992 | # Fortran modules, so we assume 8 bytes for pointers, regardless of the | |
16993 | # actual target. | |
16994 | OMP_LOCK_KIND=$OMP_LOCK_SIZE | |
16995 | OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE | |
16996 | if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then | |
16997 | OMP_LOCK_KIND=8 | |
16998 | fi | |
16999 | if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then | |
17000 | OMP_NEST_LOCK_KIND=8 | |
17001 | fi | |
17002 | OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE | |
17003 | OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE | |
17004 | if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then | |
17005 | OMP_LOCK_25_KIND=8 | |
17006 | fi | |
17007 | if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then | |
17008 | OMP_NEST_LOCK_25_KIND=8 | |
17009 | fi | |
1f0a57bd TB |
17010 | if test "$ac_cv_fc_compiler_gnu" = yes; then |
17011 | if test $OMP_DEPEND_KIND -eq 16; then | |
17012 | if test $OMP_INT128_SIZE -ne 16; then | |
17013 | as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5 | |
17014 | fi | |
17015 | else | |
17016 | if test $OMP_DEPEND_KIND -ne 8; then | |
17017 | as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5 | |
17018 | fi | |
2631d95a TB |
17019 | fi |
17020 | fi | |
17021 | ||
a68ab351 JJ |
17022 | |
17023 | ||
17024 | ||
17025 | ||
17026 | ||
17027 | ||
03b8fe49 PB |
17028 | |
17029 | ||
17030 | ||
17031 | ||
17032 | ||
17033 | ||
17034 | ||
fff15bad | 17035 | |
03b8fe49 PB |
17036 | CFLAGS="$save_CFLAGS" |
17037 | ||
3c36aa6b JJ |
17038 | # Determine what GCC version number to use in filesystem paths. |
17039 | ||
17040 | get_gcc_base_ver="cat" | |
17041 | ||
17042 | # Check whether --with-gcc-major-version-only was given. | |
17043 | if test "${with_gcc_major_version_only+set}" = set; then : | |
17044 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 17045 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
17046 | fi |
17047 | ||
17048 | fi | |
17049 | ||
17050 | ||
17051 | ||
17052 | ||
5213506e | 17053 | ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" |
03b8fe49 | 17054 | |
5213506e | 17055 | ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" |
953ff289 | 17056 | |
41dbbb37 TS |
17057 | ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" |
17058 | ||
749bd22d MR |
17059 | ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp" |
17060 | ||
953ff289 DN |
17061 | cat >confcache <<\_ACEOF |
17062 | # This file is a shell script that caches the results of configure | |
17063 | # tests run on this system so they can be shared between configure | |
17064 | # scripts and configure runs, see configure's option --config-cache. | |
17065 | # It is not useful on other systems. If it contains results you don't | |
17066 | # want to keep, you may remove or edit it. | |
17067 | # | |
17068 | # config.status only pays attention to the cache file if you give it | |
17069 | # the --recheck option to rerun configure. | |
17070 | # | |
17071 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17072 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17073 | # following values. | |
17074 | ||
17075 | _ACEOF | |
17076 | ||
17077 | # The following way of writing the cache mishandles newlines in values, | |
17078 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 17079 | # So, we kill variables containing newlines. |
953ff289 DN |
17080 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17081 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
17082 | ( |
17083 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17084 | eval ac_val=\$$ac_var | |
17085 | case $ac_val in #( | |
17086 | *${as_nl}*) | |
17087 | case $ac_var in #( | |
17088 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17089 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17090 | esac | |
17091 | case $ac_var in #( | |
17092 | _ | IFS | as_nl) ;; #( | |
17093 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17094 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17095 | esac ;; | |
17096 | esac | |
17097 | done | |
17098 | ||
953ff289 | 17099 | (set) 2>&1 | |
5213506e RW |
17100 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17101 | *${as_nl}ac_space=\ *) | |
17102 | # `set' does not quote correctly, so add quotes: double-quote | |
17103 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
953ff289 DN |
17104 | sed -n \ |
17105 | "s/'/'\\\\''/g; | |
17106 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 17107 | ;; #( |
953ff289 DN |
17108 | *) |
17109 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 17110 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
953ff289 | 17111 | ;; |
5213506e RW |
17112 | esac | |
17113 | sort | |
17114 | ) | | |
953ff289 | 17115 | sed ' |
5213506e | 17116 | /^ac_cv_env_/b end |
953ff289 | 17117 | t clear |
5213506e | 17118 | :clear |
953ff289 DN |
17119 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17120 | t end | |
5213506e RW |
17121 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17122 | :end' >>confcache | |
17123 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17124 | if test -w "$cache_file"; then | |
22e05272 | 17125 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
17126 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17127 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
17128 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17129 | cat confcache >"$cache_file" | |
17130 | else | |
17131 | case $cache_file in #( | |
17132 | */* | ?:*) | |
17133 | mv -f confcache "$cache_file"$$ && | |
17134 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17135 | *) | |
17136 | mv -f confcache "$cache_file" ;; | |
17137 | esac | |
17138 | fi | |
17139 | fi | |
953ff289 | 17140 | else |
5213506e RW |
17141 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17142 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
953ff289 DN |
17143 | fi |
17144 | fi | |
17145 | rm -f confcache | |
17146 | ||
17147 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17148 | # Let make expand exec_prefix. | |
17149 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17150 | ||
953ff289 DN |
17151 | DEFS=-DHAVE_CONFIG_H |
17152 | ||
17153 | ac_libobjs= | |
17154 | ac_ltlibobjs= | |
22e05272 | 17155 | U= |
953ff289 DN |
17156 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17157 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
17158 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17159 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17160 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17161 | # will be set to the directory where LIBOBJS objects are built. | |
17162 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17163 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
953ff289 DN |
17164 | done |
17165 | LIBOBJS=$ac_libobjs | |
17166 | ||
17167 | LTLIBOBJS=$ac_ltlibobjs | |
17168 | ||
17169 | ||
627ab4b8 | 17170 | if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then |
22e05272 | 17171 | as_fn_error $? "conditional \"GENINSRC\" was never defined. |
5213506e RW |
17172 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17173 | fi | |
22e05272 JM |
17174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17175 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17176 | if test -n "$am_sleep_pid"; then | |
17177 | # Hide warnings about reused PIDs. | |
17178 | wait $am_sleep_pid 2>/dev/null | |
17179 | fi | |
17180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17181 | $as_echo "done" >&6; } | |
5213506e RW |
17182 | if test -n "$EXEEXT"; then |
17183 | am__EXEEXT_TRUE= | |
17184 | am__EXEEXT_FALSE='#' | |
17185 | else | |
17186 | am__EXEEXT_TRUE='#' | |
17187 | am__EXEEXT_FALSE= | |
627ab4b8 | 17188 | fi |
5213506e | 17189 | |
953ff289 | 17190 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22e05272 | 17191 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
5213506e | 17192 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
953ff289 DN |
17193 | fi |
17194 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 17195 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
5213506e | 17196 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
953ff289 | 17197 | fi |
748b9d7c | 17198 | if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then |
22e05272 | 17199 | as_fn_error $? "conditional \"BUILD_INFO\" was never defined. |
5213506e | 17200 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
748b9d7c | 17201 | fi |
c41303c6 | 17202 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 17203 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
5213506e | 17204 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
c41303c6 | 17205 | fi |
41dbbb37 | 17206 | if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then |
22e05272 | 17207 | as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined. |
41dbbb37 TS |
17208 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17209 | fi | |
237957cc AS |
17210 | if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then |
17211 | as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined. | |
17212 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17213 | fi | |
953ff289 | 17214 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then |
22e05272 | 17215 | as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. |
5213506e | 17216 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
953ff289 | 17217 | fi |
6d28b933 | 17218 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then |
22e05272 | 17219 | as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined. |
6d28b933 RO |
17220 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17221 | fi | |
17222 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then | |
22e05272 | 17223 | as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined. |
6d28b933 RO |
17224 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17225 | fi | |
953ff289 | 17226 | if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then |
22e05272 | 17227 | as_fn_error $? "conditional \"USE_FORTRAN\" was never defined. |
5213506e | 17228 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
953ff289 DN |
17229 | fi |
17230 | ||
22e05272 | 17231 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 17232 | ac_write_fail=0 |
953ff289 DN |
17233 | ac_clean_files_save=$ac_clean_files |
17234 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
17235 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17236 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17237 | as_write_fail=0 | |
17238 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
953ff289 DN |
17239 | #! $SHELL |
17240 | # Generated by $as_me. | |
17241 | # Run this file to recreate the current configuration. | |
17242 | # Compiler output produced by configure, useful for debugging | |
17243 | # configure, is in config.log if it exists. | |
17244 | ||
17245 | debug=false | |
17246 | ac_cs_recheck=false | |
17247 | ac_cs_silent=false | |
953ff289 | 17248 | |
5213506e RW |
17249 | SHELL=\${CONFIG_SHELL-$SHELL} |
17250 | export SHELL | |
17251 | _ASEOF | |
17252 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17253 | ## -------------------- ## | |
17254 | ## M4sh Initialization. ## | |
17255 | ## -------------------- ## | |
17256 | ||
17257 | # Be more Bourne compatible | |
17258 | DUALCASE=1; export DUALCASE # for MKS sh | |
17259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
953ff289 DN |
17260 | emulate sh |
17261 | NULLCMD=: | |
5213506e | 17262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
953ff289 DN |
17263 | # is contrary to our usage. Disable this feature. |
17264 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
17265 | setopt NO_GLOB_SUBST |
17266 | else | |
17267 | case `(set -o) 2>/dev/null` in #( | |
17268 | *posix*) : | |
17269 | set -o posix ;; #( | |
17270 | *) : | |
17271 | ;; | |
17272 | esac | |
953ff289 | 17273 | fi |
953ff289 | 17274 | |
5213506e RW |
17275 | |
17276 | as_nl=' | |
17277 | ' | |
17278 | export as_nl | |
17279 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17280 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17281 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17282 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17283 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17284 | # but without wasting forks for bash or zsh. | |
17285 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17286 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17287 | as_echo='print -r --' | |
17288 | as_echo_n='print -rn --' | |
17289 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17290 | as_echo='printf %s\n' | |
17291 | as_echo_n='printf %s' | |
17292 | else | |
17293 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17294 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17295 | as_echo_n='/usr/ucb/echo -n' | |
17296 | else | |
17297 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17298 | as_echo_n_body='eval | |
17299 | arg=$1; | |
17300 | case $arg in #( | |
17301 | *"$as_nl"*) | |
17302 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17303 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17304 | esac; | |
17305 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17306 | ' | |
17307 | export as_echo_n_body | |
17308 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17309 | fi | |
17310 | export as_echo_body | |
17311 | as_echo='sh -c $as_echo_body as_echo' | |
17312 | fi | |
17313 | ||
17314 | # The user is always right. | |
17315 | if test "${PATH_SEPARATOR+set}" != set; then | |
17316 | PATH_SEPARATOR=: | |
17317 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17318 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17319 | PATH_SEPARATOR=';' | |
17320 | } | |
953ff289 DN |
17321 | fi |
17322 | ||
17323 | ||
5213506e RW |
17324 | # IFS |
17325 | # We need space, tab and new line, in precisely that order. Quoting is | |
17326 | # there to prevent editors from complaining about space-tab. | |
17327 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17328 | # splitting by setting IFS to empty value.) | |
17329 | IFS=" "" $as_nl" | |
17330 | ||
17331 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 17332 | as_myself= |
5213506e RW |
17333 | case $0 in #(( |
17334 | *[\\/]* ) as_myself=$0 ;; | |
17335 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17336 | for as_dir in $PATH | |
17337 | do | |
17338 | IFS=$as_save_IFS | |
17339 | test -z "$as_dir" && as_dir=. | |
17340 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17341 | done | |
17342 | IFS=$as_save_IFS | |
17343 | ||
17344 | ;; | |
17345 | esac | |
17346 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17347 | # in which case we are not to be found in the path. | |
17348 | if test "x$as_myself" = x; then | |
17349 | as_myself=$0 | |
17350 | fi | |
17351 | if test ! -f "$as_myself"; then | |
17352 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17353 | exit 1 | |
17354 | fi | |
17355 | ||
17356 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17357 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17358 | # suppresses any "Segmentation fault" message there. '((' could | |
17359 | # trigger a bug in pdksh 5.2.14. | |
17360 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17361 | do eval test x\${$as_var+set} = xset \ | |
17362 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17363 | done | |
953ff289 DN |
17364 | PS1='$ ' |
17365 | PS2='> ' | |
17366 | PS4='+ ' | |
17367 | ||
17368 | # NLS nuisances. | |
5213506e RW |
17369 | LC_ALL=C |
17370 | export LC_ALL | |
17371 | LANGUAGE=C | |
17372 | export LANGUAGE | |
17373 | ||
17374 | # CDPATH. | |
17375 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17376 | ||
17377 | ||
22e05272 JM |
17378 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17379 | # ---------------------------------------- | |
5213506e RW |
17380 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17381 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 17382 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
17383 | as_fn_error () |
17384 | { | |
22e05272 JM |
17385 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17386 | if test "$4"; then | |
17387 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17388 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
953ff289 | 17389 | fi |
22e05272 | 17390 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
17391 | as_fn_exit $as_status |
17392 | } # as_fn_error | |
17393 | ||
17394 | ||
17395 | # as_fn_set_status STATUS | |
17396 | # ----------------------- | |
17397 | # Set $? to STATUS, without forking. | |
17398 | as_fn_set_status () | |
17399 | { | |
17400 | return $1 | |
17401 | } # as_fn_set_status | |
17402 | ||
17403 | # as_fn_exit STATUS | |
17404 | # ----------------- | |
17405 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17406 | as_fn_exit () | |
17407 | { | |
17408 | set +e | |
17409 | as_fn_set_status $1 | |
17410 | exit $1 | |
17411 | } # as_fn_exit | |
17412 | ||
17413 | # as_fn_unset VAR | |
17414 | # --------------- | |
17415 | # Portably unset VAR. | |
17416 | as_fn_unset () | |
17417 | { | |
17418 | { eval $1=; unset $1;} | |
17419 | } | |
17420 | as_unset=as_fn_unset | |
17421 | # as_fn_append VAR VALUE | |
17422 | # ---------------------- | |
17423 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17424 | # advantage of any shell optimizations that allow amortized linear growth over | |
17425 | # repeated appends, instead of the typical quadratic growth present in naive | |
17426 | # implementations. | |
17427 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17428 | eval 'as_fn_append () | |
17429 | { | |
17430 | eval $1+=\$2 | |
17431 | }' | |
17432 | else | |
17433 | as_fn_append () | |
17434 | { | |
17435 | eval $1=\$$1\$2 | |
17436 | } | |
17437 | fi # as_fn_append | |
17438 | ||
17439 | # as_fn_arith ARG... | |
17440 | # ------------------ | |
17441 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17442 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17443 | # must be portable across $(()) and expr. | |
17444 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17445 | eval 'as_fn_arith () | |
17446 | { | |
17447 | as_val=$(( $* )) | |
17448 | }' | |
17449 | else | |
17450 | as_fn_arith () | |
17451 | { | |
17452 | as_val=`expr "$@" || test $? -eq 1` | |
17453 | } | |
17454 | fi # as_fn_arith | |
17455 | ||
953ff289 | 17456 | |
5213506e RW |
17457 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17458 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
953ff289 DN |
17459 | as_expr=expr |
17460 | else | |
17461 | as_expr=false | |
17462 | fi | |
17463 | ||
5213506e | 17464 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
953ff289 DN |
17465 | as_basename=basename |
17466 | else | |
17467 | as_basename=false | |
17468 | fi | |
17469 | ||
5213506e RW |
17470 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17471 | as_dirname=dirname | |
17472 | else | |
17473 | as_dirname=false | |
17474 | fi | |
953ff289 | 17475 | |
5213506e | 17476 | as_me=`$as_basename -- "$0" || |
953ff289 DN |
17477 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
17478 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
17479 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
17480 | $as_echo X/"$0" | | |
17481 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17482 | s//\1/ | |
17483 | q | |
17484 | } | |
17485 | /^X\/\(\/\/\)$/{ | |
17486 | s//\1/ | |
17487 | q | |
17488 | } | |
17489 | /^X\/\(\/\).*/{ | |
17490 | s//\1/ | |
17491 | q | |
17492 | } | |
17493 | s/.*/./; q'` | |
953ff289 | 17494 | |
953ff289 DN |
17495 | # Avoid depending upon Character Ranges. |
17496 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17497 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17498 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17499 | as_cr_digits='0123456789' | |
17500 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17501 | ||
5213506e RW |
17502 | ECHO_C= ECHO_N= ECHO_T= |
17503 | case `echo -n x` in #((((( | |
17504 | -n*) | |
17505 | case `echo 'xy\c'` in | |
17506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17507 | xy) ECHO_C='\c';; | |
17508 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17509 | ECHO_T=' ';; | |
17510 | esac;; | |
17511 | *) | |
17512 | ECHO_N='-n';; | |
953ff289 DN |
17513 | esac |
17514 | ||
5213506e RW |
17515 | rm -f conf$$ conf$$.exe conf$$.file |
17516 | if test -d conf$$.dir; then | |
17517 | rm -f conf$$.dir/conf$$.file | |
953ff289 | 17518 | else |
5213506e RW |
17519 | rm -f conf$$.dir |
17520 | mkdir conf$$.dir 2>/dev/null | |
953ff289 | 17521 | fi |
5213506e RW |
17522 | if (echo >conf$$.file) 2>/dev/null; then |
17523 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
953ff289 | 17524 | as_ln_s='ln -s' |
5213506e RW |
17525 | # ... but there are two gotchas: |
17526 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17527 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 17528 | # In both cases, we have to default to `cp -pR'. |
5213506e | 17529 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 17530 | as_ln_s='cp -pR' |
5213506e RW |
17531 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17532 | as_ln_s=ln | |
17533 | else | |
22e05272 | 17534 | as_ln_s='cp -pR' |
953ff289 | 17535 | fi |
953ff289 | 17536 | else |
22e05272 | 17537 | as_ln_s='cp -pR' |
953ff289 | 17538 | fi |
5213506e RW |
17539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17540 | rmdir conf$$.dir 2>/dev/null | |
17541 | ||
17542 | ||
17543 | # as_fn_mkdir_p | |
17544 | # ------------- | |
17545 | # Create "$as_dir" as a directory, including parents if necessary. | |
17546 | as_fn_mkdir_p () | |
17547 | { | |
17548 | ||
17549 | case $as_dir in #( | |
17550 | -*) as_dir=./$as_dir;; | |
17551 | esac | |
17552 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17553 | as_dirs= | |
17554 | while :; do | |
17555 | case $as_dir in #( | |
17556 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17557 | *) as_qdir=$as_dir;; | |
17558 | esac | |
17559 | as_dirs="'$as_qdir' $as_dirs" | |
17560 | as_dir=`$as_dirname -- "$as_dir" || | |
17561 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17562 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17563 | X"$as_dir" : 'X\(//\)$' \| \ | |
17564 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17565 | $as_echo X"$as_dir" | | |
17566 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17567 | s//\1/ | |
17568 | q | |
17569 | } | |
17570 | /^X\(\/\/\)[^/].*/{ | |
17571 | s//\1/ | |
17572 | q | |
17573 | } | |
17574 | /^X\(\/\/\)$/{ | |
17575 | s//\1/ | |
17576 | q | |
17577 | } | |
17578 | /^X\(\/\).*/{ | |
17579 | s//\1/ | |
17580 | q | |
17581 | } | |
17582 | s/.*/./; q'` | |
17583 | test -d "$as_dir" && break | |
17584 | done | |
17585 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 17586 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 17587 | |
953ff289 | 17588 | |
5213506e | 17589 | } # as_fn_mkdir_p |
953ff289 | 17590 | if mkdir -p . 2>/dev/null; then |
5213506e | 17591 | as_mkdir_p='mkdir -p "$as_dir"' |
953ff289 DN |
17592 | else |
17593 | test -d ./-p && rmdir ./-p | |
17594 | as_mkdir_p=false | |
17595 | fi | |
17596 | ||
22e05272 JM |
17597 | |
17598 | # as_fn_executable_p FILE | |
17599 | # ----------------------- | |
17600 | # Test if FILE is an executable regular file. | |
17601 | as_fn_executable_p () | |
17602 | { | |
17603 | test -f "$1" && test -x "$1" | |
17604 | } # as_fn_executable_p | |
17605 | as_test_x='test -x' | |
17606 | as_executable_p=as_fn_executable_p | |
953ff289 DN |
17607 | |
17608 | # Sed expression to map a string onto a valid CPP name. | |
17609 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17610 | ||
5213506e RW |
17611 | # Sed expression to map a string onto a valid variable name. |
17612 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
953ff289 | 17613 | |
953ff289 DN |
17614 | |
17615 | exec 6>&1 | |
5213506e RW |
17616 | ## ----------------------------------- ## |
17617 | ## Main body of $CONFIG_STATUS script. ## | |
17618 | ## ----------------------------------- ## | |
17619 | _ASEOF | |
17620 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17621 | ||
17622 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17623 | # Save the log message, to keep $0 and so on meaningful, and to | |
953ff289 | 17624 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
17625 | # values after options handling. |
17626 | ac_log=" | |
f1f3453e | 17627 | This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was |
22e05272 | 17628 | generated by GNU Autoconf 2.69. Invocation command line was |
953ff289 DN |
17629 | |
17630 | CONFIG_FILES = $CONFIG_FILES | |
17631 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17632 | CONFIG_LINKS = $CONFIG_LINKS | |
17633 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17634 | $ $0 $@ | |
17635 | ||
5213506e RW |
17636 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17637 | " | |
17638 | ||
953ff289 DN |
17639 | _ACEOF |
17640 | ||
5213506e RW |
17641 | case $ac_config_files in *" |
17642 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17643 | esac | |
953ff289 | 17644 | |
5213506e RW |
17645 | case $ac_config_headers in *" |
17646 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17647 | esac | |
953ff289 | 17648 | |
953ff289 | 17649 | |
5213506e RW |
17650 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17651 | # Files that config.status was made for. | |
17652 | config_files="$ac_config_files" | |
17653 | config_headers="$ac_config_headers" | |
17654 | config_commands="$ac_config_commands" | |
953ff289 | 17655 | |
5213506e | 17656 | _ACEOF |
953ff289 | 17657 | |
5213506e | 17658 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
953ff289 | 17659 | ac_cs_usage="\ |
5213506e RW |
17660 | \`$as_me' instantiates files and other configuration actions |
17661 | from templates according to the current configuration. Unless the files | |
17662 | and actions are specified as TAGs, all are instantiated by default. | |
953ff289 | 17663 | |
5213506e | 17664 | Usage: $0 [OPTION]... [TAG]... |
953ff289 DN |
17665 | |
17666 | -h, --help print this help, then exit | |
5213506e | 17667 | -V, --version print version number and configuration settings, then exit |
22e05272 | 17668 | --config print configuration, then exit |
5213506e RW |
17669 | -q, --quiet, --silent |
17670 | do not print progress messages | |
953ff289 DN |
17671 | -d, --debug don't remove temporary files |
17672 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
17673 | --file=FILE[:TEMPLATE] |
17674 | instantiate the configuration file FILE | |
17675 | --header=FILE[:TEMPLATE] | |
17676 | instantiate the configuration header FILE | |
953ff289 DN |
17677 | |
17678 | Configuration files: | |
17679 | $config_files | |
17680 | ||
17681 | Configuration headers: | |
17682 | $config_headers | |
17683 | ||
17684 | Configuration commands: | |
17685 | $config_commands | |
17686 | ||
5213506e | 17687 | Report bugs to the package provider. |
f1f3453e | 17688 | GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. |
5213506e | 17689 | General help using GNU software: <http://www.gnu.org/gethelp/>." |
953ff289 | 17690 | |
5213506e RW |
17691 | _ACEOF |
17692 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 17693 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
953ff289 | 17694 | ac_cs_version="\\ |
f1f3453e | 17695 | GNU Offloading and Multi Processing Runtime Library config.status 1.0 |
22e05272 JM |
17696 | configured by $0, generated by GNU Autoconf 2.69, |
17697 | with options \\"\$ac_cs_config\\" | |
953ff289 | 17698 | |
22e05272 | 17699 | Copyright (C) 2012 Free Software Foundation, Inc. |
953ff289 DN |
17700 | This config.status script is free software; the Free Software Foundation |
17701 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
17702 | |
17703 | ac_pwd='$ac_pwd' | |
17704 | srcdir='$srcdir' | |
17705 | INSTALL='$INSTALL' | |
17706 | MKDIR_P='$MKDIR_P' | |
17707 | AWK='$AWK' | |
17708 | test -n "\$AWK" || AWK=awk | |
953ff289 DN |
17709 | _ACEOF |
17710 | ||
5213506e RW |
17711 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17712 | # The default lists apply if the user does not specify any file. | |
953ff289 DN |
17713 | ac_need_defaults=: |
17714 | while test $# != 0 | |
17715 | do | |
17716 | case $1 in | |
22e05272 | 17717 | --*=?*) |
5213506e RW |
17718 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17719 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
953ff289 DN |
17720 | ac_shift=: |
17721 | ;; | |
22e05272 JM |
17722 | --*=) |
17723 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17724 | ac_optarg= | |
17725 | ac_shift=: | |
17726 | ;; | |
5213506e | 17727 | *) |
953ff289 DN |
17728 | ac_option=$1 |
17729 | ac_optarg=$2 | |
17730 | ac_shift=shift | |
17731 | ;; | |
953ff289 DN |
17732 | esac |
17733 | ||
17734 | case $ac_option in | |
17735 | # Handling of the options. | |
953ff289 DN |
17736 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17737 | ac_cs_recheck=: ;; | |
5213506e RW |
17738 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
17739 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
17740 | --config | --confi | --conf | --con | --co | --c ) |
17741 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 17742 | --debug | --debu | --deb | --de | --d | -d ) |
953ff289 DN |
17743 | debug=: ;; |
17744 | --file | --fil | --fi | --f ) | |
17745 | $ac_shift | |
5213506e RW |
17746 | case $ac_optarg in |
17747 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 17748 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
17749 | esac |
17750 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
953ff289 DN |
17751 | ac_need_defaults=false;; |
17752 | --header | --heade | --head | --hea ) | |
17753 | $ac_shift | |
5213506e RW |
17754 | case $ac_optarg in |
17755 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17756 | esac | |
17757 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
953ff289 | 17758 | ac_need_defaults=false;; |
5213506e RW |
17759 | --he | --h) |
17760 | # Conflict between --help and --header | |
22e05272 | 17761 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
17762 | Try \`$0 --help' for more information.";; |
17763 | --help | --hel | -h ) | |
17764 | $as_echo "$ac_cs_usage"; exit ;; | |
953ff289 DN |
17765 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17766 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17767 | ac_cs_silent=: ;; | |
17768 | ||
17769 | # This is an error. | |
22e05272 | 17770 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 17771 | Try \`$0 --help' for more information." ;; |
953ff289 | 17772 | |
5213506e RW |
17773 | *) as_fn_append ac_config_targets " $1" |
17774 | ac_need_defaults=false ;; | |
953ff289 DN |
17775 | |
17776 | esac | |
17777 | shift | |
17778 | done | |
17779 | ||
17780 | ac_configure_extra_args= | |
17781 | ||
17782 | if $ac_cs_silent; then | |
17783 | exec 6>/dev/null | |
17784 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17785 | fi | |
17786 | ||
17787 | _ACEOF | |
5213506e | 17788 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
953ff289 | 17789 | if \$ac_cs_recheck; then |
22e05272 | 17790 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
17791 | shift |
17792 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17793 | CONFIG_SHELL='$SHELL' | |
17794 | export CONFIG_SHELL | |
17795 | exec "\$@" | |
953ff289 DN |
17796 | fi |
17797 | ||
17798 | _ACEOF | |
5213506e RW |
17799 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17800 | exec 5>>config.log | |
17801 | { | |
17802 | echo | |
17803 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17804 | ## Running $as_me. ## | |
17805 | _ASBOX | |
17806 | $as_echo "$ac_log" | |
17807 | } >&5 | |
953ff289 | 17808 | |
5213506e RW |
17809 | _ACEOF |
17810 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
953ff289 | 17811 | # |
5213506e | 17812 | # INIT-COMMANDS |
953ff289 DN |
17813 | # |
17814 | ||
953ff289 DN |
17815 | srcdir="$srcdir" |
17816 | host="$host" | |
17817 | target="$target" | |
17818 | with_multisubdir="$with_multisubdir" | |
17819 | with_multisrctop="$with_multisrctop" | |
17820 | with_target_subdir="$with_target_subdir" | |
17821 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
17822 | multi_basedir="$multi_basedir" | |
17823 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
17824 | CC="$CC" | |
396b7fa4 JM |
17825 | CXX="$CXX" |
17826 | GFORTRAN="$GFORTRAN" | |
22e05272 | 17827 | GDC="$GDC" |
2fe5a545 | 17828 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
953ff289 | 17829 | |
1cf3d07d SE |
17830 | |
17831 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17832 | # if CDPATH is set. | |
17833 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17834 | ||
17835 | sed_quote_subst='$sed_quote_subst' | |
17836 | double_quote_subst='$double_quote_subst' | |
17837 | delay_variable_subst='$delay_variable_subst' | |
43e02a8a RW |
17838 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
17839 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
17840 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
17841 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
17842 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
17843 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
17844 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
17845 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
17846 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
17847 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
17848 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
17849 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
17850 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
17851 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
17852 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
17853 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
17854 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
17855 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
17856 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
17857 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
17858 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
17859 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
17860 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
17861 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
17862 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
17863 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
17864 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
17865 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
17866 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
17867 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
17868 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
17869 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
17870 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
17871 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
17872 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
17873 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
17874 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
17875 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17876 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17877 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17878 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
17879 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
17880 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
17881 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
17882 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
17883 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
17884 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
17885 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
17886 | 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"`' | |
17887 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
17888 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
17889 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
17890 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
17891 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
17892 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
17893 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
17894 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
17895 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
17896 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
17897 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
17898 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
17899 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
17900 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
17901 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
17902 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17903 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
17904 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
17905 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17906 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17907 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
17908 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
17909 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17910 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17911 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17912 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
17913 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17914 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
17915 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17916 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17917 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17918 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
17919 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
17920 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
17921 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
17922 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
17923 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17924 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
17925 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
17926 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
17927 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
17928 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
17929 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
17930 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
17931 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
17932 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
17933 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
17934 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
17935 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
17936 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
17937 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
17938 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
17939 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17940 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
17941 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
17942 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
17943 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
17944 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
17945 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17946 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17947 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
17948 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
17949 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
17950 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
17951 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
17952 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
17953 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
17954 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
17955 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
17956 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
17957 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
17958 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
17959 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
17960 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
17961 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
17962 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
17963 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
17964 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
17965 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
17966 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
17967 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
17968 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
17969 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
17970 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
17971 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
17972 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
17973 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
17974 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
17975 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
17976 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
17977 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
17978 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
17979 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
17980 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
17981 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
17982 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
17983 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
17984 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
17985 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
17986 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
17987 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
17988 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
17989 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
17990 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
17991 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
17992 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
17993 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
17994 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
17995 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
17996 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
17997 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
17998 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
17999 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
18000 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
18001 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18002 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
18003 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
18004 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18005 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
18006 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
18007 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
18008 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
18009 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
18010 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
18011 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
18012 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
18013 | |
18014 | LTCC='$LTCC' | |
18015 | LTCFLAGS='$LTCFLAGS' | |
18016 | compiler='$compiler_DEFAULT' | |
18017 | ||
43e02a8a RW |
18018 | # A function that is used when there is no print builtin or printf. |
18019 | func_fallback_echo () | |
18020 | { | |
18021 | eval 'cat <<_LTECHO_EOF | |
18022 | \$1 | |
18023 | _LTECHO_EOF' | |
18024 | } | |
18025 | ||
1cf3d07d | 18026 | # Quote evaled strings. |
43e02a8a RW |
18027 | for var in SHELL \ |
18028 | ECHO \ | |
18029 | SED \ | |
1cf3d07d SE |
18030 | GREP \ |
18031 | EGREP \ | |
18032 | FGREP \ | |
18033 | LD \ | |
18034 | NM \ | |
18035 | LN_S \ | |
18036 | lt_SP2NL \ | |
18037 | lt_NL2SP \ | |
18038 | reload_flag \ | |
6b4a97ed | 18039 | OBJDUMP \ |
1cf3d07d SE |
18040 | deplibs_check_method \ |
18041 | file_magic_cmd \ | |
18042 | AR \ | |
18043 | AR_FLAGS \ | |
18044 | STRIP \ | |
18045 | RANLIB \ | |
18046 | CC \ | |
18047 | CFLAGS \ | |
18048 | compiler \ | |
18049 | lt_cv_sys_global_symbol_pipe \ | |
18050 | lt_cv_sys_global_symbol_to_cdecl \ | |
18051 | lt_cv_sys_global_symbol_to_c_name_address \ | |
6b4a97ed | 18052 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
18053 | lt_prog_compiler_no_builtin_flag \ |
18054 | lt_prog_compiler_wl \ | |
18055 | lt_prog_compiler_pic \ | |
18056 | lt_prog_compiler_static \ | |
18057 | lt_cv_prog_compiler_c_o \ | |
18058 | need_locks \ | |
6b4a97ed PG |
18059 | DSYMUTIL \ |
18060 | NMEDIT \ | |
18061 | LIPO \ | |
18062 | OTOOL \ | |
18063 | OTOOL64 \ | |
1cf3d07d SE |
18064 | shrext_cmds \ |
18065 | export_dynamic_flag_spec \ | |
18066 | whole_archive_flag_spec \ | |
18067 | compiler_needs_object \ | |
18068 | with_gnu_ld \ | |
18069 | allow_undefined_flag \ | |
18070 | no_undefined_flag \ | |
18071 | hardcode_libdir_flag_spec \ | |
18072 | hardcode_libdir_flag_spec_ld \ | |
18073 | hardcode_libdir_separator \ | |
18074 | fix_srcfile_path \ | |
18075 | exclude_expsyms \ | |
18076 | include_expsyms \ | |
18077 | file_list_spec \ | |
18078 | variables_saved_for_relink \ | |
18079 | libname_spec \ | |
18080 | library_names_spec \ | |
18081 | soname_spec \ | |
43e02a8a | 18082 | install_override_mode \ |
1cf3d07d SE |
18083 | finish_eval \ |
18084 | old_striplib \ | |
18085 | striplib \ | |
6b4a97ed | 18086 | compiler_lib_search_dirs \ |
1cf3d07d SE |
18087 | predep_objects \ |
18088 | postdep_objects \ | |
18089 | predeps \ | |
18090 | postdeps \ | |
18091 | compiler_lib_search_path \ | |
18092 | LD_FC \ | |
43e02a8a | 18093 | reload_flag_FC \ |
1cf3d07d SE |
18094 | compiler_FC \ |
18095 | lt_prog_compiler_no_builtin_flag_FC \ | |
18096 | lt_prog_compiler_wl_FC \ | |
18097 | lt_prog_compiler_pic_FC \ | |
18098 | lt_prog_compiler_static_FC \ | |
18099 | lt_cv_prog_compiler_c_o_FC \ | |
18100 | export_dynamic_flag_spec_FC \ | |
18101 | whole_archive_flag_spec_FC \ | |
18102 | compiler_needs_object_FC \ | |
18103 | with_gnu_ld_FC \ | |
18104 | allow_undefined_flag_FC \ | |
18105 | no_undefined_flag_FC \ | |
18106 | hardcode_libdir_flag_spec_FC \ | |
18107 | hardcode_libdir_flag_spec_ld_FC \ | |
18108 | hardcode_libdir_separator_FC \ | |
18109 | fix_srcfile_path_FC \ | |
18110 | exclude_expsyms_FC \ | |
18111 | include_expsyms_FC \ | |
18112 | file_list_spec_FC \ | |
6b4a97ed | 18113 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
18114 | predep_objects_FC \ |
18115 | postdep_objects_FC \ | |
18116 | predeps_FC \ | |
18117 | postdeps_FC \ | |
18118 | compiler_lib_search_path_FC; do | |
43e02a8a | 18119 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 18120 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 18121 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
18122 | ;; |
18123 | *) | |
18124 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18125 | ;; | |
18126 | esac | |
18127 | done | |
18128 | ||
18129 | # Double-quote double-evaled strings. | |
18130 | for var in reload_cmds \ | |
18131 | old_postinstall_cmds \ | |
18132 | old_postuninstall_cmds \ | |
18133 | old_archive_cmds \ | |
18134 | extract_expsyms_cmds \ | |
18135 | old_archive_from_new_cmds \ | |
18136 | old_archive_from_expsyms_cmds \ | |
18137 | archive_cmds \ | |
18138 | archive_expsym_cmds \ | |
18139 | module_cmds \ | |
18140 | module_expsym_cmds \ | |
18141 | export_symbols_cmds \ | |
18142 | prelink_cmds \ | |
18143 | postinstall_cmds \ | |
18144 | postuninstall_cmds \ | |
18145 | finish_cmds \ | |
18146 | sys_lib_search_path_spec \ | |
18147 | sys_lib_dlsearch_path_spec \ | |
43e02a8a | 18148 | reload_cmds_FC \ |
1cf3d07d SE |
18149 | old_archive_cmds_FC \ |
18150 | old_archive_from_new_cmds_FC \ | |
18151 | old_archive_from_expsyms_cmds_FC \ | |
18152 | archive_cmds_FC \ | |
18153 | archive_expsym_cmds_FC \ | |
18154 | module_cmds_FC \ | |
18155 | module_expsym_cmds_FC \ | |
18156 | export_symbols_cmds_FC \ | |
18157 | prelink_cmds_FC; do | |
43e02a8a | 18158 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 18159 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 18160 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
18161 | ;; |
18162 | *) | |
18163 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18164 | ;; | |
18165 | esac | |
18166 | done | |
18167 | ||
1cf3d07d SE |
18168 | ac_aux_dir='$ac_aux_dir' |
18169 | xsi_shell='$xsi_shell' | |
18170 | lt_shell_append='$lt_shell_append' | |
18171 | ||
18172 | # See if we are running on zsh, and set the options which allow our | |
18173 | # commands through without removal of \ escapes INIT. | |
18174 | if test -n "\${ZSH_VERSION+set}" ; then | |
18175 | setopt NO_GLOB_SUBST | |
18176 | fi | |
18177 | ||
18178 | ||
18179 | PACKAGE='$PACKAGE' | |
18180 | VERSION='$VERSION' | |
18181 | TIMESTAMP='$TIMESTAMP' | |
18182 | RM='$RM' | |
18183 | ofile='$ofile' | |
18184 | ||
18185 | ||
18186 | ||
18187 | ||
18188 | ||
18189 | ||
953ff289 DN |
18190 | _ACEOF |
18191 | ||
5213506e | 18192 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
953ff289 | 18193 | |
5213506e | 18194 | # Handling of arguments. |
953ff289 DN |
18195 | for ac_config_target in $ac_config_targets |
18196 | do | |
5213506e RW |
18197 | case $ac_config_target in |
18198 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
18199 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
18200 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
18201 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
5213506e RW |
18202 | "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;; |
18203 | "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; | |
18204 | "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; | |
18205 | "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; | |
18206 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18207 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
18208 | "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; | |
41dbbb37 | 18209 | "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;; |
749bd22d | 18210 | "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;; |
5213506e | 18211 | |
22e05272 | 18212 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
953ff289 DN |
18213 | esac |
18214 | done | |
18215 | ||
5213506e | 18216 | |
953ff289 DN |
18217 | # If the user did not use the arguments to specify the items to instantiate, |
18218 | # then the envvar interface is used. Set only those that are not. | |
18219 | # We use the long form for the default assignment because of an extremely | |
18220 | # bizarre bug on SunOS 4.1.3. | |
18221 | if $ac_need_defaults; then | |
18222 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18223 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18224 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18225 | fi | |
18226 | ||
18227 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 18228 | # simply because there is no reason against having it here, and in addition, |
953ff289 | 18229 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
18230 | # Hook for its removal unless debugging. |
18231 | # Note that there is a small window in which the directory will not be cleaned: | |
18232 | # after its creation but before its name has been assigned to `$tmp'. | |
953ff289 DN |
18233 | $debug || |
18234 | { | |
22e05272 | 18235 | tmp= ac_tmp= |
5213506e | 18236 | trap 'exit_status=$? |
22e05272 JM |
18237 | : "${ac_tmp:=$tmp}" |
18238 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
18239 | ' 0 |
18240 | trap 'as_fn_exit 1' 1 2 13 15 | |
953ff289 | 18241 | } |
953ff289 DN |
18242 | # Create a (secure) tmp directory for tmp files. |
18243 | ||
18244 | { | |
5213506e | 18245 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 18246 | test -d "$tmp" |
953ff289 DN |
18247 | } || |
18248 | { | |
5213506e RW |
18249 | tmp=./conf$$-$RANDOM |
18250 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
18251 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18252 | ac_tmp=$tmp | |
5213506e RW |
18253 | |
18254 | # Set up the scripts for CONFIG_FILES section. | |
18255 | # No need to generate them if there are no CONFIG_FILES. | |
18256 | # This happens for instance with `./config.status config.h'. | |
18257 | if test -n "$CONFIG_FILES"; then | |
18258 | ||
18259 | ||
18260 | ac_cr=`echo X | tr X '\015'` | |
18261 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18262 | # But we know of no other shell where ac_cr would be empty at this | |
18263 | # point, so we can use a bashism as a fallback. | |
18264 | if test "x$ac_cr" = x; then | |
18265 | eval ac_cr=\$\'\\r\' | |
18266 | fi | |
18267 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18268 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 18269 | ac_cs_awk_cr='\\r' |
5213506e RW |
18270 | else |
18271 | ac_cs_awk_cr=$ac_cr | |
18272 | fi | |
18273 | ||
22e05272 | 18274 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
18275 | _ACEOF |
18276 | ||
18277 | ||
953ff289 | 18278 | { |
5213506e RW |
18279 | echo "cat >conf$$subs.awk <<_ACEOF" && |
18280 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18281 | echo "_ACEOF" | |
18282 | } >conf$$subs.sh || | |
22e05272 JM |
18283 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18284 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
18285 | ac_delim='%!_!# ' |
18286 | for ac_last_try in false false false false false :; do | |
18287 | . ./conf$$subs.sh || | |
22e05272 | 18288 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
18289 | |
18290 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18291 | if test $ac_delim_n = $ac_delim_num; then | |
18292 | break | |
18293 | elif $ac_last_try; then | |
22e05272 | 18294 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
18295 | else |
18296 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18297 | fi | |
18298 | done | |
18299 | rm -f conf$$subs.sh | |
18300 | ||
18301 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18302 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
18303 | _ACEOF |
18304 | sed -n ' | |
18305 | h | |
18306 | s/^/S["/; s/!.*/"]=/ | |
18307 | p | |
18308 | g | |
18309 | s/^[^!]*!// | |
18310 | :repl | |
18311 | t repl | |
18312 | s/'"$ac_delim"'$// | |
18313 | t delim | |
18314 | :nl | |
18315 | h | |
22e05272 | 18316 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
18317 | t more1 |
18318 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18319 | p | |
18320 | n | |
18321 | b repl | |
18322 | :more1 | |
18323 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18324 | p | |
18325 | g | |
18326 | s/.\{148\}// | |
18327 | t nl | |
18328 | :delim | |
18329 | h | |
22e05272 | 18330 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
18331 | t more2 |
18332 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18333 | p | |
18334 | b | |
18335 | :more2 | |
18336 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18337 | p | |
18338 | g | |
18339 | s/.\{148\}// | |
18340 | t delim | |
18341 | ' <conf$$subs.awk | sed ' | |
18342 | /^[^""]/{ | |
18343 | N | |
18344 | s/\n// | |
953ff289 | 18345 | } |
5213506e RW |
18346 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
18347 | rm -f conf$$subs.awk | |
18348 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18349 | _ACAWK | |
22e05272 | 18350 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
18351 | for (key in S) S_is_set[key] = 1 |
18352 | FS = "\a" | |
953ff289 | 18353 | |
5213506e RW |
18354 | } |
18355 | { | |
18356 | line = $ 0 | |
18357 | nfields = split(line, field, "@") | |
18358 | substed = 0 | |
18359 | len = length(field[1]) | |
18360 | for (i = 2; i < nfields; i++) { | |
18361 | key = field[i] | |
18362 | keylen = length(key) | |
18363 | if (S_is_set[key]) { | |
18364 | value = S[key] | |
18365 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18366 | len += length(value) + length(field[++i]) | |
18367 | substed = 1 | |
18368 | } else | |
18369 | len += 1 + keylen | |
18370 | } | |
953ff289 | 18371 | |
5213506e RW |
18372 | print line |
18373 | } | |
953ff289 | 18374 | |
5213506e RW |
18375 | _ACAWK |
18376 | _ACEOF | |
18377 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18378 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18379 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18380 | else | |
18381 | cat | |
22e05272 JM |
18382 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18383 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
18384 | _ACEOF |
18385 | ||
22e05272 JM |
18386 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18387 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
18388 | # trailing colons and then remove the whole line if VPATH becomes empty |
18389 | # (actually we leave an empty line to preserve line numbers). | |
18390 | if test "x$srcdir" = x.; then | |
22e05272 JM |
18391 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18392 | h | |
18393 | s/// | |
18394 | s/^/:/ | |
18395 | s/[ ]*$/:/ | |
18396 | s/:\$(srcdir):/:/g | |
18397 | s/:\${srcdir}:/:/g | |
18398 | s/:@srcdir@:/:/g | |
18399 | s/^:*// | |
5213506e | 18400 | s/:*$// |
22e05272 JM |
18401 | x |
18402 | s/\(=[ ]*\).*/\1/ | |
18403 | G | |
18404 | s/\n// | |
5213506e RW |
18405 | s/^[^=]*=[ ]*$// |
18406 | }' | |
18407 | fi | |
953ff289 | 18408 | |
5213506e RW |
18409 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18410 | fi # test -n "$CONFIG_FILES" | |
953ff289 | 18411 | |
5213506e RW |
18412 | # Set up the scripts for CONFIG_HEADERS section. |
18413 | # No need to generate them if there are no CONFIG_HEADERS. | |
18414 | # This happens for instance with `./config.status Makefile'. | |
18415 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 18416 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e | 18417 | BEGIN { |
953ff289 DN |
18418 | _ACEOF |
18419 | ||
5213506e RW |
18420 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18421 | # here-document in config.status, that substitutes the proper values into | |
18422 | # config.h.in to produce config.h. | |
18423 | ||
18424 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18425 | # handling of long lines. | |
18426 | ac_delim='%!_!# ' | |
18427 | for ac_last_try in false false :; do | |
22e05272 JM |
18428 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18429 | if test -z "$ac_tt"; then | |
5213506e RW |
18430 | break |
18431 | elif $ac_last_try; then | |
22e05272 | 18432 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
18433 | else |
18434 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
953ff289 | 18435 | fi |
5213506e | 18436 | done |
953ff289 | 18437 | |
5213506e RW |
18438 | # For the awk script, D is an array of macro values keyed by name, |
18439 | # likewise P contains macro parameters if any. Preserve backslash | |
18440 | # newline sequences. | |
18441 | ||
18442 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18443 | sed -n ' | |
18444 | s/.\{148\}/&'"$ac_delim"'/g | |
18445 | t rset | |
18446 | :rset | |
18447 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18448 | t def | |
18449 | d | |
18450 | :def | |
18451 | s/\\$// | |
18452 | t bsnl | |
18453 | s/["\\]/\\&/g | |
18454 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18455 | D["\1"]=" \3"/p | |
18456 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18457 | d | |
18458 | :bsnl | |
18459 | s/["\\]/\\&/g | |
18460 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18461 | D["\1"]=" \3\\\\\\n"\\/p | |
18462 | t cont | |
18463 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18464 | t cont | |
18465 | d | |
18466 | :cont | |
18467 | n | |
18468 | s/.\{148\}/&'"$ac_delim"'/g | |
18469 | t clear | |
18470 | :clear | |
18471 | s/\\$// | |
18472 | t bsnlc | |
18473 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18474 | d | |
18475 | :bsnlc | |
18476 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18477 | b cont | |
18478 | ' <confdefs.h | sed ' | |
18479 | s/'"$ac_delim"'/"\\\ | |
18480 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18481 | ||
18482 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18483 | for (key in D) D_is_set[key] = 1 | |
18484 | FS = "\a" | |
18485 | } | |
18486 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18487 | line = \$ 0 | |
18488 | split(line, arg, " ") | |
18489 | if (arg[1] == "#") { | |
18490 | defundef = arg[2] | |
18491 | mac1 = arg[3] | |
18492 | } else { | |
18493 | defundef = substr(arg[1], 2) | |
18494 | mac1 = arg[2] | |
18495 | } | |
18496 | split(mac1, mac2, "(") #) | |
18497 | macro = mac2[1] | |
18498 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18499 | if (D_is_set[macro]) { | |
18500 | # Preserve the white space surrounding the "#". | |
18501 | print prefix "define", macro P[macro] D[macro] | |
18502 | next | |
18503 | } else { | |
18504 | # Replace #undef with comments. This is necessary, for example, | |
18505 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18506 | # on some systems where configure will not decide to define it. | |
18507 | if (defundef == "undef") { | |
18508 | print "/*", prefix defundef, macro, "*/" | |
18509 | next | |
18510 | } | |
18511 | } | |
18512 | } | |
18513 | { print } | |
18514 | _ACAWK | |
953ff289 | 18515 | _ACEOF |
5213506e | 18516 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 18517 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
18518 | fi # test -n "$CONFIG_HEADERS" |
18519 | ||
18520 | ||
18521 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
18522 | shift | |
18523 | for ac_tag | |
18524 | do | |
18525 | case $ac_tag in | |
18526 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18527 | esac | |
18528 | case $ac_mode$ac_tag in | |
18529 | :[FHL]*:*);; | |
22e05272 | 18530 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
18531 | :[FH]-) ac_tag=-:-;; |
18532 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18533 | esac | |
18534 | ac_save_IFS=$IFS | |
18535 | IFS=: | |
18536 | set x $ac_tag | |
18537 | IFS=$ac_save_IFS | |
18538 | shift | |
18539 | ac_file=$1 | |
18540 | shift | |
18541 | ||
18542 | case $ac_mode in | |
18543 | :L) ac_source=$1;; | |
18544 | :[FH]) | |
18545 | ac_file_inputs= | |
18546 | for ac_f | |
18547 | do | |
18548 | case $ac_f in | |
22e05272 | 18549 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
18550 | *) # Look for the file first in the build tree, then in the source tree |
18551 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18552 | # because $ac_f cannot contain `:'. | |
18553 | test -f "$ac_f" || | |
18554 | case $ac_f in | |
18555 | [\\/$]*) false;; | |
18556 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18557 | esac || | |
22e05272 | 18558 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
18559 | esac |
18560 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18561 | as_fn_append ac_file_inputs " '$ac_f'" | |
18562 | done | |
18563 | ||
18564 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18565 | # use $as_me), people would be surprised to read: | |
18566 | # /* config.h. Generated by config.status. */ | |
18567 | configure_input='Generated from '` | |
18568 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18569 | `' by configure.' | |
18570 | if test x"$ac_file" != x-; then | |
18571 | configure_input="$ac_file. $configure_input" | |
18572 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18573 | $as_echo "$as_me: creating $ac_file" >&6;} | |
18574 | fi | |
18575 | # Neutralize special characters interpreted by sed in replacement strings. | |
18576 | case $configure_input in #( | |
18577 | *\&* | *\|* | *\\* ) | |
18578 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18579 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18580 | *) ac_sed_conf_input=$configure_input;; | |
18581 | esac | |
18582 | ||
18583 | case $ac_tag in | |
22e05272 JM |
18584 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18585 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
18586 | esac |
18587 | ;; | |
953ff289 DN |
18588 | esac |
18589 | ||
5213506e | 18590 | ac_dir=`$as_dirname -- "$ac_file" || |
953ff289 DN |
18591 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18592 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18593 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
18594 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18595 | $as_echo X"$ac_file" | | |
18596 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18597 | s//\1/ | |
18598 | q | |
18599 | } | |
18600 | /^X\(\/\/\)[^/].*/{ | |
18601 | s//\1/ | |
18602 | q | |
18603 | } | |
18604 | /^X\(\/\/\)$/{ | |
18605 | s//\1/ | |
18606 | q | |
18607 | } | |
18608 | /^X\(\/\).*/{ | |
18609 | s//\1/ | |
18610 | q | |
18611 | } | |
18612 | s/.*/./; q'` | |
18613 | as_dir="$ac_dir"; as_fn_mkdir_p | |
953ff289 DN |
18614 | ac_builddir=. |
18615 | ||
5213506e RW |
18616 | case "$ac_dir" in |
18617 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18618 | *) | |
18619 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18620 | # A ".." for each directory in $ac_dir_suffix. | |
18621 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18622 | case $ac_top_builddir_sub in | |
18623 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18624 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18625 | esac ;; | |
18626 | esac | |
18627 | ac_abs_top_builddir=$ac_pwd | |
18628 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18629 | # for backward compatibility: | |
18630 | ac_top_builddir=$ac_top_build_prefix | |
953ff289 DN |
18631 | |
18632 | case $srcdir in | |
5213506e | 18633 | .) # We are building in place. |
953ff289 | 18634 | ac_srcdir=. |
5213506e RW |
18635 | ac_top_srcdir=$ac_top_builddir_sub |
18636 | ac_abs_top_srcdir=$ac_pwd ;; | |
18637 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
953ff289 | 18638 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
18639 | ac_top_srcdir=$srcdir |
18640 | ac_abs_top_srcdir=$srcdir ;; | |
18641 | *) # Relative name. | |
18642 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18643 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18644 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
953ff289 | 18645 | esac |
5213506e | 18646 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
953ff289 | 18647 | |
953ff289 | 18648 | |
5213506e RW |
18649 | case $ac_mode in |
18650 | :F) | |
18651 | # | |
18652 | # CONFIG_FILE | |
18653 | # | |
953ff289 DN |
18654 | |
18655 | case $INSTALL in | |
18656 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 18657 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
953ff289 | 18658 | esac |
5213506e RW |
18659 | ac_MKDIR_P=$MKDIR_P |
18660 | case $MKDIR_P in | |
18661 | [\\/$]* | ?:[\\/]* ) ;; | |
18662 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
18663 | esac | |
18664 | _ACEOF | |
953ff289 | 18665 | |
5213506e RW |
18666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18667 | # If the template does not know about datarootdir, expand it. | |
18668 | # FIXME: This hack should be removed a few years after 2.60. | |
18669 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18670 | ac_sed_dataroot=' | |
18671 | /datarootdir/ { | |
18672 | p | |
18673 | q | |
18674 | } | |
18675 | /@datadir@/p | |
18676 | /@docdir@/p | |
18677 | /@infodir@/p | |
18678 | /@localedir@/p | |
18679 | /@mandir@/p' | |
18680 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18681 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18682 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18684 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18685 | _ACEOF | |
18686 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18687 | ac_datarootdir_hack=' | |
18688 | s&@datadir@&$datadir&g | |
18689 | s&@docdir@&$docdir&g | |
18690 | s&@infodir@&$infodir&g | |
18691 | s&@localedir@&$localedir&g | |
18692 | s&@mandir@&$mandir&g | |
18693 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18694 | esac | |
953ff289 | 18695 | _ACEOF |
5213506e RW |
18696 | |
18697 | # Neutralize VPATH when `$srcdir' = `.'. | |
18698 | # Shell code in configure.ac might set extrasub. | |
18699 | # FIXME: do we really want to maintain this feature? | |
18700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18701 | ac_sed_extra="$ac_vpsub | |
953ff289 DN |
18702 | $extrasub |
18703 | _ACEOF | |
5213506e | 18704 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
953ff289 DN |
18705 | :t |
18706 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
18707 | s|@configure_input@|$ac_sed_conf_input|;t t |
18708 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18709 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18710 | s&@srcdir@&$ac_srcdir&;t t | |
18711 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18712 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18713 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18714 | s&@builddir@&$ac_builddir&;t t | |
18715 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18716 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18717 | s&@INSTALL@&$ac_INSTALL&;t t | |
18718 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18719 | $ac_datarootdir_hack | |
18720 | " | |
22e05272 JM |
18721 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
18722 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
18723 | |
18724 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
18725 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18726 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
18727 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 18728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 18729 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 18730 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 18731 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 18732 | |
22e05272 | 18733 | rm -f "$ac_tmp/stdin" |
953ff289 | 18734 | case $ac_file in |
22e05272 JM |
18735 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18736 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 18737 | esac \ |
22e05272 | 18738 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
18739 | ;; |
18740 | :H) | |
18741 | # | |
18742 | # CONFIG_HEADER | |
18743 | # | |
953ff289 | 18744 | if test x"$ac_file" != x-; then |
5213506e RW |
18745 | { |
18746 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
18747 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
18748 | } >"$ac_tmp/config.h" \ | |
18749 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
18750 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
18751 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
18752 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
953ff289 | 18753 | else |
5213506e | 18754 | rm -f "$ac_file" |
22e05272 JM |
18755 | mv "$ac_tmp/config.h" "$ac_file" \ |
18756 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
953ff289 DN |
18757 | fi |
18758 | else | |
5213506e | 18759 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
18760 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
18761 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
953ff289 | 18762 | fi |
5213506e RW |
18763 | # Compute "$ac_file"'s index in $config_headers. |
18764 | _am_arg="$ac_file" | |
953ff289 DN |
18765 | _am_stamp_count=1 |
18766 | for _am_header in $config_headers :; do | |
18767 | case $_am_header in | |
5213506e | 18768 | $_am_arg | $_am_arg:* ) |
953ff289 DN |
18769 | break ;; |
18770 | * ) | |
18771 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18772 | esac | |
18773 | done | |
5213506e RW |
18774 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
18775 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18776 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18777 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18778 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18779 | $as_echo X"$_am_arg" | | |
18780 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18781 | s//\1/ | |
18782 | q | |
18783 | } | |
18784 | /^X\(\/\/\)[^/].*/{ | |
18785 | s//\1/ | |
18786 | q | |
18787 | } | |
18788 | /^X\(\/\/\)$/{ | |
18789 | s//\1/ | |
18790 | q | |
18791 | } | |
18792 | /^X\(\/\).*/{ | |
18793 | s//\1/ | |
18794 | q | |
18795 | } | |
18796 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18797 | ;; | |
953ff289 | 18798 | |
5213506e RW |
18799 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
18800 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18801 | ;; | |
18802 | esac | |
953ff289 DN |
18803 | |
18804 | ||
5213506e RW |
18805 | case $ac_file$ac_mode in |
18806 | "default-1":C) | |
953ff289 DN |
18807 | # Only add multilib support code if we just rebuilt the top-level |
18808 | # Makefile. | |
18809 | case " $CONFIG_FILES " in | |
18810 | *" Makefile "*) | |
18811 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
18812 | ;; | |
18813 | esac ;; | |
5213506e | 18814 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 18815 | # Older Autoconf quotes --file arguments for eval, but not when files |
5213506e RW |
18816 | # are listed without --file. Let's play safe and only enable the eval |
18817 | # if we detect the quoting. | |
2fe5a545 TB |
18818 | case $CONFIG_FILES in |
18819 | *\'*) eval set x "$CONFIG_FILES" ;; | |
18820 | *) set x $CONFIG_FILES ;; | |
18821 | esac | |
5213506e | 18822 | shift |
2fe5a545 | 18823 | for mf |
5213506e RW |
18824 | do |
18825 | # Strip MF so we end up with the name of the file. | |
2fe5a545 TB |
18826 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
18827 | # Check whether this is an Automake generated Makefile or not. | |
18828 | # We used to match only the files named 'Makefile.in', but | |
18829 | # some people rename them; so instead we look at the file content. | |
18830 | # Grep'ing the first line is not enough: some people post-process | |
18831 | # each Makefile.in and add a new line on top of each file to say so. | |
18832 | # Grep'ing the whole file is not good either: AIX grep has a line | |
5213506e | 18833 | # limit of 2048, but all sed's we know have understand at least 4000. |
2fe5a545 TB |
18834 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
18835 | dirpart=`$as_dirname -- "$mf" || | |
18836 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18837 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18838 | X"$mf" : 'X\(//\)$' \| \ | |
18839 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
18840 | $as_echo X"$mf" | | |
5213506e RW |
18841 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18842 | s//\1/ | |
18843 | q | |
18844 | } | |
18845 | /^X\(\/\/\)[^/].*/{ | |
18846 | s//\1/ | |
18847 | q | |
18848 | } | |
18849 | /^X\(\/\/\)$/{ | |
18850 | s//\1/ | |
18851 | q | |
18852 | } | |
18853 | /^X\(\/\).*/{ | |
18854 | s//\1/ | |
18855 | q | |
18856 | } | |
18857 | s/.*/./; q'` | |
2fe5a545 TB |
18858 | else |
18859 | continue | |
18860 | fi | |
18861 | # Extract the definition of DEPDIR, am__include, and am__quote | |
18862 | # from the Makefile without running 'make'. | |
18863 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18864 | test -z "$DEPDIR" && continue | |
18865 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18866 | test -z "$am__include" && continue | |
18867 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18868 | # Find all dependency output files, they are included files with | |
18869 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18870 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18871 | # expansion. | |
18872 | for file in `sed -n " | |
18873 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18874 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
18875 | # Make sure the directory exists. | |
18876 | test -f "$dirpart/$file" && continue | |
18877 | fdir=`$as_dirname -- "$file" || | |
18878 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18879 | X"$file" : 'X\(//\)[^/]' \| \ | |
18880 | X"$file" : 'X\(//\)$' \| \ | |
18881 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
18882 | $as_echo X"$file" | | |
18883 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5213506e RW |
18884 | s//\1/ |
18885 | q | |
18886 | } | |
2fe5a545 | 18887 | /^X\(\/\/\)[^/].*/{ |
5213506e RW |
18888 | s//\1/ |
18889 | q | |
18890 | } | |
2fe5a545 TB |
18891 | /^X\(\/\/\)$/{ |
18892 | s//\1/ | |
18893 | q | |
18894 | } | |
18895 | /^X\(\/\).*/{ | |
5213506e RW |
18896 | s//\1/ |
18897 | q | |
18898 | } | |
18899 | s/.*/./; q'` | |
2fe5a545 TB |
18900 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
18901 | # echo "creating $dirpart/$file" | |
18902 | echo '# dummy' > "$dirpart/$file" | |
18903 | done | |
953ff289 | 18904 | done |
5213506e | 18905 | } |
1cf3d07d | 18906 | ;; |
5213506e | 18907 | "libtool":C) |
1cf3d07d SE |
18908 | |
18909 | # See if we are running on zsh, and set the options which allow our | |
18910 | # commands through without removal of \ escapes. | |
18911 | if test -n "${ZSH_VERSION+set}" ; then | |
18912 | setopt NO_GLOB_SUBST | |
18913 | fi | |
18914 | ||
18915 | cfgfile="${ofile}T" | |
18916 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18917 | $RM "$cfgfile" | |
18918 | ||
18919 | cat <<_LT_EOF >> "$cfgfile" | |
18920 | #! $SHELL | |
18921 | ||
18922 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
6b4a97ed | 18923 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
18924 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18925 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18926 | # | |
6b4a97ed | 18927 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 18928 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
6b4a97ed | 18929 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 18930 | # |
6b4a97ed | 18931 | # This file is part of GNU Libtool. |
1cf3d07d | 18932 | # |
6b4a97ed PG |
18933 | # GNU Libtool is free software; you can redistribute it and/or |
18934 | # modify it under the terms of the GNU General Public License as | |
18935 | # published by the Free Software Foundation; either version 2 of | |
18936 | # the License, or (at your option) any later version. | |
1cf3d07d | 18937 | # |
6b4a97ed PG |
18938 | # As a special exception to the GNU General Public License, |
18939 | # if you distribute this file as part of a program or library that | |
18940 | # is built using GNU Libtool, you may include this file under the | |
18941 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 18942 | # |
6b4a97ed PG |
18943 | # GNU Libtool is distributed in the hope that it will be useful, |
18944 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18945 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18946 | # GNU General Public License for more details. | |
1cf3d07d | 18947 | # |
6b4a97ed PG |
18948 | # You should have received a copy of the GNU General Public License |
18949 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18950 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18951 | # obtained by writing to the Free Software Foundation, Inc., | |
18952 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
18953 | |
18954 | ||
18955 | # The names of the tagged configurations supported by this script. | |
18956 | available_tags="FC " | |
18957 | ||
18958 | # ### BEGIN LIBTOOL CONFIG | |
18959 | ||
18960 | # Which release of libtool.m4 was used? | |
18961 | macro_version=$macro_version | |
18962 | macro_revision=$macro_revision | |
18963 | ||
18964 | # Whether or not to build shared libraries. | |
18965 | build_libtool_libs=$enable_shared | |
18966 | ||
18967 | # Whether or not to build static libraries. | |
18968 | build_old_libs=$enable_static | |
18969 | ||
18970 | # What type of objects to build. | |
18971 | pic_mode=$pic_mode | |
18972 | ||
18973 | # Whether or not to optimize for fast installation. | |
18974 | fast_install=$enable_fast_install | |
18975 | ||
43e02a8a RW |
18976 | # Shell to use when invoking shell scripts. |
18977 | SHELL=$lt_SHELL | |
18978 | ||
18979 | # An echo program that protects backslashes. | |
18980 | ECHO=$lt_ECHO | |
18981 | ||
1cf3d07d SE |
18982 | # The host system. |
18983 | host_alias=$host_alias | |
18984 | host=$host | |
18985 | host_os=$host_os | |
18986 | ||
18987 | # The build system. | |
18988 | build_alias=$build_alias | |
18989 | build=$build | |
18990 | build_os=$build_os | |
18991 | ||
18992 | # A sed program that does not truncate output. | |
18993 | SED=$lt_SED | |
18994 | ||
18995 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18996 | Xsed="\$SED -e 1s/^X//" | |
18997 | ||
18998 | # A grep program that handles long lines. | |
18999 | GREP=$lt_GREP | |
19000 | ||
19001 | # An ERE matcher. | |
19002 | EGREP=$lt_EGREP | |
19003 | ||
19004 | # A literal string matcher. | |
19005 | FGREP=$lt_FGREP | |
19006 | ||
19007 | # A BSD- or MS-compatible name lister. | |
19008 | NM=$lt_NM | |
19009 | ||
19010 | # Whether we need soft or hard links. | |
19011 | LN_S=$lt_LN_S | |
19012 | ||
19013 | # What is the maximum length of a command? | |
19014 | max_cmd_len=$max_cmd_len | |
19015 | ||
19016 | # Object file suffix (normally "o"). | |
19017 | objext=$ac_objext | |
19018 | ||
19019 | # Executable file suffix (normally ""). | |
19020 | exeext=$exeext | |
19021 | ||
19022 | # whether the shell understands "unset". | |
19023 | lt_unset=$lt_unset | |
19024 | ||
19025 | # turn spaces into newlines. | |
19026 | SP2NL=$lt_lt_SP2NL | |
19027 | ||
19028 | # turn newlines into spaces. | |
19029 | NL2SP=$lt_lt_NL2SP | |
19030 | ||
6b4a97ed PG |
19031 | # An object symbol dumper. |
19032 | OBJDUMP=$lt_OBJDUMP | |
19033 | ||
1cf3d07d SE |
19034 | # Method to check whether dependent libraries are shared objects. |
19035 | deplibs_check_method=$lt_deplibs_check_method | |
19036 | ||
19037 | # Command to use when deplibs_check_method == "file_magic". | |
19038 | file_magic_cmd=$lt_file_magic_cmd | |
19039 | ||
19040 | # The archiver. | |
19041 | AR=$lt_AR | |
19042 | AR_FLAGS=$lt_AR_FLAGS | |
19043 | ||
19044 | # A symbol stripping program. | |
19045 | STRIP=$lt_STRIP | |
19046 | ||
19047 | # Commands used to install an old-style archive. | |
19048 | RANLIB=$lt_RANLIB | |
19049 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19050 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19051 | ||
43e02a8a RW |
19052 | # Whether to use a lock for old archive extraction. |
19053 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19054 | ||
1cf3d07d SE |
19055 | # A C compiler. |
19056 | LTCC=$lt_CC | |
19057 | ||
19058 | # LTCC compiler flags. | |
19059 | LTCFLAGS=$lt_CFLAGS | |
19060 | ||
19061 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19062 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19063 | ||
19064 | # Transform the output of nm in a proper C declaration. | |
19065 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19066 | ||
19067 | # Transform the output of nm in a C name address pair. | |
19068 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19069 | ||
6b4a97ed PG |
19070 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
19071 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19072 | ||
1cf3d07d SE |
19073 | # The name of the directory that contains temporary libtool files. |
19074 | objdir=$objdir | |
19075 | ||
1cf3d07d SE |
19076 | # Used to examine libraries when file_magic_cmd begins with "file". |
19077 | MAGIC_CMD=$MAGIC_CMD | |
19078 | ||
19079 | # Must we lock files when doing compilation? | |
19080 | need_locks=$lt_need_locks | |
19081 | ||
6b4a97ed PG |
19082 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19083 | DSYMUTIL=$lt_DSYMUTIL | |
19084 | ||
19085 | # Tool to change global to local symbols on Mac OS X. | |
19086 | NMEDIT=$lt_NMEDIT | |
19087 | ||
19088 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19089 | LIPO=$lt_LIPO | |
19090 | ||
19091 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19092 | OTOOL=$lt_OTOOL | |
19093 | ||
19094 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19095 | OTOOL64=$lt_OTOOL64 | |
19096 | ||
1cf3d07d SE |
19097 | # Old archive suffix (normally "a"). |
19098 | libext=$libext | |
19099 | ||
19100 | # Shared library suffix (normally ".so"). | |
19101 | shrext_cmds=$lt_shrext_cmds | |
19102 | ||
19103 | # The commands to extract the exported symbol list from a shared archive. | |
19104 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19105 | ||
19106 | # Variables whose values should be saved in libtool wrapper scripts and | |
19107 | # restored at link time. | |
19108 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19109 | ||
19110 | # Do we need the "lib" prefix for modules? | |
19111 | need_lib_prefix=$need_lib_prefix | |
19112 | ||
19113 | # Do we need a version for libraries? | |
19114 | need_version=$need_version | |
19115 | ||
19116 | # Library versioning type. | |
19117 | version_type=$version_type | |
19118 | ||
19119 | # Shared library runtime path variable. | |
19120 | runpath_var=$runpath_var | |
19121 | ||
19122 | # Shared library path variable. | |
19123 | shlibpath_var=$shlibpath_var | |
19124 | ||
19125 | # Is shlibpath searched before the hard-coded library search path? | |
19126 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19127 | ||
19128 | # Format of library name prefix. | |
19129 | libname_spec=$lt_libname_spec | |
19130 | ||
19131 | # List of archive names. First name is the real one, the rest are links. | |
19132 | # The last name is the one that the linker finds with -lNAME | |
19133 | library_names_spec=$lt_library_names_spec | |
19134 | ||
19135 | # The coded name of the library, if different from the real name. | |
19136 | soname_spec=$lt_soname_spec | |
19137 | ||
43e02a8a RW |
19138 | # Permission mode override for installation of shared libraries. |
19139 | install_override_mode=$lt_install_override_mode | |
19140 | ||
1cf3d07d SE |
19141 | # Command to use after installation of a shared archive. |
19142 | postinstall_cmds=$lt_postinstall_cmds | |
19143 | ||
19144 | # Command to use after uninstallation of a shared archive. | |
19145 | postuninstall_cmds=$lt_postuninstall_cmds | |
19146 | ||
19147 | # Commands used to finish a libtool library installation in a directory. | |
19148 | finish_cmds=$lt_finish_cmds | |
19149 | ||
19150 | # As "finish_cmds", except a single script fragment to be evaled but | |
19151 | # not shown. | |
19152 | finish_eval=$lt_finish_eval | |
19153 | ||
19154 | # Whether we should hardcode library paths into libraries. | |
19155 | hardcode_into_libs=$hardcode_into_libs | |
19156 | ||
19157 | # Compile-time system search path for libraries. | |
19158 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19159 | ||
19160 | # Run-time system search path for libraries. | |
19161 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19162 | ||
19163 | # Whether dlopen is supported. | |
19164 | dlopen_support=$enable_dlopen | |
19165 | ||
19166 | # Whether dlopen of programs is supported. | |
19167 | dlopen_self=$enable_dlopen_self | |
19168 | ||
19169 | # Whether dlopen of statically linked programs is supported. | |
19170 | dlopen_self_static=$enable_dlopen_self_static | |
19171 | ||
19172 | # Commands to strip libraries. | |
19173 | old_striplib=$lt_old_striplib | |
19174 | striplib=$lt_striplib | |
19175 | ||
19176 | ||
19177 | # The linker used to build libraries. | |
19178 | LD=$lt_LD | |
19179 | ||
43e02a8a RW |
19180 | # How to create reloadable object files. |
19181 | reload_flag=$lt_reload_flag | |
19182 | reload_cmds=$lt_reload_cmds | |
19183 | ||
1cf3d07d SE |
19184 | # Commands used to build an old-style archive. |
19185 | old_archive_cmds=$lt_old_archive_cmds | |
19186 | ||
19187 | # A language specific compiler. | |
19188 | CC=$lt_compiler | |
19189 | ||
19190 | # Is the compiler the GNU compiler? | |
19191 | with_gcc=$GCC | |
19192 | ||
19193 | # Compiler flag to turn off builtin functions. | |
19194 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19195 | ||
19196 | # How to pass a linker flag through the compiler. | |
19197 | wl=$lt_lt_prog_compiler_wl | |
19198 | ||
19199 | # Additional compiler flags for building library objects. | |
19200 | pic_flag=$lt_lt_prog_compiler_pic | |
19201 | ||
19202 | # Compiler flag to prevent dynamic linking. | |
19203 | link_static_flag=$lt_lt_prog_compiler_static | |
19204 | ||
19205 | # Does compiler simultaneously support -c and -o options? | |
19206 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19207 | ||
19208 | # Whether or not to add -lc for building shared libraries. | |
19209 | build_libtool_need_lc=$archive_cmds_need_lc | |
19210 | ||
19211 | # Whether or not to disallow shared libs when runtime libs are static. | |
19212 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19213 | ||
19214 | # Compiler flag to allow reflexive dlopens. | |
19215 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19216 | ||
19217 | # Compiler flag to generate shared objects directly from archives. | |
19218 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19219 | ||
19220 | # Whether the compiler copes with passing no objects directly. | |
19221 | compiler_needs_object=$lt_compiler_needs_object | |
19222 | ||
19223 | # Create an old-style archive from a shared archive. | |
19224 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19225 | ||
19226 | # Create a temporary old-style archive to link instead of a shared archive. | |
19227 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19228 | ||
19229 | # Commands used to build a shared archive. | |
19230 | archive_cmds=$lt_archive_cmds | |
19231 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19232 | ||
19233 | # Commands used to build a loadable module if different from building | |
19234 | # a shared archive. | |
19235 | module_cmds=$lt_module_cmds | |
19236 | module_expsym_cmds=$lt_module_expsym_cmds | |
19237 | ||
19238 | # Whether we are building with GNU ld or not. | |
19239 | with_gnu_ld=$lt_with_gnu_ld | |
19240 | ||
19241 | # Flag that allows shared libraries with undefined symbols to be built. | |
19242 | allow_undefined_flag=$lt_allow_undefined_flag | |
19243 | ||
19244 | # Flag that enforces no undefined symbols. | |
19245 | no_undefined_flag=$lt_no_undefined_flag | |
19246 | ||
19247 | # Flag to hardcode \$libdir into a binary during linking. | |
19248 | # This must work even if \$libdir does not exist | |
19249 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19250 | ||
19251 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19252 | # during linking. This must work even if \$libdir does not exist. | |
19253 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19254 | ||
19255 | # Whether we need a single "-rpath" flag with a separated argument. | |
19256 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19257 | ||
19258 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19259 | # DIR into the resulting binary. | |
19260 | hardcode_direct=$hardcode_direct | |
19261 | ||
19262 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19263 | # DIR into the resulting binary and the resulting library dependency is | |
19264 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19265 | # library is relocated. | |
19266 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19267 | ||
19268 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19269 | # into the resulting binary. | |
19270 | hardcode_minus_L=$hardcode_minus_L | |
19271 | ||
19272 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19273 | # into the resulting binary. | |
19274 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19275 | ||
19276 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19277 | # into the library and all subsequent libraries and executables linked | |
19278 | # against it. | |
19279 | hardcode_automatic=$hardcode_automatic | |
19280 | ||
19281 | # Set to yes if linker adds runtime paths of dependent libraries | |
19282 | # to runtime path list. | |
19283 | inherit_rpath=$inherit_rpath | |
19284 | ||
19285 | # Whether libtool must link a program against all its dependency libraries. | |
19286 | link_all_deplibs=$link_all_deplibs | |
19287 | ||
19288 | # Fix the shell variable \$srcfile for the compiler. | |
19289 | fix_srcfile_path=$lt_fix_srcfile_path | |
19290 | ||
19291 | # Set to "yes" if exported symbols are required. | |
19292 | always_export_symbols=$always_export_symbols | |
19293 | ||
19294 | # The commands to list exported symbols. | |
19295 | export_symbols_cmds=$lt_export_symbols_cmds | |
19296 | ||
19297 | # Symbols that should not be listed in the preloaded symbols. | |
19298 | exclude_expsyms=$lt_exclude_expsyms | |
19299 | ||
19300 | # Symbols that must always be exported. | |
19301 | include_expsyms=$lt_include_expsyms | |
19302 | ||
19303 | # Commands necessary for linking programs (against libraries) with templates. | |
19304 | prelink_cmds=$lt_prelink_cmds | |
19305 | ||
19306 | # Specify filename containing input files. | |
19307 | file_list_spec=$lt_file_list_spec | |
19308 | ||
19309 | # How to hardcode a shared library path into an executable. | |
19310 | hardcode_action=$hardcode_action | |
19311 | ||
6b4a97ed PG |
19312 | # The directories searched by this compiler when creating a shared library. |
19313 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19314 | ||
1cf3d07d SE |
19315 | # Dependencies to place before and after the objects being linked to |
19316 | # create a shared library. | |
19317 | predep_objects=$lt_predep_objects | |
19318 | postdep_objects=$lt_postdep_objects | |
19319 | predeps=$lt_predeps | |
19320 | postdeps=$lt_postdeps | |
19321 | ||
19322 | # The library search path used internally by the compiler when linking | |
19323 | # a shared library. | |
19324 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19325 | ||
19326 | # ### END LIBTOOL CONFIG | |
19327 | ||
19328 | _LT_EOF | |
19329 | ||
19330 | case $host_os in | |
19331 | aix3*) | |
19332 | cat <<\_LT_EOF >> "$cfgfile" | |
19333 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19334 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19335 | # vanish in a puff of smoke. | |
19336 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19337 | COLLECT_NAMES= | |
19338 | export COLLECT_NAMES | |
19339 | fi | |
19340 | _LT_EOF | |
19341 | ;; | |
19342 | esac | |
19343 | ||
19344 | ||
19345 | ltmain="$ac_aux_dir/ltmain.sh" | |
19346 | ||
19347 | ||
19348 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19349 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19350 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19351 | # is reportedly fixed, but why not run on old versions too? | |
19352 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19353 | || (rm -f "$cfgfile"; exit 1) | |
19354 | ||
19355 | case $xsi_shell in | |
19356 | yes) | |
19357 | cat << \_LT_EOF >> "$cfgfile" | |
6b4a97ed | 19358 | |
1cf3d07d SE |
19359 | # func_dirname file append nondir_replacement |
19360 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19361 | # otherwise set result to NONDIR_REPLACEMENT. | |
19362 | func_dirname () | |
19363 | { | |
19364 | case ${1} in | |
19365 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19366 | * ) func_dirname_result="${3}" ;; | |
19367 | esac | |
19368 | } | |
19369 | ||
19370 | # func_basename file | |
19371 | func_basename () | |
19372 | { | |
19373 | func_basename_result="${1##*/}" | |
19374 | } | |
19375 | ||
6b4a97ed PG |
19376 | # func_dirname_and_basename file append nondir_replacement |
19377 | # perform func_basename and func_dirname in a single function | |
19378 | # call: | |
19379 | # dirname: Compute the dirname of FILE. If nonempty, | |
19380 | # add APPEND to the result, otherwise set result | |
19381 | # to NONDIR_REPLACEMENT. | |
19382 | # value returned in "$func_dirname_result" | |
19383 | # basename: Compute filename of FILE. | |
19384 | # value retuned in "$func_basename_result" | |
19385 | # Implementation must be kept synchronized with func_dirname | |
19386 | # and func_basename. For efficiency, we do not delegate to | |
19387 | # those functions but instead duplicate the functionality here. | |
19388 | func_dirname_and_basename () | |
19389 | { | |
19390 | case ${1} in | |
19391 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19392 | * ) func_dirname_result="${3}" ;; | |
19393 | esac | |
19394 | func_basename_result="${1##*/}" | |
19395 | } | |
19396 | ||
1cf3d07d SE |
19397 | # func_stripname prefix suffix name |
19398 | # strip PREFIX and SUFFIX off of NAME. | |
19399 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19400 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19401 | # dot (in which case that matches only a dot). | |
19402 | func_stripname () | |
19403 | { | |
19404 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19405 | # positional parameters, so assign one to ordinary parameter first. | |
19406 | func_stripname_result=${3} | |
19407 | func_stripname_result=${func_stripname_result#"${1}"} | |
19408 | func_stripname_result=${func_stripname_result%"${2}"} | |
19409 | } | |
19410 | ||
19411 | # func_opt_split | |
19412 | func_opt_split () | |
19413 | { | |
19414 | func_opt_split_opt=${1%%=*} | |
19415 | func_opt_split_arg=${1#*=} | |
19416 | } | |
19417 | ||
19418 | # func_lo2o object | |
19419 | func_lo2o () | |
19420 | { | |
19421 | case ${1} in | |
19422 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19423 | *) func_lo2o_result=${1} ;; | |
19424 | esac | |
19425 | } | |
6b4a97ed PG |
19426 | |
19427 | # func_xform libobj-or-source | |
19428 | func_xform () | |
19429 | { | |
19430 | func_xform_result=${1%.*}.lo | |
19431 | } | |
19432 | ||
19433 | # func_arith arithmetic-term... | |
19434 | func_arith () | |
19435 | { | |
19436 | func_arith_result=$(( $* )) | |
19437 | } | |
19438 | ||
19439 | # func_len string | |
19440 | # STRING may not start with a hyphen. | |
19441 | func_len () | |
19442 | { | |
19443 | func_len_result=${#1} | |
19444 | } | |
19445 | ||
1cf3d07d SE |
19446 | _LT_EOF |
19447 | ;; | |
19448 | *) # Bourne compatible functions. | |
19449 | cat << \_LT_EOF >> "$cfgfile" | |
6b4a97ed | 19450 | |
1cf3d07d SE |
19451 | # func_dirname file append nondir_replacement |
19452 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19453 | # otherwise set result to NONDIR_REPLACEMENT. | |
19454 | func_dirname () | |
19455 | { | |
19456 | # Extract subdirectory from the argument. | |
43e02a8a | 19457 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
19458 | if test "X$func_dirname_result" = "X${1}"; then |
19459 | func_dirname_result="${3}" | |
19460 | else | |
19461 | func_dirname_result="$func_dirname_result${2}" | |
19462 | fi | |
19463 | } | |
19464 | ||
19465 | # func_basename file | |
19466 | func_basename () | |
19467 | { | |
43e02a8a | 19468 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
19469 | } |
19470 | ||
6b4a97ed | 19471 | |
1cf3d07d SE |
19472 | # func_stripname prefix suffix name |
19473 | # strip PREFIX and SUFFIX off of NAME. | |
19474 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19475 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19476 | # dot (in which case that matches only a dot). | |
19477 | # func_strip_suffix prefix name | |
19478 | func_stripname () | |
19479 | { | |
19480 | case ${2} in | |
43e02a8a RW |
19481 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
19482 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
19483 | esac |
19484 | } | |
19485 | ||
19486 | # sed scripts: | |
19487 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19488 | my_sed_long_arg='1s/^-[^=]*=//' | |
19489 | ||
19490 | # func_opt_split | |
19491 | func_opt_split () | |
19492 | { | |
43e02a8a RW |
19493 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
19494 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
19495 | } |
19496 | ||
19497 | # func_lo2o object | |
19498 | func_lo2o () | |
19499 | { | |
43e02a8a | 19500 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 19501 | } |
6b4a97ed PG |
19502 | |
19503 | # func_xform libobj-or-source | |
19504 | func_xform () | |
19505 | { | |
43e02a8a | 19506 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
6b4a97ed PG |
19507 | } |
19508 | ||
19509 | # func_arith arithmetic-term... | |
19510 | func_arith () | |
19511 | { | |
19512 | func_arith_result=`expr "$@"` | |
19513 | } | |
19514 | ||
19515 | # func_len string | |
19516 | # STRING may not start with a hyphen. | |
19517 | func_len () | |
19518 | { | |
19519 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19520 | } | |
19521 | ||
1cf3d07d SE |
19522 | _LT_EOF |
19523 | esac | |
19524 | ||
19525 | case $lt_shell_append in | |
19526 | yes) | |
19527 | cat << \_LT_EOF >> "$cfgfile" | |
19528 | ||
19529 | # func_append var value | |
19530 | # Append VALUE to the end of shell variable VAR. | |
19531 | func_append () | |
19532 | { | |
19533 | eval "$1+=\$2" | |
19534 | } | |
19535 | _LT_EOF | |
19536 | ;; | |
19537 | *) | |
19538 | cat << \_LT_EOF >> "$cfgfile" | |
19539 | ||
19540 | # func_append var value | |
19541 | # Append VALUE to the end of shell variable VAR. | |
19542 | func_append () | |
19543 | { | |
19544 | eval "$1=\$$1\$2" | |
19545 | } | |
6b4a97ed | 19546 | |
1cf3d07d SE |
19547 | _LT_EOF |
19548 | ;; | |
19549 | esac | |
19550 | ||
19551 | ||
19552 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19553 | || (rm -f "$cfgfile"; exit 1) | |
19554 | ||
19555 | mv -f "$cfgfile" "$ofile" || | |
19556 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19557 | chmod +x "$ofile" | |
19558 | ||
19559 | ||
19560 | cat <<_LT_EOF >> "$ofile" | |
19561 | ||
19562 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
19563 | ||
19564 | # The linker used to build libraries. | |
19565 | LD=$lt_LD_FC | |
19566 | ||
43e02a8a RW |
19567 | # How to create reloadable object files. |
19568 | reload_flag=$lt_reload_flag_FC | |
19569 | reload_cmds=$lt_reload_cmds_FC | |
19570 | ||
1cf3d07d SE |
19571 | # Commands used to build an old-style archive. |
19572 | old_archive_cmds=$lt_old_archive_cmds_FC | |
19573 | ||
19574 | # A language specific compiler. | |
19575 | CC=$lt_compiler_FC | |
19576 | ||
19577 | # Is the compiler the GNU compiler? | |
19578 | with_gcc=$GCC_FC | |
19579 | ||
19580 | # Compiler flag to turn off builtin functions. | |
19581 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
19582 | ||
19583 | # How to pass a linker flag through the compiler. | |
19584 | wl=$lt_lt_prog_compiler_wl_FC | |
19585 | ||
19586 | # Additional compiler flags for building library objects. | |
19587 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
19588 | ||
19589 | # Compiler flag to prevent dynamic linking. | |
19590 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
19591 | ||
19592 | # Does compiler simultaneously support -c and -o options? | |
19593 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
19594 | ||
19595 | # Whether or not to add -lc for building shared libraries. | |
19596 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
19597 | ||
19598 | # Whether or not to disallow shared libs when runtime libs are static. | |
19599 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
19600 | ||
19601 | # Compiler flag to allow reflexive dlopens. | |
19602 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
19603 | ||
19604 | # Compiler flag to generate shared objects directly from archives. | |
19605 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
19606 | ||
19607 | # Whether the compiler copes with passing no objects directly. | |
19608 | compiler_needs_object=$lt_compiler_needs_object_FC | |
19609 | ||
19610 | # Create an old-style archive from a shared archive. | |
19611 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
19612 | ||
19613 | # Create a temporary old-style archive to link instead of a shared archive. | |
19614 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
19615 | ||
19616 | # Commands used to build a shared archive. | |
19617 | archive_cmds=$lt_archive_cmds_FC | |
19618 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
19619 | ||
19620 | # Commands used to build a loadable module if different from building | |
19621 | # a shared archive. | |
19622 | module_cmds=$lt_module_cmds_FC | |
19623 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
19624 | ||
19625 | # Whether we are building with GNU ld or not. | |
19626 | with_gnu_ld=$lt_with_gnu_ld_FC | |
19627 | ||
19628 | # Flag that allows shared libraries with undefined symbols to be built. | |
19629 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
19630 | ||
19631 | # Flag that enforces no undefined symbols. | |
19632 | no_undefined_flag=$lt_no_undefined_flag_FC | |
19633 | ||
19634 | # Flag to hardcode \$libdir into a binary during linking. | |
19635 | # This must work even if \$libdir does not exist | |
19636 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
19637 | ||
19638 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19639 | # during linking. This must work even if \$libdir does not exist. | |
19640 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
19641 | ||
19642 | # Whether we need a single "-rpath" flag with a separated argument. | |
19643 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
19644 | ||
19645 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19646 | # DIR into the resulting binary. | |
19647 | hardcode_direct=$hardcode_direct_FC | |
19648 | ||
19649 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19650 | # DIR into the resulting binary and the resulting library dependency is | |
19651 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19652 | # library is relocated. | |
19653 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
19654 | ||
19655 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19656 | # into the resulting binary. | |
19657 | hardcode_minus_L=$hardcode_minus_L_FC | |
19658 | ||
19659 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19660 | # into the resulting binary. | |
19661 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
19662 | ||
19663 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19664 | # into the library and all subsequent libraries and executables linked | |
19665 | # against it. | |
19666 | hardcode_automatic=$hardcode_automatic_FC | |
19667 | ||
19668 | # Set to yes if linker adds runtime paths of dependent libraries | |
19669 | # to runtime path list. | |
19670 | inherit_rpath=$inherit_rpath_FC | |
19671 | ||
19672 | # Whether libtool must link a program against all its dependency libraries. | |
19673 | link_all_deplibs=$link_all_deplibs_FC | |
19674 | ||
19675 | # Fix the shell variable \$srcfile for the compiler. | |
19676 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
19677 | ||
19678 | # Set to "yes" if exported symbols are required. | |
19679 | always_export_symbols=$always_export_symbols_FC | |
19680 | ||
19681 | # The commands to list exported symbols. | |
19682 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
19683 | ||
19684 | # Symbols that should not be listed in the preloaded symbols. | |
19685 | exclude_expsyms=$lt_exclude_expsyms_FC | |
19686 | ||
19687 | # Symbols that must always be exported. | |
19688 | include_expsyms=$lt_include_expsyms_FC | |
19689 | ||
19690 | # Commands necessary for linking programs (against libraries) with templates. | |
19691 | prelink_cmds=$lt_prelink_cmds_FC | |
19692 | ||
19693 | # Specify filename containing input files. | |
19694 | file_list_spec=$lt_file_list_spec_FC | |
19695 | ||
19696 | # How to hardcode a shared library path into an executable. | |
19697 | hardcode_action=$hardcode_action_FC | |
19698 | ||
6b4a97ed PG |
19699 | # The directories searched by this compiler when creating a shared library. |
19700 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
19701 | ||
1cf3d07d SE |
19702 | # Dependencies to place before and after the objects being linked to |
19703 | # create a shared library. | |
19704 | predep_objects=$lt_predep_objects_FC | |
19705 | postdep_objects=$lt_postdep_objects_FC | |
19706 | predeps=$lt_predeps_FC | |
19707 | postdeps=$lt_postdeps_FC | |
19708 | ||
19709 | # The library search path used internally by the compiler when linking | |
19710 | # a shared library. | |
19711 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
19712 | ||
19713 | # ### END LIBTOOL TAG CONFIG: FC | |
19714 | _LT_EOF | |
19715 | ||
953ff289 | 19716 | ;; |
5213506e | 19717 | |
953ff289 | 19718 | esac |
5213506e | 19719 | done # for ac_tag |
953ff289 | 19720 | |
953ff289 | 19721 | |
5213506e | 19722 | as_fn_exit 0 |
953ff289 | 19723 | _ACEOF |
953ff289 DN |
19724 | ac_clean_files=$ac_clean_files_save |
19725 | ||
5213506e | 19726 | test $ac_write_fail = 0 || |
22e05272 | 19727 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19728 | |
953ff289 DN |
19729 | |
19730 | # configure is writing to config.log, and then calls config.status. | |
19731 | # config.status does its own redirection, appending to config.log. | |
19732 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19733 | # by configure, so config.status won't be able to write to it; its | |
19734 | # output is simply discarded. So we exec the FD to /dev/null, | |
19735 | # effectively closing config.log, so it can be properly (re)opened and | |
19736 | # appended to by config.status. When coming back to configure, we | |
19737 | # need to make the FD available again. | |
19738 | if test "$no_create" != yes; then | |
19739 | ac_cs_success=: | |
19740 | ac_config_status_args= | |
19741 | test "$silent" = yes && | |
19742 | ac_config_status_args="$ac_config_status_args --quiet" | |
19743 | exec 5>/dev/null | |
19744 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19745 | exec 5>>config.log | |
19746 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19747 | # would make configure fail if this is the last instruction. | |
22e05272 | 19748 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
19749 | fi |
19750 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19752 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
953ff289 DN |
19753 | fi |
19754 |