configure revision 1.12 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
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.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
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
31 fi
32
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 }
79 fi
80
81
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.
90 as_myself=
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
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
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
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;}
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
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
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
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
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
219 do
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 :
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
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."
274 else
275 $as_echo "$0: Please tell bug-autoconf (at] 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."
279 fi
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"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
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
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
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
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
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
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
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
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
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
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'`
464
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
472
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 |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
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; }
495
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
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
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
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';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
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.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
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
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME='libgomp'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_header_list=
632 ac_func_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 get_gcc_base_ver
638 OMP_NEST_LOCK_25_KIND
639 OMP_LOCK_25_KIND
640 OMP_NEST_LOCK_25_ALIGN
641 OMP_NEST_LOCK_25_SIZE
642 OMP_LOCK_25_ALIGN
643 OMP_LOCK_25_SIZE
644 OMP_NEST_LOCK_KIND
645 OMP_LOCK_KIND
646 OMP_NEST_LOCK_ALIGN
647 OMP_NEST_LOCK_SIZE
648 OMP_LOCK_ALIGN
649 OMP_LOCK_SIZE
650 USE_FORTRAN_FALSE
651 USE_FORTRAN_TRUE
652 link_gomp
653 XLDFLAGS
654 XCFLAGS
655 config_path
656 CPU_COUNT
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
663 OPT_LDFLAGS
664 SECTION_LDFLAGS
665 PLUGIN_GCN_FALSE
666 PLUGIN_GCN_TRUE
667 PLUGIN_HSA_FALSE
668 PLUGIN_HSA_TRUE
669 PLUGIN_NVPTX_FALSE
670 PLUGIN_NVPTX_TRUE
671 offload_additional_lib_paths
672 offload_additional_options
673 offload_targets
674 offload_plugins
675 PLUGIN_GCN_LIBS
676 PLUGIN_GCN_LDFLAGS
677 PLUGIN_GCN_CPPFLAGS
678 PLUGIN_GCN
679 PLUGIN_HSA_LIBS
680 PLUGIN_HSA_LDFLAGS
681 PLUGIN_HSA_CPPFLAGS
682 PLUGIN_HSA
683 HSA_RUNTIME_LIB
684 HSA_RUNTIME_INCLUDE
685 PLUGIN_NVPTX_LIBS
686 PLUGIN_NVPTX_LDFLAGS
687 PLUGIN_NVPTX_CPPFLAGS
688 PLUGIN_NVPTX
689 CUDA_DRIVER_LIB
690 CUDA_DRIVER_INCLUDE
691 libtool_VERSION
692 ac_ct_FC
693 FCFLAGS
694 FC
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 enable_static
699 enable_shared
700 lt_host_flags
701 CPP
702 OTOOL64
703 OTOOL
704 LIPO
705 NMEDIT
706 DSYMUTIL
707 OBJDUMP
708 LN_S
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LD
713 FGREP
714 EGREP
715 GREP
716 SED
717 LIBTOOL
718 BUILD_INFO_FALSE
719 BUILD_INFO_TRUE
720 PERL
721 RANLIB
722 AR
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 toolexeclibdir
741 toolexecdir
742 multi_basedir
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 target_os
771 target_vendor
772 target_cpu
773 target
774 host_os
775 host_vendor
776 host_cpu
777 host
778 build_os
779 build_vendor
780 build_cpu
781 build
782 GENINSRC_FALSE
783 GENINSRC_TRUE
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 enable_version_specific_runtime_libs
826 enable_generated_files_in_srcdir
827 enable_silent_rules
828 enable_multilib
829 with_toolexeclibdir
830 enable_dependency_tracking
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 with_gnu_ld
836 enable_libtool_lock
837 enable_maintainer_mode
838 with_cuda_driver
839 with_cuda_driver_include
840 with_cuda_driver_lib
841 with_hsa_runtime
842 with_hsa_runtime_include
843 with_hsa_runtime_lib
844 enable_linux_futex
845 enable_tls
846 enable_symvers
847 enable_cet
848 with_gcc_major_version_only
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CPP
854 CPPFLAGS
855 FC
856 FCFLAGS
857 LDFLAGS
858 LIBS'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
908
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
919
920 case $ac_option in
921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *=) ac_optarg= ;;
923 *) ac_optarg=yes ;;
924 esac
925
926 # Accept the important Cygnus configure options, so we can diagnose typos.
927
928 case $ac_dashdash$ac_option in
929 --)
930 ac_dashdash=yes ;;
931
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 bindir=$ac_optarg ;;
936
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
941
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
948
949 --config-cache | -C)
950 cache_file=config.cache ;;
951
952 -datadir | --datadir | --datadi | --datad)
953 ac_prev=datadir ;;
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
956
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
963
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
989
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1014
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
1018
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1025
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1030
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1036
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1043
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1048
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1053
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1060
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1065
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1072
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1077
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
1081
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1084 no_create=yes ;;
1085
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
1089
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1098
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1103
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1110
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1117
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1134
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1139
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1144
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
1244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 ;;
1265
1266 esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1287 do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 $as_echo X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364 else
1365 ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking ...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1453
1454 cat <<\_ACEOF
1455
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 --target=TARGET configure for building compilers for TARGET [HOST]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-version-specific-runtime-libs
1479 Specify that runtime libraries should be installed
1480 in a compiler-specific directory [default=no]
1481 --enable-generated-files-in-srcdir
1482 put copies of generated files in source dir intended
1483 for creating source tarballs for users without
1484 texinfo bison or flex. [default=no]
1485 --enable-silent-rules less verbose build output (undo: "make V=1")
1486 --disable-silent-rules verbose build output (undo: "make V=0")
1487 --enable-multilib build many library versions (default)
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
1500 --enable-linux-futex use the Linux futex system call [default=default]
1501 --enable-tls Use thread-local storage [default=yes]
1502 --enable-symvers=STYLE enables symbol versioning of the shared library
1503 [default=yes]
1504 --enable-cet enable Intel CET in target libraries [default=no]
1505
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-toolexeclibdir=DIR
1510 install libraries built with a cross compiler within
1511 DIR
1512 --with-pic try to use only PIC/non-PIC objects [default=use
1513 both]
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1515 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1516 package. Equivalent to
1517 --with-cuda-driver-include=PATH/include plus
1518 --with-cuda-driver-lib=PATH/lib
1519 --with-cuda-driver-include=PATH
1520 specify directory for installed CUDA driver include
1521 files
1522 --with-cuda-driver-lib=PATH
1523 specify directory for the installed CUDA driver
1524 library
1525 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1526 package. Equivalent to
1527 --with-hsa-runtime-include=PATH/include plus
1528 --with-hsa-runtime-lib=PATH/lib
1529 --with-hsa-runtime-include=PATH
1530 specify directory for installed HSA run-time include
1531 files
1532 --with-hsa-runtime-lib=PATH
1533 specify directory for the installed HSA run-time
1534 library
1535 --with-gcc-major-version-only
1536 use only GCC major number in filesystem paths
1537
1538 Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1546 CPP C preprocessor
1547 FC Fortran compiler command
1548 FCFLAGS Fortran compiler flags
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to the package provider.
1554 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1555 General help using GNU software: <http://www.gnu.org/gethelp/>.
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565 continue
1566 ac_builddir=.
1567
1568 case "$ac_dir" in
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *)
1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 esac ;;
1578 esac
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1583
1584 case $srcdir in
1585 .) # We are building in place.
1586 ac_srcdir=.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1593 *) # Relative name.
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 esac
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1608 else
1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610 fi || ac_status=$?
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1612 done
1613 fi
1614
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1617 cat <<\_ACEOF
1618 GNU Offloading and Multi Processing Runtime Library configure 1.0
1619 generated by GNU Autoconf 2.69
1620
1621 Copyright (C) 2012 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1624 _ACEOF
1625 exit
1626 fi
1627
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1631
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_compile
1669
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_link
1715
1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717 # -------------------------------------------------------
1718 # Tests whether HEADER exists and can be compiled using the include files in
1719 # INCLUDES, setting the cache variable VAR accordingly.
1720 ac_fn_c_check_header_compile ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727 else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 $4
1731 #include <$2>
1732 _ACEOF
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 eval "$3=yes"
1735 else
1736 eval "$3=no"
1737 fi
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 fi
1740 eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745 } # ac_fn_c_check_header_compile
1746
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_cpp ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778 fi
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_cpp
1783
1784 # ac_fn_c_try_run LINENO
1785 # ----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787 # that executables *can* be run.
1788 ac_fn_c_try_run ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=$ac_status
1819 fi
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_run
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892
1893 # ac_fn_fc_try_compile LINENO
1894 # ---------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_fc_try_compile ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext
1900 if { { ac_try="$ac_compile"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_fc_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925 fi
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_fc_try_compile
1930
1931 # ac_fn_fc_try_link LINENO
1932 # ------------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_fc_try_link ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 rm -f conftest.$ac_objext conftest$ac_exeext
1938 if { { ac_try="$ac_link"
1939 case "(($ac_try" in
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>conftest.err
1946 ac_status=$?
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1951 fi
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && {
1954 test -z "$ac_fc_werror_flag" ||
1955 test ! -s conftest.err
1956 } && test -s conftest$ac_exeext && {
1957 test "$cross_compiling" = yes ||
1958 test -x conftest$ac_exeext
1959 }; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ac_retval=1
1966 fi
1967 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969 # interfere with the next link command; also delete a directory that is
1970 # left behind by Apple's compiler. We do this before executing the actions.
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1974
1975 } # ac_fn_fc_try_link
1976
1977 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1980 # the include files in INCLUDES and setting the cache variable VAR
1981 # accordingly.
1982 ac_fn_c_check_header_mongrel ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if eval \${$3+:} false; then :
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 else
1995 # Is the header compilable?
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1997 $as_echo_n "checking $2 usability... " >&6; }
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 #include <$2>
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_header_compiler=yes
2005 else
2006 ac_header_compiler=no
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2010 $as_echo "$ac_header_compiler" >&6; }
2011
2012 # Is the header present?
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2014 $as_echo_n "checking $2 presence... " >&6; }
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 #include <$2>
2018 _ACEOF
2019 if ac_fn_c_try_cpp "$LINENO"; then :
2020 ac_header_preproc=yes
2021 else
2022 ac_header_preproc=no
2023 fi
2024 rm -f conftest.err conftest.i conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2026 $as_echo "$ac_header_preproc" >&6; }
2027
2028 # So? What about this header?
2029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2030 yes:no: )
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2032 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 ;;
2036 no:yes:* )
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2038 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2040 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2042 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2044 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 ;;
2048 esac
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 eval "$3=\$ac_header_compiler"
2055 fi
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 fi
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062 } # ac_fn_c_check_header_mongrel
2063
2064 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2065 # -------------------------------------------
2066 # Tests whether TYPE exists after having included INCLUDES, setting cache
2067 # variable VAR accordingly.
2068 ac_fn_c_check_type ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 eval "$3=no"
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 int
2081 main ()
2082 {
2083 if (sizeof ($2))
2084 return 0;
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof (($2)))
2097 return 0;
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103
2104 else
2105 eval "$3=yes"
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 fi
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116 } # ac_fn_c_check_type
2117
2118 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2119 # --------------------------------------------
2120 # Tries to find the compile-time value of EXPR in a program that includes
2121 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2122 # computed
2123 ac_fn_c_compute_int ()
2124 {
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 if test "$cross_compiling" = yes; then
2127 # Depending upon the size, compute the lo and hi bounds.
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 $4
2131 int
2132 main ()
2133 {
2134 static int test_array [1 - 2 * !(($2) >= 0)];
2135 test_array [0] = 0;
2136 return test_array [0];
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_lo=0 ac_mid=0
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $4
2148 int
2149 main ()
2150 {
2151 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2152 test_array [0] = 0;
2153 return test_array [0];
2154
2155 ;
2156 return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160 ac_hi=$ac_mid; break
2161 else
2162 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2163 if test $ac_lo -le $ac_mid; then
2164 ac_lo= ac_hi=
2165 break
2166 fi
2167 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 done
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($2) < 0)];
2179 test_array [0] = 0;
2180 return test_array [0];
2181
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_hi=-1 ac_mid=-1
2188 while :; do
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 $4
2192 int
2193 main ()
2194 {
2195 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2196 test_array [0] = 0;
2197 return test_array [0];
2198
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_lo=$ac_mid; break
2205 else
2206 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2207 if test $ac_mid -le $ac_hi; then
2208 ac_lo= ac_hi=
2209 break
2210 fi
2211 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
2215 else
2216 ac_lo= ac_hi=
2217 fi
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 fi
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 # Binary search between lo and hi bounds.
2222 while test "x$ac_lo" != "x$ac_hi"; do
2223 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 int
2228 main ()
2229 {
2230 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2231 test_array [0] = 0;
2232 return test_array [0];
2233
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_hi=$ac_mid
2240 else
2241 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 done
2245 case $ac_lo in #((
2246 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2247 '') ac_retval=1 ;;
2248 esac
2249 else
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 $4
2253 static long int longval () { return $2; }
2254 static unsigned long int ulongval () { return $2; }
2255 #include <stdio.h>
2256 #include <stdlib.h>
2257 int
2258 main ()
2259 {
2260
2261 FILE *f = fopen ("conftest.val", "w");
2262 if (! f)
2263 return 1;
2264 if (($2) < 0)
2265 {
2266 long int i = longval ();
2267 if (i != ($2))
2268 return 1;
2269 fprintf (f, "%ld", i);
2270 }
2271 else
2272 {
2273 unsigned long int i = ulongval ();
2274 if (i != ($2))
2275 return 1;
2276 fprintf (f, "%lu", i);
2277 }
2278 /* Do not output a trailing newline, as this causes \r\n confusion
2279 on some platforms. */
2280 return ferror (f) || fclose (f) != 0;
2281
2282 ;
2283 return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_run "$LINENO"; then :
2287 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2288 else
2289 ac_retval=1
2290 fi
2291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2292 conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 rm -f conftest.val
2294
2295 fi
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 as_fn_set_status $ac_retval
2298
2299 } # ac_fn_c_compute_int
2300 cat >config.log <<_ACEOF
2301 This file contains any messages produced by compilers while
2302 running configure, to aid debugging if configure makes a mistake.
2303
2304 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2305 generated by GNU Autoconf 2.69. Invocation command line was
2306
2307 $ $0 $@
2308
2309 _ACEOF
2310 exec 5>>config.log
2311 {
2312 cat <<_ASUNAME
2313 ## --------- ##
2314 ## Platform. ##
2315 ## --------- ##
2316
2317 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2318 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2319 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2320 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2321 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2322
2323 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2324 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2325
2326 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2327 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2328 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2329 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2330 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2331 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2332 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2333
2334 _ASUNAME
2335
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 $as_echo "PATH: $as_dir"
2342 done
2343 IFS=$as_save_IFS
2344
2345 } >&5
2346
2347 cat >&5 <<_ACEOF
2348
2349
2350 ## ----------- ##
2351 ## Core tests. ##
2352 ## ----------- ##
2353
2354 _ACEOF
2355
2356
2357 # Keep a trace of the command line.
2358 # Strip out --no-create and --no-recursion so they do not pile up.
2359 # Strip out --silent because we don't want to record it for future runs.
2360 # Also quote any args containing shell meta-characters.
2361 # Make two passes to allow for proper duplicate-argument suppression.
2362 ac_configure_args=
2363 ac_configure_args0=
2364 ac_configure_args1=
2365 ac_must_keep_next=false
2366 for ac_pass in 1 2
2367 do
2368 for ac_arg
2369 do
2370 case $ac_arg in
2371 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2373 | -silent | --silent | --silen | --sile | --sil)
2374 continue ;;
2375 *\'*)
2376 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2377 esac
2378 case $ac_pass in
2379 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2380 2)
2381 as_fn_append ac_configure_args1 " '$ac_arg'"
2382 if test $ac_must_keep_next = true; then
2383 ac_must_keep_next=false # Got value, back to normal.
2384 else
2385 case $ac_arg in
2386 *=* | --config-cache | -C | -disable-* | --disable-* \
2387 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2388 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2389 | -with-* | --with-* | -without-* | --without-* | --x)
2390 case "$ac_configure_args0 " in
2391 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2392 esac
2393 ;;
2394 -* ) ac_must_keep_next=true ;;
2395 esac
2396 fi
2397 as_fn_append ac_configure_args " '$ac_arg'"
2398 ;;
2399 esac
2400 done
2401 done
2402 { ac_configure_args0=; unset ac_configure_args0;}
2403 { ac_configure_args1=; unset ac_configure_args1;}
2404
2405 # When interrupted or exit'd, cleanup temporary files, and complete
2406 # config.log. We remove comments because anyway the quotes in there
2407 # would cause problems or look ugly.
2408 # WARNING: Use '\'' to represent an apostrophe within the trap.
2409 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2410 trap 'exit_status=$?
2411 # Save into config.log some information that might help in debugging.
2412 {
2413 echo
2414
2415 $as_echo "## ---------------- ##
2416 ## Cache variables. ##
2417 ## ---------------- ##"
2418 echo
2419 # The following way of writing the cache mishandles newlines in values,
2420 (
2421 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2422 eval ac_val=\$$ac_var
2423 case $ac_val in #(
2424 *${as_nl}*)
2425 case $ac_var in #(
2426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2428 esac
2429 case $ac_var in #(
2430 _ | IFS | as_nl) ;; #(
2431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2432 *) { eval $ac_var=; unset $ac_var;} ;;
2433 esac ;;
2434 esac
2435 done
2436 (set) 2>&1 |
2437 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2438 *${as_nl}ac_space=\ *)
2439 sed -n \
2440 "s/'\''/'\''\\\\'\'''\''/g;
2441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2442 ;; #(
2443 *)
2444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2445 ;;
2446 esac |
2447 sort
2448 )
2449 echo
2450
2451 $as_echo "## ----------------- ##
2452 ## Output variables. ##
2453 ## ----------------- ##"
2454 echo
2455 for ac_var in $ac_subst_vars
2456 do
2457 eval ac_val=\$$ac_var
2458 case $ac_val in
2459 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460 esac
2461 $as_echo "$ac_var='\''$ac_val'\''"
2462 done | sort
2463 echo
2464
2465 if test -n "$ac_subst_files"; then
2466 $as_echo "## ------------------- ##
2467 ## File substitutions. ##
2468 ## ------------------- ##"
2469 echo
2470 for ac_var in $ac_subst_files
2471 do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2479 fi
2480
2481 if test -s confdefs.h; then
2482 $as_echo "## ----------- ##
2483 ## confdefs.h. ##
2484 ## ----------- ##"
2485 echo
2486 cat confdefs.h
2487 echo
2488 fi
2489 test "$ac_signal" != 0 &&
2490 $as_echo "$as_me: caught signal $ac_signal"
2491 $as_echo "$as_me: exit $exit_status"
2492 } >&5
2493 rm -f core *.core core.conftest.* &&
2494 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2495 exit $exit_status
2496 ' 0
2497 for ac_signal in 1 2 13 15; do
2498 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2499 done
2500 ac_signal=0
2501
2502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2503 rm -f -r conftest* confdefs.h
2504
2505 $as_echo "/* confdefs.h */" > confdefs.h
2506
2507 # Predefined preprocessor variables.
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_NAME "$PACKAGE_NAME"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_STRING "$PACKAGE_STRING"
2523 _ACEOF
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2527 _ACEOF
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_URL "$PACKAGE_URL"
2531 _ACEOF
2532
2533
2534 # Let the site file select an alternate cache file if it wants to.
2535 # Prefer an explicitly selected file to automatically selected ones.
2536 ac_site_file1=NONE
2537 ac_site_file2=NONE
2538 if test -n "$CONFIG_SITE"; then
2539 # We do not want a PATH search for config.site.
2540 case $CONFIG_SITE in #((
2541 -*) ac_site_file1=./$CONFIG_SITE;;
2542 */*) ac_site_file1=$CONFIG_SITE;;
2543 *) ac_site_file1=./$CONFIG_SITE;;
2544 esac
2545 elif test "x$prefix" != xNONE; then
2546 ac_site_file1=$prefix/share/config.site
2547 ac_site_file2=$prefix/etc/config.site
2548 else
2549 ac_site_file1=$ac_default_prefix/share/config.site
2550 ac_site_file2=$ac_default_prefix/etc/config.site
2551 fi
2552 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2553 do
2554 test "x$ac_site_file" = xNONE && continue
2555 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2557 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2558 sed 's/^/| /' "$ac_site_file" >&5
2559 . "$ac_site_file" \
2560 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 as_fn_error $? "failed to load site script $ac_site_file
2563 See \`config.log' for more details" "$LINENO" 5; }
2564 fi
2565 done
2566
2567 if test -r "$cache_file"; then
2568 # Some versions of bash will fail to source /dev/null (special files
2569 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2570 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572 $as_echo "$as_me: loading cache $cache_file" >&6;}
2573 case $cache_file in
2574 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575 *) . "./$cache_file";;
2576 esac
2577 fi
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580 $as_echo "$as_me: creating cache $cache_file" >&6;}
2581 >$cache_file
2582 fi
2583
2584 as_fn_append ac_header_list " unistd.h"
2585 as_fn_append ac_func_list " secure_getenv"
2586 as_fn_append ac_func_list " __secure_getenv"
2587 as_fn_append ac_func_list " getuid"
2588 as_fn_append ac_func_list " geteuid"
2589 as_fn_append ac_func_list " getgid"
2590 as_fn_append ac_func_list " getegid"
2591 # Check that the precious variables saved in the cache have kept the same
2592 # value.
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2600 set,)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,set)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,);;
2609 *)
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2627 fi;;
2628 esac
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2631 case $ac_new_val in
2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2634 esac
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638 esac
2639 fi
2640 done
2641 if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647 fi
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2651
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657
2658
2659
2660
2661
2662 ac_config_headers="$ac_config_headers config.h"
2663
2664
2665 # -------
2666 # Options
2667 # -------
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2670 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2671 # Check whether --enable-version-specific-runtime-libs was given.
2672 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2673 enableval=$enable_version_specific_runtime_libs;
2674 case "$enableval" in
2675 yes|no) ;;
2676 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2677 esac
2678
2679 else
2680 enable_version_specific_runtime_libs=no
2681 fi
2682
2683
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2685 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2686
2687 # We would like our source tree to be readonly. However when releases or
2688 # pre-releases are generated, the flex/bison generated files as well as the
2689 # various formats of manuals need to be included along with the rest of the
2690 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2691 # just that.
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2693 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2694 # Check whether --enable-generated-files-in-srcdir was given.
2695 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2696 enableval=$enable_generated_files_in_srcdir;
2697 case "$enableval" in
2698 yes|no) ;;
2699 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2700 esac
2701
2702 else
2703 enable_generated_files_in_srcdir=no
2704 fi
2705
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2708 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2709 if test "$enable_generated_files_in_srcdir" = yes; then
2710 GENINSRC_TRUE=
2711 GENINSRC_FALSE='#'
2712 else
2713 GENINSRC_TRUE='#'
2714 GENINSRC_FALSE=
2715 fi
2716
2717
2718
2719 # -------
2720 # -------
2721
2722 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2723 #
2724 # You will slowly go insane if you do not grok the following fact: when
2725 # building this library, the top-level /target/ becomes the library's /host/.
2726 #
2727 # configure then causes --target to default to --host, exactly like any
2728 # other package using autoconf. Therefore, 'target' and 'host' will
2729 # always be the same. This makes sense both for native and cross compilers
2730 # just think about it for a little while. :-)
2731 #
2732 # Also, if this library is being configured as part of a cross compiler, the
2733 # top-level configure script will pass the "real" host as $with_cross_host.
2734 #
2735 # Do not delete or change the following two lines. For why, see
2736 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2737 ac_aux_dir=
2738 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739 if test -f "$ac_dir/install-sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c"
2742 break
2743 elif test -f "$ac_dir/install.sh"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c"
2746 break
2747 elif test -f "$ac_dir/shtool"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c"
2750 break
2751 fi
2752 done
2753 if test -z "$ac_aux_dir"; then
2754 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2755 fi
2756
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2764
2765
2766 # Make sure we can run config.sub.
2767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2768 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2771 $as_echo_n "checking build system type... " >&6; }
2772 if ${ac_cv_build+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 ac_build_alias=$build_alias
2776 test "x$ac_build_alias" = x &&
2777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778 test "x$ac_build_alias" = x &&
2779 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2780 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2782
2783 fi
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2785 $as_echo "$ac_cv_build" >&6; }
2786 case $ac_cv_build in
2787 *-*-*) ;;
2788 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2789 esac
2790 build=$ac_cv_build
2791 ac_save_IFS=$IFS; IFS='-'
2792 set x $ac_cv_build
2793 shift
2794 build_cpu=$1
2795 build_vendor=$2
2796 shift; shift
2797 # Remember, the first character of IFS is used to create $*,
2798 # except with old shells:
2799 build_os=$*
2800 IFS=$ac_save_IFS
2801 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2802
2803
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2805 $as_echo_n "checking host system type... " >&6; }
2806 if ${ac_cv_host+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test "x$host_alias" = x; then
2810 ac_cv_host=$ac_cv_build
2811 else
2812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2813 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2814 fi
2815
2816 fi
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2818 $as_echo "$ac_cv_host" >&6; }
2819 case $ac_cv_host in
2820 *-*-*) ;;
2821 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2822 esac
2823 host=$ac_cv_host
2824 ac_save_IFS=$IFS; IFS='-'
2825 set x $ac_cv_host
2826 shift
2827 host_cpu=$1
2828 host_vendor=$2
2829 shift; shift
2830 # Remember, the first character of IFS is used to create $*,
2831 # except with old shells:
2832 host_os=$*
2833 IFS=$ac_save_IFS
2834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2835
2836
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2838 $as_echo_n "checking target system type... " >&6; }
2839 if ${ac_cv_target+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test "x$target_alias" = x; then
2843 ac_cv_target=$ac_cv_host
2844 else
2845 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2847 fi
2848
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2851 $as_echo "$ac_cv_target" >&6; }
2852 case $ac_cv_target in
2853 *-*-*) ;;
2854 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2855 esac
2856 target=$ac_cv_target
2857 ac_save_IFS=$IFS; IFS='-'
2858 set x $ac_cv_target
2859 shift
2860 target_cpu=$1
2861 target_vendor=$2
2862 shift; shift
2863 # Remember, the first character of IFS is used to create $*,
2864 # except with old shells:
2865 target_os=$*
2866 IFS=$ac_save_IFS
2867 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2868
2869
2870 # The aliases save the names the user supplied, while $host etc.
2871 # will get canonicalized.
2872 test -n "$target_alias" &&
2873 test "$program_prefix$program_suffix$program_transform_name" = \
2874 NONENONEs,x,x, &&
2875 program_prefix=${target_alias}-
2876
2877 target_alias=${target_alias-$host_alias}
2878
2879 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2880 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2881 # 1.9.0: minimum required version
2882 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2883 # of other PACKAGE_* variables will, however, and there's nothing
2884 # we can do about that; they come from AC_INIT).
2885 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2886 # file in the top srcdir, etc, etc), so stop complaining.
2887 # no-dist: we don't want 'dist' and related rules.
2888 # -Wall: turns on all automake warnings...
2889 # -Wno-portability: ...except this one, since GNU make is required.
2890 # -Wno-override: ... and this one, since we do want this in testsuite.
2891 am__api_version='1.15'
2892
2893 # Find a good install program. We prefer a C program (faster),
2894 # so one script is as good as another. But avoid the broken or
2895 # incompatible versions:
2896 # SysV /etc/install, /usr/sbin/install
2897 # SunOS /usr/etc/install
2898 # IRIX /sbin/install
2899 # AIX /bin/install
2900 # AmigaOS /C/install, which installs bootblocks on floppy discs
2901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2904 # OS/2's system install, which has a completely different semantic
2905 # ./install, which can be erroneously created by make from ./install.sh.
2906 # Reject install programs that cannot install multiple files.
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2908 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2909 if test -z "$INSTALL"; then
2910 if ${ac_cv_path_install+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 # Account for people who put trailing slashes in PATH elements.
2919 case $as_dir/ in #((
2920 ./ | .// | /[cC]/* | \
2921 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2922 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2923 /usr/ucb/* ) ;;
2924 *)
2925 # OSF1 and SCO ODT 3.0 have their own names for install.
2926 # Don't use installbsd from OSF since it installs stuff as root
2927 # by default.
2928 for ac_prog in ginstall scoinst install; do
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2931 if test $ac_prog = install &&
2932 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2933 # AIX install. It has an incompatible calling convention.
2934 :
2935 elif test $ac_prog = install &&
2936 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2937 # program-specific install script used by HP pwplus--don't use.
2938 :
2939 else
2940 rm -rf conftest.one conftest.two conftest.dir
2941 echo one > conftest.one
2942 echo two > conftest.two
2943 mkdir conftest.dir
2944 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2945 test -s conftest.one && test -s conftest.two &&
2946 test -s conftest.dir/conftest.one &&
2947 test -s conftest.dir/conftest.two
2948 then
2949 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2950 break 3
2951 fi
2952 fi
2953 fi
2954 done
2955 done
2956 ;;
2957 esac
2958
2959 done
2960 IFS=$as_save_IFS
2961
2962 rm -rf conftest.one conftest.two conftest.dir
2963
2964 fi
2965 if test "${ac_cv_path_install+set}" = set; then
2966 INSTALL=$ac_cv_path_install
2967 else
2968 # As a last resort, use the slow shell script. Don't cache a
2969 # value for INSTALL within a source directory, because that will
2970 # break other packages using the cache if that directory is
2971 # removed, or if the value is a relative name.
2972 INSTALL=$ac_install_sh
2973 fi
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2976 $as_echo "$INSTALL" >&6; }
2977
2978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2979 # It thinks the first close brace ends the variable substitution.
2980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2981
2982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2983
2984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2985
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2987 $as_echo_n "checking whether build environment is sane... " >&6; }
2988 # Reject unsafe characters in $srcdir or the absolute working directory
2989 # name. Accept space and tab only in the latter.
2990 am_lf='
2991 '
2992 case `pwd` in
2993 *[\\\"\#\$\&\'\`$am_lf]*)
2994 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2995 esac
2996 case $srcdir in
2997 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2998 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2999 esac
3000
3001 # Do 'set' in a subshell so we don't clobber the current shell's
3002 # arguments. Must try -L first in case configure is actually a
3003 # symlink; some systems play weird games with the mod time of symlinks
3004 # (eg FreeBSD returns the mod time of the symlink's containing
3005 # directory).
3006 if (
3007 am_has_slept=no
3008 for am_try in 1 2; do
3009 echo "timestamp, slept: $am_has_slept" > conftest.file
3010 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3011 if test "$*" = "X"; then
3012 # -L didn't work.
3013 set X `ls -t "$srcdir/configure" conftest.file`
3014 fi
3015 if test "$*" != "X $srcdir/configure conftest.file" \
3016 && test "$*" != "X conftest.file $srcdir/configure"; then
3017
3018 # If neither matched, then we have a broken ls. This can happen
3019 # if, for instance, CONFIG_SHELL is bash and it inherits a
3020 # broken ls alias from the environment. This has actually
3021 # happened. Such a system could not be considered "sane".
3022 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3023 alias in your environment" "$LINENO" 5
3024 fi
3025 if test "$2" = conftest.file || test $am_try -eq 2; then
3026 break
3027 fi
3028 # Just in case.
3029 sleep 1
3030 am_has_slept=yes
3031 done
3032 test "$2" = conftest.file
3033 )
3034 then
3035 # Ok.
3036 :
3037 else
3038 as_fn_error $? "newly created file is older than distributed files!
3039 Check your system clock" "$LINENO" 5
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042 $as_echo "yes" >&6; }
3043 # If we didn't sleep, we still need to ensure time stamps of config.status and
3044 # generated files are strictly newer.
3045 am_sleep_pid=
3046 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3047 ( sleep 1 ) &
3048 am_sleep_pid=$!
3049 fi
3050
3051 rm -f conftest.file
3052
3053 test "$program_prefix" != NONE &&
3054 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3055 # Use a double $ so make ignores it.
3056 test "$program_suffix" != NONE &&
3057 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3058 # Double any \ or $.
3059 # By default was `s,x,x', remove it if useless.
3060 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3061 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3062
3063 # Expand $ac_aux_dir to an absolute path.
3064 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3065
3066 if test x"${MISSING+set}" != xset; then
3067 case $am_aux_dir in
3068 *\ * | *\ *)
3069 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3070 *)
3071 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3072 esac
3073 fi
3074 # Use eval to expand $SHELL
3075 if eval "$MISSING --is-lightweight"; then
3076 am_missing_run="$MISSING "
3077 else
3078 am_missing_run=
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3080 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3081 fi
3082
3083 if test x"${install_sh+set}" != xset; then
3084 case $am_aux_dir in
3085 *\ * | *\ *)
3086 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3087 *)
3088 install_sh="\${SHELL} $am_aux_dir/install-sh"
3089 esac
3090 fi
3091
3092 # Installed binaries are usually stripped using 'strip' when the user
3093 # run "make install-strip". However 'strip' might not be the right
3094 # tool to use in cross-compilation environments, therefore Automake
3095 # will honor the 'STRIP' environment variable to overrule this program.
3096 if test "$cross_compiling" != no; then
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3099 set dummy ${ac_tool_prefix}strip; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_STRIP+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$STRIP"; then
3106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 STRIP=$ac_cv_prog_STRIP
3126 if test -n "$STRIP"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3128 $as_echo "$STRIP" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134
3135 fi
3136 if test -z "$ac_cv_prog_STRIP"; then
3137 ac_ct_STRIP=$STRIP
3138 # Extract the first word of "strip", so it can be a program name with args.
3139 set dummy strip; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$ac_ct_STRIP"; then
3146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_STRIP="strip"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3166 if test -n "$ac_ct_STRIP"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3168 $as_echo "$ac_ct_STRIP" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174 if test "x$ac_ct_STRIP" = x; then
3175 STRIP=":"
3176 else
3177 case $cross_compiling:$ac_tool_warned in
3178 yes:)
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181 ac_tool_warned=yes ;;
3182 esac
3183 STRIP=$ac_ct_STRIP
3184 fi
3185 else
3186 STRIP="$ac_cv_prog_STRIP"
3187 fi
3188
3189 fi
3190 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3191
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3193 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3194 if test -z "$MKDIR_P"; then
3195 if ${ac_cv_path_mkdir+:} false; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3200 do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_prog in mkdir gmkdir; do
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3206 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3207 'mkdir (GNU coreutils) '* | \
3208 'mkdir (coreutils) '* | \
3209 'mkdir (fileutils) '4.1*)
3210 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3211 break 3;;
3212 esac
3213 done
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219
3220 test -d ./--version && rmdir ./--version
3221 if test "${ac_cv_path_mkdir+set}" = set; then
3222 MKDIR_P="$ac_cv_path_mkdir -p"
3223 else
3224 # As a last resort, use the slow shell script. Don't cache a
3225 # value for MKDIR_P within a source directory, because that will
3226 # break other packages using the cache if that directory is
3227 # removed, or if the value is a relative name.
3228 MKDIR_P="$ac_install_sh -d"
3229 fi
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3232 $as_echo "$MKDIR_P" >&6; }
3233
3234 for ac_prog in gawk mawk nawk awk
3235 do
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_AWK+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$AWK"; then
3244 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_AWK="$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 AWK=$ac_cv_prog_AWK
3264 if test -n "$AWK"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3266 $as_echo "$AWK" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 test -n "$AWK" && break
3274 done
3275
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3277 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3278 set x ${MAKE-make}
3279 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3280 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 cat >conftest.make <<\_ACEOF
3284 SHELL = /bin/sh
3285 all:
3286 @echo '@@@%%%=$(MAKE)=@@@%%%'
3287 _ACEOF
3288 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3289 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3290 *@@@%%%=?*=@@@%%%*)
3291 eval ac_cv_prog_make_${ac_make}_set=yes;;
3292 *)
3293 eval ac_cv_prog_make_${ac_make}_set=no;;
3294 esac
3295 rm -f conftest.make
3296 fi
3297 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3300 SET_MAKE=
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 SET_MAKE="MAKE=${MAKE-make}"
3305 fi
3306
3307 rm -rf .tst 2>/dev/null
3308 mkdir .tst 2>/dev/null
3309 if test -d .tst; then
3310 am__leading_dot=.
3311 else
3312 am__leading_dot=_
3313 fi
3314 rmdir .tst 2>/dev/null
3315
3316 # Check whether --enable-silent-rules was given.
3317 if test "${enable_silent_rules+set}" = set; then :
3318 enableval=$enable_silent_rules;
3319 fi
3320
3321 case $enable_silent_rules in # (((
3322 yes) AM_DEFAULT_VERBOSITY=0;;
3323 no) AM_DEFAULT_VERBOSITY=1;;
3324 *) AM_DEFAULT_VERBOSITY=1;;
3325 esac
3326 am_make=${MAKE-make}
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3328 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3329 if ${am_cv_make_support_nested_variables+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 if $as_echo 'TRUE=$(BAR$(V))
3333 BAR0=false
3334 BAR1=true
3335 V=1
3336 am__doit:
3337 @$(TRUE)
3338 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3339 am_cv_make_support_nested_variables=yes
3340 else
3341 am_cv_make_support_nested_variables=no
3342 fi
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3345 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3346 if test $am_cv_make_support_nested_variables = yes; then
3347 AM_V='$(V)'
3348 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3349 else
3350 AM_V=$AM_DEFAULT_VERBOSITY
3351 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3352 fi
3353 AM_BACKSLASH='\'
3354
3355 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3356 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3357 # is not polluted with repeated "-I."
3358 am__isrc=' -I$(srcdir)'
3359 # test to see if srcdir already configured
3360 if test -f $srcdir/config.status; then
3361 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3362 fi
3363 fi
3364
3365 # test whether we have cygpath
3366 if test -z "$CYGPATH_W"; then
3367 if (cygpath --version) >/dev/null 2>/dev/null; then
3368 CYGPATH_W='cygpath -w'
3369 else
3370 CYGPATH_W=echo
3371 fi
3372 fi
3373
3374
3375 # Define the identity of the package.
3376 PACKAGE='libgomp'
3377 VERSION='1.0'
3378
3379
3380 cat >>confdefs.h <<_ACEOF
3381 #define PACKAGE "$PACKAGE"
3382 _ACEOF
3383
3384
3385 cat >>confdefs.h <<_ACEOF
3386 #define VERSION "$VERSION"
3387 _ACEOF
3388
3389 # Some tools Automake needs.
3390
3391 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3392
3393
3394 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3395
3396
3397 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3398
3399
3400 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3401
3402
3403 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3404
3405 # For better backward compatibility. To be removed once Automake 1.9.x
3406 # dies out for good. For more background, see:
3407 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3408 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3409 mkdir_p='$(MKDIR_P)'
3410
3411 # We need awk for the "check" target (and possibly the TAP driver). The
3412 # system "awk" is bad on some platforms.
3413 # Always define AMTAR for backward compatibility. Yes, it's still used
3414 # in the wild :-( We should find a proper way to deprecate it ...
3415 AMTAR='$${TAR-tar}'
3416
3417
3418 # We'll loop over all known methods to create a tar archive until one works.
3419 _am_tools='gnutar pax cpio none'
3420
3421 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3422
3423
3424
3425
3426
3427
3428 # POSIX will say in a future version that running "rm -f" with no argument
3429 # is OK; and we want to be able to make that assumption in our Makefile
3430 # recipes. So use an aggressive probe to check that the usage we want is
3431 # actually supported "in the wild" to an acceptable degree.
3432 # See automake bug#10828.
3433 # To make any issue more visible, cause the running configure to be aborted
3434 # by default if the 'rm' program in use doesn't match our expectations; the
3435 # user can still override this though.
3436 if rm -f && rm -fr && rm -rf; then : OK; else
3437 cat >&2 <<'END'
3438 Oops!
3439
3440 Your 'rm' program seems unable to run without file operands specified
3441 on the command line, even when the '-f' option is present. This is contrary
3442 to the behaviour of most rm programs out there, and not conforming with
3443 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3444
3445 Please tell bug-automake@gnu.org about your system, including the value
3446 of your $PATH and any error possibly output before this message. This
3447 can help us improve future automake versions.
3448
3449 END
3450 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3451 echo 'Configuration will proceed anyway, since you have set the' >&2
3452 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3453 echo >&2
3454 else
3455 cat >&2 <<'END'
3456 Aborting the configuration process, to ensure you take notice of the issue.
3457
3458 You can download and install GNU coreutils to get an 'rm' implementation
3459 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3460
3461 If you want to complete the configuration process using your problematic
3462 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3463 to "yes", and re-run configure.
3464
3465 END
3466 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3467 fi
3468 fi
3469
3470 # Default to --enable-multilib
3471 # Check whether --enable-multilib was given.
3472 if test "${enable_multilib+set}" = set; then :
3473 enableval=$enable_multilib; case "$enableval" in
3474 yes) multilib=yes ;;
3475 no) multilib=no ;;
3476 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3477 esac
3478 else
3479 multilib=yes
3480 fi
3481
3482
3483 # We may get other options which we leave undocumented:
3484 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3485 # See config-ml.in if you want the gory details.
3486
3487 if test "$srcdir" = "."; then
3488 if test "$with_target_subdir" != "."; then
3489 multi_basedir="$srcdir/$with_multisrctop../.."
3490 else
3491 multi_basedir="$srcdir/$with_multisrctop.."
3492 fi
3493 else
3494 multi_basedir="$srcdir/.."
3495 fi
3496
3497
3498 # Even if the default multilib is not a cross compilation,
3499 # it may be that some of the other multilibs are.
3500 if test $cross_compiling = no && test $multilib = yes \
3501 && test "x${with_multisubdir}" != x ; then
3502 cross_compiling=maybe
3503 fi
3504
3505 ac_config_commands="$ac_config_commands default-1"
3506
3507
3508
3509 # Check whether --with-toolexeclibdir was given.
3510 if test "${with_toolexeclibdir+set}" = set; then :
3511 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3512 /)
3513 ;;
3514 */)
3515 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3516 ;;
3517 esac
3518 else
3519 with_toolexeclibdir=no
3520 fi
3521
3522
3523
3524 # Calculate toolexeclibdir
3525 # Also toolexecdir, though it's only used in toolexeclibdir
3526 case ${enable_version_specific_runtime_libs} in
3527 yes)
3528 # Need the gcc compiler version to know where to install libraries
3529 # and header files if --enable-version-specific-runtime-libs option
3530 # is selected.
3531 toolexecdir='$(libdir)/gcc/$(target_alias)'
3532 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3533 ;;
3534 no)
3535 if test -n "$with_cross_host" &&
3536 test x"$with_cross_host" != x"no"; then
3537 # Install a library built with a cross compiler in tooldir, not libdir.
3538 toolexecdir='$(exec_prefix)/$(target_alias)'
3539 case ${with_toolexeclibdir} in
3540 no)
3541 toolexeclibdir='$(toolexecdir)/lib'
3542 ;;
3543 *)
3544 toolexeclibdir=${with_toolexeclibdir}
3545 ;;
3546 esac
3547 else
3548 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3549 toolexeclibdir='$(libdir)'
3550 fi
3551 multi_os_directory=`$CC -print-multi-os-directory`
3552 case $multi_os_directory in
3553 .) ;; # Avoid trailing /.
3554 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3555 esac
3556 ;;
3557 esac
3558
3559
3560
3561 # Check the compiler.
3562 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3563 # We must force CC to /not/ be precious variables; otherwise
3564 # the wrong, non-multilib-adjusted value will be used in multilibs.
3565 # As a side effect, we have to subst CFLAGS ourselves.
3566
3567
3568
3569 ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC="$CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611
3612 fi
3613 if test -z "$ac_cv_prog_CC"; then
3614 ac_ct_CC=$CC
3615 # Extract the first word of "gcc", so it can be a program name with args.
3616 set dummy gcc; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 if test -n "$ac_ct_CC"; then
3623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_ac_ct_CC="gcc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3635 fi
3636 done
3637 done
3638 IFS=$as_save_IFS
3639
3640 fi
3641 fi
3642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643 if test -n "$ac_ct_CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645 $as_echo "$ac_ct_CC" >&6; }
3646 else
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3649 fi
3650
3651 if test "x$ac_ct_CC" = x; then
3652 CC=""
3653 else
3654 case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660 CC=$ac_ct_CC
3661 fi
3662 else
3663 CC="$ac_cv_prog_CC"
3664 fi
3665
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_CC="${ac_tool_prefix}cc"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689 done
3690 done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704
3705 fi
3706 fi
3707 if test -z "$CC"; then
3708 # Extract the first word of "cc", so it can be a program name with args.
3709 set dummy cc; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if ${ac_cv_prog_CC+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 if test -n "$CC"; then
3716 ac_cv_prog_CC="$CC" # Let the user override the test.
3717 else
3718 ac_prog_rejected=no
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3727 ac_prog_rejected=yes
3728 continue
3729 fi
3730 ac_cv_prog_CC="cc"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3733 fi
3734 done
3735 done
3736 IFS=$as_save_IFS
3737
3738 if test $ac_prog_rejected = yes; then
3739 # We found a bogon in the path, so make sure we never use it.
3740 set dummy $ac_cv_prog_CC
3741 shift
3742 if test $# != 0; then
3743 # We chose a different compiler from the bogus one.
3744 # However, it has the same basename, so the bogon will be chosen
3745 # first if we set CC to just the basename; use the full file name.
3746 shift
3747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3748 fi
3749 fi
3750 fi
3751 fi
3752 CC=$ac_cv_prog_CC
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 fi
3760
3761
3762 fi
3763 if test -z "$CC"; then
3764 if test -n "$ac_tool_prefix"; then
3765 for ac_prog in cl.exe
3766 do
3767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if ${ac_cv_prog_CC+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi
3793 fi
3794 CC=$ac_cv_prog_CC
3795 if test -n "$CC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 $as_echo "$CC" >&6; }
3798 else
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3801 fi
3802
3803
3804 test -n "$CC" && break
3805 done
3806 fi
3807 if test -z "$CC"; then
3808 ac_ct_CC=$CC
3809 for ac_prog in cl.exe
3810 do
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 if test -n "$ac_ct_CC"; then
3819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_CC="$ac_prog"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839 if test -n "$ac_ct_CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841 $as_echo "$ac_ct_CC" >&6; }
3842 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847
3848 test -n "$ac_ct_CC" && break
3849 done
3850
3851 if test "x$ac_ct_CC" = x; then
3852 CC=""
3853 else
3854 case $cross_compiling:$ac_tool_warned in
3855 yes:)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858 ac_tool_warned=yes ;;
3859 esac
3860 CC=$ac_ct_CC
3861 fi
3862 fi
3863
3864 fi
3865
3866
3867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error $? "no acceptable C compiler found in \$PATH
3870 See \`config.log' for more details" "$LINENO" 5; }
3871
3872 # Provide some information about the compiler.
3873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3874 set X $ac_compile
3875 ac_compiler=$2
3876 for ac_option in --version -v -V -qversion; do
3877 { { ac_try="$ac_compiler $ac_option >&5"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3885 ac_status=$?
3886 if test -s conftest.err; then
3887 sed '10a\
3888 ... rest of stderr output deleted ...
3889 10q' conftest.err >conftest.er1
3890 cat conftest.er1 >&5
3891 fi
3892 rm -f conftest.er1 conftest.err
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }
3895 done
3896
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899
3900 int
3901 main ()
3902 {
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 ac_clean_files_save=$ac_clean_files
3909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3910 # Try to create an executable without -o first, disregard a.out.
3911 # It will help us diagnose broken compilers, and finding out an intuition
3912 # of exeext.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3914 $as_echo_n "checking whether the C compiler works... " >&6; }
3915 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916
3917 # The possible output files:
3918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919
3920 ac_rmfiles=
3921 for ac_file in $ac_files
3922 do
3923 case $ac_file in
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3925 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3926 esac
3927 done
3928 rm -f $ac_rmfiles
3929
3930 if { { ac_try="$ac_link_default"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_link_default") 2>&5
3938 ac_status=$?
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; then :
3941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3945 # Autoconf.
3946 for ac_file in $ac_files ''
3947 do
3948 test -f "$ac_file" || continue
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 ;;
3952 [ab].out )
3953 # We found the default executable, but exeext='' is most
3954 # certainly right.
3955 break;;
3956 *.* )
3957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3958 then :; else
3959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 fi
3961 # We set ac_cv_exeext here because the later test for it is not
3962 # safe: cross compilers may not add the suffix if given an `-o'
3963 # argument, so we may need to know it at that point already.
3964 # Even if this section looks crufty: it has the advantage of
3965 # actually working.
3966 break;;
3967 * )
3968 break;;
3969 esac
3970 done
3971 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972
3973 else
3974 ac_file=''
3975 fi
3976 if test -z "$ac_file"; then :
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 $as_echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error 77 "C compiler cannot create executables
3985 See \`config.log' for more details" "$LINENO" 5; }
3986 else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988 $as_echo "yes" >&6; }
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3991 $as_echo_n "checking for C compiler default output file name... " >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3993 $as_echo "$ac_file" >&6; }
3994 ac_exeext=$ac_cv_exeext
3995
3996 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3997 ac_clean_files=$ac_clean_files_save
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3999 $as_echo_n "checking for suffix of executables... " >&6; }
4000 if { { ac_try="$ac_link"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_link") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; then :
4011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4013 # work properly (i.e., refer to `conftest.exe'), while it won't with
4014 # `rm'.
4015 for ac_file in conftest.exe conftest conftest.*; do
4016 test -f "$ac_file" || continue
4017 case $ac_file in
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4020 break;;
4021 * ) break;;
4022 esac
4023 done
4024 else
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4028 See \`config.log' for more details" "$LINENO" 5; }
4029 fi
4030 rm -f conftest conftest$ac_cv_exeext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4032 $as_echo "$ac_cv_exeext" >&6; }
4033
4034 rm -f conftest.$ac_ext
4035 EXEEXT=$ac_cv_exeext
4036 ac_exeext=$EXEEXT
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039 #include <stdio.h>
4040 int
4041 main ()
4042 {
4043 FILE *f = fopen ("conftest.out", "w");
4044 return ferror (f) || fclose (f) != 0;
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 ac_clean_files="$ac_clean_files conftest.out"
4051 # Check that the compiler produces executables we can run. If not, either
4052 # the compiler is broken, or we cross compile.
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4054 $as_echo_n "checking whether we are cross compiling... " >&6; }
4055 if test "$cross_compiling" != yes; then
4056 { { ac_try="$ac_link"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_link") 2>&5
4064 ac_status=$?
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 if { ac_try='./conftest$ac_cv_exeext'
4068 { { case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_try") 2>&5
4075 ac_status=$?
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; }; then
4078 cross_compiling=no
4079 else
4080 if test "$cross_compiling" = maybe; then
4081 cross_compiling=yes
4082 else
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "cannot run C compiled programs.
4086 If you meant to cross compile, use \`--host'.
4087 See \`config.log' for more details" "$LINENO" 5; }
4088 fi
4089 fi
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4092 $as_echo "$cross_compiling" >&6; }
4093
4094 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4095 ac_clean_files=$ac_clean_files_save
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4097 $as_echo_n "checking for suffix of object files... " >&6; }
4098 if ${ac_cv_objext+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.o conftest.obj
4113 if { { ac_try="$ac_compile"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 $as_echo "$ac_try_echo"; } >&5
4120 (eval "$ac_compile") 2>&5
4121 ac_status=$?
4122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123 test $ac_status = 0; }; then :
4124 for ac_file in conftest.o conftest.obj conftest.*; do
4125 test -f "$ac_file" || continue;
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4129 break;;
4130 esac
4131 done
4132 else
4133 $as_echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $? "cannot compute suffix of object files: cannot compile
4139 See \`config.log' for more details" "$LINENO" 5; }
4140 fi
4141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4144 $as_echo "$ac_cv_objext" >&6; }
4145 OBJEXT=$ac_cv_objext
4146 ac_objext=$OBJEXT
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4149 if ${ac_cv_c_compiler_gnu+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154
4155 int
4156 main ()
4157 {
4158 #ifndef __GNUC__
4159 choke me
4160 #endif
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_compiler_gnu=yes
4168 else
4169 ac_compiler_gnu=no
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4173
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4177 if test $ac_compiler_gnu = yes; then
4178 GCC=yes
4179 else
4180 GCC=
4181 fi
4182 ac_test_CFLAGS=${CFLAGS+set}
4183 ac_save_CFLAGS=$CFLAGS
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4185 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4186 if ${ac_cv_prog_cc_g+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 ac_save_c_werror_flag=$ac_c_werror_flag
4190 ac_c_werror_flag=yes
4191 ac_cv_prog_cc_g=no
4192 CFLAGS="-g"
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195
4196 int
4197 main ()
4198 {
4199
4200 ;
4201 return 0;
4202 }
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_prog_cc_g=yes
4206 else
4207 CFLAGS=""
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210
4211 int
4212 main ()
4213 {
4214
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220
4221 else
4222 ac_c_werror_flag=$ac_save_c_werror_flag
4223 CFLAGS="-g"
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4226
4227 int
4228 main ()
4229 {
4230
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_g=yes
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 ac_c_werror_flag=$ac_save_c_werror_flag
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4246 $as_echo "$ac_cv_prog_cc_g" >&6; }
4247 if test "$ac_test_CFLAGS" = set; then
4248 CFLAGS=$ac_save_CFLAGS
4249 elif test $ac_cv_prog_cc_g = yes; then
4250 if test "$GCC" = yes; then
4251 CFLAGS="-g -O2"
4252 else
4253 CFLAGS="-g"
4254 fi
4255 else
4256 if test "$GCC" = yes; then
4257 CFLAGS="-O2"
4258 else
4259 CFLAGS=
4260 fi
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4264 if ${ac_cv_prog_cc_c89+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 ac_cv_prog_cc_c89=no
4268 ac_save_CC=$CC
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 #include <stdarg.h>
4272 #include <stdio.h>
4273 struct stat;
4274 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4275 struct buf { int x; };
4276 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4277 static char *e (p, i)
4278 char **p;
4279 int i;
4280 {
4281 return p[i];
4282 }
4283 static char *f (char * (*g) (char **, int), char **p, ...)
4284 {
4285 char *s;
4286 va_list v;
4287 va_start (v,p);
4288 s = g (p, va_arg (v,int));
4289 va_end (v);
4290 return s;
4291 }
4292
4293 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4294 function prototypes and stuff, but not '\xHH' hex character constants.
4295 These don't provoke an error unfortunately, instead are silently treated
4296 as 'x'. The following induces an error, until -std is added to get
4297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4298 array size at least. It's necessary to write '\x00'==0 to get something
4299 that's true only with -std. */
4300 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301
4302 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4303 inside strings and character constants. */
4304 #define FOO(x) 'x'
4305 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306
4307 int test (int i, double x);
4308 struct s1 {int (*f) (int a);};
4309 struct s2 {int (*f) (double a);};
4310 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4311 int argc;
4312 char **argv;
4313 int
4314 main ()
4315 {
4316 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 do
4324 CC="$ac_save_CC $ac_arg"
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_prog_cc_c89=$ac_arg
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext
4329 test "x$ac_cv_prog_cc_c89" != "xno" && break
4330 done
4331 rm -f conftest.$ac_ext
4332 CC=$ac_save_CC
4333
4334 fi
4335 # AC_CACHE_VAL
4336 case "x$ac_cv_prog_cc_c89" in
4337 x)
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4339 $as_echo "none needed" >&6; } ;;
4340 xno)
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342 $as_echo "unsupported" >&6; } ;;
4343 *)
4344 CC="$CC $ac_cv_prog_cc_c89"
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4346 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4347 esac
4348 if test "x$ac_cv_prog_cc_c89" != xno; then :
4349
4350 fi
4351
4352 ac_ext=c
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357
4358 ac_ext=c
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4364 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4365 if ${am_cv_prog_cc_c_o+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370
4371 int
4372 main ()
4373 {
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 # Make sure it works both with $CC and with simple cc.
4380 # Following AC_PROG_CC_C_O, we do the test twice because some
4381 # compilers refuse to overwrite an existing .o file with -o,
4382 # though they will create one.
4383 am_cv_prog_cc_c_o=yes
4384 for am_i in 1 2; do
4385 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4386 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } \
4390 && test -f conftest2.$ac_objext; then
4391 : OK
4392 else
4393 am_cv_prog_cc_c_o=no
4394 break
4395 fi
4396 done
4397 rm -f core conftest*
4398 unset am_i
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4401 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4402 if test "$am_cv_prog_cc_c_o" != yes; then
4403 # Losing compiler, so override with the script.
4404 # FIXME: It is wrong to rewrite CC.
4405 # But if we don't then we get into trouble of one sort or another.
4406 # A longer-term fix would be to have automake use am__CC in this case,
4407 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4408 CC="$am_aux_dir/compile $CC"
4409 fi
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
4416 DEPDIR="${am__leading_dot}deps"
4417
4418 ac_config_commands="$ac_config_commands depfiles"
4419
4420
4421 am_make=${MAKE-make}
4422 cat > confinc << 'END'
4423 am__doit:
4424 @echo this is the am__doit target
4425 .PHONY: am__doit
4426 END
4427 # If we don't find an include directive, just comment out the code.
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4429 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4430 am__include="#"
4431 am__quote=
4432 _am_result=none
4433 # First try GNU make style include.
4434 echo "include confinc" > confmf
4435 # Ignore all kinds of additional output from 'make'.
4436 case `$am_make -s -f confmf 2> /dev/null` in #(
4437 *the\ am__doit\ target*)
4438 am__include=include
4439 am__quote=
4440 _am_result=GNU
4441 ;;
4442 esac
4443 # Now try BSD make style include.
4444 if test "$am__include" = "#"; then
4445 echo '.include "confinc"' > confmf
4446 case `$am_make -s -f confmf 2> /dev/null` in #(
4447 *the\ am__doit\ target*)
4448 am__include=.include
4449 am__quote="\""
4450 _am_result=BSD
4451 ;;
4452 esac
4453 fi
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4457 $as_echo "$_am_result" >&6; }
4458 rm -f confinc confmf
4459
4460 # Check whether --enable-dependency-tracking was given.
4461 if test "${enable_dependency_tracking+set}" = set; then :
4462 enableval=$enable_dependency_tracking;
4463 fi
4464
4465 if test "x$enable_dependency_tracking" != xno; then
4466 am_depcomp="$ac_aux_dir/depcomp"
4467 AMDEPBACKSLASH='\'
4468 am__nodep='_no'
4469 fi
4470 if test "x$enable_dependency_tracking" != xno; then
4471 AMDEP_TRUE=
4472 AMDEP_FALSE='#'
4473 else
4474 AMDEP_TRUE='#'
4475 AMDEP_FALSE=
4476 fi
4477
4478
4479
4480 depcc="$CC" am_compiler_list=
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4483 $as_echo_n "checking dependency style of $depcc... " >&6; }
4484 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4488 # We make a subdir and do the tests there. Otherwise we can end up
4489 # making bogus files that we don't know about and never remove. For
4490 # instance it was reported that on HP-UX the gcc test will end up
4491 # making a dummy file named 'D' -- because '-MD' means "put the output
4492 # in D".
4493 rm -rf conftest.dir
4494 mkdir conftest.dir
4495 # Copy depcomp to subdir because otherwise we won't find it if we're
4496 # using a relative directory.
4497 cp "$am_depcomp" conftest.dir
4498 cd conftest.dir
4499 # We will build objects and dependencies in a subdirectory because
4500 # it helps to detect inapplicable dependency modes. For instance
4501 # both Tru64's cc and ICC support -MD to output dependencies as a
4502 # side effect of compilation, but ICC will put the dependencies in
4503 # the current directory while Tru64 will put them in the object
4504 # directory.
4505 mkdir sub
4506
4507 am_cv_CC_dependencies_compiler_type=none
4508 if test "$am_compiler_list" = ""; then
4509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4510 fi
4511 am__universal=false
4512 case " $depcc " in #(
4513 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4514 esac
4515
4516 for depmode in $am_compiler_list; do
4517 # Setup a source with many dependencies, because some compilers
4518 # like to wrap large dependency lists on column 80 (with \), and
4519 # we should not choose a depcomp mode which is confused by this.
4520 #
4521 # We need to recreate these files for each test, as the compiler may
4522 # overwrite some of them when testing with obscure command lines.
4523 # This happens at least with the AIX C compiler.
4524 : > sub/conftest.c
4525 for i in 1 2 3 4 5 6; do
4526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4527 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4528 # Solaris 10 /bin/sh.
4529 echo '/* dummy */' > sub/conftst$i.h
4530 done
4531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4532
4533 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4534 # mode. It turns out that the SunPro C++ compiler does not properly
4535 # handle '-M -o', and we need to detect this. Also, some Intel
4536 # versions had trouble with output in subdirs.
4537 am__obj=sub/conftest.${OBJEXT-o}
4538 am__minus_obj="-o $am__obj"
4539 case $depmode in
4540 gcc)
4541 # This depmode causes a compiler race in universal mode.
4542 test "$am__universal" = false || continue
4543 ;;
4544 nosideeffect)
4545 # After this tag, mechanisms are not by side-effect, so they'll
4546 # only be used when explicitly requested.
4547 if test "x$enable_dependency_tracking" = xyes; then
4548 continue
4549 else
4550 break
4551 fi
4552 ;;
4553 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4554 # This compiler won't grok '-c -o', but also, the minuso test has
4555 # not run yet. These depmodes are late enough in the game, and
4556 # so weak that their functioning should not be impacted.
4557 am__obj=conftest.${OBJEXT-o}
4558 am__minus_obj=
4559 ;;
4560 none) break ;;
4561 esac
4562 if depmode=$depmode \
4563 source=sub/conftest.c object=$am__obj \
4564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4566 >/dev/null 2>conftest.err &&
4567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4571 # icc doesn't choke on unknown options, it will just issue warnings
4572 # or remarks (even with -Werror). So we grep stderr for any message
4573 # that says an option was ignored or not supported.
4574 # When given -MP, icc 7.0 and 7.1 complain thusly:
4575 # icc: Command line warning: ignoring option '-M'; no argument required
4576 # The diagnosis changed in icc 8.0:
4577 # icc: Command line remark: option '-MP' not supported
4578 if (grep 'ignoring option' conftest.err ||
4579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4580 am_cv_CC_dependencies_compiler_type=$depmode
4581 break
4582 fi
4583 fi
4584 done
4585
4586 cd ..
4587 rm -rf conftest.dir
4588 else
4589 am_cv_CC_dependencies_compiler_type=none
4590 fi
4591
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4594 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4595 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4596
4597 if
4598 test "x$enable_dependency_tracking" != xno \
4599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4600 am__fastdepCC_TRUE=
4601 am__fastdepCC_FALSE='#'
4602 else
4603 am__fastdepCC_TRUE='#'
4604 am__fastdepCC_FALSE=
4605 fi
4606
4607
4608
4609
4610
4611
4612 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4613 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4614 # in both places for now and restore CFLAGS at the end of config.
4615 save_CFLAGS="$CFLAGS"
4616
4617 # Add -Wall -Werror if we are using GCC.
4618 if test "x$GCC" = "xyes"; then
4619 XCFLAGS="$XCFLAGS -Wall -Werror"
4620 fi
4621
4622 # Find other programs we need.
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4625 set dummy ${ac_tool_prefix}ar; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_AR+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$AR"; then
4632 ac_cv_prog_AR="$AR" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_AR="${ac_tool_prefix}ar"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649 fi
4650 fi
4651 AR=$ac_cv_prog_AR
4652 if test -n "$AR"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4654 $as_echo "$AR" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4658 fi
4659
4660
4661 fi
4662 if test -z "$ac_cv_prog_AR"; then
4663 ac_ct_AR=$AR
4664 # Extract the first word of "ar", so it can be a program name with args.
4665 set dummy ar; ac_word=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$ac_ct_AR"; then
4672 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_AR="ar"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4692 if test -n "$ac_ct_AR"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4694 $as_echo "$ac_ct_AR" >&6; }
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700 if test "x$ac_ct_AR" = x; then
4701 AR=""
4702 else
4703 case $cross_compiling:$ac_tool_warned in
4704 yes:)
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned=yes ;;
4708 esac
4709 AR=$ac_ct_AR
4710 fi
4711 else
4712 AR="$ac_cv_prog_AR"
4713 fi
4714
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_RANLIB+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$RANLIB"; then
4724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 RANLIB=$ac_cv_prog_RANLIB
4744 if test -n "$RANLIB"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4746 $as_echo "$RANLIB" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 fi
4754 if test -z "$ac_cv_prog_RANLIB"; then
4755 ac_ct_RANLIB=$RANLIB
4756 # Extract the first word of "ranlib", so it can be a program name with args.
4757 set dummy ranlib; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$ac_ct_RANLIB"; then
4764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_ac_ct_RANLIB="ranlib"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 fi
4782 fi
4783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4784 if test -n "$ac_ct_RANLIB"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4786 $as_echo "$ac_ct_RANLIB" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4790 fi
4791
4792 if test "x$ac_ct_RANLIB" = x; then
4793 RANLIB="ranlib-not-found-in-path-error"
4794 else
4795 case $cross_compiling:$ac_tool_warned in
4796 yes:)
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799 ac_tool_warned=yes ;;
4800 esac
4801 RANLIB=$ac_ct_RANLIB
4802 fi
4803 else
4804 RANLIB="$ac_cv_prog_RANLIB"
4805 fi
4806
4807 # Extract the first word of "perl", so it can be a program name with args.
4808 set dummy perl; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_path_PERL+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 case $PERL in
4815 [\\/]* | ?:[\\/]*)
4816 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4817 ;;
4818 *)
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4835 ;;
4836 esac
4837 fi
4838 PERL=$ac_cv_path_PERL
4839 if test -n "$PERL"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4841 $as_echo "$PERL" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4850 set x ${MAKE-make}
4851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4852 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 cat >conftest.make <<\_ACEOF
4856 SHELL = /bin/sh
4857 all:
4858 @echo '@@@%%%=$(MAKE)=@@@%%%'
4859 _ACEOF
4860 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4862 *@@@%%%=?*=@@@%%%*)
4863 eval ac_cv_prog_make_${ac_make}_set=yes;;
4864 *)
4865 eval ac_cv_prog_make_${ac_make}_set=no;;
4866 esac
4867 rm -f conftest.make
4868 fi
4869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871 $as_echo "yes" >&6; }
4872 SET_MAKE=
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 SET_MAKE="MAKE=${MAKE-make}"
4877 fi
4878
4879
4880
4881 # See if makeinfo has been installed and is modern enough
4882 # that we can use it.
4883
4884 # Extract the first word of "makeinfo", so it can be a program name with args.
4885 set dummy makeinfo; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_MAKEINFO+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$MAKEINFO"; then
4892 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_MAKEINFO="makeinfo"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 MAKEINFO=$ac_cv_prog_MAKEINFO
4912 if test -n "$MAKEINFO"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4914 $as_echo "$MAKEINFO" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921 if test -n "$MAKEINFO"; then
4922 # Found it, now check the version.
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4924 $as_echo_n "checking for modern makeinfo... " >&6; }
4925 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4929 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4930
4931 case $ac_prog_version in
4932 '') gcc_cv_prog_makeinfo_modern=no;;
4933 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4934 *) gcc_cv_prog_makeinfo_modern=no;;
4935 esac
4936
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4939 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4940 else
4941 gcc_cv_prog_makeinfo_modern=no
4942 fi
4943 if test $gcc_cv_prog_makeinfo_modern = no; then
4944 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4945 fi
4946
4947 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4948 BUILD_INFO_TRUE=
4949 BUILD_INFO_FALSE='#'
4950 else
4951 BUILD_INFO_TRUE='#'
4952 BUILD_INFO_FALSE=
4953 fi
4954
4955
4956
4957 # Configure libtool
4958 case `pwd` in
4959 *\ * | *\ *)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4961 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4962 esac
4963
4964
4965
4966 macro_version='2.2.7a'
4967 macro_revision='1.3134'
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981 ltmain="$ac_aux_dir/ltmain.sh"
4982
4983 # Backslashify metacharacters that are still active within
4984 # double-quoted strings.
4985 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4986
4987 # Same as above, but do not quote variable references.
4988 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4989
4990 # Sed substitution to delay expansion of an escaped shell variable in a
4991 # double_quote_subst'ed string.
4992 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4993
4994 # Sed substitution to delay expansion of an escaped single quote.
4995 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4996
4997 # Sed substitution to avoid accidental globbing in evaled expressions
4998 no_glob_subst='s/\*/\\\*/g'
4999
5000 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5001 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5002 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5003
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5005 $as_echo_n "checking how to print strings... " >&6; }
5006 # Test print first, because it will be a builtin if present.
5007 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5008 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5009 ECHO='print -r --'
5010 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5011 ECHO='printf %s\n'
5012 else
5013 # Use this function as a fallback that always works.
5014 func_fallback_echo ()
5015 {
5016 eval 'cat <<_LTECHO_EOF
5017 $1
5018 _LTECHO_EOF'
5019 }
5020 ECHO='func_fallback_echo'
5021 fi
5022
5023 # func_echo_all arg...
5024 # Invoke $ECHO with all args, space-separated.
5025 func_echo_all ()
5026 {
5027 $ECHO ""
5028 }
5029
5030 case "$ECHO" in
5031 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5032 $as_echo "printf" >&6; } ;;
5033 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5034 $as_echo "print -r" >&6; } ;;
5035 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5036 $as_echo "cat" >&6; } ;;
5037 esac
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5053 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5054 if ${ac_cv_path_SED+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5058 for ac_i in 1 2 3 4 5 6 7; do
5059 ac_script="$ac_script$as_nl$ac_script"
5060 done
5061 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5062 { ac_script=; unset ac_script;}
5063 if test -z "$SED"; then
5064 ac_path_SED_found=false
5065 # Loop through the user's path and test for each of PROGNAME-LIST
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_prog in sed gsed; do
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5074 as_fn_executable_p "$ac_path_SED" || continue
5075 # Check for GNU ac_path_SED and select it if it is found.
5076 # Check for GNU $ac_path_SED
5077 case `"$ac_path_SED" --version 2>&1` in
5078 *GNU*)
5079 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5080 *)
5081 ac_count=0
5082 $as_echo_n 0123456789 >"conftest.in"
5083 while :
5084 do
5085 cat "conftest.in" "conftest.in" >"conftest.tmp"
5086 mv "conftest.tmp" "conftest.in"
5087 cp "conftest.in" "conftest.nl"
5088 $as_echo '' >> "conftest.nl"
5089 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5091 as_fn_arith $ac_count + 1 && ac_count=$as_val
5092 if test $ac_count -gt ${ac_path_SED_max-0}; then
5093 # Best one so far, save it but keep looking for a better one
5094 ac_cv_path_SED="$ac_path_SED"
5095 ac_path_SED_max=$ac_count
5096 fi
5097 # 10*(2^10) chars as input seems more than enough
5098 test $ac_count -gt 10 && break
5099 done
5100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5101 esac
5102
5103 $ac_path_SED_found && break 3
5104 done
5105 done
5106 done
5107 IFS=$as_save_IFS
5108 if test -z "$ac_cv_path_SED"; then
5109 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5110 fi
5111 else
5112 ac_cv_path_SED=$SED
5113 fi
5114
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5117 $as_echo "$ac_cv_path_SED" >&6; }
5118 SED="$ac_cv_path_SED"
5119 rm -f conftest.sed
5120
5121 test -z "$SED" && SED=sed
5122 Xsed="$SED -e 1s/^X//"
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5135 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5136 if ${ac_cv_path_GREP+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -z "$GREP"; then
5140 ac_path_GREP_found=false
5141 # Loop through the user's path and test for each of PROGNAME-LIST
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5144 do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_prog in grep ggrep; do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5150 as_fn_executable_p "$ac_path_GREP" || continue
5151 # Check for GNU ac_path_GREP and select it if it is found.
5152 # Check for GNU $ac_path_GREP
5153 case `"$ac_path_GREP" --version 2>&1` in
5154 *GNU*)
5155 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5156 *)
5157 ac_count=0
5158 $as_echo_n 0123456789 >"conftest.in"
5159 while :
5160 do
5161 cat "conftest.in" "conftest.in" >"conftest.tmp"
5162 mv "conftest.tmp" "conftest.in"
5163 cp "conftest.in" "conftest.nl"
5164 $as_echo 'GREP' >> "conftest.nl"
5165 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167 as_fn_arith $ac_count + 1 && ac_count=$as_val
5168 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5169 # Best one so far, save it but keep looking for a better one
5170 ac_cv_path_GREP="$ac_path_GREP"
5171 ac_path_GREP_max=$ac_count
5172 fi
5173 # 10*(2^10) chars as input seems more than enough
5174 test $ac_count -gt 10 && break
5175 done
5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 esac
5178
5179 $ac_path_GREP_found && break 3
5180 done
5181 done
5182 done
5183 IFS=$as_save_IFS
5184 if test -z "$ac_cv_path_GREP"; then
5185 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5186 fi
5187 else
5188 ac_cv_path_GREP=$GREP
5189 fi
5190
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5193 $as_echo "$ac_cv_path_GREP" >&6; }
5194 GREP="$ac_cv_path_GREP"
5195
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5198 $as_echo_n "checking for egrep... " >&6; }
5199 if ${ac_cv_path_EGREP+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5203 then ac_cv_path_EGREP="$GREP -E"
5204 else
5205 if test -z "$EGREP"; then
5206 ac_path_EGREP_found=false
5207 # Loop through the user's path and test for each of PROGNAME-LIST
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_prog in egrep; do
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5216 as_fn_executable_p "$ac_path_EGREP" || continue
5217 # Check for GNU ac_path_EGREP and select it if it is found.
5218 # Check for GNU $ac_path_EGREP
5219 case `"$ac_path_EGREP" --version 2>&1` in
5220 *GNU*)
5221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5222 *)
5223 ac_count=0
5224 $as_echo_n 0123456789 >"conftest.in"
5225 while :
5226 do
5227 cat "conftest.in" "conftest.in" >"conftest.tmp"
5228 mv "conftest.tmp" "conftest.in"
5229 cp "conftest.in" "conftest.nl"
5230 $as_echo 'EGREP' >> "conftest.nl"
5231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5233 as_fn_arith $ac_count + 1 && ac_count=$as_val
5234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5235 # Best one so far, save it but keep looking for a better one
5236 ac_cv_path_EGREP="$ac_path_EGREP"
5237 ac_path_EGREP_max=$ac_count
5238 fi
5239 # 10*(2^10) chars as input seems more than enough
5240 test $ac_count -gt 10 && break
5241 done
5242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5243 esac
5244
5245 $ac_path_EGREP_found && break 3
5246 done
5247 done
5248 done
5249 IFS=$as_save_IFS
5250 if test -z "$ac_cv_path_EGREP"; then
5251 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5252 fi
5253 else
5254 ac_cv_path_EGREP=$EGREP
5255 fi
5256
5257 fi
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5260 $as_echo "$ac_cv_path_EGREP" >&6; }
5261 EGREP="$ac_cv_path_EGREP"
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5265 $as_echo_n "checking for fgrep... " >&6; }
5266 if ${ac_cv_path_FGREP+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5270 then ac_cv_path_FGREP="$GREP -F"
5271 else
5272 if test -z "$FGREP"; then
5273 ac_path_FGREP_found=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_prog in fgrep; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5283 as_fn_executable_p "$ac_path_FGREP" || continue
5284 # Check for GNU ac_path_FGREP and select it if it is found.
5285 # Check for GNU $ac_path_FGREP
5286 case `"$ac_path_FGREP" --version 2>&1` in
5287 *GNU*)
5288 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5289 *)
5290 ac_count=0
5291 $as_echo_n 0123456789 >"conftest.in"
5292 while :
5293 do
5294 cat "conftest.in" "conftest.in" >"conftest.tmp"
5295 mv "conftest.tmp" "conftest.in"
5296 cp "conftest.in" "conftest.nl"
5297 $as_echo 'FGREP' >> "conftest.nl"
5298 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300 as_fn_arith $ac_count + 1 && ac_count=$as_val
5301 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_FGREP="$ac_path_FGREP"
5304 ac_path_FGREP_max=$ac_count
5305 fi
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5308 done
5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310 esac
5311
5312 $ac_path_FGREP_found && break 3
5313 done
5314 done
5315 done
5316 IFS=$as_save_IFS
5317 if test -z "$ac_cv_path_FGREP"; then
5318 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5319 fi
5320 else
5321 ac_cv_path_FGREP=$FGREP
5322 fi
5323
5324 fi
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5327 $as_echo "$ac_cv_path_FGREP" >&6; }
5328 FGREP="$ac_cv_path_FGREP"
5329
5330
5331 test -z "$GREP" && GREP=grep
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 # Check whether --with-gnu-ld was given.
5352 if test "${with_gnu_ld+set}" = set; then :
5353 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5354 else
5355 with_gnu_ld=no
5356 fi
5357
5358 ac_prog=ld
5359 if test "$GCC" = yes; then
5360 # Check if gcc -print-prog-name=ld gives a path.
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5362 $as_echo_n "checking for ld used by $CC... " >&6; }
5363 case $host in
5364 *-*-mingw*)
5365 # gcc leaves a trailing carriage return which upsets mingw
5366 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5367 *)
5368 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5369 esac
5370 case $ac_prog in
5371 # Accept absolute paths.
5372 [\\/]* | ?:[\\/]*)
5373 re_direlt='/[^/][^/]*/\.\./'
5374 # Canonicalize the pathname of ld
5375 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5376 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5377 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5378 done
5379 test -z "$LD" && LD="$ac_prog"
5380 ;;
5381 "")
5382 # If it fails, then pretend we aren't using GCC.
5383 ac_prog=ld
5384 ;;
5385 *)
5386 # If it is relative, then search for the first ld in PATH.
5387 with_gnu_ld=unknown
5388 ;;
5389 esac
5390 elif test "$with_gnu_ld" = yes; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5392 $as_echo_n "checking for GNU ld... " >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5395 $as_echo_n "checking for non-GNU ld... " >&6; }
5396 fi
5397 if ${lt_cv_path_LD+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -z "$LD"; then
5401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5402 for ac_dir in $PATH; do
5403 IFS="$lt_save_ifs"
5404 test -z "$ac_dir" && ac_dir=.
5405 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5406 lt_cv_path_LD="$ac_dir/$ac_prog"
5407 # Check to see if the program is GNU ld. I'd rather use --version,
5408 # but apparently some variants of GNU ld only accept -v.
5409 # Break only if it was the GNU/non-GNU ld that we prefer.
5410 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5411 *GNU* | *'with BFD'*)
5412 test "$with_gnu_ld" != no && break
5413 ;;
5414 *)
5415 test "$with_gnu_ld" != yes && break
5416 ;;
5417 esac
5418 fi
5419 done
5420 IFS="$lt_save_ifs"
5421 else
5422 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5423 fi
5424 fi
5425
5426 LD="$lt_cv_path_LD"
5427 if test -n "$LD"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5429 $as_echo "$LD" >&6; }
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5433 fi
5434 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5436 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5437 if ${lt_cv_prog_gnu_ld+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5441 case `$LD -v 2>&1 </dev/null` in
5442 *GNU* | *'with BFD'*)
5443 lt_cv_prog_gnu_ld=yes
5444 ;;
5445 *)
5446 lt_cv_prog_gnu_ld=no
5447 ;;
5448 esac
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5451 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5452 with_gnu_ld=$lt_cv_prog_gnu_ld
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5463 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5464 if ${lt_cv_path_NM+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$NM"; then
5468 # Let the user override the test.
5469 lt_cv_path_NM="$NM"
5470 else
5471 lt_nm_to_check="${ac_tool_prefix}nm"
5472 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5473 lt_nm_to_check="$lt_nm_to_check nm"
5474 fi
5475 for lt_tmp_nm in $lt_nm_to_check; do
5476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5477 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5478 IFS="$lt_save_ifs"
5479 test -z "$ac_dir" && ac_dir=.
5480 tmp_nm="$ac_dir/$lt_tmp_nm"
5481 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5482 # Check to see if the nm accepts a BSD-compat flag.
5483 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5484 # nm: unknown option "B" ignored
5485 # Tru64's nm complains that /dev/null is an invalid object file
5486 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5487 */dev/null* | *'Invalid file or object type'*)
5488 lt_cv_path_NM="$tmp_nm -B"
5489 break
5490 ;;
5491 *)
5492 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5493 */dev/null*)
5494 lt_cv_path_NM="$tmp_nm -p"
5495 break
5496 ;;
5497 *)
5498 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5499 continue # so that we can try to find one that supports BSD flags
5500 ;;
5501 esac
5502 ;;
5503 esac
5504 fi
5505 done
5506 IFS="$lt_save_ifs"
5507 done
5508 : ${lt_cv_path_NM=no}
5509 fi
5510 fi
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5512 $as_echo "$lt_cv_path_NM" >&6; }
5513 if test "$lt_cv_path_NM" != "no"; then
5514 NM="$lt_cv_path_NM"
5515 else
5516 # Didn't find any BSD compatible name lister, look for dumpbin.
5517 if test -n "$DUMPBIN"; then :
5518 # Let the user override the test.
5519 else
5520 if test -n "$ac_tool_prefix"; then
5521 for ac_prog in dumpbin "link -dump"
5522 do
5523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_DUMPBIN+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -n "$DUMPBIN"; then
5531 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548 fi
5549 fi
5550 DUMPBIN=$ac_cv_prog_DUMPBIN
5551 if test -n "$DUMPBIN"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5553 $as_echo "$DUMPBIN" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 test -n "$DUMPBIN" && break
5561 done
5562 fi
5563 if test -z "$DUMPBIN"; then
5564 ac_ct_DUMPBIN=$DUMPBIN
5565 for ac_prog in dumpbin "link -dump"
5566 do
5567 # Extract the first word of "$ac_prog", so it can be a program name with args.
5568 set dummy $ac_prog; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$ac_ct_DUMPBIN"; then
5575 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5595 if test -n "$ac_ct_DUMPBIN"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5597 $as_echo "$ac_ct_DUMPBIN" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603
5604 test -n "$ac_ct_DUMPBIN" && break
5605 done
5606
5607 if test "x$ac_ct_DUMPBIN" = x; then
5608 DUMPBIN=":"
5609 else
5610 case $cross_compiling:$ac_tool_warned in
5611 yes:)
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616 DUMPBIN=$ac_ct_DUMPBIN
5617 fi
5618 fi
5619
5620 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5621 *COFF*)
5622 DUMPBIN="$DUMPBIN -symbols"
5623 ;;
5624 *)
5625 DUMPBIN=:
5626 ;;
5627 esac
5628 fi
5629
5630 if test "$DUMPBIN" != ":"; then
5631 NM="$DUMPBIN"
5632 fi
5633 fi
5634 test -z "$NM" && NM=nm
5635
5636
5637
5638
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5642 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5643 if ${lt_cv_nm_interface+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 lt_cv_nm_interface="BSD nm"
5647 echo "int some_variable = 0;" > conftest.$ac_ext
5648 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5649 (eval "$ac_compile" 2>conftest.err)
5650 cat conftest.err >&5
5651 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5652 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5653 cat conftest.err >&5
5654 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5655 cat conftest.out >&5
5656 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5657 lt_cv_nm_interface="MS dumpbin"
5658 fi
5659 rm -f conftest*
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5662 $as_echo "$lt_cv_nm_interface" >&6; }
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5665 $as_echo_n "checking whether ln -s works... " >&6; }
5666 LN_S=$as_ln_s
5667 if test "$LN_S" = "ln -s"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5669 $as_echo "yes" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5672 $as_echo "no, using $LN_S" >&6; }
5673 fi
5674
5675 # find the maximum length of command line arguments
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5677 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5678 if ${lt_cv_sys_max_cmd_len+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 i=0
5682 teststring="ABCD"
5683
5684 case $build_os in
5685 msdosdjgpp*)
5686 # On DJGPP, this test can blow up pretty badly due to problems in libc
5687 # (any single argument exceeding 2000 bytes causes a buffer overrun
5688 # during glob expansion). Even if it were fixed, the result of this
5689 # check would be larger than it should be.
5690 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5691 ;;
5692
5693 gnu*)
5694 # Under GNU Hurd, this test is not required because there is
5695 # no limit to the length of command line arguments.
5696 # Libtool will interpret -1 as no limit whatsoever
5697 lt_cv_sys_max_cmd_len=-1;
5698 ;;
5699
5700 cygwin* | mingw* | cegcc*)
5701 # On Win9x/ME, this test blows up -- it succeeds, but takes
5702 # about 5 minutes as the teststring grows exponentially.
5703 # Worse, since 9x/ME are not pre-emptively multitasking,
5704 # you end up with a "frozen" computer, even though with patience
5705 # the test eventually succeeds (with a max line length of 256k).
5706 # Instead, let's just punt: use the minimum linelength reported by
5707 # all of the supported platforms: 8192 (on NT/2K/XP).
5708 lt_cv_sys_max_cmd_len=8192;
5709 ;;
5710
5711 mint*)
5712 # On MiNT this can take a long time and run out of memory.
5713 lt_cv_sys_max_cmd_len=8192;
5714 ;;
5715
5716 amigaos*)
5717 # On AmigaOS with pdksh, this test takes hours, literally.
5718 # So we just punt and use a minimum line length of 8192.
5719 lt_cv_sys_max_cmd_len=8192;
5720 ;;
5721
5722 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5723 # This has been around since 386BSD, at least. Likely further.
5724 if test -x /sbin/sysctl; then
5725 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5726 elif test -x /usr/sbin/sysctl; then
5727 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5728 else
5729 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5730 fi
5731 # And add a safety zone
5732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5734 ;;
5735
5736 interix*)
5737 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5738 lt_cv_sys_max_cmd_len=196608
5739 ;;
5740
5741 osf*)
5742 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5743 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5744 # nice to cause kernel panics so lets avoid the loop below.
5745 # First set a reasonable default.
5746 lt_cv_sys_max_cmd_len=16384
5747 #
5748 if test -x /sbin/sysconfig; then
5749 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5750 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5751 esac
5752 fi
5753 ;;
5754 sco3.2v5*)
5755 lt_cv_sys_max_cmd_len=102400
5756 ;;
5757 sysv5* | sco5v6* | sysv4.2uw2*)
5758 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5759 if test -n "$kargmax"; then
5760 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5761 else
5762 lt_cv_sys_max_cmd_len=32768
5763 fi
5764 ;;
5765 *)
5766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5767 if test -n "$lt_cv_sys_max_cmd_len"; then
5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5770 else
5771 # Make teststring a little bigger before we do anything with it.
5772 # a 1K string should be a reasonable start.
5773 for i in 1 2 3 4 5 6 7 8 ; do
5774 teststring=$teststring$teststring
5775 done
5776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5777 # If test is not a shell built-in, we'll probably end up computing a
5778 # maximum length that is only half of the actual maximum length, but
5779 # we can't tell.
5780 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5781 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5782 test $i != 17 # 1/2 MB should be enough
5783 do
5784 i=`expr $i + 1`
5785 teststring=$teststring$teststring
5786 done
5787 # Only check the string length outside the loop.
5788 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5789 teststring=
5790 # Add a significant safety factor because C++ compilers can tack on
5791 # massive amounts of additional arguments before passing them to the
5792 # linker. It appears as though 1/2 is a usable value.
5793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5794 fi
5795 ;;
5796 esac
5797
5798 fi
5799
5800 if test -n $lt_cv_sys_max_cmd_len ; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5802 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5805 $as_echo "none" >&6; }
5806 fi
5807 max_cmd_len=$lt_cv_sys_max_cmd_len
5808
5809
5810
5811
5812
5813
5814 : ${CP="cp -f"}
5815 : ${MV="mv -f"}
5816 : ${RM="rm -f"}
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5819 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5820 # Try some XSI features
5821 xsi_shell=no
5822 ( _lt_dummy="a/b/c"
5823 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5824 = c,a/b,, \
5825 && eval 'test $(( 1 + 1 )) -eq 2 \
5826 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5827 && xsi_shell=yes
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5829 $as_echo "$xsi_shell" >&6; }
5830
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5833 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5834 lt_shell_append=no
5835 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5836 >/dev/null 2>&1 \
5837 && lt_shell_append=yes
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5839 $as_echo "$lt_shell_append" >&6; }
5840
5841
5842 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5843 lt_unset=unset
5844 else
5845 lt_unset=false
5846 fi
5847
5848
5849
5850
5851
5852 # test EBCDIC or ASCII
5853 case `echo X|tr X '\101'` in
5854 A) # ASCII based system
5855 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5856 lt_SP2NL='tr \040 \012'
5857 lt_NL2SP='tr \015\012 \040\040'
5858 ;;
5859 *) # EBCDIC based system
5860 lt_SP2NL='tr \100 \n'
5861 lt_NL2SP='tr \r\n \100\100'
5862 ;;
5863 esac
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5874 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5875 if ${lt_cv_ld_reload_flag+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 lt_cv_ld_reload_flag='-r'
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5881 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5882 reload_flag=$lt_cv_ld_reload_flag
5883 case $reload_flag in
5884 "" | " "*) ;;
5885 *) reload_flag=" $reload_flag" ;;
5886 esac
5887 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5888 case $host_os in
5889 darwin*)
5890 if test "$GCC" = yes; then
5891 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5892 else
5893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5894 fi
5895 ;;
5896 esac
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906 if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5908 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if ${ac_cv_prog_OBJDUMP+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -n "$OBJDUMP"; then
5915 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 OBJDUMP=$ac_cv_prog_OBJDUMP
5935 if test -n "$OBJDUMP"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5937 $as_echo "$OBJDUMP" >&6; }
5938 else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5941 fi
5942
5943
5944 fi
5945 if test -z "$ac_cv_prog_OBJDUMP"; then
5946 ac_ct_OBJDUMP=$OBJDUMP
5947 # Extract the first word of "objdump", so it can be a program name with args.
5948 set dummy objdump; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if test -n "$ac_ct_OBJDUMP"; then
5955 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968 done
5969 done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5975 if test -n "$ac_ct_OBJDUMP"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5977 $as_echo "$ac_ct_OBJDUMP" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983 if test "x$ac_ct_OBJDUMP" = x; then
5984 OBJDUMP="false"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 OBJDUMP=$ac_ct_OBJDUMP
5993 fi
5994 else
5995 OBJDUMP="$ac_cv_prog_OBJDUMP"
5996 fi
5997
5998 test -z "$OBJDUMP" && OBJDUMP=objdump
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6009 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6010 if ${lt_cv_deplibs_check_method+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 lt_cv_file_magic_cmd='$MAGIC_CMD'
6014 lt_cv_file_magic_test_file=
6015 lt_cv_deplibs_check_method='unknown'
6016 # Need to set the preceding variable on all platforms that support
6017 # interlibrary dependencies.
6018 # 'none' -- dependencies not supported.
6019 # `unknown' -- same as none, but documents that we really don't know.
6020 # 'pass_all' -- all dependencies passed with no checks.
6021 # 'test_compile' -- check by making test program.
6022 # 'file_magic [[regex]]' -- check by looking for files in library path
6023 # which responds to the $file_magic_cmd with a given extended regex.
6024 # If you have `file' or equivalent on your system and you're not sure
6025 # whether `pass_all' will *always* work, you probably want this one.
6026
6027 case $host_os in
6028 aix[4-9]*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031
6032 beos*)
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035
6036 bsdi[45]*)
6037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6038 lt_cv_file_magic_cmd='/usr/bin/file -L'
6039 lt_cv_file_magic_test_file=/shlib/libc.so
6040 ;;
6041
6042 cygwin*)
6043 # func_win32_libid is a shell function defined in ltmain.sh
6044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6045 lt_cv_file_magic_cmd='func_win32_libid'
6046 ;;
6047
6048 mingw* | pw32*)
6049 # Base MSYS/MinGW do not provide the 'file' command needed by
6050 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6051 # unless we find 'file', for example because we are cross-compiling.
6052 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6053 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6055 lt_cv_file_magic_cmd='func_win32_libid'
6056 else
6057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6058 lt_cv_file_magic_cmd='$OBJDUMP -f'
6059 fi
6060 ;;
6061
6062 cegcc*)
6063 # use the weaker test based on 'objdump'. See mingw*.
6064 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6065 lt_cv_file_magic_cmd='$OBJDUMP -f'
6066 ;;
6067
6068 darwin* | rhapsody*)
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071
6072 freebsd* | dragonfly*)
6073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6074 case $host_cpu in
6075 i*86 )
6076 # Not sure whether the presence of OpenBSD here was a mistake.
6077 # Let's accept both of them until this is cleared up.
6078 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6079 lt_cv_file_magic_cmd=/usr/bin/file
6080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6081 ;;
6082 esac
6083 else
6084 lt_cv_deplibs_check_method=pass_all
6085 fi
6086 ;;
6087
6088 gnu*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092 haiku*)
6093 lt_cv_deplibs_check_method=pass_all
6094 ;;
6095
6096 hpux10.20* | hpux11*)
6097 lt_cv_file_magic_cmd=/usr/bin/file
6098 case $host_cpu in
6099 ia64*)
6100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6101 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6102 ;;
6103 hppa*64*)
6104 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]'
6105 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6106 ;;
6107 *)
6108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6109 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6110 ;;
6111 esac
6112 ;;
6113
6114 interix[3-9]*)
6115 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6117 ;;
6118
6119 irix5* | irix6* | nonstopux*)
6120 case $LD in
6121 *-32|*"-32 ") libmagic=32-bit;;
6122 *-n32|*"-n32 ") libmagic=N32;;
6123 *-64|*"-64 ") libmagic=64-bit;;
6124 *) libmagic=never-match;;
6125 esac
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128
6129 # This must be Linux ELF.
6130 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 netbsd*)
6135 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6137 else
6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6139 fi
6140 ;;
6141
6142 newos6*)
6143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6144 lt_cv_file_magic_cmd=/usr/bin/file
6145 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6146 ;;
6147
6148 *nto* | *qnx*)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151
6152 openbsd*)
6153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6155 else
6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6157 fi
6158 ;;
6159
6160 osf3* | osf4* | osf5*)
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163
6164 rdos*)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167
6168 solaris*)
6169 lt_cv_deplibs_check_method=pass_all
6170 ;;
6171
6172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
6175
6176 sysv4 | sysv4.3*)
6177 case $host_vendor in
6178 motorola)
6179 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]'
6180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6181 ;;
6182 ncr)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
6185 sequent)
6186 lt_cv_file_magic_cmd='/bin/file'
6187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6188 ;;
6189 sni)
6190 lt_cv_file_magic_cmd='/bin/file'
6191 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6192 lt_cv_file_magic_test_file=/lib/libc.so
6193 ;;
6194 siemens)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197 pc)
6198 lt_cv_deplibs_check_method=pass_all
6199 ;;
6200 esac
6201 ;;
6202
6203 tpf*)
6204 lt_cv_deplibs_check_method=pass_all
6205 ;;
6206 esac
6207
6208 fi
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6210 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6211 file_magic_cmd=$lt_cv_file_magic_cmd
6212 deplibs_check_method=$lt_cv_deplibs_check_method
6213 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}ar; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_AR+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$AR"; then
6235 ac_cv_prog_AR="$AR" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_AR="${ac_tool_prefix}ar"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 AR=$ac_cv_prog_AR
6255 if test -n "$AR"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6257 $as_echo "$AR" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 fi
6265 if test -z "$ac_cv_prog_AR"; then
6266 ac_ct_AR=$AR
6267 # Extract the first word of "ar", so it can be a program name with args.
6268 set dummy ar; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$ac_ct_AR"; then
6275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_ac_ct_AR="ar"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6295 if test -n "$ac_ct_AR"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6297 $as_echo "$ac_ct_AR" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303 if test "x$ac_ct_AR" = x; then
6304 AR="false"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 AR=$ac_ct_AR
6313 fi
6314 else
6315 AR="$ac_cv_prog_AR"
6316 fi
6317
6318 test -z "$AR" && AR=ar
6319 test -z "$AR_FLAGS" && AR_FLAGS=cru
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}strip; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_STRIP+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 if test -n "$STRIP"; then
6340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 STRIP=$ac_cv_prog_STRIP
6360 if test -n "$STRIP"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6362 $as_echo "$STRIP" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_STRIP"; then
6371 ac_ct_STRIP=$STRIP
6372 # Extract the first word of "strip", so it can be a program name with args.
6373 set dummy strip; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 if test -n "$ac_ct_STRIP"; then
6380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_ac_ct_STRIP="strip"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6400 if test -n "$ac_ct_STRIP"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6402 $as_echo "$ac_ct_STRIP" >&6; }
6403 else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408 if test "x$ac_ct_STRIP" = x; then
6409 STRIP=":"
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417 STRIP=$ac_ct_STRIP
6418 fi
6419 else
6420 STRIP="$ac_cv_prog_STRIP"
6421 fi
6422
6423 test -z "$STRIP" && STRIP=:
6424
6425
6426
6427
6428
6429
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_RANLIB+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$RANLIB"; then
6439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 RANLIB=$ac_cv_prog_RANLIB
6459 if test -n "$RANLIB"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6461 $as_echo "$RANLIB" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467
6468 fi
6469 if test -z "$ac_cv_prog_RANLIB"; then
6470 ac_ct_RANLIB=$RANLIB
6471 # Extract the first word of "ranlib", so it can be a program name with args.
6472 set dummy ranlib; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test -n "$ac_ct_RANLIB"; then
6479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_ac_ct_RANLIB="ranlib"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492 done
6493 done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6499 if test -n "$ac_ct_RANLIB"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6501 $as_echo "$ac_ct_RANLIB" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507 if test "x$ac_ct_RANLIB" = x; then
6508 RANLIB=":"
6509 else
6510 case $cross_compiling:$ac_tool_warned in
6511 yes:)
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514 ac_tool_warned=yes ;;
6515 esac
6516 RANLIB=$ac_ct_RANLIB
6517 fi
6518 else
6519 RANLIB="$ac_cv_prog_RANLIB"
6520 fi
6521
6522 test -z "$RANLIB" && RANLIB=:
6523
6524
6525
6526
6527
6528
6529 # Determine commands to create old-style static archives.
6530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6531 old_postinstall_cmds='chmod 644 $oldlib'
6532 old_postuninstall_cmds=
6533
6534 if test -n "$RANLIB"; then
6535 case $host_os in
6536 openbsd*)
6537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6538 ;;
6539 *)
6540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6541 ;;
6542 esac
6543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6544 fi
6545
6546 case $host_os in
6547 darwin*)
6548 lock_old_archive_extraction=yes ;;
6549 *)
6550 lock_old_archive_extraction=no ;;
6551 esac
6552
6553
6554
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
6589
6590
6591 # If no C compiler was specified, use CC.
6592 LTCC=${LTCC-"$CC"}
6593
6594 # If no C compiler flags were specified, use CFLAGS.
6595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6596
6597 # Allow CC to be a program name with arguments.
6598 compiler=$CC
6599
6600
6601 # Check for command to grab the raw symbol name followed by C symbol from nm.
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6603 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6604 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607
6608 # These are sane defaults that work on at least a few old systems.
6609 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6610
6611 # Character class describing NM global symbol codes.
6612 symcode='[BCDEGRST]'
6613
6614 # Regexp to match symbols that can be accessed directly from C.
6615 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6616
6617 # Define system-specific variables.
6618 case $host_os in
6619 aix*)
6620 symcode='[BCDT]'
6621 ;;
6622 cygwin* | mingw* | pw32* | cegcc*)
6623 symcode='[ABCDGISTW]'
6624 ;;
6625 hpux*)
6626 if test "$host_cpu" = ia64; then
6627 symcode='[ABCDEGRST]'
6628 fi
6629 ;;
6630 irix* | nonstopux*)
6631 symcode='[BCDEGRST]'
6632 ;;
6633 osf*)
6634 symcode='[BCDEGQRST]'
6635 ;;
6636 solaris*)
6637 symcode='[BDRT]'
6638 ;;
6639 sco3.2v5*)
6640 symcode='[DT]'
6641 ;;
6642 sysv4.2uw2*)
6643 symcode='[DT]'
6644 ;;
6645 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6646 symcode='[ABDT]'
6647 ;;
6648 sysv4)
6649 symcode='[DFNSTU]'
6650 ;;
6651 esac
6652
6653 # If we're using GNU nm, then use its standard symbol codes.
6654 case `$NM -V 2>&1` in
6655 *GNU* | *'with BFD'*)
6656 symcode='[ABCDGIRSTW]' ;;
6657 esac
6658
6659 # Transform an extracted symbol line into a proper C declaration.
6660 # Some systems (esp. on ia64) link data and code symbols differently,
6661 # so use this general approach.
6662 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6663
6664 # Transform an extracted symbol line into symbol name and symbol address
6665 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6666 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'"
6667
6668 # Handle CRLF in mingw tool chain
6669 opt_cr=
6670 case $build_os in
6671 mingw*)
6672 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6673 ;;
6674 esac
6675
6676 # Try without a prefix underscore, then with it.
6677 for ac_symprfx in "" "_"; do
6678
6679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6680 symxfrm="\\1 $ac_symprfx\\2 \\2"
6681
6682 # Write the raw and C identifiers.
6683 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6684 # Fake it for dumpbin and say T for any non-static function
6685 # and D for any global variable.
6686 # Also find C++ and __fastcall symbols from MSVC++,
6687 # which start with @ or ?.
6688 lt_cv_sys_global_symbol_pipe="$AWK '"\
6689 " {last_section=section; section=\$ 3};"\
6690 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6691 " \$ 0!~/External *\|/{next};"\
6692 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6693 " {if(hide[section]) next};"\
6694 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6695 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6696 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6697 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6698 " ' prfx=^$ac_symprfx"
6699 else
6700 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6701 fi
6702
6703 # Check to see that the pipe works correctly.
6704 pipe_works=no
6705
6706 rm -f conftest*
6707 cat > conftest.$ac_ext <<_LT_EOF
6708 #ifdef __cplusplus
6709 extern "C" {
6710 #endif
6711 char nm_test_var;
6712 void nm_test_func(void);
6713 void nm_test_func(void){}
6714 #ifdef __cplusplus
6715 }
6716 #endif
6717 int main(){nm_test_var='a';nm_test_func();return(0);}
6718 _LT_EOF
6719
6720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6721 (eval $ac_compile) 2>&5
6722 ac_status=$?
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724 test $ac_status = 0; }; then
6725 # Now try to grab the symbols.
6726 nlist=conftest.nm
6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6728 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; } && test -s "$nlist"; then
6732 # Try sorting and uniquifying the output.
6733 if sort "$nlist" | uniq > "$nlist"T; then
6734 mv -f "$nlist"T "$nlist"
6735 else
6736 rm -f "$nlist"T
6737 fi
6738
6739 # Make sure that we snagged all the symbols we need.
6740 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6741 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6742 cat <<_LT_EOF > conftest.$ac_ext
6743 #ifdef __cplusplus
6744 extern "C" {
6745 #endif
6746
6747 _LT_EOF
6748 # Now generate the symbol file.
6749 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6750
6751 cat <<_LT_EOF >> conftest.$ac_ext
6752
6753 /* The mapping between symbol names and symbols. */
6754 const struct {
6755 const char *name;
6756 void *address;
6757 }
6758 lt__PROGRAM__LTX_preloaded_symbols[] =
6759 {
6760 { "@PROGRAM@", (void *) 0 },
6761 _LT_EOF
6762 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6763 cat <<\_LT_EOF >> conftest.$ac_ext
6764 {0, (void *) 0}
6765 };
6766
6767 /* This works around a problem in FreeBSD linker */
6768 #ifdef FREEBSD_WORKAROUND
6769 static const void *lt_preloaded_setup() {
6770 return lt__PROGRAM__LTX_preloaded_symbols;
6771 }
6772 #endif
6773
6774 #ifdef __cplusplus
6775 }
6776 #endif
6777 _LT_EOF
6778 # Now try linking the two files.
6779 mv conftest.$ac_objext conftstm.$ac_objext
6780 lt_save_LIBS="$LIBS"
6781 lt_save_CFLAGS="$CFLAGS"
6782 LIBS="conftstm.$ac_objext"
6783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6785 (eval $ac_link) 2>&5
6786 ac_status=$?
6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6789 pipe_works=yes
6790 fi
6791 LIBS="$lt_save_LIBS"
6792 CFLAGS="$lt_save_CFLAGS"
6793 else
6794 echo "cannot find nm_test_func in $nlist" >&5
6795 fi
6796 else
6797 echo "cannot find nm_test_var in $nlist" >&5
6798 fi
6799 else
6800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6801 fi
6802 else
6803 echo "$progname: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6805 fi
6806 rm -rf conftest* conftst*
6807
6808 # Do not use the global_symbol_pipe unless it works.
6809 if test "$pipe_works" = yes; then
6810 break
6811 else
6812 lt_cv_sys_global_symbol_pipe=
6813 fi
6814 done
6815
6816 fi
6817
6818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6819 lt_cv_sys_global_symbol_to_cdecl=
6820 fi
6821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6823 $as_echo "failed" >&6; }
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6826 $as_echo "ok" >&6; }
6827 fi
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851 # Check whether --enable-libtool-lock was given.
6852 if test "${enable_libtool_lock+set}" = set; then :
6853 enableval=$enable_libtool_lock;
6854 fi
6855
6856 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6857
6858 # Some flags need to be propagated to the compiler or linker for good
6859 # libtool support.
6860 case $host in
6861 ia64-*-hpux*)
6862 # Find out which ABI we are using.
6863 echo 'int i;' > conftest.$ac_ext
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865 (eval $ac_compile) 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; }; then
6869 case `/usr/bin/file conftest.$ac_objext` in
6870 *ELF-32*)
6871 HPUX_IA64_MODE="32"
6872 ;;
6873 *ELF-64*)
6874 HPUX_IA64_MODE="64"
6875 ;;
6876 esac
6877 fi
6878 rm -rf conftest*
6879 ;;
6880 *-*-irix6*)
6881 # Find out which ABI we are using.
6882 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6884 (eval $ac_compile) 2>&5
6885 ac_status=$?
6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6887 test $ac_status = 0; }; then
6888 if test "$lt_cv_prog_gnu_ld" = yes; then
6889 case `/usr/bin/file conftest.$ac_objext` in
6890 *32-bit*)
6891 LD="${LD-ld} -melf32bsmip"
6892 ;;
6893 *N32*)
6894 LD="${LD-ld} -melf32bmipn32"
6895 ;;
6896 *64-bit*)
6897 LD="${LD-ld} -melf64bmip"
6898 ;;
6899 esac
6900 else
6901 case `/usr/bin/file conftest.$ac_objext` in
6902 *32-bit*)
6903 LD="${LD-ld} -32"
6904 ;;
6905 *N32*)
6906 LD="${LD-ld} -n32"
6907 ;;
6908 *64-bit*)
6909 LD="${LD-ld} -64"
6910 ;;
6911 esac
6912 fi
6913 fi
6914 rm -rf conftest*
6915 ;;
6916
6917 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6918 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6919 # Find out which ABI we are using.
6920 echo 'int i;' > conftest.$ac_ext
6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6922 (eval $ac_compile) 2>&5
6923 ac_status=$?
6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925 test $ac_status = 0; }; then
6926 case `/usr/bin/file conftest.o` in
6927 *32-bit*)
6928 case $host in
6929 x86_64-*kfreebsd*-gnu)
6930 LD="${LD-ld} -m elf_i386_fbsd"
6931 ;;
6932 x86_64-*linux*)
6933 case `/usr/bin/file conftest.o` in
6934 *x86-64*)
6935 LD="${LD-ld} -m elf32_x86_64"
6936 ;;
6937 *)
6938 LD="${LD-ld} -m elf_i386"
6939 ;;
6940 esac
6941 ;;
6942 powerpc64le-*linux*)
6943 LD="${LD-ld} -m elf32lppclinux"
6944 ;;
6945 powerpc64-*linux*)
6946 LD="${LD-ld} -m elf32ppclinux"
6947 ;;
6948 s390x-*linux*)
6949 LD="${LD-ld} -m elf_s390"
6950 ;;
6951 sparc64-*linux*)
6952 LD="${LD-ld} -m elf32_sparc"
6953 ;;
6954 esac
6955 ;;
6956 *64-bit*)
6957 case $host in
6958 x86_64-*kfreebsd*-gnu)
6959 LD="${LD-ld} -m elf_x86_64_fbsd"
6960 ;;
6961 x86_64-*linux*)
6962 LD="${LD-ld} -m elf_x86_64"
6963 ;;
6964 powerpcle-*linux*)
6965 LD="${LD-ld} -m elf64lppc"
6966 ;;
6967 powerpc-*linux*)
6968 LD="${LD-ld} -m elf64ppc"
6969 ;;
6970 s390*-*linux*|s390*-*tpf*)
6971 LD="${LD-ld} -m elf64_s390"
6972 ;;
6973 sparc*-*linux*)
6974 LD="${LD-ld} -m elf64_sparc"
6975 ;;
6976 esac
6977 ;;
6978 esac
6979 fi
6980 rm -rf conftest*
6981 ;;
6982
6983 *-*-sco3.2v5*)
6984 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6985 SAVE_CFLAGS="$CFLAGS"
6986 CFLAGS="$CFLAGS -belf"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6988 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6989 if ${lt_cv_cc_needs_belf+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 ac_ext=c
6993 ac_cpp='$CPP $CPPFLAGS'
6994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6997
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7000
7001 int
7002 main ()
7003 {
7004
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 if ac_fn_c_try_link "$LINENO"; then :
7010 lt_cv_cc_needs_belf=yes
7011 else
7012 lt_cv_cc_needs_belf=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext \
7015 conftest$ac_exeext conftest.$ac_ext
7016 ac_ext=c
7017 ac_cpp='$CPP $CPPFLAGS'
7018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7024 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7025 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7027 CFLAGS="$SAVE_CFLAGS"
7028 fi
7029 ;;
7030 sparc*-*solaris*)
7031 # Find out which ABI we are using.
7032 echo 'int i;' > conftest.$ac_ext
7033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7034 (eval $ac_compile) 2>&5
7035 ac_status=$?
7036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037 test $ac_status = 0; }; then
7038 case `/usr/bin/file conftest.o` in
7039 *64-bit*)
7040 case $lt_cv_prog_gnu_ld in
7041 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7042 *)
7043 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7044 LD="${LD-ld} -64"
7045 fi
7046 ;;
7047 esac
7048 ;;
7049 esac
7050 fi
7051 rm -rf conftest*
7052 ;;
7053 esac
7054
7055 need_locks="$enable_libtool_lock"
7056
7057
7058 case $host_os in
7059 rhapsody* | darwin*)
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 if test -n "$DSYMUTIL"; then
7069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7089 if test -n "$DSYMUTIL"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7091 $as_echo "$DSYMUTIL" >&6; }
7092 else
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097
7098 fi
7099 if test -z "$ac_cv_prog_DSYMUTIL"; then
7100 ac_ct_DSYMUTIL=$DSYMUTIL
7101 # Extract the first word of "dsymutil", so it can be a program name with args.
7102 set dummy dsymutil; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 if test -n "$ac_ct_DSYMUTIL"; then
7109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7121 fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7129 if test -n "$ac_ct_DSYMUTIL"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7131 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136
7137 if test "x$ac_ct_DSYMUTIL" = x; then
7138 DSYMUTIL=":"
7139 else
7140 case $cross_compiling:$ac_tool_warned in
7141 yes:)
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144 ac_tool_warned=yes ;;
7145 esac
7146 DSYMUTIL=$ac_ct_DSYMUTIL
7147 fi
7148 else
7149 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7150 fi
7151
7152 if test -n "$ac_tool_prefix"; then
7153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7154 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_NMEDIT+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 if test -n "$NMEDIT"; then
7161 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174 done
7175 done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 NMEDIT=$ac_cv_prog_NMEDIT
7181 if test -n "$NMEDIT"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7183 $as_echo "$NMEDIT" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189
7190 fi
7191 if test -z "$ac_cv_prog_NMEDIT"; then
7192 ac_ct_NMEDIT=$NMEDIT
7193 # Extract the first word of "nmedit", so it can be a program name with args.
7194 set dummy nmedit; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 if test -n "$ac_ct_NMEDIT"; then
7201 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7202 else
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 break 2
7213 fi
7214 done
7215 done
7216 IFS=$as_save_IFS
7217
7218 fi
7219 fi
7220 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7221 if test -n "$ac_ct_NMEDIT"; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7223 $as_echo "$ac_ct_NMEDIT" >&6; }
7224 else
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7227 fi
7228
7229 if test "x$ac_ct_NMEDIT" = x; then
7230 NMEDIT=":"
7231 else
7232 case $cross_compiling:$ac_tool_warned in
7233 yes:)
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236 ac_tool_warned=yes ;;
7237 esac
7238 NMEDIT=$ac_ct_NMEDIT
7239 fi
7240 else
7241 NMEDIT="$ac_cv_prog_NMEDIT"
7242 fi
7243
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_LIPO+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$LIPO"; then
7253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 LIPO=$ac_cv_prog_LIPO
7273 if test -n "$LIPO"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7275 $as_echo "$LIPO" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_LIPO"; then
7284 ac_ct_LIPO=$LIPO
7285 # Extract the first word of "lipo", so it can be a program name with args.
7286 set dummy lipo; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 if test -n "$ac_ct_LIPO"; then
7293 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_ac_ct_LIPO="lipo"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7305 fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7313 if test -n "$ac_ct_LIPO"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7315 $as_echo "$ac_ct_LIPO" >&6; }
7316 else
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321 if test "x$ac_ct_LIPO" = x; then
7322 LIPO=":"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330 LIPO=$ac_ct_LIPO
7331 fi
7332 else
7333 LIPO="$ac_cv_prog_LIPO"
7334 fi
7335
7336 if test -n "$ac_tool_prefix"; then
7337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7338 set dummy ${ac_tool_prefix}otool; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_prog_OTOOL+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 if test -n "$OTOOL"; then
7345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362 fi
7363 fi
7364 OTOOL=$ac_cv_prog_OTOOL
7365 if test -n "$OTOOL"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7367 $as_echo "$OTOOL" >&6; }
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 fi
7372
7373
7374 fi
7375 if test -z "$ac_cv_prog_OTOOL"; then
7376 ac_ct_OTOOL=$OTOOL
7377 # Extract the first word of "otool", so it can be a program name with args.
7378 set dummy otool; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 if test -n "$ac_ct_OTOOL"; then
7385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_ac_ct_OTOOL="otool"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7405 if test -n "$ac_ct_OTOOL"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7407 $as_echo "$ac_ct_OTOOL" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413 if test "x$ac_ct_OTOOL" = x; then
7414 OTOOL=":"
7415 else
7416 case $cross_compiling:$ac_tool_warned in
7417 yes:)
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420 ac_tool_warned=yes ;;
7421 esac
7422 OTOOL=$ac_ct_OTOOL
7423 fi
7424 else
7425 OTOOL="$ac_cv_prog_OTOOL"
7426 fi
7427
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_OTOOL64+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 if test -n "$OTOOL64"; then
7437 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7449 fi
7450 done
7451 done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 OTOOL64=$ac_cv_prog_OTOOL64
7457 if test -n "$OTOOL64"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7459 $as_echo "$OTOOL64" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466 fi
7467 if test -z "$ac_cv_prog_OTOOL64"; then
7468 ac_ct_OTOOL64=$OTOOL64
7469 # Extract the first word of "otool64", so it can be a program name with args.
7470 set dummy otool64; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 if test -n "$ac_ct_OTOOL64"; then
7477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_ac_ct_OTOOL64="otool64"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490 done
7491 done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7497 if test -n "$ac_ct_OTOOL64"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7499 $as_echo "$ac_ct_OTOOL64" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505 if test "x$ac_ct_OTOOL64" = x; then
7506 OTOOL64=":"
7507 else
7508 case $cross_compiling:$ac_tool_warned in
7509 yes:)
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7513 esac
7514 OTOOL64=$ac_ct_OTOOL64
7515 fi
7516 else
7517 OTOOL64="$ac_cv_prog_OTOOL64"
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7547 $as_echo_n "checking for -single_module linker flag... " >&6; }
7548 if ${lt_cv_apple_cc_single_mod+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 lt_cv_apple_cc_single_mod=no
7552 if test -z "${LT_MULTI_MODULE}"; then
7553 # By default we will add the -single_module flag. You can override
7554 # by either setting the environment variable LT_MULTI_MODULE
7555 # non-empty at configure time, or by adding -multi_module to the
7556 # link flags.
7557 rm -rf libconftest.dylib*
7558 echo "int foo(void){return 1;}" > conftest.c
7559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7560 -dynamiclib -Wl,-single_module conftest.c" >&5
7561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7563 _lt_result=$?
7564 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7565 lt_cv_apple_cc_single_mod=yes
7566 else
7567 cat conftest.err >&5
7568 fi
7569 rm -rf libconftest.dylib*
7570 rm -f conftest.*
7571 fi
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7574 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7576 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7577 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 lt_cv_ld_exported_symbols_list=no
7581 save_LDFLAGS=$LDFLAGS
7582 echo "_main" > conftest.sym
7583 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586
7587 int
7588 main ()
7589 {
7590
7591 ;
7592 return 0;
7593 }
7594 _ACEOF
7595 if ac_fn_c_try_link "$LINENO"; then :
7596 lt_cv_ld_exported_symbols_list=yes
7597 else
7598 lt_cv_ld_exported_symbols_list=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext \
7601 conftest$ac_exeext conftest.$ac_ext
7602 LDFLAGS="$save_LDFLAGS"
7603
7604 fi
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7606 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7608 $as_echo_n "checking for -force_load linker flag... " >&6; }
7609 if ${lt_cv_ld_force_load+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 lt_cv_ld_force_load=no
7613 cat > conftest.c << _LT_EOF
7614 int forced_loaded() { return 2;}
7615 _LT_EOF
7616 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7617 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7618 echo "$AR cru libconftest.a conftest.o" >&5
7619 $AR cru libconftest.a conftest.o 2>&5
7620 cat > conftest.c << _LT_EOF
7621 int main() { return 0;}
7622 _LT_EOF
7623 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7624 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7625 _lt_result=$?
7626 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7627 lt_cv_ld_force_load=yes
7628 else
7629 cat conftest.err >&5
7630 fi
7631 rm -f conftest.err libconftest.a conftest conftest.c
7632 rm -rf conftest.dSYM
7633
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7636 $as_echo "$lt_cv_ld_force_load" >&6; }
7637 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7638 # build without first building modern cctools / linker.
7639 case $host_cpu-$host_os in
7640 *-rhapsody* | *-darwin1.[012])
7641 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7642 *-darwin1.*)
7643 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7644 *-darwin*)
7645 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7646 # deployment target is forced to an earlier version.
7647 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7648 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7649 ;;
7650 10.[012][,.]*)
7651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7652 ;;
7653 *)
7654 ;;
7655 esac
7656 ;;
7657 esac
7658 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7659 _lt_dar_single_mod='$single_module'
7660 fi
7661 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7662 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7663 else
7664 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7665 fi
7666 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7667 _lt_dsymutil='~$DSYMUTIL $lib || :'
7668 else
7669 _lt_dsymutil=
7670 fi
7671 ;;
7672 esac
7673
7674 ac_ext=c
7675 ac_cpp='$CPP $CPPFLAGS'
7676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7680 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7681 # On Suns, sometimes $CPP names a directory.
7682 if test -n "$CPP" && test -d "$CPP"; then
7683 CPP=
7684 fi
7685 if test -z "$CPP"; then
7686 if ${ac_cv_prog_CPP+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 # Double quotes because CPP needs to be expanded
7690 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7691 do
7692 ac_preproc_ok=false
7693 for ac_c_preproc_warn_flag in '' yes
7694 do
7695 # Use a header file that comes with gcc, so configuring glibc
7696 # with a fresh cross-compiler works.
7697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7698 # <limits.h> exists even on freestanding compilers.
7699 # On the NeXT, cc -E runs the code through the compiler's parser,
7700 # not just through cpp. "Syntax error" is here to catch this case.
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 #ifdef __STDC__
7704 # include <limits.h>
7705 #else
7706 # include <assert.h>
7707 #endif
7708 Syntax error
7709 _ACEOF
7710 if ac_fn_c_try_cpp "$LINENO"; then :
7711
7712 else
7713 # Broken: fails on valid input.
7714 continue
7715 fi
7716 rm -f conftest.err conftest.i conftest.$ac_ext
7717
7718 # OK, works on sane cases. Now check whether nonexistent headers
7719 # can be detected and how.
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #include <ac_nonexistent.h>
7723 _ACEOF
7724 if ac_fn_c_try_cpp "$LINENO"; then :
7725 # Broken: success on invalid input.
7726 continue
7727 else
7728 # Passes both tests.
7729 ac_preproc_ok=:
7730 break
7731 fi
7732 rm -f conftest.err conftest.i conftest.$ac_ext
7733
7734 done
7735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7736 rm -f conftest.i conftest.err conftest.$ac_ext
7737 if $ac_preproc_ok; then :
7738 break
7739 fi
7740
7741 done
7742 ac_cv_prog_CPP=$CPP
7743
7744 fi
7745 CPP=$ac_cv_prog_CPP
7746 else
7747 ac_cv_prog_CPP=$CPP
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7750 $as_echo "$CPP" >&6; }
7751 ac_preproc_ok=false
7752 for ac_c_preproc_warn_flag in '' yes
7753 do
7754 # Use a header file that comes with gcc, so configuring glibc
7755 # with a fresh cross-compiler works.
7756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757 # <limits.h> exists even on freestanding compilers.
7758 # On the NeXT, cc -E runs the code through the compiler's parser,
7759 # not just through cpp. "Syntax error" is here to catch this case.
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 #ifdef __STDC__
7763 # include <limits.h>
7764 #else
7765 # include <assert.h>
7766 #endif
7767 Syntax error
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770
7771 else
7772 # Broken: fails on valid input.
7773 continue
7774 fi
7775 rm -f conftest.err conftest.i conftest.$ac_ext
7776
7777 # OK, works on sane cases. Now check whether nonexistent headers
7778 # can be detected and how.
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 #include <ac_nonexistent.h>
7782 _ACEOF
7783 if ac_fn_c_try_cpp "$LINENO"; then :
7784 # Broken: success on invalid input.
7785 continue
7786 else
7787 # Passes both tests.
7788 ac_preproc_ok=:
7789 break
7790 fi
7791 rm -f conftest.err conftest.i conftest.$ac_ext
7792
7793 done
7794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7795 rm -f conftest.i conftest.err conftest.$ac_ext
7796 if $ac_preproc_ok; then :
7797
7798 else
7799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7801 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7802 See \`config.log' for more details" "$LINENO" 5; }
7803 fi
7804
7805 ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7813 $as_echo_n "checking for ANSI C header files... " >&6; }
7814 if ${ac_cv_header_stdc+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 #include <stdlib.h>
7820 #include <stdarg.h>
7821 #include <string.h>
7822 #include <float.h>
7823
7824 int
7825 main ()
7826 {
7827
7828 ;
7829 return 0;
7830 }
7831 _ACEOF
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 ac_cv_header_stdc=yes
7834 else
7835 ac_cv_header_stdc=no
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838
7839 if test $ac_cv_header_stdc = yes; then
7840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 #include <string.h>
7844
7845 _ACEOF
7846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7847 $EGREP "memchr" >/dev/null 2>&1; then :
7848
7849 else
7850 ac_cv_header_stdc=no
7851 fi
7852 rm -f conftest*
7853
7854 fi
7855
7856 if test $ac_cv_header_stdc = yes; then
7857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860 #include <stdlib.h>
7861
7862 _ACEOF
7863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7864 $EGREP "free" >/dev/null 2>&1; then :
7865
7866 else
7867 ac_cv_header_stdc=no
7868 fi
7869 rm -f conftest*
7870
7871 fi
7872
7873 if test $ac_cv_header_stdc = yes; then
7874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7875 if test "$cross_compiling" = yes; then :
7876 :
7877 else
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 #include <ctype.h>
7881 #include <stdlib.h>
7882 #if ((' ' & 0x0FF) == 0x020)
7883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7885 #else
7886 # define ISLOWER(c) \
7887 (('a' <= (c) && (c) <= 'i') \
7888 || ('j' <= (c) && (c) <= 'r') \
7889 || ('s' <= (c) && (c) <= 'z'))
7890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7891 #endif
7892
7893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7894 int
7895 main ()
7896 {
7897 int i;
7898 for (i = 0; i < 256; i++)
7899 if (XOR (islower (i), ISLOWER (i))
7900 || toupper (i) != TOUPPER (i))
7901 return 2;
7902 return 0;
7903 }
7904 _ACEOF
7905 if ac_fn_c_try_run "$LINENO"; then :
7906
7907 else
7908 ac_cv_header_stdc=no
7909 fi
7910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7911 conftest.$ac_objext conftest.beam conftest.$ac_ext
7912 fi
7913
7914 fi
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7917 $as_echo "$ac_cv_header_stdc" >&6; }
7918 if test $ac_cv_header_stdc = yes; then
7919
7920 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7921
7922 fi
7923
7924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7925 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7926 inttypes.h stdint.h unistd.h
7927 do :
7928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7929 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7930 "
7931 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7932 cat >>confdefs.h <<_ACEOF
7933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7934 _ACEOF
7935
7936 fi
7937
7938 done
7939
7940
7941 for ac_header in dlfcn.h
7942 do :
7943 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7944 "
7945 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7946 cat >>confdefs.h <<_ACEOF
7947 #define HAVE_DLFCN_H 1
7948 _ACEOF
7949
7950 fi
7951
7952 done
7953
7954
7955
7956
7957
7958 # Set options
7959
7960
7961
7962 enable_dlopen=no
7963
7964
7965 enable_win32_dll=no
7966
7967
7968 # Check whether --enable-shared was given.
7969 if test "${enable_shared+set}" = set; then :
7970 enableval=$enable_shared; p=${PACKAGE-default}
7971 case $enableval in
7972 yes) enable_shared=yes ;;
7973 no) enable_shared=no ;;
7974 *)
7975 enable_shared=no
7976 # Look at the argument we got. We use all the common list separators.
7977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7978 for pkg in $enableval; do
7979 IFS="$lt_save_ifs"
7980 if test "X$pkg" = "X$p"; then
7981 enable_shared=yes
7982 fi
7983 done
7984 IFS="$lt_save_ifs"
7985 ;;
7986 esac
7987 else
7988 enable_shared=yes
7989 fi
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999 # Check whether --enable-static was given.
8000 if test "${enable_static+set}" = set; then :
8001 enableval=$enable_static; p=${PACKAGE-default}
8002 case $enableval in
8003 yes) enable_static=yes ;;
8004 no) enable_static=no ;;
8005 *)
8006 enable_static=no
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009 for pkg in $enableval; do
8010 IFS="$lt_save_ifs"
8011 if test "X$pkg" = "X$p"; then
8012 enable_static=yes
8013 fi
8014 done
8015 IFS="$lt_save_ifs"
8016 ;;
8017 esac
8018 else
8019 enable_static=yes
8020 fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031 # Check whether --with-pic was given.
8032 if test "${with_pic+set}" = set; then :
8033 withval=$with_pic; pic_mode="$withval"
8034 else
8035 pic_mode=default
8036 fi
8037
8038
8039 test -z "$pic_mode" && pic_mode=default
8040
8041
8042
8043
8044
8045
8046
8047 # Check whether --enable-fast-install was given.
8048 if test "${enable_fast_install+set}" = set; then :
8049 enableval=$enable_fast_install; p=${PACKAGE-default}
8050 case $enableval in
8051 yes) enable_fast_install=yes ;;
8052 no) enable_fast_install=no ;;
8053 *)
8054 enable_fast_install=no
8055 # Look at the argument we got. We use all the common list separators.
8056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8057 for pkg in $enableval; do
8058 IFS="$lt_save_ifs"
8059 if test "X$pkg" = "X$p"; then
8060 enable_fast_install=yes
8061 fi
8062 done
8063 IFS="$lt_save_ifs"
8064 ;;
8065 esac
8066 else
8067 enable_fast_install=yes
8068 fi
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 # This can be used to rebuild libtool when needed
8081 LIBTOOL_DEPS="$ltmain"
8082
8083 # Always use our own libtool.
8084 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111 test -z "$LN_S" && LN_S="ln -s"
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126 if test -n "${ZSH_VERSION+set}" ; then
8127 setopt NO_GLOB_SUBST
8128 fi
8129
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8131 $as_echo_n "checking for objdir... " >&6; }
8132 if ${lt_cv_objdir+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 rm -f .libs 2>/dev/null
8136 mkdir .libs 2>/dev/null
8137 if test -d .libs; then
8138 lt_cv_objdir=.libs
8139 else
8140 # MS-DOS does not allow filenames that begin with a dot.
8141 lt_cv_objdir=_libs
8142 fi
8143 rmdir .libs 2>/dev/null
8144 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8146 $as_echo "$lt_cv_objdir" >&6; }
8147 objdir=$lt_cv_objdir
8148
8149
8150
8151
8152
8153 cat >>confdefs.h <<_ACEOF
8154 #define LT_OBJDIR "$lt_cv_objdir/"
8155 _ACEOF
8156
8157
8158
8159
8160 case $host_os in
8161 aix3*)
8162 # AIX sometimes has problems with the GCC collect2 program. For some
8163 # reason, if we set the COLLECT_NAMES environment variable, the problems
8164 # vanish in a puff of smoke.
8165 if test "X${COLLECT_NAMES+set}" != Xset; then
8166 COLLECT_NAMES=
8167 export COLLECT_NAMES
8168 fi
8169 ;;
8170 esac
8171
8172 # Global variables:
8173 ofile=libtool
8174 can_build_shared=yes
8175
8176 # All known linkers require a `.a' archive for static linking (except MSVC,
8177 # which needs '.lib').
8178 libext=a
8179
8180 with_gnu_ld="$lt_cv_prog_gnu_ld"
8181
8182 old_CC="$CC"
8183 old_CFLAGS="$CFLAGS"
8184
8185 # Set sane defaults for various variables
8186 test -z "$CC" && CC=cc
8187 test -z "$LTCC" && LTCC=$CC
8188 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8189 test -z "$LD" && LD=ld
8190 test -z "$ac_objext" && ac_objext=o
8191
8192 for cc_temp in $compiler""; do
8193 case $cc_temp in
8194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8196 \-*) ;;
8197 *) break;;
8198 esac
8199 done
8200 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8201
8202
8203 # Only perform the check for file, if the check method requires it
8204 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8205 case $deplibs_check_method in
8206 file_magic*)
8207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8209 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8210 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 case $MAGIC_CMD in
8214 [\\/*] | ?:[\\/]*)
8215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8216 ;;
8217 *)
8218 lt_save_MAGIC_CMD="$MAGIC_CMD"
8219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8221 for ac_dir in $ac_dummy; do
8222 IFS="$lt_save_ifs"
8223 test -z "$ac_dir" && ac_dir=.
8224 if test -f $ac_dir/${ac_tool_prefix}file; then
8225 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8226 if test -n "$file_magic_test_file"; then
8227 case $deplibs_check_method in
8228 "file_magic "*)
8229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8232 $EGREP "$file_magic_regex" > /dev/null; then
8233 :
8234 else
8235 cat <<_LT_EOF 1>&2
8236
8237 *** Warning: the command libtool uses to detect shared libraries,
8238 *** $file_magic_cmd, produces output that libtool cannot recognize.
8239 *** The result is that libtool may fail to recognize shared libraries
8240 *** as such. This will affect the creation of libtool libraries that
8241 *** depend on shared libraries, but programs linked with such libtool
8242 *** libraries will work regardless of this problem. Nevertheless, you
8243 *** may want to report the problem to your system manager and/or to
8244 *** bug-libtool@gnu.org
8245
8246 _LT_EOF
8247 fi ;;
8248 esac
8249 fi
8250 break
8251 fi
8252 done
8253 IFS="$lt_save_ifs"
8254 MAGIC_CMD="$lt_save_MAGIC_CMD"
8255 ;;
8256 esac
8257 fi
8258
8259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260 if test -n "$MAGIC_CMD"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8262 $as_echo "$MAGIC_CMD" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 fi
8267
8268
8269
8270
8271
8272 if test -z "$lt_cv_path_MAGIC_CMD"; then
8273 if test -n "$ac_tool_prefix"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8275 $as_echo_n "checking for file... " >&6; }
8276 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 case $MAGIC_CMD in
8280 [\\/*] | ?:[\\/]*)
8281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8282 ;;
8283 *)
8284 lt_save_MAGIC_CMD="$MAGIC_CMD"
8285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8287 for ac_dir in $ac_dummy; do
8288 IFS="$lt_save_ifs"
8289 test -z "$ac_dir" && ac_dir=.
8290 if test -f $ac_dir/file; then
8291 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8292 if test -n "$file_magic_test_file"; then
8293 case $deplibs_check_method in
8294 "file_magic "*)
8295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8298 $EGREP "$file_magic_regex" > /dev/null; then
8299 :
8300 else
8301 cat <<_LT_EOF 1>&2
8302
8303 *** Warning: the command libtool uses to detect shared libraries,
8304 *** $file_magic_cmd, produces output that libtool cannot recognize.
8305 *** The result is that libtool may fail to recognize shared libraries
8306 *** as such. This will affect the creation of libtool libraries that
8307 *** depend on shared libraries, but programs linked with such libtool
8308 *** libraries will work regardless of this problem. Nevertheless, you
8309 *** may want to report the problem to your system manager and/or to
8310 *** bug-libtool@gnu.org
8311
8312 _LT_EOF
8313 fi ;;
8314 esac
8315 fi
8316 break
8317 fi
8318 done
8319 IFS="$lt_save_ifs"
8320 MAGIC_CMD="$lt_save_MAGIC_CMD"
8321 ;;
8322 esac
8323 fi
8324
8325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326 if test -n "$MAGIC_CMD"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8328 $as_echo "$MAGIC_CMD" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 fi
8333
8334
8335 else
8336 MAGIC_CMD=:
8337 fi
8338 fi
8339
8340 fi
8341 ;;
8342 esac
8343
8344 # Use C for the default configuration in the libtool script
8345
8346 lt_save_CC="$CC"
8347 ac_ext=c
8348 ac_cpp='$CPP $CPPFLAGS'
8349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8352
8353
8354 # Source file extension for C test sources.
8355 ac_ext=c
8356
8357 # Object file extension for compiled C test sources.
8358 objext=o
8359 objext=$objext
8360
8361 # Code to be used in simple compile tests
8362 lt_simple_compile_test_code="int some_variable = 0;"
8363
8364 # Code to be used in simple link tests
8365 lt_simple_link_test_code='int main(){return(0);}'
8366
8367
8368
8369
8370
8371
8372
8373 # If no C compiler was specified, use CC.
8374 LTCC=${LTCC-"$CC"}
8375
8376 # If no C compiler flags were specified, use CFLAGS.
8377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8378
8379 # Allow CC to be a program name with arguments.
8380 compiler=$CC
8381
8382 # Save the default compiler, since it gets overwritten when the other
8383 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8384 compiler_DEFAULT=$CC
8385
8386 # save warnings/boilerplate of simple test code
8387 ac_outfile=conftest.$ac_objext
8388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390 _lt_compiler_boilerplate=`cat conftest.err`
8391 $RM conftest*
8392
8393 ac_outfile=conftest.$ac_objext
8394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396 _lt_linker_boilerplate=`cat conftest.err`
8397 $RM -r conftest*
8398
8399
8400 ## CAVEAT EMPTOR:
8401 ## There is no encapsulation within the following macros, do not change
8402 ## the running order or otherwise move them around unless you know exactly
8403 ## what you are doing...
8404 if test -n "$compiler"; then
8405
8406 lt_prog_compiler_no_builtin_flag=
8407
8408 if test "$GCC" = yes; then
8409 case $cc_basename in
8410 nvcc*)
8411 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8412 *)
8413 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8414 esac
8415
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8417 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8418 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 lt_cv_prog_compiler_rtti_exceptions=no
8422 ac_outfile=conftest.$ac_objext
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8424 lt_compiler_flag="-fno-rtti -fno-exceptions"
8425 # Insert the option either (1) after the last *FLAGS variable, or
8426 # (2) before a word containing "conftest.", or (3) at the end.
8427 # Note that $ac_compile itself does not contain backslashes and begins
8428 # with a dollar sign (not a hyphen), so the echo should work correctly.
8429 # The option is referenced via a variable to avoid confusing sed.
8430 lt_compile=`echo "$ac_compile" | $SED \
8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433 -e 's:$: $lt_compiler_flag:'`
8434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8435 (eval "$lt_compile" 2>conftest.err)
8436 ac_status=$?
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 if (exit $ac_status) && test -s "$ac_outfile"; then
8440 # The compiler can only warn and ignore the option if not recognized
8441 # So say no if there are warnings other than the usual output.
8442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8445 lt_cv_prog_compiler_rtti_exceptions=yes
8446 fi
8447 fi
8448 $RM conftest*
8449
8450 fi
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8452 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8453
8454 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8456 else
8457 :
8458 fi
8459
8460 fi
8461
8462
8463
8464
8465
8466
8467 lt_prog_compiler_wl=
8468 lt_prog_compiler_pic=
8469 lt_prog_compiler_static=
8470
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8472 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8473
8474 if test "$GCC" = yes; then
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_static='-static'
8477
8478 case $host_os in
8479 aix*)
8480 # All AIX code is PIC.
8481 if test "$host_cpu" = ia64; then
8482 # AIX 5 now supports IA64 processor
8483 lt_prog_compiler_static='-Bstatic'
8484 fi
8485 lt_prog_compiler_pic='-fPIC'
8486 ;;
8487
8488 amigaos*)
8489 case $host_cpu in
8490 powerpc)
8491 # see comment about AmigaOS4 .so support
8492 lt_prog_compiler_pic='-fPIC'
8493 ;;
8494 m68k)
8495 # FIXME: we need at least 68020 code to build shared libraries, but
8496 # adding the `-m68020' flag to GCC prevents building anything better,
8497 # like `-m68040'.
8498 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8499 ;;
8500 esac
8501 ;;
8502
8503 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8504 # PIC is the default for these OSes.
8505 ;;
8506
8507 mingw* | cygwin* | pw32* | os2* | cegcc*)
8508 # This hack is so that the source file can tell whether it is being
8509 # built for inclusion in a dll (and should export symbols for example).
8510 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8511 # (--disable-auto-import) libraries
8512 lt_prog_compiler_pic='-DDLL_EXPORT'
8513 ;;
8514
8515 darwin* | rhapsody*)
8516 # PIC is the default on this platform
8517 # Common symbols not allowed in MH_DYLIB files
8518 lt_prog_compiler_pic='-fno-common'
8519 ;;
8520
8521 haiku*)
8522 # PIC is the default for Haiku.
8523 # The "-static" flag exists, but is broken.
8524 lt_prog_compiler_static=
8525 ;;
8526
8527 hpux*)
8528 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8529 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8530 # sets the default TLS model and affects inlining.
8531 case $host_cpu in
8532 hppa*64*)
8533 # +Z the default
8534 ;;
8535 *)
8536 lt_prog_compiler_pic='-fPIC'
8537 ;;
8538 esac
8539 ;;
8540
8541 interix[3-9]*)
8542 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8543 # Instead, we relocate shared libraries at runtime.
8544 ;;
8545
8546 msdosdjgpp*)
8547 # Just because we use GCC doesn't mean we suddenly get shared libraries
8548 # on systems that don't support them.
8549 lt_prog_compiler_can_build_shared=no
8550 enable_shared=no
8551 ;;
8552
8553 *nto* | *qnx*)
8554 # QNX uses GNU C++, but need to define -shared option too, otherwise
8555 # it will coredump.
8556 lt_prog_compiler_pic='-fPIC -shared'
8557 ;;
8558
8559 sysv4*MP*)
8560 if test -d /usr/nec; then
8561 lt_prog_compiler_pic=-Kconform_pic
8562 fi
8563 ;;
8564
8565 *)
8566 lt_prog_compiler_pic='-fPIC'
8567 ;;
8568 esac
8569
8570 case $cc_basename in
8571 nvcc*) # Cuda Compiler Driver 2.2
8572 lt_prog_compiler_wl='-Xlinker '
8573 lt_prog_compiler_pic='-Xcompiler -fPIC'
8574 ;;
8575 esac
8576 else
8577 # PORTME Check for flag to pass linker flags through the system compiler.
8578 case $host_os in
8579 aix*)
8580 lt_prog_compiler_wl='-Wl,'
8581 if test "$host_cpu" = ia64; then
8582 # AIX 5 now supports IA64 processor
8583 lt_prog_compiler_static='-Bstatic'
8584 else
8585 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8586 fi
8587 ;;
8588
8589 mingw* | cygwin* | pw32* | os2* | cegcc*)
8590 # This hack is so that the source file can tell whether it is being
8591 # built for inclusion in a dll (and should export symbols for example).
8592 lt_prog_compiler_pic='-DDLL_EXPORT'
8593 ;;
8594
8595 hpux9* | hpux10* | hpux11*)
8596 lt_prog_compiler_wl='-Wl,'
8597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8598 # not for PA HP-UX.
8599 case $host_cpu in
8600 hppa*64*|ia64*)
8601 # +Z the default
8602 ;;
8603 *)
8604 lt_prog_compiler_pic='+Z'
8605 ;;
8606 esac
8607 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8608 lt_prog_compiler_static='${wl}-a ${wl}archive'
8609 ;;
8610
8611 irix5* | irix6* | nonstopux*)
8612 lt_prog_compiler_wl='-Wl,'
8613 # PIC (with -KPIC) is the default.
8614 lt_prog_compiler_static='-non_shared'
8615 ;;
8616
8617 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8618 case $cc_basename in
8619 # old Intel for x86_64 which still supported -KPIC.
8620 ecc*)
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_pic='-KPIC'
8623 lt_prog_compiler_static='-static'
8624 ;;
8625 # icc used to be incompatible with GCC.
8626 # ICC 10 doesn't accept -KPIC any more.
8627 icc* | ifort*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-fPIC'
8630 lt_prog_compiler_static='-static'
8631 ;;
8632 # Lahey Fortran 8.1.
8633 lf95*)
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_pic='--shared'
8636 lt_prog_compiler_static='--static'
8637 ;;
8638 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8639 # Portland Group compilers (*not* the Pentium gcc compiler,
8640 # which looks to be a dead project)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-fpic'
8643 lt_prog_compiler_static='-Bstatic'
8644 ;;
8645 ccc*)
8646 lt_prog_compiler_wl='-Wl,'
8647 # All Alpha code is PIC.
8648 lt_prog_compiler_static='-non_shared'
8649 ;;
8650 xl* | bgxl* | bgf* | mpixl*)
8651 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-qpic'
8654 lt_prog_compiler_static='-qstaticlink'
8655 ;;
8656 *)
8657 case `$CC -V 2>&1 | sed 5q` in
8658 *Sun\ F* | *Sun*Fortran*)
8659 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 lt_prog_compiler_wl=''
8663 ;;
8664 *Sun\ C*)
8665 # Sun C 5.9
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 lt_prog_compiler_wl='-Wl,'
8669 ;;
8670 esac
8671 ;;
8672 esac
8673 ;;
8674
8675 newsos6)
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-Bstatic'
8678 ;;
8679
8680 *nto* | *qnx*)
8681 # QNX uses GNU C++, but need to define -shared option too, otherwise
8682 # it will coredump.
8683 lt_prog_compiler_pic='-fPIC -shared'
8684 ;;
8685
8686 osf3* | osf4* | osf5*)
8687 lt_prog_compiler_wl='-Wl,'
8688 # All OSF/1 code is PIC.
8689 lt_prog_compiler_static='-non_shared'
8690 ;;
8691
8692 rdos*)
8693 lt_prog_compiler_static='-non_shared'
8694 ;;
8695
8696 solaris*)
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-Bstatic'
8699 case $cc_basename in
8700 f77* | f90* | f95*)
8701 lt_prog_compiler_wl='-Qoption ld ';;
8702 *)
8703 lt_prog_compiler_wl='-Wl,';;
8704 esac
8705 ;;
8706
8707 sunos4*)
8708 lt_prog_compiler_wl='-Qoption ld '
8709 lt_prog_compiler_pic='-PIC'
8710 lt_prog_compiler_static='-Bstatic'
8711 ;;
8712
8713 sysv4 | sysv4.2uw2* | sysv4.3*)
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_pic='-KPIC'
8716 lt_prog_compiler_static='-Bstatic'
8717 ;;
8718
8719 sysv4*MP*)
8720 if test -d /usr/nec ;then
8721 lt_prog_compiler_pic='-Kconform_pic'
8722 lt_prog_compiler_static='-Bstatic'
8723 fi
8724 ;;
8725
8726 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-Bstatic'
8730 ;;
8731
8732 unicos*)
8733 lt_prog_compiler_wl='-Wl,'
8734 lt_prog_compiler_can_build_shared=no
8735 ;;
8736
8737 uts4*)
8738 lt_prog_compiler_pic='-pic'
8739 lt_prog_compiler_static='-Bstatic'
8740 ;;
8741
8742 *)
8743 lt_prog_compiler_can_build_shared=no
8744 ;;
8745 esac
8746 fi
8747
8748 case $host_os in
8749 # For platforms which do not support PIC, -DPIC is meaningless:
8750 *djgpp*)
8751 lt_prog_compiler_pic=
8752 ;;
8753 *)
8754 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8755 ;;
8756 esac
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8758 $as_echo "$lt_prog_compiler_pic" >&6; }
8759
8760
8761
8762
8763
8764
8765 #
8766 # Check to make sure the PIC flag actually works.
8767 #
8768 if test -n "$lt_prog_compiler_pic"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8770 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8771 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 lt_cv_prog_compiler_pic_works=no
8775 ac_outfile=conftest.$ac_objext
8776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8777 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8778 # Insert the option either (1) after the last *FLAGS variable, or
8779 # (2) before a word containing "conftest.", or (3) at the end.
8780 # Note that $ac_compile itself does not contain backslashes and begins
8781 # with a dollar sign (not a hyphen), so the echo should work correctly.
8782 # The option is referenced via a variable to avoid confusing sed.
8783 lt_compile=`echo "$ac_compile" | $SED \
8784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8786 -e 's:$: $lt_compiler_flag:'`
8787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8788 (eval "$lt_compile" 2>conftest.err)
8789 ac_status=$?
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 if (exit $ac_status) && test -s "$ac_outfile"; then
8793 # The compiler can only warn and ignore the option if not recognized
8794 # So say no if there are warnings other than the usual output.
8795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8798 lt_cv_prog_compiler_pic_works=yes
8799 fi
8800 fi
8801 $RM conftest*
8802
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8805 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8806
8807 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8808 case $lt_prog_compiler_pic in
8809 "" | " "*) ;;
8810 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8811 esac
8812 else
8813 lt_prog_compiler_pic=
8814 lt_prog_compiler_can_build_shared=no
8815 fi
8816
8817 fi
8818
8819
8820
8821
8822
8823
8824 #
8825 # Check to make sure the static flag actually works.
8826 #
8827 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8829 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8830 if ${lt_cv_prog_compiler_static_works+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 lt_cv_prog_compiler_static_works=no
8834 save_LDFLAGS="$LDFLAGS"
8835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8836 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8838 # The linker can only warn and ignore the option if not recognized
8839 # So say no if there are warnings
8840 if test -s conftest.err; then
8841 # Append any errors to the config.log.
8842 cat conftest.err 1>&5
8843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8845 if diff conftest.exp conftest.er2 >/dev/null; then
8846 lt_cv_prog_compiler_static_works=yes
8847 fi
8848 else
8849 lt_cv_prog_compiler_static_works=yes
8850 fi
8851 fi
8852 $RM -r conftest*
8853 LDFLAGS="$save_LDFLAGS"
8854
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8857 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8858
8859 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8860 :
8861 else
8862 lt_prog_compiler_static=
8863 fi
8864
8865
8866
8867
8868
8869
8870
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8872 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8873 if ${lt_cv_prog_compiler_c_o+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 lt_cv_prog_compiler_c_o=no
8877 $RM -r conftest 2>/dev/null
8878 mkdir conftest
8879 cd conftest
8880 mkdir out
8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882
8883 lt_compiler_flag="-o out/conftest2.$ac_objext"
8884 # Insert the option either (1) after the last *FLAGS variable, or
8885 # (2) before a word containing "conftest.", or (3) at the end.
8886 # Note that $ac_compile itself does not contain backslashes and begins
8887 # with a dollar sign (not a hyphen), so the echo should work correctly.
8888 lt_compile=`echo "$ac_compile" | $SED \
8889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8891 -e 's:$: $lt_compiler_flag:'`
8892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8893 (eval "$lt_compile" 2>out/conftest.err)
8894 ac_status=$?
8895 cat out/conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898 then
8899 # The compiler can only warn and ignore the option if not recognized
8900 # So say no if there are warnings
8901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8904 lt_cv_prog_compiler_c_o=yes
8905 fi
8906 fi
8907 chmod u+w . 2>&5
8908 $RM conftest*
8909 # SGI C++ compiler will create directory out/ii_files/ for
8910 # template instantiation
8911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8912 $RM out/* && rmdir out
8913 cd ..
8914 $RM -r conftest
8915 $RM conftest*
8916
8917 fi
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8919 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8920
8921
8922
8923
8924
8925
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8927 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8928 if ${lt_cv_prog_compiler_c_o+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 lt_cv_prog_compiler_c_o=no
8932 $RM -r conftest 2>/dev/null
8933 mkdir conftest
8934 cd conftest
8935 mkdir out
8936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8937
8938 lt_compiler_flag="-o out/conftest2.$ac_objext"
8939 # Insert the option either (1) after the last *FLAGS variable, or
8940 # (2) before a word containing "conftest.", or (3) at the end.
8941 # Note that $ac_compile itself does not contain backslashes and begins
8942 # with a dollar sign (not a hyphen), so the echo should work correctly.
8943 lt_compile=`echo "$ac_compile" | $SED \
8944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8946 -e 's:$: $lt_compiler_flag:'`
8947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8948 (eval "$lt_compile" 2>out/conftest.err)
8949 ac_status=$?
8950 cat out/conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8953 then
8954 # The compiler can only warn and ignore the option if not recognized
8955 # So say no if there are warnings
8956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8959 lt_cv_prog_compiler_c_o=yes
8960 fi
8961 fi
8962 chmod u+w . 2>&5
8963 $RM conftest*
8964 # SGI C++ compiler will create directory out/ii_files/ for
8965 # template instantiation
8966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8967 $RM out/* && rmdir out
8968 cd ..
8969 $RM -r conftest
8970 $RM conftest*
8971
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8974 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8975
8976
8977
8978
8979 hard_links="nottested"
8980 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8981 # do not overwrite the value of need_locks provided by the user
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8983 $as_echo_n "checking if we can lock with hard links... " >&6; }
8984 hard_links=yes
8985 $RM conftest*
8986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8987 touch conftest.a
8988 ln conftest.a conftest.b 2>&5 || hard_links=no
8989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8991 $as_echo "$hard_links" >&6; }
8992 if test "$hard_links" = no; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8994 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8995 need_locks=warn
8996 fi
8997 else
8998 need_locks=no
8999 fi
9000
9001
9002
9003
9004
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9007 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9008
9009 runpath_var=
9010 allow_undefined_flag=
9011 always_export_symbols=no
9012 archive_cmds=
9013 archive_expsym_cmds=
9014 compiler_needs_object=no
9015 enable_shared_with_static_runtimes=no
9016 export_dynamic_flag_spec=
9017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9018 hardcode_automatic=no
9019 hardcode_direct=no
9020 hardcode_direct_absolute=no
9021 hardcode_libdir_flag_spec=
9022 hardcode_libdir_flag_spec_ld=
9023 hardcode_libdir_separator=
9024 hardcode_minus_L=no
9025 hardcode_shlibpath_var=unsupported
9026 inherit_rpath=no
9027 link_all_deplibs=unknown
9028 module_cmds=
9029 module_expsym_cmds=
9030 old_archive_from_new_cmds=
9031 old_archive_from_expsyms_cmds=
9032 thread_safe_flag_spec=
9033 whole_archive_flag_spec=
9034 # include_expsyms should be a list of space-separated symbols to be *always*
9035 # included in the symbol list
9036 include_expsyms=
9037 # exclude_expsyms can be an extended regexp of symbols to exclude
9038 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9040 # as well as any symbol that contains `d'.
9041 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9043 # platforms (ab)use it in PIC code, but their linkers get confused if
9044 # the symbol is explicitly referenced. Since portable code cannot
9045 # rely on this symbol name, it's probably fine to never include it in
9046 # preloaded symbol tables.
9047 # Exclude shared library initialization/finalization symbols.
9048 extract_expsyms_cmds=
9049
9050 case $host_os in
9051 cygwin* | mingw* | pw32* | cegcc*)
9052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9053 # When not using gcc, we currently assume that we are using
9054 # Microsoft Visual C++.
9055 if test "$GCC" != yes; then
9056 with_gnu_ld=no
9057 fi
9058 ;;
9059 interix*)
9060 # we just hope/assume this is gcc and not c89 (= MSVC++)
9061 with_gnu_ld=yes
9062 ;;
9063 openbsd*)
9064 with_gnu_ld=no
9065 ;;
9066 esac
9067
9068 ld_shlibs=yes
9069
9070 # On some targets, GNU ld is compatible enough with the native linker
9071 # that we're better off using the native interface for both.
9072 lt_use_gnu_ld_interface=no
9073 if test "$with_gnu_ld" = yes; then
9074 case $host_os in
9075 aix*)
9076 # The AIX port of GNU ld has always aspired to compatibility
9077 # with the native linker. However, as the warning in the GNU ld
9078 # block says, versions before 2.19.5* couldn't really create working
9079 # shared libraries, regardless of the interface used.
9080 case `$LD -v 2>&1` in
9081 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9082 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9083 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9084 *)
9085 lt_use_gnu_ld_interface=yes
9086 ;;
9087 esac
9088 ;;
9089 *)
9090 lt_use_gnu_ld_interface=yes
9091 ;;
9092 esac
9093 fi
9094
9095 if test "$lt_use_gnu_ld_interface" = yes; then
9096 # If archive_cmds runs LD, not CC, wlarc should be empty
9097 wlarc='${wl}'
9098
9099 # Set some defaults for GNU ld with shared library support. These
9100 # are reset later if shared libraries are not supported. Putting them
9101 # here allows them to be overridden if necessary.
9102 runpath_var=LD_RUN_PATH
9103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9104 export_dynamic_flag_spec='${wl}--export-dynamic'
9105 # ancient GNU ld didn't support --whole-archive et. al.
9106 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9107 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9108 else
9109 whole_archive_flag_spec=
9110 fi
9111 supports_anon_versioning=no
9112 case `$LD -v 2>&1` in
9113 *GNU\ gold*) supports_anon_versioning=yes ;;
9114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9117 *\ 2.11.*) ;; # other 2.11 versions
9118 *) supports_anon_versioning=yes ;;
9119 esac
9120
9121 # See if GNU ld supports shared libraries.
9122 case $host_os in
9123 aix[3-9]*)
9124 # On AIX/PPC, the GNU linker is very broken
9125 if test "$host_cpu" != ia64; then
9126 ld_shlibs=no
9127 cat <<_LT_EOF 1>&2
9128
9129 *** Warning: the GNU linker, at least up to release 2.19, is reported
9130 *** to be unable to reliably create shared libraries on AIX.
9131 *** Therefore, libtool is disabling shared libraries support. If you
9132 *** really care for shared libraries, you may want to install binutils
9133 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9134 *** You will then need to restart the configuration process.
9135
9136 _LT_EOF
9137 fi
9138 ;;
9139
9140 amigaos*)
9141 case $host_cpu in
9142 powerpc)
9143 # see comment about AmigaOS4 .so support
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145 archive_expsym_cmds=''
9146 ;;
9147 m68k)
9148 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)'
9149 hardcode_libdir_flag_spec='-L$libdir'
9150 hardcode_minus_L=yes
9151 ;;
9152 esac
9153 ;;
9154
9155 beos*)
9156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9157 allow_undefined_flag=unsupported
9158 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9159 # support --undefined. This deserves some investigation. FIXME
9160 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161 else
9162 ld_shlibs=no
9163 fi
9164 ;;
9165
9166 cygwin* | mingw* | pw32* | cegcc*)
9167 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9168 # as there is no search path for DLLs.
9169 hardcode_libdir_flag_spec='-L$libdir'
9170 export_dynamic_flag_spec='${wl}--export-all-symbols'
9171 allow_undefined_flag=unsupported
9172 always_export_symbols=no
9173 enable_shared_with_static_runtimes=yes
9174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9175
9176 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9178 # If the export-symbols file already is a .def file (1st line
9179 # is EXPORTS), use it as is; otherwise, prepend...
9180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9181 cp $export_symbols $output_objdir/$soname.def;
9182 else
9183 echo EXPORTS > $output_objdir/$soname.def;
9184 cat $export_symbols >> $output_objdir/$soname.def;
9185 fi~
9186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9187 else
9188 ld_shlibs=no
9189 fi
9190 ;;
9191
9192 haiku*)
9193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194 link_all_deplibs=yes
9195 ;;
9196
9197 interix[3-9]*)
9198 hardcode_direct=no
9199 hardcode_shlibpath_var=no
9200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9201 export_dynamic_flag_spec='${wl}-E'
9202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9203 # Instead, shared libraries are loaded at an image base (0x10000000 by
9204 # default) and relocated if they conflict, which is a slow very memory
9205 # consuming and fragmenting process. To avoid this, we pick a random,
9206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9207 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9209 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'
9210 ;;
9211
9212 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9213 tmp_diet=no
9214 if test "$host_os" = linux-dietlibc; then
9215 case $cc_basename in
9216 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9217 esac
9218 fi
9219 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9220 && test "$tmp_diet" = no
9221 then
9222 tmp_addflag=' $pic_flag'
9223 tmp_sharedflag='-shared'
9224 case $cc_basename,$host_cpu in
9225 pgcc*) # Portland Group C compiler
9226 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'
9227 tmp_addflag=' $pic_flag'
9228 ;;
9229 pgf77* | pgf90* | pgf95* | pgfortran*)
9230 # Portland Group f77 and f90 compilers
9231 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'
9232 tmp_addflag=' $pic_flag -Mnomain' ;;
9233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9234 tmp_addflag=' -i_dynamic' ;;
9235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9236 tmp_addflag=' -i_dynamic -nofor_main' ;;
9237 ifc* | ifort*) # Intel Fortran compiler
9238 tmp_addflag=' -nofor_main' ;;
9239 lf95*) # Lahey Fortran 8.1
9240 whole_archive_flag_spec=
9241 tmp_sharedflag='--shared' ;;
9242 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9243 tmp_sharedflag='-qmkshrobj'
9244 tmp_addflag= ;;
9245 nvcc*) # Cuda Compiler Driver 2.2
9246 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'
9247 compiler_needs_object=yes
9248 ;;
9249 esac
9250 case `$CC -V 2>&1 | sed 5q` in
9251 *Sun\ C*) # Sun C 5.9
9252 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'
9253 compiler_needs_object=yes
9254 tmp_sharedflag='-G' ;;
9255 *Sun\ F*) # Sun Fortran 8.3
9256 tmp_sharedflag='-G' ;;
9257 esac
9258 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259
9260 if test "x$supports_anon_versioning" = xyes; then
9261 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9263 echo "local: *; };" >> $output_objdir/$libname.ver~
9264 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9265 fi
9266
9267 case $cc_basename in
9268 xlf* | bgf* | bgxlf* | mpixlf*)
9269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9271 hardcode_libdir_flag_spec=
9272 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9273 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9274 if test "x$supports_anon_versioning" = xyes; then
9275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9277 echo "local: *; };" >> $output_objdir/$libname.ver~
9278 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9279 fi
9280 ;;
9281 esac
9282 else
9283 ld_shlibs=no
9284 fi
9285 ;;
9286
9287 netbsd*)
9288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9290 wlarc=
9291 else
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9294 fi
9295 ;;
9296
9297 solaris*)
9298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9299 ld_shlibs=no
9300 cat <<_LT_EOF 1>&2
9301
9302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9303 *** create shared libraries on Solaris systems. Therefore, libtool
9304 *** is disabling shared libraries support. We urge you to upgrade GNU
9305 *** binutils to release 2.9.1 or newer. Another option is to modify
9306 *** your PATH or compiler configuration so that the native linker is
9307 *** used, and then restart.
9308
9309 _LT_EOF
9310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9313 else
9314 ld_shlibs=no
9315 fi
9316 ;;
9317
9318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9319 case `$LD -v 2>&1` in
9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9321 ld_shlibs=no
9322 cat <<_LT_EOF 1>&2
9323
9324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9325 *** reliably create shared libraries on SCO systems. Therefore, libtool
9326 *** is disabling shared libraries support. We urge you to upgrade GNU
9327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9328 *** your PATH or compiler configuration so that the native linker is
9329 *** used, and then restart.
9330
9331 _LT_EOF
9332 ;;
9333 *)
9334 # For security reasons, it is highly recommended that you always
9335 # use absolute paths for naming shared libraries, and exclude the
9336 # DT_RUNPATH tag from executables and libraries. But doing so
9337 # requires that you compile everything twice, which is a pain.
9338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9342 else
9343 ld_shlibs=no
9344 fi
9345 ;;
9346 esac
9347 ;;
9348
9349 sunos4*)
9350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351 wlarc=
9352 hardcode_direct=yes
9353 hardcode_shlibpath_var=no
9354 ;;
9355
9356 *)
9357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9360 else
9361 ld_shlibs=no
9362 fi
9363 ;;
9364 esac
9365
9366 if test "$ld_shlibs" = no; then
9367 runpath_var=
9368 hardcode_libdir_flag_spec=
9369 export_dynamic_flag_spec=
9370 whole_archive_flag_spec=
9371 fi
9372 else
9373 # PORTME fill in a description of your system's linker (not GNU ld)
9374 case $host_os in
9375 aix3*)
9376 allow_undefined_flag=unsupported
9377 always_export_symbols=yes
9378 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'
9379 # Note: this linker hardcodes the directories in LIBPATH if there
9380 # are no directories specified by -L.
9381 hardcode_minus_L=yes
9382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9383 # Neither direct hardcoding nor static linking is supported with a
9384 # broken collect2.
9385 hardcode_direct=unsupported
9386 fi
9387 ;;
9388
9389 aix[4-9]*)
9390 if test "$host_cpu" = ia64; then
9391 # On IA64, the linker does run time linking by default, so we don't
9392 # have to do anything special.
9393 aix_use_runtimelinking=no
9394 exp_sym_flag='-Bexport'
9395 no_entry_flag=""
9396 else
9397 # If we're using GNU nm, then we don't want the "-C" option.
9398 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9399 # Also, AIX nm treats weak defined symbols like other global
9400 # defined symbols, whereas GNU nm marks them as "W".
9401 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9402 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'
9403 else
9404 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'
9405 fi
9406 aix_use_runtimelinking=no
9407
9408 # Test if we are trying to use run time linking or normal
9409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9410 # need to do runtime linking.
9411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9412 for ld_flag in $LDFLAGS; do
9413 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9414 aix_use_runtimelinking=yes
9415 break
9416 fi
9417 done
9418 ;;
9419 esac
9420
9421 exp_sym_flag='-bexport'
9422 no_entry_flag='-bnoentry'
9423 fi
9424
9425 # When large executables or shared objects are built, AIX ld can
9426 # have problems creating the table of contents. If linking a library
9427 # or program results in "error TOC overflow" add -mminimal-toc to
9428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9430
9431 archive_cmds=''
9432 hardcode_direct=yes
9433 hardcode_direct_absolute=yes
9434 hardcode_libdir_separator=':'
9435 link_all_deplibs=yes
9436 file_list_spec='${wl}-f,'
9437
9438 if test "$GCC" = yes; then
9439 case $host_os in aix4.[012]|aix4.[012].*)
9440 # We only want to do this on AIX 4.2 and lower, the check
9441 # below for broken collect2 doesn't work under 4.3+
9442 collect2name=`${CC} -print-prog-name=collect2`
9443 if test -f "$collect2name" &&
9444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9445 then
9446 # We have reworked collect2
9447 :
9448 else
9449 # We have old collect2
9450 hardcode_direct=unsupported
9451 # It fails to find uninstalled libraries when the uninstalled
9452 # path is not listed in the libpath. Setting hardcode_minus_L
9453 # to unsupported forces relinking
9454 hardcode_minus_L=yes
9455 hardcode_libdir_flag_spec='-L$libdir'
9456 hardcode_libdir_separator=
9457 fi
9458 ;;
9459 esac
9460 shared_flag='-shared'
9461 if test "$aix_use_runtimelinking" = yes; then
9462 shared_flag="$shared_flag "'${wl}-G'
9463 fi
9464 else
9465 # not using gcc
9466 if test "$host_cpu" = ia64; then
9467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9468 # chokes on -Wl,-G. The following line is correct:
9469 shared_flag='-G'
9470 else
9471 if test "$aix_use_runtimelinking" = yes; then
9472 shared_flag='${wl}-G'
9473 else
9474 shared_flag='${wl}-bM:SRE'
9475 fi
9476 fi
9477 fi
9478
9479 export_dynamic_flag_spec='${wl}-bexpall'
9480 # It seems that -bexpall does not export symbols beginning with
9481 # underscore (_), so it is better to generate a list of symbols to export.
9482 always_export_symbols=yes
9483 if test "$aix_use_runtimelinking" = yes; then
9484 # Warning - without using the other runtime loading flags (-brtl),
9485 # -berok will link without error, but may produce a broken library.
9486 allow_undefined_flag='-berok'
9487 # Determine the default libpath from the value encoded in an
9488 # empty executable.
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491
9492 int
9493 main ()
9494 {
9495
9496 ;
9497 return 0;
9498 }
9499 _ACEOF
9500 if ac_fn_c_try_link "$LINENO"; then :
9501
9502 lt_aix_libpath_sed='
9503 /Import File Strings/,/^$/ {
9504 /^0/ {
9505 s/^0 *\(.*\)$/\1/
9506 p
9507 }
9508 }'
9509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9510 # Check for a 64-bit object if we didn't find anything.
9511 if test -z "$aix_libpath"; then
9512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9513 fi
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9518
9519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9520 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"
9521 else
9522 if test "$host_cpu" = ia64; then
9523 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9524 allow_undefined_flag="-z nodefs"
9525 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"
9526 else
9527 # Determine the default libpath from the value encoded in an
9528 # empty executable.
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531
9532 int
9533 main ()
9534 {
9535
9536 ;
9537 return 0;
9538 }
9539 _ACEOF
9540 if ac_fn_c_try_link "$LINENO"; then :
9541
9542 lt_aix_libpath_sed='
9543 /Import File Strings/,/^$/ {
9544 /^0/ {
9545 s/^0 *\(.*\)$/\1/
9546 p
9547 }
9548 }'
9549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9550 # Check for a 64-bit object if we didn't find anything.
9551 if test -z "$aix_libpath"; then
9552 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553 fi
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9558
9559 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9560 # Warning - without using the other run time loading flags,
9561 # -berok will link without error, but may produce a broken library.
9562 no_undefined_flag=' ${wl}-bernotok'
9563 allow_undefined_flag=' ${wl}-berok'
9564 if test "$with_gnu_ld" = yes; then
9565 # We only use this code for GNU lds that support --whole-archive.
9566 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9567 else
9568 # Exported symbols can be pulled into shared objects from archives
9569 whole_archive_flag_spec='$convenience'
9570 fi
9571 archive_cmds_need_lc=yes
9572 # This is similar to how AIX traditionally builds its shared libraries.
9573 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'
9574 fi
9575 fi
9576 ;;
9577
9578 amigaos*)
9579 case $host_cpu in
9580 powerpc)
9581 # see comment about AmigaOS4 .so support
9582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583 archive_expsym_cmds=''
9584 ;;
9585 m68k)
9586 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)'
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_minus_L=yes
9589 ;;
9590 esac
9591 ;;
9592
9593 bsdi[45]*)
9594 export_dynamic_flag_spec=-rdynamic
9595 ;;
9596
9597 cygwin* | mingw* | pw32* | cegcc*)
9598 # When not using gcc, we currently assume that we are using
9599 # Microsoft Visual C++.
9600 # hardcode_libdir_flag_spec is actually meaningless, as there is
9601 # no search path for DLLs.
9602 hardcode_libdir_flag_spec=' '
9603 allow_undefined_flag=unsupported
9604 # Tell ltmain to make .lib files, not .a files.
9605 libext=lib
9606 # Tell ltmain to make .dll files, not .so files.
9607 shrext_cmds=".dll"
9608 # FIXME: Setting linknames here is a bad hack.
9609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9610 # The linker will automatically build a .lib file if we build a DLL.
9611 old_archive_from_new_cmds='true'
9612 # FIXME: Should let the user specify the lib program.
9613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9614 fix_srcfile_path='`cygpath -w "$srcfile"`'
9615 enable_shared_with_static_runtimes=yes
9616 ;;
9617
9618 darwin* | rhapsody*)
9619
9620
9621 archive_cmds_need_lc=no
9622 hardcode_direct=no
9623 hardcode_automatic=yes
9624 hardcode_shlibpath_var=unsupported
9625 if test "$lt_cv_ld_force_load" = "yes"; then
9626 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\"`'
9627 else
9628 whole_archive_flag_spec=''
9629 fi
9630 link_all_deplibs=yes
9631 allow_undefined_flag="$_lt_dar_allow_undefined"
9632 case $cc_basename in
9633 ifort*) _lt_dar_can_shared=yes ;;
9634 *) _lt_dar_can_shared=$GCC ;;
9635 esac
9636 if test "$_lt_dar_can_shared" = "yes"; then
9637 output_verbose_link_cmd=func_echo_all
9638 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9639 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9640 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}"
9641 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}"
9642
9643 else
9644 ld_shlibs=no
9645 fi
9646
9647 ;;
9648
9649 dgux*)
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9656 # support. Future versions do this automatically, but an explicit c++rt0.o
9657 # does not break anything, and helps significantly (at the cost of a little
9658 # extra space).
9659 freebsd2.2*)
9660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9661 hardcode_libdir_flag_spec='-R$libdir'
9662 hardcode_direct=yes
9663 hardcode_shlibpath_var=no
9664 ;;
9665
9666 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9667 freebsd2.*)
9668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_direct=yes
9670 hardcode_minus_L=yes
9671 hardcode_shlibpath_var=no
9672 ;;
9673
9674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9675 freebsd* | dragonfly*)
9676 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9677 hardcode_libdir_flag_spec='-R$libdir'
9678 hardcode_direct=yes
9679 hardcode_shlibpath_var=no
9680 ;;
9681
9682 hpux9*)
9683 if test "$GCC" = yes; then
9684 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'
9685 else
9686 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'
9687 fi
9688 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9689 hardcode_libdir_separator=:
9690 hardcode_direct=yes
9691
9692 # hardcode_minus_L: Not really in the search PATH,
9693 # but as the default location of the library.
9694 hardcode_minus_L=yes
9695 export_dynamic_flag_spec='${wl}-E'
9696 ;;
9697
9698 hpux10*)
9699 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9700 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9701 else
9702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9703 fi
9704 if test "$with_gnu_ld" = no; then
9705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9706 hardcode_libdir_flag_spec_ld='+b $libdir'
9707 hardcode_libdir_separator=:
9708 hardcode_direct=yes
9709 hardcode_direct_absolute=yes
9710 export_dynamic_flag_spec='${wl}-E'
9711 # hardcode_minus_L: Not really in the search PATH,
9712 # but as the default location of the library.
9713 hardcode_minus_L=yes
9714 fi
9715 ;;
9716
9717 hpux11*)
9718 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9719 case $host_cpu in
9720 hppa*64*)
9721 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 ;;
9723 ia64*)
9724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9725 ;;
9726 *)
9727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9728 ;;
9729 esac
9730 else
9731 case $host_cpu in
9732 hppa*64*)
9733 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 ;;
9735 ia64*)
9736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9737 ;;
9738 *)
9739
9740 # Older versions of the 11.00 compiler do not understand -b yet
9741 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9743 $as_echo_n "checking if $CC understands -b... " >&6; }
9744 if ${lt_cv_prog_compiler__b+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 lt_cv_prog_compiler__b=no
9748 save_LDFLAGS="$LDFLAGS"
9749 LDFLAGS="$LDFLAGS -b"
9750 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9752 # The linker can only warn and ignore the option if not recognized
9753 # So say no if there are warnings
9754 if test -s conftest.err; then
9755 # Append any errors to the config.log.
9756 cat conftest.err 1>&5
9757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9759 if diff conftest.exp conftest.er2 >/dev/null; then
9760 lt_cv_prog_compiler__b=yes
9761 fi
9762 else
9763 lt_cv_prog_compiler__b=yes
9764 fi
9765 fi
9766 $RM -r conftest*
9767 LDFLAGS="$save_LDFLAGS"
9768
9769 fi
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9771 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9772
9773 if test x"$lt_cv_prog_compiler__b" = xyes; then
9774 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9775 else
9776 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9777 fi
9778
9779 ;;
9780 esac
9781 fi
9782 if test "$with_gnu_ld" = no; then
9783 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9784 hardcode_libdir_separator=:
9785
9786 case $host_cpu in
9787 hppa*64*|ia64*)
9788 hardcode_direct=no
9789 hardcode_shlibpath_var=no
9790 ;;
9791 *)
9792 hardcode_direct=yes
9793 hardcode_direct_absolute=yes
9794 export_dynamic_flag_spec='${wl}-E'
9795
9796 # hardcode_minus_L: Not really in the search PATH,
9797 # but as the default location of the library.
9798 hardcode_minus_L=yes
9799 ;;
9800 esac
9801 fi
9802 ;;
9803
9804 irix5* | irix6* | nonstopux*)
9805 if test "$GCC" = yes; then
9806 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'
9807 # Try to use the -exported_symbol ld option, if it does not
9808 # work, assume that -exports_file does not work either and
9809 # implicitly export all symbols.
9810 save_LDFLAGS="$LDFLAGS"
9811 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814 int foo(void) {}
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 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'
9818
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LDFLAGS="$save_LDFLAGS"
9823 else
9824 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'
9825 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'
9826 fi
9827 archive_cmds_need_lc='no'
9828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9829 hardcode_libdir_separator=:
9830 inherit_rpath=yes
9831 link_all_deplibs=yes
9832 ;;
9833
9834 netbsd*)
9835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9837 else
9838 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9839 fi
9840 hardcode_libdir_flag_spec='-R$libdir'
9841 hardcode_direct=yes
9842 hardcode_shlibpath_var=no
9843 ;;
9844
9845 newsos6)
9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_direct=yes
9848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9849 hardcode_libdir_separator=:
9850 hardcode_shlibpath_var=no
9851 ;;
9852
9853 *nto* | *qnx*)
9854 ;;
9855
9856 openbsd*)
9857 if test -f /usr/libexec/ld.so; then
9858 hardcode_direct=yes
9859 hardcode_shlibpath_var=no
9860 hardcode_direct_absolute=yes
9861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9864 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9865 export_dynamic_flag_spec='${wl}-E'
9866 else
9867 case $host_os in
9868 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_libdir_flag_spec='-R$libdir'
9871 ;;
9872 *)
9873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9875 ;;
9876 esac
9877 fi
9878 else
9879 ld_shlibs=no
9880 fi
9881 ;;
9882
9883 os2*)
9884 hardcode_libdir_flag_spec='-L$libdir'
9885 hardcode_minus_L=yes
9886 allow_undefined_flag=unsupported
9887 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'
9888 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9889 ;;
9890
9891 osf3*)
9892 if test "$GCC" = yes; then
9893 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9894 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'
9895 else
9896 allow_undefined_flag=' -expect_unresolved \*'
9897 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'
9898 fi
9899 archive_cmds_need_lc='no'
9900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9901 hardcode_libdir_separator=:
9902 ;;
9903
9904 osf4* | osf5*) # as osf3* with the addition of -msym flag
9905 if test "$GCC" = yes; then
9906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9907 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'
9908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9909 else
9910 allow_undefined_flag=' -expect_unresolved \*'
9911 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'
9912 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~
9913 $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'
9914
9915 # Both c and cxx compiler support -rpath directly
9916 hardcode_libdir_flag_spec='-rpath $libdir'
9917 fi
9918 archive_cmds_need_lc='no'
9919 hardcode_libdir_separator=:
9920 ;;
9921
9922 solaris*)
9923 no_undefined_flag=' -z defs'
9924 if test "$GCC" = yes; then
9925 wlarc='${wl}'
9926 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9928 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9929 else
9930 case `$CC -V 2>&1` in
9931 *"Compilers 5.0"*)
9932 wlarc=''
9933 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9936 ;;
9937 *)
9938 wlarc='${wl}'
9939 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9941 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9942 ;;
9943 esac
9944 fi
9945 hardcode_libdir_flag_spec='-R$libdir'
9946 hardcode_shlibpath_var=no
9947 case $host_os in
9948 solaris2.[0-5] | solaris2.[0-5].*) ;;
9949 *)
9950 # The compiler driver will combine and reorder linker options,
9951 # but understands `-z linker_flag'. GCC discards it without `$wl',
9952 # but is careful enough not to reorder.
9953 # Supported since Solaris 2.6 (maybe 2.5.1?)
9954 if test "$GCC" = yes; then
9955 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9956 else
9957 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9958 fi
9959 ;;
9960 esac
9961 link_all_deplibs=yes
9962 ;;
9963
9964 sunos4*)
9965 if test "x$host_vendor" = xsequent; then
9966 # Use $CC to link under sequent, because it throws in some extra .o
9967 # files that make .init and .fini sections work.
9968 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9969 else
9970 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9971 fi
9972 hardcode_libdir_flag_spec='-L$libdir'
9973 hardcode_direct=yes
9974 hardcode_minus_L=yes
9975 hardcode_shlibpath_var=no
9976 ;;
9977
9978 sysv4)
9979 case $host_vendor in
9980 sni)
9981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9982 hardcode_direct=yes # is this really true???
9983 ;;
9984 siemens)
9985 ## LD is ld it makes a PLAMLIB
9986 ## CC just makes a GrossModule.
9987 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9988 reload_cmds='$CC -r -o $output$reload_objs'
9989 hardcode_direct=no
9990 ;;
9991 motorola)
9992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9994 ;;
9995 esac
9996 runpath_var='LD_RUN_PATH'
9997 hardcode_shlibpath_var=no
9998 ;;
9999
10000 sysv4.3*)
10001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_shlibpath_var=no
10003 export_dynamic_flag_spec='-Bexport'
10004 ;;
10005
10006 sysv4*MP*)
10007 if test -d /usr/nec; then
10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_shlibpath_var=no
10010 runpath_var=LD_RUN_PATH
10011 hardcode_runpath_var=yes
10012 ld_shlibs=yes
10013 fi
10014 ;;
10015
10016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10017 no_undefined_flag='${wl}-z,text'
10018 archive_cmds_need_lc=no
10019 hardcode_shlibpath_var=no
10020 runpath_var='LD_RUN_PATH'
10021
10022 if test "$GCC" = yes; then
10023 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 else
10026 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 fi
10029 ;;
10030
10031 sysv5* | sco3.2v5* | sco5v6*)
10032 # Note: We can NOT use -z defs as we might desire, because we do not
10033 # link with -lc, and that would cause any symbols used from libc to
10034 # always be unresolved, which means just about no library would
10035 # ever link correctly. If we're not using GNU ld we use -z text
10036 # though, which does catch some bad symbols but isn't as heavy-handed
10037 # as -z defs.
10038 no_undefined_flag='${wl}-z,text'
10039 allow_undefined_flag='${wl}-z,nodefs'
10040 archive_cmds_need_lc=no
10041 hardcode_shlibpath_var=no
10042 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10043 hardcode_libdir_separator=':'
10044 link_all_deplibs=yes
10045 export_dynamic_flag_spec='${wl}-Bexport'
10046 runpath_var='LD_RUN_PATH'
10047
10048 if test "$GCC" = yes; then
10049 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 else
10052 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 fi
10055 ;;
10056
10057 uts4*)
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_libdir_flag_spec='-L$libdir'
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 *)
10064 ld_shlibs=no
10065 ;;
10066 esac
10067
10068 if test x$host_vendor = xsni; then
10069 case $host in
10070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10071 export_dynamic_flag_spec='${wl}-Blargedynsym'
10072 ;;
10073 esac
10074 fi
10075 fi
10076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10078 $as_echo "$ld_shlibs" >&6; }
10079 test "$ld_shlibs" = no && can_build_shared=no
10080
10081 with_gnu_ld=$with_gnu_ld
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097 #
10098 # Do we need to explicitly link libc?
10099 #
10100 case "x$archive_cmds_need_lc" in
10101 x|xyes)
10102 # Assume -lc should be added
10103 archive_cmds_need_lc=yes
10104
10105 if test "$enable_shared" = yes && test "$GCC" = yes; then
10106 case $archive_cmds in
10107 *'~'*)
10108 # FIXME: we may have to deal with multi-command sequences.
10109 ;;
10110 '$CC '*)
10111 # Test whether the compiler implicitly links with -lc since on some
10112 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10113 # to ld, don't add -lc before -lgcc.
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10115 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10116 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 $RM conftest*
10120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10121
10122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10123 (eval $ac_compile) 2>&5
10124 ac_status=$?
10125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10126 test $ac_status = 0; } 2>conftest.err; then
10127 soname=conftest
10128 lib=conftest
10129 libobjs=conftest.$ac_objext
10130 deplibs=
10131 wl=$lt_prog_compiler_wl
10132 pic_flag=$lt_prog_compiler_pic
10133 compiler_flags=-v
10134 linker_flags=-v
10135 verstring=
10136 output_objdir=.
10137 libname=conftest
10138 lt_save_allow_undefined_flag=$allow_undefined_flag
10139 allow_undefined_flag=
10140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10141 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10142 ac_status=$?
10143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10144 test $ac_status = 0; }
10145 then
10146 lt_cv_archive_cmds_need_lc=no
10147 else
10148 lt_cv_archive_cmds_need_lc=yes
10149 fi
10150 allow_undefined_flag=$lt_save_allow_undefined_flag
10151 else
10152 cat conftest.err 1>&5
10153 fi
10154 $RM conftest*
10155
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10158 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10159 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10160 ;;
10161 esac
10162 fi
10163 ;;
10164 esac
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
10319
10320
10321
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10323 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10324
10325 if test "$GCC" = yes; then
10326 case $host_os in
10327 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10328 *) lt_awk_arg="/^libraries:/" ;;
10329 esac
10330 case $host_os in
10331 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10332 *) lt_sed_strip_eq="s,=/,/,g" ;;
10333 esac
10334 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10335 case $lt_search_path_spec in
10336 *\;*)
10337 # if the path contains ";" then we assume it to be the separator
10338 # otherwise default to the standard path separator (i.e. ":") - it is
10339 # assumed that no part of a normal pathname contains ";" but that should
10340 # okay in the real world where ";" in dirpaths is itself problematic.
10341 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10342 ;;
10343 *)
10344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10345 ;;
10346 esac
10347 # Ok, now we have the path, separated by spaces, we can step through it
10348 # and add multilib dir if necessary.
10349 lt_tmp_lt_search_path_spec=
10350 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10351 for lt_sys_path in $lt_search_path_spec; do
10352 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10354 else
10355 test -d "$lt_sys_path" && \
10356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10357 fi
10358 done
10359 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10360 BEGIN {RS=" "; FS="/|\n";} {
10361 lt_foo="";
10362 lt_count=0;
10363 for (lt_i = NF; lt_i > 0; lt_i--) {
10364 if ($lt_i != "" && $lt_i != ".") {
10365 if ($lt_i == "..") {
10366 lt_count++;
10367 } else {
10368 if (lt_count == 0) {
10369 lt_foo="/" $lt_i lt_foo;
10370 } else {
10371 lt_count--;
10372 }
10373 }
10374 }
10375 }
10376 if (lt_foo != "") { lt_freq[lt_foo]++; }
10377 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10378 }'`
10379 # AWK program above erroneously prepends '/' to C:/dos/paths
10380 # for these hosts.
10381 case $host_os in
10382 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10383 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10384 esac
10385 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10386 else
10387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10388 fi
10389 library_names_spec=
10390 libname_spec='lib$name'
10391 soname_spec=
10392 shrext_cmds=".so"
10393 postinstall_cmds=
10394 postuninstall_cmds=
10395 finish_cmds=
10396 finish_eval=
10397 shlibpath_var=
10398 shlibpath_overrides_runpath=unknown
10399 version_type=none
10400 dynamic_linker="$host_os ld.so"
10401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10402 need_lib_prefix=unknown
10403 hardcode_into_libs=no
10404
10405 # when you set need_version to no, make sure it does not cause -set_version
10406 # flags to be left without arguments
10407 need_version=unknown
10408
10409 case $host_os in
10410 aix3*)
10411 version_type=linux
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10413 shlibpath_var=LIBPATH
10414
10415 # AIX 3 has no versioning support, so we append a major version to the name.
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 ;;
10418
10419 aix[4-9]*)
10420 version_type=linux
10421 need_lib_prefix=no
10422 need_version=no
10423 hardcode_into_libs=yes
10424 if test "$host_cpu" = ia64; then
10425 # AIX 5 supports IA64
10426 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 else
10429 # With GCC up to 2.95.x, collect2 would create an import file
10430 # for dependence libraries. The import file would start with
10431 # the line `#! .'. This would cause the generated library to
10432 # depend on `.', always an invalid library. This was fixed in
10433 # development snapshots of GCC prior to 3.0.
10434 case $host_os in
10435 aix4 | aix4.[01] | aix4.[01].*)
10436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10437 echo ' yes '
10438 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10439 :
10440 else
10441 can_build_shared=no
10442 fi
10443 ;;
10444 esac
10445 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10446 # soname into executable. Probably we can add versioning support to
10447 # collect2, so additional links can be useful in future.
10448 if test "$aix_use_runtimelinking" = yes; then
10449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10450 # instead of lib<name>.a to let people know that these are not
10451 # typical AIX shared libraries.
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 else
10454 # We preserve .a as extension for shared libraries through AIX4.2
10455 # and later when we are not doing run time linking.
10456 library_names_spec='${libname}${release}.a $libname.a'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 fi
10459 shlibpath_var=LIBPATH
10460 fi
10461 ;;
10462
10463 amigaos*)
10464 case $host_cpu in
10465 powerpc)
10466 # Since July 2007 AmigaOS4 officially supports .so libraries.
10467 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469 ;;
10470 m68k)
10471 library_names_spec='$libname.ixlibrary $libname.a'
10472 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10473 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'
10474 ;;
10475 esac
10476 ;;
10477
10478 beos*)
10479 library_names_spec='${libname}${shared_ext}'
10480 dynamic_linker="$host_os ld.so"
10481 shlibpath_var=LIBRARY_PATH
10482 ;;
10483
10484 bsdi[45]*)
10485 version_type=linux
10486 need_version=no
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10493 # the default ld.so.conf also contains /usr/contrib/lib and
10494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10495 # libtool to hard-code these into programs
10496 ;;
10497
10498 cygwin* | mingw* | pw32* | cegcc*)
10499 version_type=windows
10500 shrext_cmds=".dll"
10501 need_version=no
10502 need_lib_prefix=no
10503
10504 case $GCC,$host_os in
10505 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10506 library_names_spec='$libname.dll.a'
10507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10508 postinstall_cmds='base_file=`basename \${file}`~
10509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10510 dldir=$destdir/`dirname \$dlpath`~
10511 test -d \$dldir || mkdir -p \$dldir~
10512 $install_prog $dir/$dlname \$dldir/$dlname~
10513 chmod a+x \$dldir/$dlname~
10514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10516 fi'
10517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10518 dlpath=$dir/\$dldll~
10519 $RM \$dlpath'
10520 shlibpath_overrides_runpath=yes
10521
10522 case $host_os in
10523 cygwin*)
10524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10525 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10526
10527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10528 ;;
10529 mingw* | cegcc*)
10530 # MinGW DLLs use traditional 'lib' prefix
10531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10532 ;;
10533 pw32*)
10534 # pw32 DLLs use 'pw' prefix rather than 'lib'
10535 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10536 ;;
10537 esac
10538 ;;
10539
10540 *)
10541 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10542 ;;
10543 esac
10544 dynamic_linker='Win32 ld.exe'
10545 # FIXME: first we should search . and the directory the executable is in
10546 shlibpath_var=PATH
10547 ;;
10548
10549 darwin* | rhapsody*)
10550 dynamic_linker="$host_os dyld"
10551 version_type=darwin
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10555 soname_spec='${libname}${release}${major}$shared_ext'
10556 shlibpath_overrides_runpath=yes
10557 shlibpath_var=DYLD_LIBRARY_PATH
10558 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10559
10560 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10562 ;;
10563
10564 dgux*)
10565 version_type=linux
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 ;;
10572
10573 freebsd* | dragonfly*)
10574 # DragonFly does not have aout. When/if they implement a new
10575 # versioning mechanism, adjust this.
10576 if test -x /usr/bin/objformat; then
10577 objformat=`/usr/bin/objformat`
10578 else
10579 case $host_os in
10580 freebsd[23].*) objformat=aout ;;
10581 *) objformat=elf ;;
10582 esac
10583 fi
10584 version_type=freebsd-$objformat
10585 case $version_type in
10586 freebsd-elf*)
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10588 need_version=no
10589 need_lib_prefix=no
10590 ;;
10591 freebsd-*)
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10593 need_version=yes
10594 ;;
10595 esac
10596 shlibpath_var=LD_LIBRARY_PATH
10597 case $host_os in
10598 freebsd2.*)
10599 shlibpath_overrides_runpath=yes
10600 ;;
10601 freebsd3.[01]* | freebsdelf3.[01]*)
10602 shlibpath_overrides_runpath=yes
10603 hardcode_into_libs=yes
10604 ;;
10605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10607 shlibpath_overrides_runpath=no
10608 hardcode_into_libs=yes
10609 ;;
10610 *) # from 4.6 on, and DragonFly
10611 shlibpath_overrides_runpath=yes
10612 hardcode_into_libs=yes
10613 ;;
10614 esac
10615 ;;
10616
10617 gnu*)
10618 version_type=linux
10619 need_lib_prefix=no
10620 need_version=no
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 hardcode_into_libs=yes
10625 ;;
10626
10627 haiku*)
10628 version_type=linux
10629 need_lib_prefix=no
10630 need_version=no
10631 dynamic_linker="$host_os runtime_loader"
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LIBRARY_PATH
10635 shlibpath_overrides_runpath=yes
10636 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10637 hardcode_into_libs=yes
10638 ;;
10639
10640 hpux9* | hpux10* | hpux11*)
10641 # Give a soname corresponding to the major version so that dld.sl refuses to
10642 # link against other versions.
10643 version_type=sunos
10644 need_lib_prefix=no
10645 need_version=no
10646 case $host_cpu in
10647 ia64*)
10648 shrext_cmds='.so'
10649 hardcode_into_libs=yes
10650 dynamic_linker="$host_os dld.so"
10651 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 if test "X$HPUX_IA64_MODE" = X32; then
10656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10657 else
10658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10659 fi
10660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10661 ;;
10662 hppa*64*)
10663 shrext_cmds='.sl'
10664 hardcode_into_libs=yes
10665 dynamic_linker="$host_os dld.sl"
10666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10672 ;;
10673 *)
10674 shrext_cmds='.sl'
10675 dynamic_linker="$host_os dld.sl"
10676 shlibpath_var=SHLIB_PATH
10677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 ;;
10681 esac
10682 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10683 postinstall_cmds='chmod 555 $lib'
10684 # or fails outright, so override atomically:
10685 install_override_mode=555
10686 ;;
10687
10688 interix[3-9]*)
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 shlibpath_overrides_runpath=no
10697 hardcode_into_libs=yes
10698 ;;
10699
10700 irix5* | irix6* | nonstopux*)
10701 case $host_os in
10702 nonstopux*) version_type=nonstopux ;;
10703 *)
10704 if test "$lt_cv_prog_gnu_ld" = yes; then
10705 version_type=linux
10706 else
10707 version_type=irix
10708 fi ;;
10709 esac
10710 need_lib_prefix=no
10711 need_version=no
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10714 case $host_os in
10715 irix5* | nonstopux*)
10716 libsuff= shlibsuff=
10717 ;;
10718 *)
10719 case $LD in # libtool.m4 will add one of these switches to LD
10720 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10721 libsuff= shlibsuff= libmagic=32-bit;;
10722 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10723 libsuff=32 shlibsuff=N32 libmagic=N32;;
10724 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10725 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10726 *) libsuff= shlibsuff= libmagic=never-match;;
10727 esac
10728 ;;
10729 esac
10730 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10731 shlibpath_overrides_runpath=no
10732 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10733 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10734 hardcode_into_libs=yes
10735 ;;
10736
10737 # No shared lib support for Linux oldld, aout, or coff.
10738 linux*oldld* | linux*aout* | linux*coff*)
10739 dynamic_linker=no
10740 ;;
10741
10742 # This must be Linux ELF.
10743
10744 # uclinux* changes (here and below) have been submitted to the libtool
10745 # project, but have not yet been accepted: they are GCC-local changes
10746 # for the time being. (See
10747 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10748 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10749 version_type=linux
10750 need_lib_prefix=no
10751 need_version=no
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=no
10757
10758 # Some binutils ld are patched to set DT_RUNPATH
10759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 lt_cv_shlibpath_overrides_runpath=no
10763 save_LDFLAGS=$LDFLAGS
10764 save_libdir=$libdir
10765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10769
10770 int
10771 main ()
10772 {
10773
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10780 lt_cv_shlibpath_overrides_runpath=yes
10781 fi
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LDFLAGS=$save_LDFLAGS
10786 libdir=$save_libdir
10787
10788 fi
10789
10790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10791
10792 # This implies no fast_install, which is unacceptable.
10793 # Some rework will be needed to allow for fast_install
10794 # before this can be enabled.
10795 hardcode_into_libs=yes
10796
10797 # Append ld.so.conf contents to the search path
10798 if test -f /etc/ld.so.conf; then
10799 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' ' '`
10800 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10801 fi
10802
10803 # We used to test for /lib/ld.so.1 and disable shared libraries on
10804 # powerpc, because MkLinux only supported shared libraries with the
10805 # GNU dynamic linker. Since this was broken with cross compilers,
10806 # most powerpc-linux boxes support dynamic linking these days and
10807 # people can always --disable-shared, the test was removed, and we
10808 # assume the GNU/Linux dynamic linker is in use.
10809 dynamic_linker='GNU/Linux ld.so'
10810 ;;
10811
10812 netbsd*)
10813 version_type=sunos
10814 need_lib_prefix=no
10815 need_version=no
10816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10819 dynamic_linker='NetBSD (a.out) ld.so'
10820 else
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 dynamic_linker='NetBSD ld.elf_so'
10824 fi
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10828 ;;
10829
10830 newsos6)
10831 version_type=linux
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 shlibpath_var=LD_LIBRARY_PATH
10834 shlibpath_overrides_runpath=yes
10835 ;;
10836
10837 *nto* | *qnx*)
10838 version_type=qnx
10839 need_lib_prefix=no
10840 need_version=no
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 shlibpath_overrides_runpath=no
10845 hardcode_into_libs=yes
10846 dynamic_linker='ldqnx.so'
10847 ;;
10848
10849 openbsd*)
10850 version_type=sunos
10851 sys_lib_dlsearch_path_spec="/usr/lib"
10852 need_lib_prefix=no
10853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10854 case $host_os in
10855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10856 *) need_version=no ;;
10857 esac
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10860 shlibpath_var=LD_LIBRARY_PATH
10861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10862 case $host_os in
10863 openbsd2.[89] | openbsd2.[89].*)
10864 shlibpath_overrides_runpath=no
10865 ;;
10866 *)
10867 shlibpath_overrides_runpath=yes
10868 ;;
10869 esac
10870 else
10871 shlibpath_overrides_runpath=yes
10872 fi
10873 ;;
10874
10875 os2*)
10876 libname_spec='$name'
10877 shrext_cmds=".dll"
10878 need_lib_prefix=no
10879 library_names_spec='$libname${shared_ext} $libname.a'
10880 dynamic_linker='OS/2 ld.exe'
10881 shlibpath_var=LIBPATH
10882 ;;
10883
10884 osf3* | osf4* | osf5*)
10885 version_type=osf
10886 need_lib_prefix=no
10887 need_version=no
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10893 ;;
10894
10895 rdos*)
10896 dynamic_linker=no
10897 ;;
10898
10899 solaris*)
10900 version_type=linux
10901 need_lib_prefix=no
10902 need_version=no
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes
10907 hardcode_into_libs=yes
10908 # ldd complains unless libraries are executable
10909 postinstall_cmds='chmod +x $lib'
10910 ;;
10911
10912 sunos4*)
10913 version_type=sunos
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10918 if test "$with_gnu_ld" = yes; then
10919 need_lib_prefix=no
10920 fi
10921 need_version=yes
10922 ;;
10923
10924 sysv4 | sysv4.3*)
10925 version_type=linux
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 case $host_vendor in
10930 sni)
10931 shlibpath_overrides_runpath=no
10932 need_lib_prefix=no
10933 runpath_var=LD_RUN_PATH
10934 ;;
10935 siemens)
10936 need_lib_prefix=no
10937 ;;
10938 motorola)
10939 need_lib_prefix=no
10940 need_version=no
10941 shlibpath_overrides_runpath=no
10942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10943 ;;
10944 esac
10945 ;;
10946
10947 sysv4*MP*)
10948 if test -d /usr/nec ;then
10949 version_type=linux
10950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10951 soname_spec='$libname${shared_ext}.$major'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 fi
10954 ;;
10955
10956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10957 version_type=freebsd-elf
10958 need_lib_prefix=no
10959 need_version=no
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10964 hardcode_into_libs=yes
10965 if test "$with_gnu_ld" = yes; then
10966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10967 else
10968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10969 case $host_os in
10970 sco3.2v5*)
10971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10972 ;;
10973 esac
10974 fi
10975 sys_lib_dlsearch_path_spec='/usr/lib'
10976 ;;
10977
10978 tpf*)
10979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10980 version_type=linux
10981 need_lib_prefix=no
10982 need_version=no
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986 hardcode_into_libs=yes
10987 ;;
10988
10989 uts4*)
10990 version_type=linux
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 ;;
10995
10996 *)
10997 dynamic_linker=no
10998 ;;
10999 esac
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11001 $as_echo "$dynamic_linker" >&6; }
11002 test "$dynamic_linker" = no && can_build_shared=no
11003
11004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11005 if test "$GCC" = yes; then
11006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11007 fi
11008
11009 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11011 fi
11012 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11014 fi
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11109 hardcode_action=
11110 if test -n "$hardcode_libdir_flag_spec" ||
11111 test -n "$runpath_var" ||
11112 test "X$hardcode_automatic" = "Xyes" ; then
11113
11114 # We can hardcode non-existent directories.
11115 if test "$hardcode_direct" != no &&
11116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11117 # have to relink, otherwise we might link with an installed library
11118 # when we should be linking with a yet-to-be-installed one
11119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11120 test "$hardcode_minus_L" != no; then
11121 # Linking always hardcodes the temporary library directory.
11122 hardcode_action=relink
11123 else
11124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11125 hardcode_action=immediate
11126 fi
11127 else
11128 # We cannot hardcode anything, or else we can only hardcode existing
11129 # directories.
11130 hardcode_action=unsupported
11131 fi
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11133 $as_echo "$hardcode_action" >&6; }
11134
11135 if test "$hardcode_action" = relink ||
11136 test "$inherit_rpath" = yes; then
11137 # Fast installation is not supported
11138 enable_fast_install=no
11139 elif test "$shlibpath_overrides_runpath" = yes ||
11140 test "$enable_shared" = no; then
11141 # Fast installation is not necessary
11142 enable_fast_install=needless
11143 fi
11144
11145
11146
11147
11148
11149
11150 if test "x$enable_dlopen" != xyes; then
11151 enable_dlopen=unknown
11152 enable_dlopen_self=unknown
11153 enable_dlopen_self_static=unknown
11154 else
11155 lt_cv_dlopen=no
11156 lt_cv_dlopen_libs=
11157
11158 case $host_os in
11159 beos*)
11160 lt_cv_dlopen="load_add_on"
11161 lt_cv_dlopen_libs=
11162 lt_cv_dlopen_self=yes
11163 ;;
11164
11165 mingw* | pw32* | cegcc*)
11166 lt_cv_dlopen="LoadLibrary"
11167 lt_cv_dlopen_libs=
11168 ;;
11169
11170 cygwin*)
11171 lt_cv_dlopen="dlopen"
11172 lt_cv_dlopen_libs=
11173 ;;
11174
11175 darwin*)
11176 # if libdl is installed we need to link against it
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11179 if ${ac_cv_lib_dl_dlopen+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-ldl $LIBS"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186
11187 /* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 char dlopen ();
11194 int
11195 main ()
11196 {
11197 return dlopen ();
11198 ;
11199 return 0;
11200 }
11201 _ACEOF
11202 if ac_fn_c_try_link "$LINENO"; then :
11203 ac_cv_lib_dl_dlopen=yes
11204 else
11205 ac_cv_lib_dl_dlopen=no
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11209 LIBS=$ac_check_lib_save_LIBS
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11213 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11215 else
11216
11217 lt_cv_dlopen="dyld"
11218 lt_cv_dlopen_libs=
11219 lt_cv_dlopen_self=yes
11220
11221 fi
11222
11223 ;;
11224
11225 *)
11226 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11227 if test "x$ac_cv_func_shl_load" = xyes; then :
11228 lt_cv_dlopen="shl_load"
11229 else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11231 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11232 if ${ac_cv_lib_dld_shl_load+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-ldld $LIBS"
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char shl_load ();
11247 int
11248 main ()
11249 {
11250 return shl_load ();
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 if ac_fn_c_try_link "$LINENO"; then :
11256 ac_cv_lib_dld_shl_load=yes
11257 else
11258 ac_cv_lib_dld_shl_load=no
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11266 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11268 else
11269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11270 if test "x$ac_cv_func_dlopen" = xyes; then :
11271 lt_cv_dlopen="dlopen"
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11275 if ${ac_cv_lib_dl_dlopen+:} false; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 ac_check_lib_save_LIBS=$LIBS
11279 LIBS="-ldl $LIBS"
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 char dlopen ();
11290 int
11291 main ()
11292 {
11293 return dlopen ();
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 ac_cv_lib_dl_dlopen=yes
11300 else
11301 ac_cv_lib_dl_dlopen=no
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 LIBS=$ac_check_lib_save_LIBS
11306 fi
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11309 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11313 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11314 if ${ac_cv_lib_svld_dlopen+:} false; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-lsvld $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 char dlopen ();
11329 int
11330 main ()
11331 {
11332 return dlopen ();
11333 ;
11334 return 0;
11335 }
11336 _ACEOF
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 ac_cv_lib_svld_dlopen=yes
11339 else
11340 ac_cv_lib_svld_dlopen=no
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11347 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11348 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11352 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11353 if ${ac_cv_lib_dld_dld_link+:} false; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 ac_check_lib_save_LIBS=$LIBS
11357 LIBS="-ldld $LIBS"
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11360
11361 /* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11364 #ifdef __cplusplus
11365 extern "C"
11366 #endif
11367 char dld_link ();
11368 int
11369 main ()
11370 {
11371 return dld_link ();
11372 ;
11373 return 0;
11374 }
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 ac_cv_lib_dld_dld_link=yes
11378 else
11379 ac_cv_lib_dld_dld_link=no
11380 fi
11381 rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_lib_save_LIBS
11384 fi
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11386 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11387 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11389 fi
11390
11391
11392 fi
11393
11394
11395 fi
11396
11397
11398 fi
11399
11400
11401 fi
11402
11403
11404 fi
11405
11406 ;;
11407 esac
11408
11409 if test "x$lt_cv_dlopen" != xno; then
11410 enable_dlopen=yes
11411 else
11412 enable_dlopen=no
11413 fi
11414
11415 case $lt_cv_dlopen in
11416 dlopen)
11417 save_CPPFLAGS="$CPPFLAGS"
11418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11419
11420 save_LDFLAGS="$LDFLAGS"
11421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11422
11423 save_LIBS="$LIBS"
11424 LIBS="$lt_cv_dlopen_libs $LIBS"
11425
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11427 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11428 if ${lt_cv_dlopen_self+:} false; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 if test "$cross_compiling" = yes; then :
11432 lt_cv_dlopen_self=cross
11433 else
11434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11435 lt_status=$lt_dlunknown
11436 cat > conftest.$ac_ext <<_LT_EOF
11437 #line 11437 "configure"
11438 #include "confdefs.h"
11439
11440 #if HAVE_DLFCN_H
11441 #include <dlfcn.h>
11442 #endif
11443
11444 #include <stdio.h>
11445
11446 #ifdef RTLD_GLOBAL
11447 # define LT_DLGLOBAL RTLD_GLOBAL
11448 #else
11449 # ifdef DL_GLOBAL
11450 # define LT_DLGLOBAL DL_GLOBAL
11451 # else
11452 # define LT_DLGLOBAL 0
11453 # endif
11454 #endif
11455
11456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11457 find out it does not work in some platform. */
11458 #ifndef LT_DLLAZY_OR_NOW
11459 # ifdef RTLD_LAZY
11460 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11461 # else
11462 # ifdef DL_LAZY
11463 # define LT_DLLAZY_OR_NOW DL_LAZY
11464 # else
11465 # ifdef RTLD_NOW
11466 # define LT_DLLAZY_OR_NOW RTLD_NOW
11467 # else
11468 # ifdef DL_NOW
11469 # define LT_DLLAZY_OR_NOW DL_NOW
11470 # else
11471 # define LT_DLLAZY_OR_NOW 0
11472 # endif
11473 # endif
11474 # endif
11475 # endif
11476 #endif
11477
11478 /* When -fvisbility=hidden is used, assume the code has been annotated
11479 correspondingly for the symbols needed. */
11480 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11481 void fnord () __attribute__((visibility("default")));
11482 #endif
11483
11484 void fnord () { int i=42; }
11485 int main ()
11486 {
11487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11488 int status = $lt_dlunknown;
11489
11490 if (self)
11491 {
11492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11493 else
11494 {
11495 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11496 else puts (dlerror ());
11497 }
11498 /* dlclose (self); */
11499 }
11500 else
11501 puts (dlerror ());
11502
11503 return status;
11504 }
11505 _LT_EOF
11506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11507 (eval $ac_link) 2>&5
11508 ac_status=$?
11509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11510 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11511 (./conftest; exit; ) >&5 2>/dev/null
11512 lt_status=$?
11513 case x$lt_status in
11514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11517 esac
11518 else :
11519 # compilation failed
11520 lt_cv_dlopen_self=no
11521 fi
11522 fi
11523 rm -fr conftest*
11524
11525
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11528 $as_echo "$lt_cv_dlopen_self" >&6; }
11529
11530 if test "x$lt_cv_dlopen_self" = xyes; then
11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11533 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11534 if ${lt_cv_dlopen_self_static+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 if test "$cross_compiling" = yes; then :
11538 lt_cv_dlopen_self_static=cross
11539 else
11540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11541 lt_status=$lt_dlunknown
11542 cat > conftest.$ac_ext <<_LT_EOF
11543 #line 11543 "configure"
11544 #include "confdefs.h"
11545
11546 #if HAVE_DLFCN_H
11547 #include <dlfcn.h>
11548 #endif
11549
11550 #include <stdio.h>
11551
11552 #ifdef RTLD_GLOBAL
11553 # define LT_DLGLOBAL RTLD_GLOBAL
11554 #else
11555 # ifdef DL_GLOBAL
11556 # define LT_DLGLOBAL DL_GLOBAL
11557 # else
11558 # define LT_DLGLOBAL 0
11559 # endif
11560 #endif
11561
11562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11563 find out it does not work in some platform. */
11564 #ifndef LT_DLLAZY_OR_NOW
11565 # ifdef RTLD_LAZY
11566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11567 # else
11568 # ifdef DL_LAZY
11569 # define LT_DLLAZY_OR_NOW DL_LAZY
11570 # else
11571 # ifdef RTLD_NOW
11572 # define LT_DLLAZY_OR_NOW RTLD_NOW
11573 # else
11574 # ifdef DL_NOW
11575 # define LT_DLLAZY_OR_NOW DL_NOW
11576 # else
11577 # define LT_DLLAZY_OR_NOW 0
11578 # endif
11579 # endif
11580 # endif
11581 # endif
11582 #endif
11583
11584 /* When -fvisbility=hidden is used, assume the code has been annotated
11585 correspondingly for the symbols needed. */
11586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11587 void fnord () __attribute__((visibility("default")));
11588 #endif
11589
11590 void fnord () { int i=42; }
11591 int main ()
11592 {
11593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11594 int status = $lt_dlunknown;
11595
11596 if (self)
11597 {
11598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11599 else
11600 {
11601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11602 else puts (dlerror ());
11603 }
11604 /* dlclose (self); */
11605 }
11606 else
11607 puts (dlerror ());
11608
11609 return status;
11610 }
11611 _LT_EOF
11612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11613 (eval $ac_link) 2>&5
11614 ac_status=$?
11615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11617 (./conftest; exit; ) >&5 2>/dev/null
11618 lt_status=$?
11619 case x$lt_status in
11620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11622 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11623 esac
11624 else :
11625 # compilation failed
11626 lt_cv_dlopen_self_static=no
11627 fi
11628 fi
11629 rm -fr conftest*
11630
11631
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11634 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11635 fi
11636
11637 CPPFLAGS="$save_CPPFLAGS"
11638 LDFLAGS="$save_LDFLAGS"
11639 LIBS="$save_LIBS"
11640 ;;
11641 esac
11642
11643 case $lt_cv_dlopen_self in
11644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11645 *) enable_dlopen_self=unknown ;;
11646 esac
11647
11648 case $lt_cv_dlopen_self_static in
11649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11650 *) enable_dlopen_self_static=unknown ;;
11651 esac
11652 fi
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670 striplib=
11671 old_striplib=
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11673 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11674 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11675 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11676 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678 $as_echo "yes" >&6; }
11679 else
11680 # FIXME - insert some real tests, host_os isn't really good enough
11681 case $host_os in
11682 darwin*)
11683 if test -n "$STRIP" ; then
11684 striplib="$STRIP -x"
11685 old_striplib="$STRIP -S"
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11687 $as_echo "yes" >&6; }
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691 fi
11692 ;;
11693 *)
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11696 ;;
11697 esac
11698 fi
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711 # Report which library types will actually be built
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11713 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11715 $as_echo "$can_build_shared" >&6; }
11716
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11718 $as_echo_n "checking whether to build shared libraries... " >&6; }
11719 test "$can_build_shared" = "no" && enable_shared=no
11720
11721 # On AIX, shared libraries and static libraries use the same namespace, and
11722 # are all built from PIC.
11723 case $host_os in
11724 aix3*)
11725 test "$enable_shared" = yes && enable_static=no
11726 if test -n "$RANLIB"; then
11727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11728 postinstall_cmds='$RANLIB $lib'
11729 fi
11730 ;;
11731
11732 aix[4-9]*)
11733 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11734 test "$enable_shared" = yes && enable_static=no
11735 fi
11736 ;;
11737 esac
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11739 $as_echo "$enable_shared" >&6; }
11740
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11742 $as_echo_n "checking whether to build static libraries... " >&6; }
11743 # Make sure either enable_shared or enable_static is yes.
11744 test "$enable_shared" = yes || enable_static=yes
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11746 $as_echo "$enable_static" >&6; }
11747
11748
11749
11750
11751 fi
11752 ac_ext=c
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11757
11758 CC="$lt_save_CC"
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772 ac_config_commands="$ac_config_commands libtool"
11773
11774
11775
11776
11777 # Only expand once:
11778
11779
11780
11781
11782
11783 case $host in
11784 *-cygwin* | *-mingw*)
11785 # 'host' will be top-level target in the case of a target lib,
11786 # we must compare to with_cross_host to decide if this is a native
11787 # or cross-compiler and select where to install dlls appropriately.
11788 if test -n "$with_cross_host" &&
11789 test x"$with_cross_host" != x"no"; then
11790 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11791 else
11792 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11793 fi
11794 ;;
11795 *)
11796 lt_host_flags=
11797 ;;
11798 esac
11799
11800
11801
11802
11803
11804
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11807 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11808 # Check whether --enable-maintainer-mode was given.
11809 if test "${enable_maintainer_mode+set}" = set; then :
11810 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11811 else
11812 USE_MAINTAINER_MODE=no
11813 fi
11814
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11816 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11817 if test $USE_MAINTAINER_MODE = yes; then
11818 MAINTAINER_MODE_TRUE=
11819 MAINTAINER_MODE_FALSE='#'
11820 else
11821 MAINTAINER_MODE_TRUE='#'
11822 MAINTAINER_MODE_FALSE=
11823 fi
11824
11825 MAINT=$MAINTAINER_MODE_TRUE
11826
11827
11828
11829 # Create a spec file, so that compile/link tests don't fail
11830 test -f libgfortran.spec || touch libgfortran.spec
11831 FCFLAGS="$FCFLAGS -L."
11832
11833 # We need gfortran to compile parts of the library
11834 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11835 #AC_PROG_FC(gfortran)
11836 case `echo $GFORTRAN` in
11837 -* | no* )
11838 FC=no ;;
11839 *)
11840 set dummy $GFORTRAN; ac_word=$2
11841 if test -x "$ac_word"; then
11842 FC="$GFORTRAN"
11843 else
11844 FC=no
11845 fi ;;
11846 esac
11847 ac_ext=${ac_fc_srcext-f}
11848 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11849 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11850 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11851 if test -n "$ac_tool_prefix"; then
11852 for ac_prog in gfortran
11853 do
11854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11855 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_prog_FC+:} false; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test -n "$FC"; then
11862 ac_cv_prog_FC="$FC" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11866 do
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11871 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11874 fi
11875 done
11876 done
11877 IFS=$as_save_IFS
11878
11879 fi
11880 fi
11881 FC=$ac_cv_prog_FC
11882 if test -n "$FC"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11884 $as_echo "$FC" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889
11890
11891 test -n "$FC" && break
11892 done
11893 fi
11894 if test -z "$FC"; then
11895 ac_ct_FC=$FC
11896 for ac_prog in gfortran
11897 do
11898 # Extract the first word of "$ac_prog", so it can be a program name with args.
11899 set dummy $ac_prog; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11903 $as_echo_n "(cached) " >&6
11904 else
11905 if test -n "$ac_ct_FC"; then
11906 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11907 else
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11910 do
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11915 ac_cv_prog_ac_ct_FC="$ac_prog"
11916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11918 fi
11919 done
11920 done
11921 IFS=$as_save_IFS
11922
11923 fi
11924 fi
11925 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11926 if test -n "$ac_ct_FC"; then
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11928 $as_echo "$ac_ct_FC" >&6; }
11929 else
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11932 fi
11933
11934
11935 test -n "$ac_ct_FC" && break
11936 done
11937
11938 if test "x$ac_ct_FC" = x; then
11939 FC=""
11940 else
11941 case $cross_compiling:$ac_tool_warned in
11942 yes:)
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11945 ac_tool_warned=yes ;;
11946 esac
11947 FC=$ac_ct_FC
11948 fi
11949 fi
11950
11951
11952 # Provide some information about the compiler.
11953 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11954 set X $ac_compile
11955 ac_compiler=$2
11956 for ac_option in --version -v -V -qversion; do
11957 { { ac_try="$ac_compiler $ac_option >&5"
11958 case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961 esac
11962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11963 $as_echo "$ac_try_echo"; } >&5
11964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11965 ac_status=$?
11966 if test -s conftest.err; then
11967 sed '10a\
11968 ... rest of stderr output deleted ...
11969 10q' conftest.err >conftest.er1
11970 cat conftest.er1 >&5
11971 fi
11972 rm -f conftest.er1 conftest.err
11973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11974 test $ac_status = 0; }
11975 done
11976 rm -f a.out
11977
11978 # If we don't use `.F' as extension, the preprocessor is not run on the
11979 # input file. (Note that this only needs to work for GNU compilers.)
11980 ac_save_ext=$ac_ext
11981 ac_ext=F
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11983 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11984 if ${ac_cv_fc_compiler_gnu+:} false; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 cat > conftest.$ac_ext <<_ACEOF
11988 program main
11989 #ifndef __GNUC__
11990 choke me
11991 #endif
11992
11993 end
11994 _ACEOF
11995 if ac_fn_fc_try_compile "$LINENO"; then :
11996 ac_compiler_gnu=yes
11997 else
11998 ac_compiler_gnu=no
11999 fi
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12002
12003 fi
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12005 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12006 ac_ext=$ac_save_ext
12007 ac_test_FCFLAGS=${FCFLAGS+set}
12008 ac_save_FCFLAGS=$FCFLAGS
12009 FCFLAGS=
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12011 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12012 if ${ac_cv_prog_fc_g+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 FCFLAGS=-g
12016 cat > conftest.$ac_ext <<_ACEOF
12017 program main
12018
12019 end
12020 _ACEOF
12021 if ac_fn_fc_try_compile "$LINENO"; then :
12022 ac_cv_prog_fc_g=yes
12023 else
12024 ac_cv_prog_fc_g=no
12025 fi
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027
12028 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12030 $as_echo "$ac_cv_prog_fc_g" >&6; }
12031 if test "$ac_test_FCFLAGS" = set; then
12032 FCFLAGS=$ac_save_FCFLAGS
12033 elif test $ac_cv_prog_fc_g = yes; then
12034 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12035 FCFLAGS="-g -O2"
12036 else
12037 FCFLAGS="-g"
12038 fi
12039 else
12040 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12041 FCFLAGS="-O2"
12042 else
12043 FCFLAGS=
12044 fi
12045 fi
12046
12047 if test $ac_compiler_gnu = yes; then
12048 GFC=yes
12049 else
12050 GFC=
12051 fi
12052 ac_ext=c
12053 ac_cpp='$CPP $CPPFLAGS'
12054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12057
12058 ac_ext=${ac_fc_srcext-f}
12059 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12060 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12061 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12062
12063
12064 if test -z "$FC" || test "X$FC" = "Xno"; then
12065 _lt_disable_FC=yes
12066 fi
12067
12068 archive_cmds_need_lc_FC=no
12069 allow_undefined_flag_FC=
12070 always_export_symbols_FC=no
12071 archive_expsym_cmds_FC=
12072 export_dynamic_flag_spec_FC=
12073 hardcode_direct_FC=no
12074 hardcode_direct_absolute_FC=no
12075 hardcode_libdir_flag_spec_FC=
12076 hardcode_libdir_flag_spec_ld_FC=
12077 hardcode_libdir_separator_FC=
12078 hardcode_minus_L_FC=no
12079 hardcode_automatic_FC=no
12080 inherit_rpath_FC=no
12081 module_cmds_FC=
12082 module_expsym_cmds_FC=
12083 link_all_deplibs_FC=unknown
12084 old_archive_cmds_FC=$old_archive_cmds
12085 reload_flag_FC=$reload_flag
12086 reload_cmds_FC=$reload_cmds
12087 no_undefined_flag_FC=
12088 whole_archive_flag_spec_FC=
12089 enable_shared_with_static_runtimes_FC=no
12090
12091 # Source file extension for fc test sources.
12092 ac_ext=${ac_fc_srcext-f}
12093
12094 # Object file extension for compiled fc test sources.
12095 objext=o
12096 objext_FC=$objext
12097
12098 # No sense in running all these tests if we already determined that
12099 # the FC compiler isn't working. Some variables (like enable_shared)
12100 # are currently assumed to apply to all compilers on this platform,
12101 # and will be corrupted by setting them based on a non-working compiler.
12102 if test "$_lt_disable_FC" != yes; then
12103 # Code to be used in simple compile tests
12104 lt_simple_compile_test_code="\
12105 subroutine t
12106 return
12107 end
12108 "
12109
12110 # Code to be used in simple link tests
12111 lt_simple_link_test_code="\
12112 program t
12113 end
12114 "
12115
12116 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12117
12118
12119
12120
12121
12122
12123 # If no C compiler was specified, use CC.
12124 LTCC=${LTCC-"$CC"}
12125
12126 # If no C compiler flags were specified, use CFLAGS.
12127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12128
12129 # Allow CC to be a program name with arguments.
12130 compiler=$CC
12131
12132
12133 # save warnings/boilerplate of simple test code
12134 ac_outfile=conftest.$ac_objext
12135 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12136 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12137 _lt_compiler_boilerplate=`cat conftest.err`
12138 $RM conftest*
12139
12140 ac_outfile=conftest.$ac_objext
12141 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12142 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12143 _lt_linker_boilerplate=`cat conftest.err`
12144 $RM -r conftest*
12145
12146
12147 # Allow CC to be a program name with arguments.
12148 lt_save_CC="$CC"
12149 lt_save_GCC=$GCC
12150 CC=${FC-"f95"}
12151 compiler=$CC
12152 GCC=$ac_cv_fc_compiler_gnu
12153
12154 compiler_FC=$CC
12155 for cc_temp in $compiler""; do
12156 case $cc_temp in
12157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12159 \-*) ;;
12160 *) break;;
12161 esac
12162 done
12163 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12164
12165
12166 if test -n "$compiler"; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12168 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12170 $as_echo "$can_build_shared" >&6; }
12171
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12173 $as_echo_n "checking whether to build shared libraries... " >&6; }
12174 test "$can_build_shared" = "no" && enable_shared=no
12175
12176 # On AIX, shared libraries and static libraries use the same namespace, and
12177 # are all built from PIC.
12178 case $host_os in
12179 aix3*)
12180 test "$enable_shared" = yes && enable_static=no
12181 if test -n "$RANLIB"; then
12182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12183 postinstall_cmds='$RANLIB $lib'
12184 fi
12185 ;;
12186 aix[4-9]*)
12187 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12188 test "$enable_shared" = yes && enable_static=no
12189 fi
12190 ;;
12191 esac
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12193 $as_echo "$enable_shared" >&6; }
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12196 $as_echo_n "checking whether to build static libraries... " >&6; }
12197 # Make sure either enable_shared or enable_static is yes.
12198 test "$enable_shared" = yes || enable_static=yes
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12200 $as_echo "$enable_static" >&6; }
12201
12202 GCC_FC="$ac_cv_fc_compiler_gnu"
12203 LD_FC="$LD"
12204
12205 ## CAVEAT EMPTOR:
12206 ## There is no encapsulation within the following macros, do not change
12207 ## the running order or otherwise move them around unless you know exactly
12208 ## what you are doing...
12209 # Dependencies to place before and after the object being linked:
12210 predep_objects_FC=
12211 postdep_objects_FC=
12212 predeps_FC=
12213 postdeps_FC=
12214 compiler_lib_search_path_FC=
12215
12216 cat > conftest.$ac_ext <<_LT_EOF
12217 subroutine foo
12218 implicit none
12219 integer a
12220 a=0
12221 return
12222 end
12223 _LT_EOF
12224
12225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12226 (eval $ac_compile) 2>&5
12227 ac_status=$?
12228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12229 test $ac_status = 0; }; then
12230 # Parse the compiler output and extract the necessary
12231 # objects, libraries and library flags.
12232
12233 # Sentinel used to keep track of whether or not we are before
12234 # the conftest object file.
12235 pre_test_object_deps_done=no
12236
12237 for p in `eval "$output_verbose_link_cmd"`; do
12238 case $p in
12239
12240 -L* | -R* | -l*)
12241 # Some compilers place space between "-{L,R}" and the path.
12242 # Remove the space.
12243 if test $p = "-L" ||
12244 test $p = "-R"; then
12245 prev=$p
12246 continue
12247 else
12248 prev=
12249 fi
12250
12251 if test "$pre_test_object_deps_done" = no; then
12252 case $p in
12253 -L* | -R*)
12254 # Internal compiler library paths should come after those
12255 # provided the user. The postdeps already come after the
12256 # user supplied libs so there is no need to process them.
12257 if test -z "$compiler_lib_search_path_FC"; then
12258 compiler_lib_search_path_FC="${prev}${p}"
12259 else
12260 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12261 fi
12262 ;;
12263 # The "-l" case would never come before the object being
12264 # linked, so don't bother handling this case.
12265 esac
12266 else
12267 if test -z "$postdeps_FC"; then
12268 postdeps_FC="${prev}${p}"
12269 else
12270 postdeps_FC="${postdeps_FC} ${prev}${p}"
12271 fi
12272 fi
12273 ;;
12274
12275 *.$objext)
12276 # This assumes that the test object file only shows up
12277 # once in the compiler output.
12278 if test "$p" = "conftest.$objext"; then
12279 pre_test_object_deps_done=yes
12280 continue
12281 fi
12282
12283 if test "$pre_test_object_deps_done" = no; then
12284 if test -z "$predep_objects_FC"; then
12285 predep_objects_FC="$p"
12286 else
12287 predep_objects_FC="$predep_objects_FC $p"
12288 fi
12289 else
12290 if test -z "$postdep_objects_FC"; then
12291 postdep_objects_FC="$p"
12292 else
12293 postdep_objects_FC="$postdep_objects_FC $p"
12294 fi
12295 fi
12296 ;;
12297
12298 *) ;; # Ignore the rest.
12299
12300 esac
12301 done
12302
12303 # Clean up.
12304 rm -f a.out a.exe
12305 else
12306 echo "libtool.m4: error: problem compiling FC test program"
12307 fi
12308
12309 $RM -f confest.$objext
12310
12311 # PORTME: override above test on systems where it is broken
12312
12313
12314 case " $postdeps_FC " in
12315 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12316 esac
12317 compiler_lib_search_dirs_FC=
12318 if test -n "${compiler_lib_search_path_FC}"; then
12319 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12320 fi
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352 lt_prog_compiler_wl_FC=
12353 lt_prog_compiler_pic_FC=
12354 lt_prog_compiler_static_FC=
12355
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12358
12359 if test "$GCC" = yes; then
12360 lt_prog_compiler_wl_FC='-Wl,'
12361 lt_prog_compiler_static_FC='-static'
12362
12363 case $host_os in
12364 aix*)
12365 # All AIX code is PIC.
12366 if test "$host_cpu" = ia64; then
12367 # AIX 5 now supports IA64 processor
12368 lt_prog_compiler_static_FC='-Bstatic'
12369 fi
12370 lt_prog_compiler_pic_FC='-fPIC'
12371 ;;
12372
12373 amigaos*)
12374 case $host_cpu in
12375 powerpc)
12376 # see comment about AmigaOS4 .so support
12377 lt_prog_compiler_pic_FC='-fPIC'
12378 ;;
12379 m68k)
12380 # FIXME: we need at least 68020 code to build shared libraries, but
12381 # adding the `-m68020' flag to GCC prevents building anything better,
12382 # like `-m68040'.
12383 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12384 ;;
12385 esac
12386 ;;
12387
12388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12389 # PIC is the default for these OSes.
12390 ;;
12391
12392 mingw* | cygwin* | pw32* | os2* | cegcc*)
12393 # This hack is so that the source file can tell whether it is being
12394 # built for inclusion in a dll (and should export symbols for example).
12395 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12396 # (--disable-auto-import) libraries
12397 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12398 ;;
12399
12400 darwin* | rhapsody*)
12401 # PIC is the default on this platform
12402 # Common symbols not allowed in MH_DYLIB files
12403 lt_prog_compiler_pic_FC='-fno-common'
12404 ;;
12405
12406 haiku*)
12407 # PIC is the default for Haiku.
12408 # The "-static" flag exists, but is broken.
12409 lt_prog_compiler_static_FC=
12410 ;;
12411
12412 hpux*)
12413 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12414 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12415 # sets the default TLS model and affects inlining.
12416 case $host_cpu in
12417 hppa*64*)
12418 # +Z the default
12419 ;;
12420 *)
12421 lt_prog_compiler_pic_FC='-fPIC'
12422 ;;
12423 esac
12424 ;;
12425
12426 interix[3-9]*)
12427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12428 # Instead, we relocate shared libraries at runtime.
12429 ;;
12430
12431 msdosdjgpp*)
12432 # Just because we use GCC doesn't mean we suddenly get shared libraries
12433 # on systems that don't support them.
12434 lt_prog_compiler_can_build_shared_FC=no
12435 enable_shared=no
12436 ;;
12437
12438 *nto* | *qnx*)
12439 # QNX uses GNU C++, but need to define -shared option too, otherwise
12440 # it will coredump.
12441 lt_prog_compiler_pic_FC='-fPIC -shared'
12442 ;;
12443
12444 sysv4*MP*)
12445 if test -d /usr/nec; then
12446 lt_prog_compiler_pic_FC=-Kconform_pic
12447 fi
12448 ;;
12449
12450 *)
12451 lt_prog_compiler_pic_FC='-fPIC'
12452 ;;
12453 esac
12454
12455 case $cc_basename in
12456 nvcc*) # Cuda Compiler Driver 2.2
12457 lt_prog_compiler_wl_FC='-Xlinker '
12458 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12459 ;;
12460 esac
12461 else
12462 # PORTME Check for flag to pass linker flags through the system compiler.
12463 case $host_os in
12464 aix*)
12465 lt_prog_compiler_wl_FC='-Wl,'
12466 if test "$host_cpu" = ia64; then
12467 # AIX 5 now supports IA64 processor
12468 lt_prog_compiler_static_FC='-Bstatic'
12469 else
12470 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12471 fi
12472 ;;
12473
12474 mingw* | cygwin* | pw32* | os2* | cegcc*)
12475 # This hack is so that the source file can tell whether it is being
12476 # built for inclusion in a dll (and should export symbols for example).
12477 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12478 ;;
12479
12480 hpux9* | hpux10* | hpux11*)
12481 lt_prog_compiler_wl_FC='-Wl,'
12482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12483 # not for PA HP-UX.
12484 case $host_cpu in
12485 hppa*64*|ia64*)
12486 # +Z the default
12487 ;;
12488 *)
12489 lt_prog_compiler_pic_FC='+Z'
12490 ;;
12491 esac
12492 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12493 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12494 ;;
12495
12496 irix5* | irix6* | nonstopux*)
12497 lt_prog_compiler_wl_FC='-Wl,'
12498 # PIC (with -KPIC) is the default.
12499 lt_prog_compiler_static_FC='-non_shared'
12500 ;;
12501
12502 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12503 case $cc_basename in
12504 # old Intel for x86_64 which still supported -KPIC.
12505 ecc*)
12506 lt_prog_compiler_wl_FC='-Wl,'
12507 lt_prog_compiler_pic_FC='-KPIC'
12508 lt_prog_compiler_static_FC='-static'
12509 ;;
12510 # icc used to be incompatible with GCC.
12511 # ICC 10 doesn't accept -KPIC any more.
12512 icc* | ifort*)
12513 lt_prog_compiler_wl_FC='-Wl,'
12514 lt_prog_compiler_pic_FC='-fPIC'
12515 lt_prog_compiler_static_FC='-static'
12516 ;;
12517 # Lahey Fortran 8.1.
12518 lf95*)
12519 lt_prog_compiler_wl_FC='-Wl,'
12520 lt_prog_compiler_pic_FC='--shared'
12521 lt_prog_compiler_static_FC='--static'
12522 ;;
12523 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12524 # Portland Group compilers (*not* the Pentium gcc compiler,
12525 # which looks to be a dead project)
12526 lt_prog_compiler_wl_FC='-Wl,'
12527 lt_prog_compiler_pic_FC='-fpic'
12528 lt_prog_compiler_static_FC='-Bstatic'
12529 ;;
12530 ccc*)
12531 lt_prog_compiler_wl_FC='-Wl,'
12532 # All Alpha code is PIC.
12533 lt_prog_compiler_static_FC='-non_shared'
12534 ;;
12535 xl* | bgxl* | bgf* | mpixl*)
12536 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12537 lt_prog_compiler_wl_FC='-Wl,'
12538 lt_prog_compiler_pic_FC='-qpic'
12539 lt_prog_compiler_static_FC='-qstaticlink'
12540 ;;
12541 *)
12542 case `$CC -V 2>&1 | sed 5q` in
12543 *Sun\ F* | *Sun*Fortran*)
12544 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12545 lt_prog_compiler_pic_FC='-KPIC'
12546 lt_prog_compiler_static_FC='-Bstatic'
12547 lt_prog_compiler_wl_FC=''
12548 ;;
12549 *Sun\ C*)
12550 # Sun C 5.9
12551 lt_prog_compiler_pic_FC='-KPIC'
12552 lt_prog_compiler_static_FC='-Bstatic'
12553 lt_prog_compiler_wl_FC='-Wl,'
12554 ;;
12555 esac
12556 ;;
12557 esac
12558 ;;
12559
12560 newsos6)
12561 lt_prog_compiler_pic_FC='-KPIC'
12562 lt_prog_compiler_static_FC='-Bstatic'
12563 ;;
12564
12565 *nto* | *qnx*)
12566 # QNX uses GNU C++, but need to define -shared option too, otherwise
12567 # it will coredump.
12568 lt_prog_compiler_pic_FC='-fPIC -shared'
12569 ;;
12570
12571 osf3* | osf4* | osf5*)
12572 lt_prog_compiler_wl_FC='-Wl,'
12573 # All OSF/1 code is PIC.
12574 lt_prog_compiler_static_FC='-non_shared'
12575 ;;
12576
12577 rdos*)
12578 lt_prog_compiler_static_FC='-non_shared'
12579 ;;
12580
12581 solaris*)
12582 lt_prog_compiler_pic_FC='-KPIC'
12583 lt_prog_compiler_static_FC='-Bstatic'
12584 case $cc_basename in
12585 f77* | f90* | f95*)
12586 lt_prog_compiler_wl_FC='-Qoption ld ';;
12587 *)
12588 lt_prog_compiler_wl_FC='-Wl,';;
12589 esac
12590 ;;
12591
12592 sunos4*)
12593 lt_prog_compiler_wl_FC='-Qoption ld '
12594 lt_prog_compiler_pic_FC='-PIC'
12595 lt_prog_compiler_static_FC='-Bstatic'
12596 ;;
12597
12598 sysv4 | sysv4.2uw2* | sysv4.3*)
12599 lt_prog_compiler_wl_FC='-Wl,'
12600 lt_prog_compiler_pic_FC='-KPIC'
12601 lt_prog_compiler_static_FC='-Bstatic'
12602 ;;
12603
12604 sysv4*MP*)
12605 if test -d /usr/nec ;then
12606 lt_prog_compiler_pic_FC='-Kconform_pic'
12607 lt_prog_compiler_static_FC='-Bstatic'
12608 fi
12609 ;;
12610
12611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12612 lt_prog_compiler_wl_FC='-Wl,'
12613 lt_prog_compiler_pic_FC='-KPIC'
12614 lt_prog_compiler_static_FC='-Bstatic'
12615 ;;
12616
12617 unicos*)
12618 lt_prog_compiler_wl_FC='-Wl,'
12619 lt_prog_compiler_can_build_shared_FC=no
12620 ;;
12621
12622 uts4*)
12623 lt_prog_compiler_pic_FC='-pic'
12624 lt_prog_compiler_static_FC='-Bstatic'
12625 ;;
12626
12627 *)
12628 lt_prog_compiler_can_build_shared_FC=no
12629 ;;
12630 esac
12631 fi
12632
12633 case $host_os in
12634 # For platforms which do not support PIC, -DPIC is meaningless:
12635 *djgpp*)
12636 lt_prog_compiler_pic_FC=
12637 ;;
12638 *)
12639 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12640 ;;
12641 esac
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12643 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12644
12645
12646
12647 #
12648 # Check to make sure the PIC flag actually works.
12649 #
12650 if test -n "$lt_prog_compiler_pic_FC"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12652 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12653 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 lt_cv_prog_compiler_pic_works_FC=no
12657 ac_outfile=conftest.$ac_objext
12658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12659 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12660 # Insert the option either (1) after the last *FLAGS variable, or
12661 # (2) before a word containing "conftest.", or (3) at the end.
12662 # Note that $ac_compile itself does not contain backslashes and begins
12663 # with a dollar sign (not a hyphen), so the echo should work correctly.
12664 # The option is referenced via a variable to avoid confusing sed.
12665 lt_compile=`echo "$ac_compile" | $SED \
12666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12668 -e 's:$: $lt_compiler_flag:'`
12669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12670 (eval "$lt_compile" 2>conftest.err)
12671 ac_status=$?
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 if (exit $ac_status) && test -s "$ac_outfile"; then
12675 # The compiler can only warn and ignore the option if not recognized
12676 # So say no if there are warnings other than the usual output.
12677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12680 lt_cv_prog_compiler_pic_works_FC=yes
12681 fi
12682 fi
12683 $RM conftest*
12684
12685 fi
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12687 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12688
12689 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12690 case $lt_prog_compiler_pic_FC in
12691 "" | " "*) ;;
12692 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12693 esac
12694 else
12695 lt_prog_compiler_pic_FC=
12696 lt_prog_compiler_can_build_shared_FC=no
12697 fi
12698
12699 fi
12700
12701
12702
12703 #
12704 # Check to make sure the static flag actually works.
12705 #
12706 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12708 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12709 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 lt_cv_prog_compiler_static_works_FC=no
12713 save_LDFLAGS="$LDFLAGS"
12714 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12717 # The linker can only warn and ignore the option if not recognized
12718 # So say no if there are warnings
12719 if test -s conftest.err; then
12720 # Append any errors to the config.log.
12721 cat conftest.err 1>&5
12722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12724 if diff conftest.exp conftest.er2 >/dev/null; then
12725 lt_cv_prog_compiler_static_works_FC=yes
12726 fi
12727 else
12728 lt_cv_prog_compiler_static_works_FC=yes
12729 fi
12730 fi
12731 $RM -r conftest*
12732 LDFLAGS="$save_LDFLAGS"
12733
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12736 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12737
12738 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12739 :
12740 else
12741 lt_prog_compiler_static_FC=
12742 fi
12743
12744
12745
12746
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12748 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12749 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 lt_cv_prog_compiler_c_o_FC=no
12753 $RM -r conftest 2>/dev/null
12754 mkdir conftest
12755 cd conftest
12756 mkdir out
12757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12758
12759 lt_compiler_flag="-o out/conftest2.$ac_objext"
12760 # Insert the option either (1) after the last *FLAGS variable, or
12761 # (2) before a word containing "conftest.", or (3) at the end.
12762 # Note that $ac_compile itself does not contain backslashes and begins
12763 # with a dollar sign (not a hyphen), so the echo should work correctly.
12764 lt_compile=`echo "$ac_compile" | $SED \
12765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12767 -e 's:$: $lt_compiler_flag:'`
12768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12769 (eval "$lt_compile" 2>out/conftest.err)
12770 ac_status=$?
12771 cat out/conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12774 then
12775 # The compiler can only warn and ignore the option if not recognized
12776 # So say no if there are warnings
12777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12780 lt_cv_prog_compiler_c_o_FC=yes
12781 fi
12782 fi
12783 chmod u+w . 2>&5
12784 $RM conftest*
12785 # SGI C++ compiler will create directory out/ii_files/ for
12786 # template instantiation
12787 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12788 $RM out/* && rmdir out
12789 cd ..
12790 $RM -r conftest
12791 $RM conftest*
12792
12793 fi
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12795 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12796
12797
12798
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12800 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12801 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 lt_cv_prog_compiler_c_o_FC=no
12805 $RM -r conftest 2>/dev/null
12806 mkdir conftest
12807 cd conftest
12808 mkdir out
12809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12810
12811 lt_compiler_flag="-o out/conftest2.$ac_objext"
12812 # Insert the option either (1) after the last *FLAGS variable, or
12813 # (2) before a word containing "conftest.", or (3) at the end.
12814 # Note that $ac_compile itself does not contain backslashes and begins
12815 # with a dollar sign (not a hyphen), so the echo should work correctly.
12816 lt_compile=`echo "$ac_compile" | $SED \
12817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12819 -e 's:$: $lt_compiler_flag:'`
12820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12821 (eval "$lt_compile" 2>out/conftest.err)
12822 ac_status=$?
12823 cat out/conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12826 then
12827 # The compiler can only warn and ignore the option if not recognized
12828 # So say no if there are warnings
12829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12832 lt_cv_prog_compiler_c_o_FC=yes
12833 fi
12834 fi
12835 chmod u+w . 2>&5
12836 $RM conftest*
12837 # SGI C++ compiler will create directory out/ii_files/ for
12838 # template instantiation
12839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12840 $RM out/* && rmdir out
12841 cd ..
12842 $RM -r conftest
12843 $RM conftest*
12844
12845 fi
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12847 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12848
12849
12850
12851
12852 hard_links="nottested"
12853 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12854 # do not overwrite the value of need_locks provided by the user
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12856 $as_echo_n "checking if we can lock with hard links... " >&6; }
12857 hard_links=yes
12858 $RM conftest*
12859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12860 touch conftest.a
12861 ln conftest.a conftest.b 2>&5 || hard_links=no
12862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12864 $as_echo "$hard_links" >&6; }
12865 if test "$hard_links" = no; then
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12867 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12868 need_locks=warn
12869 fi
12870 else
12871 need_locks=no
12872 fi
12873
12874
12875
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12877 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12878
12879 runpath_var=
12880 allow_undefined_flag_FC=
12881 always_export_symbols_FC=no
12882 archive_cmds_FC=
12883 archive_expsym_cmds_FC=
12884 compiler_needs_object_FC=no
12885 enable_shared_with_static_runtimes_FC=no
12886 export_dynamic_flag_spec_FC=
12887 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12888 hardcode_automatic_FC=no
12889 hardcode_direct_FC=no
12890 hardcode_direct_absolute_FC=no
12891 hardcode_libdir_flag_spec_FC=
12892 hardcode_libdir_flag_spec_ld_FC=
12893 hardcode_libdir_separator_FC=
12894 hardcode_minus_L_FC=no
12895 hardcode_shlibpath_var_FC=unsupported
12896 inherit_rpath_FC=no
12897 link_all_deplibs_FC=unknown
12898 module_cmds_FC=
12899 module_expsym_cmds_FC=
12900 old_archive_from_new_cmds_FC=
12901 old_archive_from_expsyms_cmds_FC=
12902 thread_safe_flag_spec_FC=
12903 whole_archive_flag_spec_FC=
12904 # include_expsyms should be a list of space-separated symbols to be *always*
12905 # included in the symbol list
12906 include_expsyms_FC=
12907 # exclude_expsyms can be an extended regexp of symbols to exclude
12908 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12909 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12910 # as well as any symbol that contains `d'.
12911 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12913 # platforms (ab)use it in PIC code, but their linkers get confused if
12914 # the symbol is explicitly referenced. Since portable code cannot
12915 # rely on this symbol name, it's probably fine to never include it in
12916 # preloaded symbol tables.
12917 # Exclude shared library initialization/finalization symbols.
12918 extract_expsyms_cmds=
12919
12920 case $host_os in
12921 cygwin* | mingw* | pw32* | cegcc*)
12922 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12923 # When not using gcc, we currently assume that we are using
12924 # Microsoft Visual C++.
12925 if test "$GCC" != yes; then
12926 with_gnu_ld=no
12927 fi
12928 ;;
12929 interix*)
12930 # we just hope/assume this is gcc and not c89 (= MSVC++)
12931 with_gnu_ld=yes
12932 ;;
12933 openbsd*)
12934 with_gnu_ld=no
12935 ;;
12936 esac
12937
12938 ld_shlibs_FC=yes
12939
12940 # On some targets, GNU ld is compatible enough with the native linker
12941 # that we're better off using the native interface for both.
12942 lt_use_gnu_ld_interface=no
12943 if test "$with_gnu_ld" = yes; then
12944 case $host_os in
12945 aix*)
12946 # The AIX port of GNU ld has always aspired to compatibility
12947 # with the native linker. However, as the warning in the GNU ld
12948 # block says, versions before 2.19.5* couldn't really create working
12949 # shared libraries, regardless of the interface used.
12950 case `$LD -v 2>&1` in
12951 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12952 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12953 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12954 *)
12955 lt_use_gnu_ld_interface=yes
12956 ;;
12957 esac
12958 ;;
12959 *)
12960 lt_use_gnu_ld_interface=yes
12961 ;;
12962 esac
12963 fi
12964
12965 if test "$lt_use_gnu_ld_interface" = yes; then
12966 # If archive_cmds runs LD, not CC, wlarc should be empty
12967 wlarc='${wl}'
12968
12969 # Set some defaults for GNU ld with shared library support. These
12970 # are reset later if shared libraries are not supported. Putting them
12971 # here allows them to be overridden if necessary.
12972 runpath_var=LD_RUN_PATH
12973 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12974 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12975 # ancient GNU ld didn't support --whole-archive et. al.
12976 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12977 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12978 else
12979 whole_archive_flag_spec_FC=
12980 fi
12981 supports_anon_versioning=no
12982 case `$LD -v 2>&1` in
12983 *GNU\ gold*) supports_anon_versioning=yes ;;
12984 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12985 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12986 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12987 *\ 2.11.*) ;; # other 2.11 versions
12988 *) supports_anon_versioning=yes ;;
12989 esac
12990
12991 # See if GNU ld supports shared libraries.
12992 case $host_os in
12993 aix[3-9]*)
12994 # On AIX/PPC, the GNU linker is very broken
12995 if test "$host_cpu" != ia64; then
12996 ld_shlibs_FC=no
12997 cat <<_LT_EOF 1>&2
12998
12999 *** Warning: the GNU linker, at least up to release 2.19, is reported
13000 *** to be unable to reliably create shared libraries on AIX.
13001 *** Therefore, libtool is disabling shared libraries support. If you
13002 *** really care for shared libraries, you may want to install binutils
13003 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13004 *** You will then need to restart the configuration process.
13005
13006 _LT_EOF
13007 fi
13008 ;;
13009
13010 amigaos*)
13011 case $host_cpu in
13012 powerpc)
13013 # see comment about AmigaOS4 .so support
13014 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015 archive_expsym_cmds_FC=''
13016 ;;
13017 m68k)
13018 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)'
13019 hardcode_libdir_flag_spec_FC='-L$libdir'
13020 hardcode_minus_L_FC=yes
13021 ;;
13022 esac
13023 ;;
13024
13025 beos*)
13026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13027 allow_undefined_flag_FC=unsupported
13028 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13029 # support --undefined. This deserves some investigation. FIXME
13030 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13031 else
13032 ld_shlibs_FC=no
13033 fi
13034 ;;
13035
13036 cygwin* | mingw* | pw32* | cegcc*)
13037 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13038 # as there is no search path for DLLs.
13039 hardcode_libdir_flag_spec_FC='-L$libdir'
13040 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13041 allow_undefined_flag_FC=unsupported
13042 always_export_symbols_FC=no
13043 enable_shared_with_static_runtimes_FC=yes
13044 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13045
13046 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13047 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13048 # If the export-symbols file already is a .def file (1st line
13049 # is EXPORTS), use it as is; otherwise, prepend...
13050 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13051 cp $export_symbols $output_objdir/$soname.def;
13052 else
13053 echo EXPORTS > $output_objdir/$soname.def;
13054 cat $export_symbols >> $output_objdir/$soname.def;
13055 fi~
13056 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13057 else
13058 ld_shlibs_FC=no
13059 fi
13060 ;;
13061
13062 haiku*)
13063 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13064 link_all_deplibs_FC=yes
13065 ;;
13066
13067 interix[3-9]*)
13068 hardcode_direct_FC=no
13069 hardcode_shlibpath_var_FC=no
13070 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13071 export_dynamic_flag_spec_FC='${wl}-E'
13072 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13073 # Instead, shared libraries are loaded at an image base (0x10000000 by
13074 # default) and relocated if they conflict, which is a slow very memory
13075 # consuming and fragmenting process. To avoid this, we pick a random,
13076 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13077 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13078 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'
13079 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'
13080 ;;
13081
13082 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13083 tmp_diet=no
13084 if test "$host_os" = linux-dietlibc; then
13085 case $cc_basename in
13086 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13087 esac
13088 fi
13089 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13090 && test "$tmp_diet" = no
13091 then
13092 tmp_addflag=' $pic_flag'
13093 tmp_sharedflag='-shared'
13094 case $cc_basename,$host_cpu in
13095 pgcc*) # Portland Group C compiler
13096 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'
13097 tmp_addflag=' $pic_flag'
13098 ;;
13099 pgf77* | pgf90* | pgf95* | pgfortran*)
13100 # Portland Group f77 and f90 compilers
13101 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'
13102 tmp_addflag=' $pic_flag -Mnomain' ;;
13103 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13104 tmp_addflag=' -i_dynamic' ;;
13105 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13106 tmp_addflag=' -i_dynamic -nofor_main' ;;
13107 ifc* | ifort*) # Intel Fortran compiler
13108 tmp_addflag=' -nofor_main' ;;
13109 lf95*) # Lahey Fortran 8.1
13110 whole_archive_flag_spec_FC=
13111 tmp_sharedflag='--shared' ;;
13112 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13113 tmp_sharedflag='-qmkshrobj'
13114 tmp_addflag= ;;
13115 nvcc*) # Cuda Compiler Driver 2.2
13116 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'
13117 compiler_needs_object_FC=yes
13118 ;;
13119 esac
13120 case `$CC -V 2>&1 | sed 5q` in
13121 *Sun\ C*) # Sun C 5.9
13122 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'
13123 compiler_needs_object_FC=yes
13124 tmp_sharedflag='-G' ;;
13125 *Sun\ F*) # Sun Fortran 8.3
13126 tmp_sharedflag='-G' ;;
13127 esac
13128 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13129
13130 if test "x$supports_anon_versioning" = xyes; then
13131 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13133 echo "local: *; };" >> $output_objdir/$libname.ver~
13134 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13135 fi
13136
13137 case $cc_basename in
13138 xlf* | bgf* | bgxlf* | mpixlf*)
13139 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13140 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13141 hardcode_libdir_flag_spec_FC=
13142 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13143 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13144 if test "x$supports_anon_versioning" = xyes; then
13145 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13146 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13147 echo "local: *; };" >> $output_objdir/$libname.ver~
13148 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13149 fi
13150 ;;
13151 esac
13152 else
13153 ld_shlibs_FC=no
13154 fi
13155 ;;
13156
13157 netbsd*)
13158 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13159 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13160 wlarc=
13161 else
13162 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13163 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13164 fi
13165 ;;
13166
13167 solaris*)
13168 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13169 ld_shlibs_FC=no
13170 cat <<_LT_EOF 1>&2
13171
13172 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13173 *** create shared libraries on Solaris systems. Therefore, libtool
13174 *** is disabling shared libraries support. We urge you to upgrade GNU
13175 *** binutils to release 2.9.1 or newer. Another option is to modify
13176 *** your PATH or compiler configuration so that the native linker is
13177 *** used, and then restart.
13178
13179 _LT_EOF
13180 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13181 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13182 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13183 else
13184 ld_shlibs_FC=no
13185 fi
13186 ;;
13187
13188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13189 case `$LD -v 2>&1` in
13190 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13191 ld_shlibs_FC=no
13192 cat <<_LT_EOF 1>&2
13193
13194 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13195 *** reliably create shared libraries on SCO systems. Therefore, libtool
13196 *** is disabling shared libraries support. We urge you to upgrade GNU
13197 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13198 *** your PATH or compiler configuration so that the native linker is
13199 *** used, and then restart.
13200
13201 _LT_EOF
13202 ;;
13203 *)
13204 # For security reasons, it is highly recommended that you always
13205 # use absolute paths for naming shared libraries, and exclude the
13206 # DT_RUNPATH tag from executables and libraries. But doing so
13207 # requires that you compile everything twice, which is a pain.
13208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13209 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13210 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13211 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13212 else
13213 ld_shlibs_FC=no
13214 fi
13215 ;;
13216 esac
13217 ;;
13218
13219 sunos4*)
13220 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13221 wlarc=
13222 hardcode_direct_FC=yes
13223 hardcode_shlibpath_var_FC=no
13224 ;;
13225
13226 *)
13227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13228 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13229 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13230 else
13231 ld_shlibs_FC=no
13232 fi
13233 ;;
13234 esac
13235
13236 if test "$ld_shlibs_FC" = no; then
13237 runpath_var=
13238 hardcode_libdir_flag_spec_FC=
13239 export_dynamic_flag_spec_FC=
13240 whole_archive_flag_spec_FC=
13241 fi
13242 else
13243 # PORTME fill in a description of your system's linker (not GNU ld)
13244 case $host_os in
13245 aix3*)
13246 allow_undefined_flag_FC=unsupported
13247 always_export_symbols_FC=yes
13248 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'
13249 # Note: this linker hardcodes the directories in LIBPATH if there
13250 # are no directories specified by -L.
13251 hardcode_minus_L_FC=yes
13252 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13253 # Neither direct hardcoding nor static linking is supported with a
13254 # broken collect2.
13255 hardcode_direct_FC=unsupported
13256 fi
13257 ;;
13258
13259 aix[4-9]*)
13260 if test "$host_cpu" = ia64; then
13261 # On IA64, the linker does run time linking by default, so we don't
13262 # have to do anything special.
13263 aix_use_runtimelinking=no
13264 exp_sym_flag='-Bexport'
13265 no_entry_flag=""
13266 else
13267 # If we're using GNU nm, then we don't want the "-C" option.
13268 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13269 # Also, AIX nm treats weak defined symbols like other global
13270 # defined symbols, whereas GNU nm marks them as "W".
13271 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13272 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'
13273 else
13274 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'
13275 fi
13276 aix_use_runtimelinking=no
13277
13278 # Test if we are trying to use run time linking or normal
13279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13280 # need to do runtime linking.
13281 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13282 for ld_flag in $LDFLAGS; do
13283 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13284 aix_use_runtimelinking=yes
13285 break
13286 fi
13287 done
13288 ;;
13289 esac
13290
13291 exp_sym_flag='-bexport'
13292 no_entry_flag='-bnoentry'
13293 fi
13294
13295 # When large executables or shared objects are built, AIX ld can
13296 # have problems creating the table of contents. If linking a library
13297 # or program results in "error TOC overflow" add -mminimal-toc to
13298 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13299 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13300
13301 archive_cmds_FC=''
13302 hardcode_direct_FC=yes
13303 hardcode_direct_absolute_FC=yes
13304 hardcode_libdir_separator_FC=':'
13305 link_all_deplibs_FC=yes
13306 file_list_spec_FC='${wl}-f,'
13307
13308 if test "$GCC" = yes; then
13309 case $host_os in aix4.[012]|aix4.[012].*)
13310 # We only want to do this on AIX 4.2 and lower, the check
13311 # below for broken collect2 doesn't work under 4.3+
13312 collect2name=`${CC} -print-prog-name=collect2`
13313 if test -f "$collect2name" &&
13314 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13315 then
13316 # We have reworked collect2
13317 :
13318 else
13319 # We have old collect2
13320 hardcode_direct_FC=unsupported
13321 # It fails to find uninstalled libraries when the uninstalled
13322 # path is not listed in the libpath. Setting hardcode_minus_L
13323 # to unsupported forces relinking
13324 hardcode_minus_L_FC=yes
13325 hardcode_libdir_flag_spec_FC='-L$libdir'
13326 hardcode_libdir_separator_FC=
13327 fi
13328 ;;
13329 esac
13330 shared_flag='-shared'
13331 if test "$aix_use_runtimelinking" = yes; then
13332 shared_flag="$shared_flag "'${wl}-G'
13333 fi
13334 else
13335 # not using gcc
13336 if test "$host_cpu" = ia64; then
13337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13338 # chokes on -Wl,-G. The following line is correct:
13339 shared_flag='-G'
13340 else
13341 if test "$aix_use_runtimelinking" = yes; then
13342 shared_flag='${wl}-G'
13343 else
13344 shared_flag='${wl}-bM:SRE'
13345 fi
13346 fi
13347 fi
13348
13349 export_dynamic_flag_spec_FC='${wl}-bexpall'
13350 # It seems that -bexpall does not export symbols beginning with
13351 # underscore (_), so it is better to generate a list of symbols to export.
13352 always_export_symbols_FC=yes
13353 if test "$aix_use_runtimelinking" = yes; then
13354 # Warning - without using the other runtime loading flags (-brtl),
13355 # -berok will link without error, but may produce a broken library.
13356 allow_undefined_flag_FC='-berok'
13357 # Determine the default libpath from the value encoded in an
13358 # empty executable.
13359 cat > conftest.$ac_ext <<_ACEOF
13360 program main
13361
13362 end
13363 _ACEOF
13364 if ac_fn_fc_try_link "$LINENO"; then :
13365
13366 lt_aix_libpath_sed='
13367 /Import File Strings/,/^$/ {
13368 /^0/ {
13369 s/^0 *\(.*\)$/\1/
13370 p
13371 }
13372 }'
13373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13374 # Check for a 64-bit object if we didn't find anything.
13375 if test -z "$aix_libpath"; then
13376 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13377 fi
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext conftest.$ac_ext
13381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13382
13383 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13384 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"
13385 else
13386 if test "$host_cpu" = ia64; then
13387 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13388 allow_undefined_flag_FC="-z nodefs"
13389 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"
13390 else
13391 # Determine the default libpath from the value encoded in an
13392 # empty executable.
13393 cat > conftest.$ac_ext <<_ACEOF
13394 program main
13395
13396 end
13397 _ACEOF
13398 if ac_fn_fc_try_link "$LINENO"; then :
13399
13400 lt_aix_libpath_sed='
13401 /Import File Strings/,/^$/ {
13402 /^0/ {
13403 s/^0 *\(.*\)$/\1/
13404 p
13405 }
13406 }'
13407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13408 # Check for a 64-bit object if we didn't find anything.
13409 if test -z "$aix_libpath"; then
13410 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13411 fi
13412 fi
13413 rm -f core conftest.err conftest.$ac_objext \
13414 conftest$ac_exeext conftest.$ac_ext
13415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13416
13417 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13418 # Warning - without using the other run time loading flags,
13419 # -berok will link without error, but may produce a broken library.
13420 no_undefined_flag_FC=' ${wl}-bernotok'
13421 allow_undefined_flag_FC=' ${wl}-berok'
13422 if test "$with_gnu_ld" = yes; then
13423 # We only use this code for GNU lds that support --whole-archive.
13424 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13425 else
13426 # Exported symbols can be pulled into shared objects from archives
13427 whole_archive_flag_spec_FC='$convenience'
13428 fi
13429 archive_cmds_need_lc_FC=yes
13430 # This is similar to how AIX traditionally builds its shared libraries.
13431 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'
13432 fi
13433 fi
13434 ;;
13435
13436 amigaos*)
13437 case $host_cpu in
13438 powerpc)
13439 # see comment about AmigaOS4 .so support
13440 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13441 archive_expsym_cmds_FC=''
13442 ;;
13443 m68k)
13444 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)'
13445 hardcode_libdir_flag_spec_FC='-L$libdir'
13446 hardcode_minus_L_FC=yes
13447 ;;
13448 esac
13449 ;;
13450
13451 bsdi[45]*)
13452 export_dynamic_flag_spec_FC=-rdynamic
13453 ;;
13454
13455 cygwin* | mingw* | pw32* | cegcc*)
13456 # When not using gcc, we currently assume that we are using
13457 # Microsoft Visual C++.
13458 # hardcode_libdir_flag_spec is actually meaningless, as there is
13459 # no search path for DLLs.
13460 hardcode_libdir_flag_spec_FC=' '
13461 allow_undefined_flag_FC=unsupported
13462 # Tell ltmain to make .lib files, not .a files.
13463 libext=lib
13464 # Tell ltmain to make .dll files, not .so files.
13465 shrext_cmds=".dll"
13466 # FIXME: Setting linknames here is a bad hack.
13467 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13468 # The linker will automatically build a .lib file if we build a DLL.
13469 old_archive_from_new_cmds_FC='true'
13470 # FIXME: Should let the user specify the lib program.
13471 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13472 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13473 enable_shared_with_static_runtimes_FC=yes
13474 ;;
13475
13476 darwin* | rhapsody*)
13477
13478
13479 archive_cmds_need_lc_FC=no
13480 hardcode_direct_FC=no
13481 hardcode_automatic_FC=yes
13482 hardcode_shlibpath_var_FC=unsupported
13483 if test "$lt_cv_ld_force_load" = "yes"; then
13484 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\"`'
13485 else
13486 whole_archive_flag_spec_FC=''
13487 fi
13488 link_all_deplibs_FC=yes
13489 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13490 case $cc_basename in
13491 ifort*) _lt_dar_can_shared=yes ;;
13492 *) _lt_dar_can_shared=$GCC ;;
13493 esac
13494 if test "$_lt_dar_can_shared" = "yes"; then
13495 output_verbose_link_cmd=func_echo_all
13496 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}"
13497 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13498 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}"
13499 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}"
13500
13501 else
13502 ld_shlibs_FC=no
13503 fi
13504
13505 ;;
13506
13507 dgux*)
13508 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13509 hardcode_libdir_flag_spec_FC='-L$libdir'
13510 hardcode_shlibpath_var_FC=no
13511 ;;
13512
13513 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13514 # support. Future versions do this automatically, but an explicit c++rt0.o
13515 # does not break anything, and helps significantly (at the cost of a little
13516 # extra space).
13517 freebsd2.2*)
13518 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13519 hardcode_libdir_flag_spec_FC='-R$libdir'
13520 hardcode_direct_FC=yes
13521 hardcode_shlibpath_var_FC=no
13522 ;;
13523
13524 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13525 freebsd2.*)
13526 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13527 hardcode_direct_FC=yes
13528 hardcode_minus_L_FC=yes
13529 hardcode_shlibpath_var_FC=no
13530 ;;
13531
13532 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13533 freebsd* | dragonfly*)
13534 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13535 hardcode_libdir_flag_spec_FC='-R$libdir'
13536 hardcode_direct_FC=yes
13537 hardcode_shlibpath_var_FC=no
13538 ;;
13539
13540 hpux9*)
13541 if test "$GCC" = yes; then
13542 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'
13543 else
13544 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'
13545 fi
13546 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13547 hardcode_libdir_separator_FC=:
13548 hardcode_direct_FC=yes
13549
13550 # hardcode_minus_L: Not really in the search PATH,
13551 # but as the default location of the library.
13552 hardcode_minus_L_FC=yes
13553 export_dynamic_flag_spec_FC='${wl}-E'
13554 ;;
13555
13556 hpux10*)
13557 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13558 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13559 else
13560 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13561 fi
13562 if test "$with_gnu_ld" = no; then
13563 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13564 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13565 hardcode_libdir_separator_FC=:
13566 hardcode_direct_FC=yes
13567 hardcode_direct_absolute_FC=yes
13568 export_dynamic_flag_spec_FC='${wl}-E'
13569 # hardcode_minus_L: Not really in the search PATH,
13570 # but as the default location of the library.
13571 hardcode_minus_L_FC=yes
13572 fi
13573 ;;
13574
13575 hpux11*)
13576 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13577 case $host_cpu in
13578 hppa*64*)
13579 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13580 ;;
13581 ia64*)
13582 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13583 ;;
13584 *)
13585 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13586 ;;
13587 esac
13588 else
13589 case $host_cpu in
13590 hppa*64*)
13591 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13592 ;;
13593 ia64*)
13594 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13595 ;;
13596 *)
13597 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13598 ;;
13599 esac
13600 fi
13601 if test "$with_gnu_ld" = no; then
13602 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13603 hardcode_libdir_separator_FC=:
13604
13605 case $host_cpu in
13606 hppa*64*|ia64*)
13607 hardcode_direct_FC=no
13608 hardcode_shlibpath_var_FC=no
13609 ;;
13610 *)
13611 hardcode_direct_FC=yes
13612 hardcode_direct_absolute_FC=yes
13613 export_dynamic_flag_spec_FC='${wl}-E'
13614
13615 # hardcode_minus_L: Not really in the search PATH,
13616 # but as the default location of the library.
13617 hardcode_minus_L_FC=yes
13618 ;;
13619 esac
13620 fi
13621 ;;
13622
13623 irix5* | irix6* | nonstopux*)
13624 if test "$GCC" = yes; then
13625 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'
13626 # Try to use the -exported_symbol ld option, if it does not
13627 # work, assume that -exports_file does not work either and
13628 # implicitly export all symbols.
13629 save_LDFLAGS="$LDFLAGS"
13630 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13631 cat > conftest.$ac_ext <<_ACEOF
13632 int foo(void) {}
13633 _ACEOF
13634 if ac_fn_fc_try_link "$LINENO"; then :
13635 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'
13636
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
13640 LDFLAGS="$save_LDFLAGS"
13641 else
13642 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'
13643 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'
13644 fi
13645 archive_cmds_need_lc_FC='no'
13646 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13647 hardcode_libdir_separator_FC=:
13648 inherit_rpath_FC=yes
13649 link_all_deplibs_FC=yes
13650 ;;
13651
13652 netbsd*)
13653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13654 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13655 else
13656 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13657 fi
13658 hardcode_libdir_flag_spec_FC='-R$libdir'
13659 hardcode_direct_FC=yes
13660 hardcode_shlibpath_var_FC=no
13661 ;;
13662
13663 newsos6)
13664 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13665 hardcode_direct_FC=yes
13666 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13667 hardcode_libdir_separator_FC=:
13668 hardcode_shlibpath_var_FC=no
13669 ;;
13670
13671 *nto* | *qnx*)
13672 ;;
13673
13674 openbsd*)
13675 if test -f /usr/libexec/ld.so; then
13676 hardcode_direct_FC=yes
13677 hardcode_shlibpath_var_FC=no
13678 hardcode_direct_absolute_FC=yes
13679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13680 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13681 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13682 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13683 export_dynamic_flag_spec_FC='${wl}-E'
13684 else
13685 case $host_os in
13686 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13687 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13688 hardcode_libdir_flag_spec_FC='-R$libdir'
13689 ;;
13690 *)
13691 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13692 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13693 ;;
13694 esac
13695 fi
13696 else
13697 ld_shlibs_FC=no
13698 fi
13699 ;;
13700
13701 os2*)
13702 hardcode_libdir_flag_spec_FC='-L$libdir'
13703 hardcode_minus_L_FC=yes
13704 allow_undefined_flag_FC=unsupported
13705 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'
13706 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13707 ;;
13708
13709 osf3*)
13710 if test "$GCC" = yes; then
13711 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13712 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'
13713 else
13714 allow_undefined_flag_FC=' -expect_unresolved \*'
13715 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'
13716 fi
13717 archive_cmds_need_lc_FC='no'
13718 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13719 hardcode_libdir_separator_FC=:
13720 ;;
13721
13722 osf4* | osf5*) # as osf3* with the addition of -msym flag
13723 if test "$GCC" = yes; then
13724 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13725 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'
13726 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13727 else
13728 allow_undefined_flag_FC=' -expect_unresolved \*'
13729 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'
13730 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~
13731 $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'
13732
13733 # Both c and cxx compiler support -rpath directly
13734 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13735 fi
13736 archive_cmds_need_lc_FC='no'
13737 hardcode_libdir_separator_FC=:
13738 ;;
13739
13740 solaris*)
13741 no_undefined_flag_FC=' -z defs'
13742 if test "$GCC" = yes; then
13743 wlarc='${wl}'
13744 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$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 -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13747 else
13748 case `$CC -V 2>&1` in
13749 *"Compilers 5.0"*)
13750 wlarc=''
13751 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13752 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13753 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13754 ;;
13755 *)
13756 wlarc='${wl}'
13757 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13758 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13759 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13760 ;;
13761 esac
13762 fi
13763 hardcode_libdir_flag_spec_FC='-R$libdir'
13764 hardcode_shlibpath_var_FC=no
13765 case $host_os in
13766 solaris2.[0-5] | solaris2.[0-5].*) ;;
13767 *)
13768 # The compiler driver will combine and reorder linker options,
13769 # but understands `-z linker_flag'. GCC discards it without `$wl',
13770 # but is careful enough not to reorder.
13771 # Supported since Solaris 2.6 (maybe 2.5.1?)
13772 if test "$GCC" = yes; then
13773 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13774 else
13775 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13776 fi
13777 ;;
13778 esac
13779 link_all_deplibs_FC=yes
13780 ;;
13781
13782 sunos4*)
13783 if test "x$host_vendor" = xsequent; then
13784 # Use $CC to link under sequent, because it throws in some extra .o
13785 # files that make .init and .fini sections work.
13786 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13787 else
13788 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13789 fi
13790 hardcode_libdir_flag_spec_FC='-L$libdir'
13791 hardcode_direct_FC=yes
13792 hardcode_minus_L_FC=yes
13793 hardcode_shlibpath_var_FC=no
13794 ;;
13795
13796 sysv4)
13797 case $host_vendor in
13798 sni)
13799 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13800 hardcode_direct_FC=yes # is this really true???
13801 ;;
13802 siemens)
13803 ## LD is ld it makes a PLAMLIB
13804 ## CC just makes a GrossModule.
13805 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13806 reload_cmds_FC='$CC -r -o $output$reload_objs'
13807 hardcode_direct_FC=no
13808 ;;
13809 motorola)
13810 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13811 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13812 ;;
13813 esac
13814 runpath_var='LD_RUN_PATH'
13815 hardcode_shlibpath_var_FC=no
13816 ;;
13817
13818 sysv4.3*)
13819 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13820 hardcode_shlibpath_var_FC=no
13821 export_dynamic_flag_spec_FC='-Bexport'
13822 ;;
13823
13824 sysv4*MP*)
13825 if test -d /usr/nec; then
13826 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827 hardcode_shlibpath_var_FC=no
13828 runpath_var=LD_RUN_PATH
13829 hardcode_runpath_var=yes
13830 ld_shlibs_FC=yes
13831 fi
13832 ;;
13833
13834 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13835 no_undefined_flag_FC='${wl}-z,text'
13836 archive_cmds_need_lc_FC=no
13837 hardcode_shlibpath_var_FC=no
13838 runpath_var='LD_RUN_PATH'
13839
13840 if test "$GCC" = yes; then
13841 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843 else
13844 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13845 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846 fi
13847 ;;
13848
13849 sysv5* | sco3.2v5* | sco5v6*)
13850 # Note: We can NOT use -z defs as we might desire, because we do not
13851 # link with -lc, and that would cause any symbols used from libc to
13852 # always be unresolved, which means just about no library would
13853 # ever link correctly. If we're not using GNU ld we use -z text
13854 # though, which does catch some bad symbols but isn't as heavy-handed
13855 # as -z defs.
13856 no_undefined_flag_FC='${wl}-z,text'
13857 allow_undefined_flag_FC='${wl}-z,nodefs'
13858 archive_cmds_need_lc_FC=no
13859 hardcode_shlibpath_var_FC=no
13860 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13861 hardcode_libdir_separator_FC=':'
13862 link_all_deplibs_FC=yes
13863 export_dynamic_flag_spec_FC='${wl}-Bexport'
13864 runpath_var='LD_RUN_PATH'
13865
13866 if test "$GCC" = yes; then
13867 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869 else
13870 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13872 fi
13873 ;;
13874
13875 uts4*)
13876 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13877 hardcode_libdir_flag_spec_FC='-L$libdir'
13878 hardcode_shlibpath_var_FC=no
13879 ;;
13880
13881 *)
13882 ld_shlibs_FC=no
13883 ;;
13884 esac
13885
13886 if test x$host_vendor = xsni; then
13887 case $host in
13888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13889 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13890 ;;
13891 esac
13892 fi
13893 fi
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13896 $as_echo "$ld_shlibs_FC" >&6; }
13897 test "$ld_shlibs_FC" = no && can_build_shared=no
13898
13899 with_gnu_ld_FC=$with_gnu_ld
13900
13901
13902
13903
13904
13905
13906 #
13907 # Do we need to explicitly link libc?
13908 #
13909 case "x$archive_cmds_need_lc_FC" in
13910 x|xyes)
13911 # Assume -lc should be added
13912 archive_cmds_need_lc_FC=yes
13913
13914 if test "$enable_shared" = yes && test "$GCC" = yes; then
13915 case $archive_cmds_FC in
13916 *'~'*)
13917 # FIXME: we may have to deal with multi-command sequences.
13918 ;;
13919 '$CC '*)
13920 # Test whether the compiler implicitly links with -lc since on some
13921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13922 # to ld, don't add -lc before -lgcc.
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13924 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13925 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928 $RM conftest*
13929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13930
13931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13932 (eval $ac_compile) 2>&5
13933 ac_status=$?
13934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13935 test $ac_status = 0; } 2>conftest.err; then
13936 soname=conftest
13937 lib=conftest
13938 libobjs=conftest.$ac_objext
13939 deplibs=
13940 wl=$lt_prog_compiler_wl_FC
13941 pic_flag=$lt_prog_compiler_pic_FC
13942 compiler_flags=-v
13943 linker_flags=-v
13944 verstring=
13945 output_objdir=.
13946 libname=conftest
13947 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13948 allow_undefined_flag_FC=
13949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13950 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13951 ac_status=$?
13952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13953 test $ac_status = 0; }
13954 then
13955 lt_cv_archive_cmds_need_lc_FC=no
13956 else
13957 lt_cv_archive_cmds_need_lc_FC=yes
13958 fi
13959 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13960 else
13961 cat conftest.err 1>&5
13962 fi
13963 $RM conftest*
13964
13965 fi
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13967 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13968 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13969 ;;
13970 esac
13971 fi
13972 ;;
13973 esac
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14040
14041 library_names_spec=
14042 libname_spec='lib$name'
14043 soname_spec=
14044 shrext_cmds=".so"
14045 postinstall_cmds=
14046 postuninstall_cmds=
14047 finish_cmds=
14048 finish_eval=
14049 shlibpath_var=
14050 shlibpath_overrides_runpath=unknown
14051 version_type=none
14052 dynamic_linker="$host_os ld.so"
14053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14054 need_lib_prefix=unknown
14055 hardcode_into_libs=no
14056
14057 # when you set need_version to no, make sure it does not cause -set_version
14058 # flags to be left without arguments
14059 need_version=unknown
14060
14061 case $host_os in
14062 aix3*)
14063 version_type=linux
14064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14065 shlibpath_var=LIBPATH
14066
14067 # AIX 3 has no versioning support, so we append a major version to the name.
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 ;;
14070
14071 aix[4-9]*)
14072 version_type=linux
14073 need_lib_prefix=no
14074 need_version=no
14075 hardcode_into_libs=yes
14076 if test "$host_cpu" = ia64; then
14077 # AIX 5 supports IA64
14078 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 else
14081 # With GCC up to 2.95.x, collect2 would create an import file
14082 # for dependence libraries. The import file would start with
14083 # the line `#! .'. This would cause the generated library to
14084 # depend on `.', always an invalid library. This was fixed in
14085 # development snapshots of GCC prior to 3.0.
14086 case $host_os in
14087 aix4 | aix4.[01] | aix4.[01].*)
14088 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14089 echo ' yes '
14090 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14091 :
14092 else
14093 can_build_shared=no
14094 fi
14095 ;;
14096 esac
14097 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14098 # soname into executable. Probably we can add versioning support to
14099 # collect2, so additional links can be useful in future.
14100 if test "$aix_use_runtimelinking" = yes; then
14101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14102 # instead of lib<name>.a to let people know that these are not
14103 # typical AIX shared libraries.
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14105 else
14106 # We preserve .a as extension for shared libraries through AIX4.2
14107 # and later when we are not doing run time linking.
14108 library_names_spec='${libname}${release}.a $libname.a'
14109 soname_spec='${libname}${release}${shared_ext}$major'
14110 fi
14111 shlibpath_var=LIBPATH
14112 fi
14113 ;;
14114
14115 amigaos*)
14116 case $host_cpu in
14117 powerpc)
14118 # Since July 2007 AmigaOS4 officially supports .so libraries.
14119 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 ;;
14122 m68k)
14123 library_names_spec='$libname.ixlibrary $libname.a'
14124 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14125 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'
14126 ;;
14127 esac
14128 ;;
14129
14130 beos*)
14131 library_names_spec='${libname}${shared_ext}'
14132 dynamic_linker="$host_os ld.so"
14133 shlibpath_var=LIBRARY_PATH
14134 ;;
14135
14136 bsdi[45]*)
14137 version_type=linux
14138 need_version=no
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14142 shlibpath_var=LD_LIBRARY_PATH
14143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14145 # the default ld.so.conf also contains /usr/contrib/lib and
14146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14147 # libtool to hard-code these into programs
14148 ;;
14149
14150 cygwin* | mingw* | pw32* | cegcc*)
14151 version_type=windows
14152 shrext_cmds=".dll"
14153 need_version=no
14154 need_lib_prefix=no
14155
14156 case $GCC,$host_os in
14157 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14158 library_names_spec='$libname.dll.a'
14159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14160 postinstall_cmds='base_file=`basename \${file}`~
14161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14162 dldir=$destdir/`dirname \$dlpath`~
14163 test -d \$dldir || mkdir -p \$dldir~
14164 $install_prog $dir/$dlname \$dldir/$dlname~
14165 chmod a+x \$dldir/$dlname~
14166 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14167 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14168 fi'
14169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14170 dlpath=$dir/\$dldll~
14171 $RM \$dlpath'
14172 shlibpath_overrides_runpath=yes
14173
14174 case $host_os in
14175 cygwin*)
14176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14178
14179 ;;
14180 mingw* | cegcc*)
14181 # MinGW DLLs use traditional 'lib' prefix
14182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14183 ;;
14184 pw32*)
14185 # pw32 DLLs use 'pw' prefix rather than 'lib'
14186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14187 ;;
14188 esac
14189 ;;
14190
14191 *)
14192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14193 ;;
14194 esac
14195 dynamic_linker='Win32 ld.exe'
14196 # FIXME: first we should search . and the directory the executable is in
14197 shlibpath_var=PATH
14198 ;;
14199
14200 darwin* | rhapsody*)
14201 dynamic_linker="$host_os dyld"
14202 version_type=darwin
14203 need_lib_prefix=no
14204 need_version=no
14205 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14206 soname_spec='${libname}${release}${major}$shared_ext'
14207 shlibpath_overrides_runpath=yes
14208 shlibpath_var=DYLD_LIBRARY_PATH
14209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14210
14211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14212 ;;
14213
14214 dgux*)
14215 version_type=linux
14216 need_lib_prefix=no
14217 need_version=no
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14219 soname_spec='${libname}${release}${shared_ext}$major'
14220 shlibpath_var=LD_LIBRARY_PATH
14221 ;;
14222
14223 freebsd* | dragonfly*)
14224 # DragonFly does not have aout. When/if they implement a new
14225 # versioning mechanism, adjust this.
14226 if test -x /usr/bin/objformat; then
14227 objformat=`/usr/bin/objformat`
14228 else
14229 case $host_os in
14230 freebsd[23].*) objformat=aout ;;
14231 *) objformat=elf ;;
14232 esac
14233 fi
14234 version_type=freebsd-$objformat
14235 case $version_type in
14236 freebsd-elf*)
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14238 need_version=no
14239 need_lib_prefix=no
14240 ;;
14241 freebsd-*)
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14243 need_version=yes
14244 ;;
14245 esac
14246 shlibpath_var=LD_LIBRARY_PATH
14247 case $host_os in
14248 freebsd2.*)
14249 shlibpath_overrides_runpath=yes
14250 ;;
14251 freebsd3.[01]* | freebsdelf3.[01]*)
14252 shlibpath_overrides_runpath=yes
14253 hardcode_into_libs=yes
14254 ;;
14255 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14256 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14257 shlibpath_overrides_runpath=no
14258 hardcode_into_libs=yes
14259 ;;
14260 *) # from 4.6 on, and DragonFly
14261 shlibpath_overrides_runpath=yes
14262 hardcode_into_libs=yes
14263 ;;
14264 esac
14265 ;;
14266
14267 gnu*)
14268 version_type=linux
14269 need_lib_prefix=no
14270 need_version=no
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14273 shlibpath_var=LD_LIBRARY_PATH
14274 hardcode_into_libs=yes
14275 ;;
14276
14277 haiku*)
14278 version_type=linux
14279 need_lib_prefix=no
14280 need_version=no
14281 dynamic_linker="$host_os runtime_loader"
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 shlibpath_var=LIBRARY_PATH
14285 shlibpath_overrides_runpath=yes
14286 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14287 hardcode_into_libs=yes
14288 ;;
14289
14290 hpux9* | hpux10* | hpux11*)
14291 # Give a soname corresponding to the major version so that dld.sl refuses to
14292 # link against other versions.
14293 version_type=sunos
14294 need_lib_prefix=no
14295 need_version=no
14296 case $host_cpu in
14297 ia64*)
14298 shrext_cmds='.so'
14299 hardcode_into_libs=yes
14300 dynamic_linker="$host_os dld.so"
14301 shlibpath_var=LD_LIBRARY_PATH
14302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14304 soname_spec='${libname}${release}${shared_ext}$major'
14305 if test "X$HPUX_IA64_MODE" = X32; then
14306 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14307 else
14308 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14309 fi
14310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14311 ;;
14312 hppa*64*)
14313 shrext_cmds='.sl'
14314 hardcode_into_libs=yes
14315 dynamic_linker="$host_os dld.sl"
14316 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14322 ;;
14323 *)
14324 shrext_cmds='.sl'
14325 dynamic_linker="$host_os dld.sl"
14326 shlibpath_var=SHLIB_PATH
14327 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329 soname_spec='${libname}${release}${shared_ext}$major'
14330 ;;
14331 esac
14332 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14333 postinstall_cmds='chmod 555 $lib'
14334 # or fails outright, so override atomically:
14335 install_override_mode=555
14336 ;;
14337
14338 interix[3-9]*)
14339 version_type=linux
14340 need_lib_prefix=no
14341 need_version=no
14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14343 soname_spec='${libname}${release}${shared_ext}$major'
14344 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14345 shlibpath_var=LD_LIBRARY_PATH
14346 shlibpath_overrides_runpath=no
14347 hardcode_into_libs=yes
14348 ;;
14349
14350 irix5* | irix6* | nonstopux*)
14351 case $host_os in
14352 nonstopux*) version_type=nonstopux ;;
14353 *)
14354 if test "$lt_cv_prog_gnu_ld" = yes; then
14355 version_type=linux
14356 else
14357 version_type=irix
14358 fi ;;
14359 esac
14360 need_lib_prefix=no
14361 need_version=no
14362 soname_spec='${libname}${release}${shared_ext}$major'
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14364 case $host_os in
14365 irix5* | nonstopux*)
14366 libsuff= shlibsuff=
14367 ;;
14368 *)
14369 case $LD in # libtool.m4 will add one of these switches to LD
14370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14371 libsuff= shlibsuff= libmagic=32-bit;;
14372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14373 libsuff=32 shlibsuff=N32 libmagic=N32;;
14374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14376 *) libsuff= shlibsuff= libmagic=never-match;;
14377 esac
14378 ;;
14379 esac
14380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14381 shlibpath_overrides_runpath=no
14382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14384 hardcode_into_libs=yes
14385 ;;
14386
14387 # No shared lib support for Linux oldld, aout, or coff.
14388 linux*oldld* | linux*aout* | linux*coff*)
14389 dynamic_linker=no
14390 ;;
14391
14392 # This must be Linux ELF.
14393
14394 # uclinux* changes (here and below) have been submitted to the libtool
14395 # project, but have not yet been accepted: they are GCC-local changes
14396 # for the time being. (See
14397 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14398 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14399 version_type=linux
14400 need_lib_prefix=no
14401 need_version=no
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=no
14407
14408 # Some binutils ld are patched to set DT_RUNPATH
14409 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 lt_cv_shlibpath_overrides_runpath=no
14413 save_LDFLAGS=$LDFLAGS
14414 save_libdir=$libdir
14415 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14416 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14417 cat > conftest.$ac_ext <<_ACEOF
14418 program main
14419
14420 end
14421 _ACEOF
14422 if ac_fn_fc_try_link "$LINENO"; then :
14423 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14424 lt_cv_shlibpath_overrides_runpath=yes
14425 fi
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14429 LDFLAGS=$save_LDFLAGS
14430 libdir=$save_libdir
14431
14432 fi
14433
14434 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14435
14436 # This implies no fast_install, which is unacceptable.
14437 # Some rework will be needed to allow for fast_install
14438 # before this can be enabled.
14439 hardcode_into_libs=yes
14440
14441 # Append ld.so.conf contents to the search path
14442 if test -f /etc/ld.so.conf; then
14443 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' ' '`
14444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14445 fi
14446
14447 # We used to test for /lib/ld.so.1 and disable shared libraries on
14448 # powerpc, because MkLinux only supported shared libraries with the
14449 # GNU dynamic linker. Since this was broken with cross compilers,
14450 # most powerpc-linux boxes support dynamic linking these days and
14451 # people can always --disable-shared, the test was removed, and we
14452 # assume the GNU/Linux dynamic linker is in use.
14453 dynamic_linker='GNU/Linux ld.so'
14454 ;;
14455
14456 netbsd*)
14457 version_type=sunos
14458 need_lib_prefix=no
14459 need_version=no
14460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14463 dynamic_linker='NetBSD (a.out) ld.so'
14464 else
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 dynamic_linker='NetBSD ld.elf_so'
14468 fi
14469 shlibpath_var=LD_LIBRARY_PATH
14470 shlibpath_overrides_runpath=yes
14471 hardcode_into_libs=yes
14472 ;;
14473
14474 newsos6)
14475 version_type=linux
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477 shlibpath_var=LD_LIBRARY_PATH
14478 shlibpath_overrides_runpath=yes
14479 ;;
14480
14481 *nto* | *qnx*)
14482 version_type=qnx
14483 need_lib_prefix=no
14484 need_version=no
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 shlibpath_overrides_runpath=no
14489 hardcode_into_libs=yes
14490 dynamic_linker='ldqnx.so'
14491 ;;
14492
14493 openbsd*)
14494 version_type=sunos
14495 sys_lib_dlsearch_path_spec="/usr/lib"
14496 need_lib_prefix=no
14497 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14498 case $host_os in
14499 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14500 *) need_version=no ;;
14501 esac
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14504 shlibpath_var=LD_LIBRARY_PATH
14505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14506 case $host_os in
14507 openbsd2.[89] | openbsd2.[89].*)
14508 shlibpath_overrides_runpath=no
14509 ;;
14510 *)
14511 shlibpath_overrides_runpath=yes
14512 ;;
14513 esac
14514 else
14515 shlibpath_overrides_runpath=yes
14516 fi
14517 ;;
14518
14519 os2*)
14520 libname_spec='$name'
14521 shrext_cmds=".dll"
14522 need_lib_prefix=no
14523 library_names_spec='$libname${shared_ext} $libname.a'
14524 dynamic_linker='OS/2 ld.exe'
14525 shlibpath_var=LIBPATH
14526 ;;
14527
14528 osf3* | osf4* | osf5*)
14529 version_type=osf
14530 need_lib_prefix=no
14531 need_version=no
14532 soname_spec='${libname}${release}${shared_ext}$major'
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14536 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14537 ;;
14538
14539 rdos*)
14540 dynamic_linker=no
14541 ;;
14542
14543 solaris*)
14544 version_type=linux
14545 need_lib_prefix=no
14546 need_version=no
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 shlibpath_overrides_runpath=yes
14551 hardcode_into_libs=yes
14552 # ldd complains unless libraries are executable
14553 postinstall_cmds='chmod +x $lib'
14554 ;;
14555
14556 sunos4*)
14557 version_type=sunos
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14559 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath=yes
14562 if test "$with_gnu_ld" = yes; then
14563 need_lib_prefix=no
14564 fi
14565 need_version=yes
14566 ;;
14567
14568 sysv4 | sysv4.3*)
14569 version_type=linux
14570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14571 soname_spec='${libname}${release}${shared_ext}$major'
14572 shlibpath_var=LD_LIBRARY_PATH
14573 case $host_vendor in
14574 sni)
14575 shlibpath_overrides_runpath=no
14576 need_lib_prefix=no
14577 runpath_var=LD_RUN_PATH
14578 ;;
14579 siemens)
14580 need_lib_prefix=no
14581 ;;
14582 motorola)
14583 need_lib_prefix=no
14584 need_version=no
14585 shlibpath_overrides_runpath=no
14586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14587 ;;
14588 esac
14589 ;;
14590
14591 sysv4*MP*)
14592 if test -d /usr/nec ;then
14593 version_type=linux
14594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14595 soname_spec='$libname${shared_ext}.$major'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 fi
14598 ;;
14599
14600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14601 version_type=freebsd-elf
14602 need_lib_prefix=no
14603 need_version=no
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 shlibpath_var=LD_LIBRARY_PATH
14607 shlibpath_overrides_runpath=yes
14608 hardcode_into_libs=yes
14609 if test "$with_gnu_ld" = yes; then
14610 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14611 else
14612 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14613 case $host_os in
14614 sco3.2v5*)
14615 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14616 ;;
14617 esac
14618 fi
14619 sys_lib_dlsearch_path_spec='/usr/lib'
14620 ;;
14621
14622 tpf*)
14623 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14624 version_type=linux
14625 need_lib_prefix=no
14626 need_version=no
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14628 shlibpath_var=LD_LIBRARY_PATH
14629 shlibpath_overrides_runpath=no
14630 hardcode_into_libs=yes
14631 ;;
14632
14633 uts4*)
14634 version_type=linux
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 ;;
14639
14640 *)
14641 dynamic_linker=no
14642 ;;
14643 esac
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14645 $as_echo "$dynamic_linker" >&6; }
14646 test "$dynamic_linker" = no && can_build_shared=no
14647
14648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14649 if test "$GCC" = yes; then
14650 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14651 fi
14652
14653 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14654 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14655 fi
14656 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14657 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14658 fi
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14698 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14699 hardcode_action_FC=
14700 if test -n "$hardcode_libdir_flag_spec_FC" ||
14701 test -n "$runpath_var_FC" ||
14702 test "X$hardcode_automatic_FC" = "Xyes" ; then
14703
14704 # We can hardcode non-existent directories.
14705 if test "$hardcode_direct_FC" != no &&
14706 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14707 # have to relink, otherwise we might link with an installed library
14708 # when we should be linking with a yet-to-be-installed one
14709 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14710 test "$hardcode_minus_L_FC" != no; then
14711 # Linking always hardcodes the temporary library directory.
14712 hardcode_action_FC=relink
14713 else
14714 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14715 hardcode_action_FC=immediate
14716 fi
14717 else
14718 # We cannot hardcode anything, or else we can only hardcode existing
14719 # directories.
14720 hardcode_action_FC=unsupported
14721 fi
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14723 $as_echo "$hardcode_action_FC" >&6; }
14724
14725 if test "$hardcode_action_FC" = relink ||
14726 test "$inherit_rpath_FC" = yes; then
14727 # Fast installation is not supported
14728 enable_fast_install=no
14729 elif test "$shlibpath_overrides_runpath" = yes ||
14730 test "$enable_shared" = no; then
14731 # Fast installation is not necessary
14732 enable_fast_install=needless
14733 fi
14734
14735
14736
14737
14738
14739
14740
14741 fi # test -n "$compiler"
14742
14743 GCC=$lt_save_GCC
14744 CC="$lt_save_CC"
14745 fi # test "$_lt_disable_FC" != yes
14746
14747 ac_ext=c
14748 ac_cpp='$CPP $CPPFLAGS'
14749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14752
14753
14754 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14755
14756 # For libtool versioning info, format is CURRENT:REVISION:AGE
14757 libtool_VERSION=1:0:0
14758
14759
14760 # Check header files.
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14762 $as_echo_n "checking for ANSI C header files... " >&6; }
14763 if ${ac_cv_header_stdc+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 #include <stdlib.h>
14769 #include <stdarg.h>
14770 #include <string.h>
14771 #include <float.h>
14772
14773 int
14774 main ()
14775 {
14776
14777 ;
14778 return 0;
14779 }
14780 _ACEOF
14781 if ac_fn_c_try_compile "$LINENO"; then :
14782 ac_cv_header_stdc=yes
14783 else
14784 ac_cv_header_stdc=no
14785 fi
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787
14788 if test $ac_cv_header_stdc = yes; then
14789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792 #include <string.h>
14793
14794 _ACEOF
14795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14796 $EGREP "memchr" >/dev/null 2>&1; then :
14797
14798 else
14799 ac_cv_header_stdc=no
14800 fi
14801 rm -f conftest*
14802
14803 fi
14804
14805 if test $ac_cv_header_stdc = yes; then
14806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14809 #include <stdlib.h>
14810
14811 _ACEOF
14812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14813 $EGREP "free" >/dev/null 2>&1; then :
14814
14815 else
14816 ac_cv_header_stdc=no
14817 fi
14818 rm -f conftest*
14819
14820 fi
14821
14822 if test $ac_cv_header_stdc = yes; then
14823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14824 if test "$cross_compiling" = yes; then :
14825 :
14826 else
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14829 #include <ctype.h>
14830 #include <stdlib.h>
14831 #if ((' ' & 0x0FF) == 0x020)
14832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14834 #else
14835 # define ISLOWER(c) \
14836 (('a' <= (c) && (c) <= 'i') \
14837 || ('j' <= (c) && (c) <= 'r') \
14838 || ('s' <= (c) && (c) <= 'z'))
14839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14840 #endif
14841
14842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14843 int
14844 main ()
14845 {
14846 int i;
14847 for (i = 0; i < 256; i++)
14848 if (XOR (islower (i), ISLOWER (i))
14849 || toupper (i) != TOUPPER (i))
14850 return 2;
14851 return 0;
14852 }
14853 _ACEOF
14854 if ac_fn_c_try_run "$LINENO"; then :
14855
14856 else
14857 ac_cv_header_stdc=no
14858 fi
14859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14860 conftest.$ac_objext conftest.beam conftest.$ac_ext
14861 fi
14862
14863 fi
14864 fi
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14866 $as_echo "$ac_cv_header_stdc" >&6; }
14867 if test $ac_cv_header_stdc = yes; then
14868
14869 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14870
14871 fi
14872
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14874 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14875 if ${ac_cv_header_time+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880 #include <sys/types.h>
14881 #include <sys/time.h>
14882 #include <time.h>
14883
14884 int
14885 main ()
14886 {
14887 if ((struct tm *) 0)
14888 return 0;
14889 ;
14890 return 0;
14891 }
14892 _ACEOF
14893 if ac_fn_c_try_compile "$LINENO"; then :
14894 ac_cv_header_time=yes
14895 else
14896 ac_cv_header_time=no
14897 fi
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899 fi
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14901 $as_echo "$ac_cv_header_time" >&6; }
14902 if test $ac_cv_header_time = yes; then
14903
14904 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14905
14906 fi
14907
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14909 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14910 if ${gcc_cv_header_string+:} false; then :
14911 $as_echo_n "(cached) " >&6
14912 else
14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14915 #include <string.h>
14916 #include <strings.h>
14917 int
14918 main ()
14919 {
14920
14921 ;
14922 return 0;
14923 }
14924 _ACEOF
14925 if ac_fn_c_try_compile "$LINENO"; then :
14926 gcc_cv_header_string=yes
14927 else
14928 gcc_cv_header_string=no
14929 fi
14930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 fi
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14933 $as_echo "$gcc_cv_header_string" >&6; }
14934 if test $gcc_cv_header_string = yes; then
14935
14936 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14937
14938 fi
14939
14940 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14941 do :
14942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14943 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14944 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14945 cat >>confdefs.h <<_ACEOF
14946 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14947 _ACEOF
14948
14949 fi
14950
14951 done
14952
14953
14954 XPCFLAGS=""
14955 case "$host" in
14956 *-*-rtems*)
14957 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14958 ;;
14959 nvptx*-*-* | amdgcn*-*-*)
14960 # NVPTX does not support Pthreads, has its own code replacement.
14961 libgomp_use_pthreads=no
14962 # NVPTX is an accelerator-only target
14963 libgomp_offloaded_only=yes
14964 ;;
14965 *)
14966 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14967 # In case the pthread.h system header is not found, this test will fail.
14968 CFLAGS="$CFLAGS -pthread"
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 #include <pthread.h>
14972 void *g(void *d) { return NULL; }
14973 int
14974 main ()
14975 {
14976 pthread_t t; pthread_create(&t,NULL,g,NULL);
14977 ;
14978 return 0;
14979 }
14980 _ACEOF
14981 if ac_fn_c_try_link "$LINENO"; then :
14982 XPCFLAGS=" -Wc,-pthread"
14983 else
14984 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14987 #include <pthread.h>
14988 void *g(void *d) { return NULL; }
14989 int
14990 main ()
14991 {
14992 pthread_t t; pthread_create(&t,NULL,g,NULL);
14993 ;
14994 return 0;
14995 }
14996 _ACEOF
14997 if ac_fn_c_try_link "$LINENO"; then :
14998
14999 else
15000 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
15001 fi
15002 rm -f core conftest.err conftest.$ac_objext \
15003 conftest$ac_exeext conftest.$ac_ext
15004 fi
15005 rm -f core conftest.err conftest.$ac_objext \
15006 conftest$ac_exeext conftest.$ac_ext
15007 esac
15008
15009 if test x$libgomp_use_pthreads != xno; then
15010
15011 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15012
15013 fi
15014
15015 if test x$libgomp_offloaded_only = xyes; then
15016
15017 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15018
15019 fi
15020
15021 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15022 #
15023 # Copyright (C) 2014-2020 Free Software Foundation, Inc.
15024 #
15025 # Contributed by Mentor Embedded.
15026 #
15027 # This file is part of the GNU Offloading and Multi Processing Library
15028 # (libgomp).
15029 #
15030 # Libgomp is free software; you can redistribute it and/or modify it
15031 # under the terms of the GNU General Public License as published by
15032 # the Free Software Foundation; either version 3, or (at your option)
15033 # any later version.
15034 #
15035 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15036 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15037 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15038 # more details.
15039 #
15040 # Under Section 7 of GPL version 3, you are granted additional
15041 # permissions described in the GCC Runtime Library Exception, version
15042 # 3.1, as published by the Free Software Foundation.
15043 #
15044 # You should have received a copy of the GNU General Public License and
15045 # a copy of the GCC Runtime Library Exception along with this program;
15046 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15047 # <http://www.gnu.org/licenses/>.
15048
15049 plugin_support=yes
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15051 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15052 if ${ac_cv_lib_dl_dlsym+:} false; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 ac_check_lib_save_LIBS=$LIBS
15056 LIBS="-ldl $LIBS"
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059
15060 /* Override any GCC internal prototype to avoid an error.
15061 Use char because int might match the return type of a GCC
15062 builtin and then its argument prototype would still apply. */
15063 #ifdef __cplusplus
15064 extern "C"
15065 #endif
15066 char dlsym ();
15067 int
15068 main ()
15069 {
15070 return dlsym ();
15071 ;
15072 return 0;
15073 }
15074 _ACEOF
15075 if ac_fn_c_try_link "$LINENO"; then :
15076 ac_cv_lib_dl_dlsym=yes
15077 else
15078 ac_cv_lib_dl_dlsym=no
15079 fi
15080 rm -f core conftest.err conftest.$ac_objext \
15081 conftest$ac_exeext conftest.$ac_ext
15082 LIBS=$ac_check_lib_save_LIBS
15083 fi
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15085 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15086 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15087 cat >>confdefs.h <<_ACEOF
15088 #define HAVE_LIBDL 1
15089 _ACEOF
15090
15091 LIBS="-ldl $LIBS"
15092
15093 else
15094 plugin_support=no
15095 fi
15096
15097 if test x"$plugin_support" = xyes; then
15098
15099 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15100
15101 elif test "x${enable_offload_targets-no}" != xno; then
15102 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15103 fi
15104
15105
15106
15107 for ac_header in $ac_header_list
15108 do :
15109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15111 "
15112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15113 cat >>confdefs.h <<_ACEOF
15114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15115 _ACEOF
15116
15117 fi
15118
15119 done
15120
15121
15122
15123
15124
15125
15126
15127 for ac_func in $ac_func_list
15128 do :
15129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15131 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15132 cat >>confdefs.h <<_ACEOF
15133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15134 _ACEOF
15135
15136 fi
15137 done
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154 # Look for the CUDA driver package.
15155 CUDA_DRIVER_INCLUDE=
15156 CUDA_DRIVER_LIB=
15157
15158
15159 CUDA_DRIVER_CPPFLAGS=
15160 CUDA_DRIVER_LDFLAGS=
15161
15162 # Check whether --with-cuda-driver was given.
15163 if test "${with_cuda_driver+set}" = set; then :
15164 withval=$with_cuda_driver;
15165 fi
15166
15167
15168 # Check whether --with-cuda-driver-include was given.
15169 if test "${with_cuda_driver_include+set}" = set; then :
15170 withval=$with_cuda_driver_include;
15171 fi
15172
15173
15174 # Check whether --with-cuda-driver-lib was given.
15175 if test "${with_cuda_driver_lib+set}" = set; then :
15176 withval=$with_cuda_driver_lib;
15177 fi
15178
15179 case "x$with_cuda_driver" in
15180 x) ;;
15181 xno)
15182 CUDA_DRIVER_INCLUDE=no
15183 CUDA_DRIVER_LIB=no
15184 ;;
15185 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15186 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15187 ;;
15188 esac
15189 if test "x$with_cuda_driver_include" != x; then
15190 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15191 fi
15192 if test "x$with_cuda_driver_lib" != x; then
15193 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15194 fi
15195 if test "x$CUDA_DRIVER_INCLUDE" != x \
15196 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15197 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15198 fi
15199 if test "x$CUDA_DRIVER_LIB" != x \
15200 && test "x$CUDA_DRIVER_LIB" != xno; then
15201 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15202 fi
15203
15204 PLUGIN_NVPTX=0
15205 PLUGIN_NVPTX_CPPFLAGS=
15206 PLUGIN_NVPTX_LDFLAGS=
15207 PLUGIN_NVPTX_LIBS=
15208 PLUGIN_NVPTX_DYNAMIC=0
15209
15210
15211
15212
15213
15214 # Look for HSA run-time, its includes and libraries
15215
15216 HSA_RUNTIME_INCLUDE=
15217 HSA_RUNTIME_LIB=
15218
15219
15220 HSA_RUNTIME_CPPFLAGS=
15221 HSA_RUNTIME_LDFLAGS=
15222
15223
15224 # Check whether --with-hsa-runtime was given.
15225 if test "${with_hsa_runtime+set}" = set; then :
15226 withval=$with_hsa_runtime;
15227 fi
15228
15229
15230 # Check whether --with-hsa-runtime-include was given.
15231 if test "${with_hsa_runtime_include+set}" = set; then :
15232 withval=$with_hsa_runtime_include;
15233 fi
15234
15235
15236 # Check whether --with-hsa-runtime-lib was given.
15237 if test "${with_hsa_runtime_lib+set}" = set; then :
15238 withval=$with_hsa_runtime_lib;
15239 fi
15240
15241 if test "x$with_hsa_runtime" != x; then
15242 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15243 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15244 fi
15245 if test "x$with_hsa_runtime_include" != x; then
15246 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15247 fi
15248 if test "x$with_hsa_runtime_lib" != x; then
15249 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15250 fi
15251 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15252 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15253 fi
15254 if test "x$HSA_RUNTIME_LIB" != x; then
15255 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15256 fi
15257
15258 PLUGIN_HSA=0
15259 PLUGIN_HSA_CPPFLAGS=
15260 PLUGIN_HSA_LDFLAGS=
15261 PLUGIN_HSA_LIBS=
15262
15263
15264
15265
15266
15267 PLUGIN_GCN=0
15268 PLUGIN_GCN_CPPFLAGS=
15269 PLUGIN_GCN_LDFLAGS=
15270 PLUGIN_GCN_LIBS=
15271
15272
15273
15274
15275
15276 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15277 # plugins, and configure to find the corresponding offload compilers.
15278 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15279 offload_plugins=
15280 offload_targets=
15281
15282
15283 offload_additional_options=
15284 offload_additional_lib_paths=
15285
15286
15287 if test x"$enable_offload_targets" != x; then
15288 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15289 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15290 tgt=`echo $tgt | sed 's/=.*//'`
15291 tgt_plugin=
15292 case $tgt in
15293 *-intelmic-* | *-intelmicemul-*)
15294 tgt_plugin=intelmic
15295 ;;
15296 nvptx*)
15297 case "${target}" in
15298 aarch64*-*-* | powerpc64le-*-* | x86_64-*-*)
15299 case " ${CC} ${CFLAGS} " in
15300 *" -m32 "* | *" -mx32 "*)
15301 # PR libgomp/65099: Currently, we only support offloading in
15302 # 64-bit configurations.
15303 PLUGIN_NVPTX=0
15304 ;;
15305 *)
15306 tgt_plugin=nvptx
15307 PLUGIN_NVPTX=$tgt
15308 if test "x$CUDA_DRIVER_LIB" != xno \
15309 && test "x$CUDA_DRIVER_LIB" != xno; then
15310 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15311 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15312 PLUGIN_NVPTX_LIBS='-lcuda'
15313
15314 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15315 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15316 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15317 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15318 PLUGIN_NVPTX_save_LIBS=$LIBS
15319 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 #include "cuda.h"
15323 int
15324 main ()
15325 {
15326 CUresult r = cuCtxPushCurrent (NULL);
15327 ;
15328 return 0;
15329 }
15330 _ACEOF
15331 if ac_fn_c_try_link "$LINENO"; then :
15332 PLUGIN_NVPTX=1
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
15336 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15337 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15338 LIBS=$PLUGIN_NVPTX_save_LIBS
15339 fi
15340 case $PLUGIN_NVPTX in
15341 nvptx*)
15342 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15343 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15344 && (test "x$CUDA_DRIVER_LIB" = x \
15345 || test "x$CUDA_DRIVER_LIB" = xno); then
15346 PLUGIN_NVPTX=1
15347 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15348 PLUGIN_NVPTX_LIBS='-ldl'
15349 PLUGIN_NVPTX_DYNAMIC=1
15350 else
15351 PLUGIN_NVPTX=0
15352 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15353 fi
15354 ;;
15355 esac
15356 ;;
15357 esac
15358 ;;
15359 *-*-*)
15360 # Target architecture not supported.
15361 PLUGIN_NVPTX=0
15362 ;;
15363 esac
15364 ;;
15365 hsa*)
15366 case "${target}" in
15367 x86_64-*-*)
15368 case " ${CC} ${CFLAGS} " in
15369 *" -m32 "*|*" -mx32 "*)
15370 PLUGIN_HSA=0
15371 ;;
15372 *)
15373 tgt_plugin=hsa
15374 PLUGIN_HSA=$tgt
15375 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15376 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15377 PLUGIN_HSA_LIBS="-ldl"
15378
15379 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15380 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15381 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15382 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15383 PLUGIN_HSA_save_LIBS=$LIBS
15384 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15385
15386 PLUGIN_HSA=1
15387 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15388 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15389 LIBS=$PLUGIN_HSA_save_LIBS
15390 case $PLUGIN_HSA in
15391 hsa*)
15392 HSA_PLUGIN=0
15393 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5
15394 ;;
15395 esac
15396 ;;
15397 esac
15398 ;;
15399 *-*-*)
15400 PLUGIN_HSA=0
15401 ;;
15402 esac
15403 ;;
15404
15405 amdgcn*)
15406 case "${target}" in
15407 x86_64-*-*)
15408 case " ${CC} ${CFLAGS} " in
15409 *" -m32 "*|*" -mx32 "*)
15410 PLUGIN_GCN=0
15411 ;;
15412 *)
15413 tgt_plugin=gcn
15414 PLUGIN_GCN=$tgt
15415 PLUGIN_GCN_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15416 PLUGIN_GCN_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15417 PLUGIN_GCN_LIBS="-ldl"
15418 PLUGIN_GCN=1
15419 ;;
15420 esac
15421 ;;
15422 *-*-*)
15423 PLUGIN_GCN=0
15424 ;;
15425 esac
15426 ;;
15427 *)
15428 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15429 ;;
15430 esac
15431 if test x"$tgt_plugin" = x; then
15432 # Not configuring libgomp for this offload target if we're not building
15433 # the corresponding offload plugin.
15434 continue
15435 elif test x"$offload_plugins" = x; then
15436 offload_plugins=$tgt_plugin
15437 offload_targets=$tgt
15438 else
15439 offload_plugins=$offload_plugins,$tgt_plugin
15440 offload_targets=$offload_targets,$tgt
15441 fi
15442 # Configure additional search paths.
15443 if test "$tgt_plugin" = hsa; then
15444 # Offloading compilation is all handled by the target compiler.
15445 :
15446 elif test x"$tgt_dir" != x; then
15447 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15448 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15449 else
15450 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15451 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15452 fi
15453 done
15454 fi
15455
15456 cat >>confdefs.h <<_ACEOF
15457 #define OFFLOAD_PLUGINS "$offload_plugins"
15458 _ACEOF
15459
15460 if test $PLUGIN_NVPTX = 1; then
15461 PLUGIN_NVPTX_TRUE=
15462 PLUGIN_NVPTX_FALSE='#'
15463 else
15464 PLUGIN_NVPTX_TRUE='#'
15465 PLUGIN_NVPTX_FALSE=
15466 fi
15467
15468
15469 cat >>confdefs.h <<_ACEOF
15470 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15471 _ACEOF
15472
15473
15474 cat >>confdefs.h <<_ACEOF
15475 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15476 _ACEOF
15477
15478 if test $PLUGIN_HSA = 1; then
15479 PLUGIN_HSA_TRUE=
15480 PLUGIN_HSA_FALSE='#'
15481 else
15482 PLUGIN_HSA_TRUE='#'
15483 PLUGIN_HSA_FALSE=
15484 fi
15485
15486
15487 cat >>confdefs.h <<_ACEOF
15488 #define PLUGIN_HSA $PLUGIN_HSA
15489 _ACEOF
15490
15491 if test $PLUGIN_GCN = 1; then
15492 PLUGIN_GCN_TRUE=
15493 PLUGIN_GCN_FALSE='#'
15494 else
15495 PLUGIN_GCN_TRUE='#'
15496 PLUGIN_GCN_FALSE=
15497 fi
15498
15499
15500 cat >>confdefs.h <<_ACEOF
15501 #define PLUGIN_GCN $PLUGIN_GCN
15502 _ACEOF
15503
15504
15505
15506 # Check for functions needed.
15507 for ac_func in getloadavg clock_gettime strtoull
15508 do :
15509 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15510 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15511 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15512 cat >>confdefs.h <<_ACEOF
15513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15514 _ACEOF
15515
15516 fi
15517 done
15518
15519 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15520 do :
15521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15523 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15524 cat >>confdefs.h <<_ACEOF
15525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15526 _ACEOF
15527
15528 fi
15529 done
15530
15531
15532 # Check for broken semaphore implementation on darwin.
15533 # sem_init returns: sem_init error: Function not implemented.
15534 case "$host" in
15535 *-darwin*)
15536
15537 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15538
15539 ;;
15540 esac
15541
15542 # RTEMS specific checks
15543 case "$host" in
15544 *-*-rtems*)
15545 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15546 "
15547 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15548
15549 cat >>confdefs.h <<_ACEOF
15550 #define HAVE_STRUCT__MUTEX_CONTROL 1
15551 _ACEOF
15552
15553
15554 fi
15555
15556 ;;
15557 esac
15558
15559 # Check whether --enable-linux-futex was given.
15560 if test "${enable_linux_futex+set}" = set; then :
15561 enableval=$enable_linux_futex;
15562 case "$enableval" in
15563 yes|no|default) ;;
15564 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15565 esac
15566
15567 else
15568 enable_linux_futex=default
15569 fi
15570
15571
15572 case "$target" in
15573 *-linux* | *-uclinux*)
15574 case "$enable_linux_futex" in
15575 default)
15576 # If headers don't have gettid/futex syscalls definition, then
15577 # default to no, otherwise there will be compile time failures.
15578 # Otherwise, default to yes. If we don't detect we are
15579 # compiled/linked against NPTL and not cross-compiling, check
15580 # if programs are run by default against NPTL and if not, issue
15581 # a warning.
15582 enable_linux_futex=no
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585 #include <sys/syscall.h>
15586 #include <unistd.h>
15587 int lk;
15588 int
15589 main ()
15590 {
15591 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15592 ;
15593 return 0;
15594 }
15595 _ACEOF
15596 if ac_fn_c_try_link "$LINENO"; then :
15597 save_LIBS="$LIBS"
15598 LIBS="-lpthread $LIBS"
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 #ifndef _GNU_SOURCE
15602 #define _GNU_SOURCE 1
15603 #endif
15604 #include <pthread.h>
15605 pthread_t th; void *status;
15606 int
15607 main ()
15608 {
15609 pthread_tryjoin_np (th, &status);
15610 ;
15611 return 0;
15612 }
15613 _ACEOF
15614 if ac_fn_c_try_link "$LINENO"; then :
15615 enable_linux_futex=yes
15616 else
15617 if test x$cross_compiling = xno; then
15618 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15619 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15621 If so, please configure with --disable-linux-futex" >&5
15622 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15623 If so, please configure with --disable-linux-futex" >&2;}
15624 fi
15625 fi
15626 enable_linux_futex=yes
15627 fi
15628 rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15630 LIBS="$save_LIBS"
15631 fi
15632 rm -f core conftest.err conftest.$ac_objext \
15633 conftest$ac_exeext conftest.$ac_ext
15634 ;;
15635 yes)
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 #include <sys/syscall.h>
15639 #include <unistd.h>
15640 int lk;
15641 int
15642 main ()
15643 {
15644 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15645 ;
15646 return 0;
15647 }
15648 _ACEOF
15649 if ac_fn_c_try_link "$LINENO"; then :
15650
15651 else
15652 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15653 fi
15654 rm -f core conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15656 ;;
15657 esac
15658 ;;
15659 *)
15660 enable_linux_futex=no
15661 ;;
15662 esac
15663 if test x$enable_linux_futex = xyes; then
15664 :
15665 fi
15666
15667
15668 # Check for pthread_{,attr_}[sg]etaffinity_np.
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 #define _GNU_SOURCE
15672 #include <pthread.h>
15673 int
15674 main ()
15675 {
15676 cpu_set_t cpuset;
15677 pthread_attr_t attr;
15678 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15679 if (CPU_ISSET (0, &cpuset))
15680 CPU_SET (1, &cpuset);
15681 else
15682 CPU_ZERO (&cpuset);
15683 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15684 pthread_attr_init (&attr);
15685 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15686 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15687 ;
15688 return 0;
15689 }
15690 _ACEOF
15691 if ac_fn_c_try_link "$LINENO"; then :
15692
15693 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15694
15695 fi
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15698
15699 # At least for glibc, clock_gettime is in librt. But don't pull that
15700 # in if it still doesn't give us the function we want.
15701 if test $ac_cv_func_clock_gettime = no; then
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15703 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15704 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15705 $as_echo_n "(cached) " >&6
15706 else
15707 ac_check_lib_save_LIBS=$LIBS
15708 LIBS="-lrt $LIBS"
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711
15712 /* Override any GCC internal prototype to avoid an error.
15713 Use char because int might match the return type of a GCC
15714 builtin and then its argument prototype would still apply. */
15715 #ifdef __cplusplus
15716 extern "C"
15717 #endif
15718 char clock_gettime ();
15719 int
15720 main ()
15721 {
15722 return clock_gettime ();
15723 ;
15724 return 0;
15725 }
15726 _ACEOF
15727 if ac_fn_c_try_link "$LINENO"; then :
15728 ac_cv_lib_rt_clock_gettime=yes
15729 else
15730 ac_cv_lib_rt_clock_gettime=no
15731 fi
15732 rm -f core conftest.err conftest.$ac_objext \
15733 conftest$ac_exeext conftest.$ac_ext
15734 LIBS=$ac_check_lib_save_LIBS
15735 fi
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15737 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15738 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15739 LIBS="-lrt $LIBS"
15740
15741 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15742
15743 fi
15744
15745 fi
15746
15747 # Check for uname.
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750 #include <string.h>
15751 #include <stdlib.h>
15752 #include <sys/utsname.h>
15753 int
15754 main ()
15755 {
15756 struct utsname buf;
15757 volatile size_t len = 0;
15758 if (!uname (buf))
15759 len = strlen (buf.nodename);
15760 ;
15761 return 0;
15762 }
15763 _ACEOF
15764 if ac_fn_c_try_compile "$LINENO"; then :
15765
15766 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15767
15768 fi
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770
15771 # Check for gethostname.
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 #include <unistd.h>
15775 int
15776 main ()
15777 {
15778
15779 char buf[256];
15780 if (gethostname (buf, sizeof (buf) - 1) == 0)
15781 buf[255] = '\0';
15782
15783 ;
15784 return 0;
15785 }
15786 _ACEOF
15787 if ac_fn_c_try_compile "$LINENO"; then :
15788
15789 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15790
15791 fi
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793
15794 # Check for getpid.
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 #include <unistd.h>
15798 int
15799 main ()
15800 {
15801 int pid = getpid ();
15802 ;
15803 return 0;
15804 }
15805 _ACEOF
15806 if ac_fn_c_try_compile "$LINENO"; then :
15807
15808 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15809
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812
15813 # See if we support thread-local storage.
15814
15815
15816 # Check whether --enable-tls was given.
15817 if test "${enable_tls+set}" = set; then :
15818 enableval=$enable_tls;
15819 case "$enableval" in
15820 yes|no) ;;
15821 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15822 esac
15823
15824 else
15825 enable_tls=yes
15826 fi
15827
15828
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15830 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15831 if ${gcc_cv_have_tls+:} false; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834
15835 if test "$cross_compiling" = yes; then :
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15838 __thread int a; int b; int main() { return a = b; }
15839 _ACEOF
15840 if ac_fn_c_try_link "$LINENO"; then :
15841 chktls_save_LDFLAGS="$LDFLAGS"
15842 case $host in
15843 *-*-linux* | -*-uclinuxfdpic*)
15844 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15845 ;;
15846 esac
15847 chktls_save_CFLAGS="$CFLAGS"
15848 CFLAGS="-fPIC $CFLAGS"
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851 int f() { return 0; }
15852 _ACEOF
15853 if ac_fn_c_try_link "$LINENO"; then :
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 __thread int a; int b; int f() { return a = b; }
15857 _ACEOF
15858 if ac_fn_c_try_link "$LINENO"; then :
15859 gcc_cv_have_tls=yes
15860 else
15861 gcc_cv_have_tls=no
15862 fi
15863 rm -f core conftest.err conftest.$ac_objext \
15864 conftest$ac_exeext conftest.$ac_ext
15865 else
15866 gcc_cv_have_tls=yes
15867 fi
15868 rm -f core conftest.err conftest.$ac_objext \
15869 conftest$ac_exeext conftest.$ac_ext
15870 CFLAGS="$chktls_save_CFLAGS"
15871 LDFLAGS="$chktls_save_LDFLAGS"
15872 else
15873 gcc_cv_have_tls=no
15874 fi
15875 rm -f core conftest.err conftest.$ac_objext \
15876 conftest$ac_exeext conftest.$ac_ext
15877
15878
15879 else
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882 __thread int a; int b; int main() { return a = b; }
15883 _ACEOF
15884 if ac_fn_c_try_run "$LINENO"; then :
15885 chktls_save_LDFLAGS="$LDFLAGS"
15886 LDFLAGS="-static $LDFLAGS"
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 int main() { return 0; }
15890 _ACEOF
15891 if ac_fn_c_try_link "$LINENO"; then :
15892 if test "$cross_compiling" = yes; then :
15893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15895 as_fn_error $? "cannot run test program while cross compiling
15896 See \`config.log' for more details" "$LINENO" 5; }
15897 else
15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15900 __thread int a; int b; int main() { return a = b; }
15901 _ACEOF
15902 if ac_fn_c_try_run "$LINENO"; then :
15903 gcc_cv_have_tls=yes
15904 else
15905 gcc_cv_have_tls=no
15906 fi
15907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15908 conftest.$ac_objext conftest.beam conftest.$ac_ext
15909 fi
15910
15911 else
15912 gcc_cv_have_tls=yes
15913 fi
15914 rm -f core conftest.err conftest.$ac_objext \
15915 conftest$ac_exeext conftest.$ac_ext
15916 LDFLAGS="$chktls_save_LDFLAGS"
15917 if test $gcc_cv_have_tls = yes; then
15918 chktls_save_CFLAGS="$CFLAGS"
15919 thread_CFLAGS=failed
15920 for flag in '' '-pthread' '-lpthread'; do
15921 CFLAGS="$flag $chktls_save_CFLAGS"
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15924 #include <pthread.h>
15925 void *g(void *d) { return NULL; }
15926 int
15927 main ()
15928 {
15929 pthread_t t; pthread_create(&t,NULL,g,NULL);
15930 ;
15931 return 0;
15932 }
15933 _ACEOF
15934 if ac_fn_c_try_link "$LINENO"; then :
15935 thread_CFLAGS="$flag"
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext \
15938 conftest$ac_exeext conftest.$ac_ext
15939 if test "X$thread_CFLAGS" != Xfailed; then
15940 break
15941 fi
15942 done
15943 CFLAGS="$chktls_save_CFLAGS"
15944 if test "X$thread_CFLAGS" != Xfailed; then
15945 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15946 if test "$cross_compiling" = yes; then :
15947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15949 as_fn_error $? "cannot run test program while cross compiling
15950 See \`config.log' for more details" "$LINENO" 5; }
15951 else
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 #include <pthread.h>
15955 __thread int a;
15956 static int *volatile a_in_other_thread;
15957 static void *
15958 thread_func (void *arg)
15959 {
15960 a_in_other_thread = &a;
15961 return (void *)0;
15962 }
15963 int
15964 main ()
15965 {
15966 pthread_t thread;
15967 void *thread_retval;
15968 int *volatile a_in_main_thread;
15969 a_in_main_thread = &a;
15970 if (pthread_create (&thread, (pthread_attr_t *)0,
15971 thread_func, (void *)0))
15972 return 0;
15973 if (pthread_join (thread, &thread_retval))
15974 return 0;
15975 return (a_in_other_thread == a_in_main_thread);
15976 ;
15977 return 0;
15978 }
15979 _ACEOF
15980 if ac_fn_c_try_run "$LINENO"; then :
15981 gcc_cv_have_tls=yes
15982 else
15983 gcc_cv_have_tls=no
15984 fi
15985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15986 conftest.$ac_objext conftest.beam conftest.$ac_ext
15987 fi
15988
15989 CFLAGS="$chktls_save_CFLAGS"
15990 fi
15991 fi
15992 else
15993 gcc_cv_have_tls=no
15994 fi
15995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15996 conftest.$ac_objext conftest.beam conftest.$ac_ext
15997 fi
15998
15999 fi
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16001 $as_echo "$gcc_cv_have_tls" >&6; }
16002 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16003
16004 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16005
16006 fi
16007
16008 # See if we have emulated thread-local storage.
16009
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16011 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
16012 if ${gcc_cv_use_emutls+:} false; then :
16013 $as_echo_n "(cached) " >&6
16014 else
16015
16016 gcc_cv_use_emutls=no
16017 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16018 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16023 test $ac_status = 0; }; }; then
16024 if grep __emutls_get_address conftest.s > /dev/null; then
16025 gcc_cv_use_emutls=yes
16026 fi
16027 fi
16028 rm -f conftest.*
16029
16030 fi
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16032 $as_echo "$gcc_cv_use_emutls" >&6; }
16033 if test "$gcc_cv_use_emutls" = "yes" ; then
16034
16035 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16036
16037 fi
16038
16039 # See what sort of export controls are available.
16040
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16042 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16043 if ${libgomp_cv_have_attribute_visibility+:} false; then :
16044 $as_echo_n "(cached) " >&6
16045 else
16046
16047 save_CFLAGS="$CFLAGS"
16048 CFLAGS="$CFLAGS -Werror"
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 void __attribute__((visibility("hidden"))) foo(void) { }
16052 int
16053 main ()
16054 {
16055
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 if ac_fn_c_try_compile "$LINENO"; then :
16061 libgomp_cv_have_attribute_visibility=yes
16062 else
16063 libgomp_cv_have_attribute_visibility=no
16064 fi
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066 CFLAGS="$save_CFLAGS"
16067 fi
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16069 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16070 if test $libgomp_cv_have_attribute_visibility = yes; then
16071
16072 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16073
16074 fi
16075
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16077 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16078 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081
16082 save_CFLAGS="$CFLAGS"
16083 CFLAGS="$CFLAGS -Werror"
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 void __attribute__((dllexport)) foo(void) { }
16087 int
16088 main ()
16089 {
16090
16091 ;
16092 return 0;
16093 }
16094 _ACEOF
16095 if ac_fn_c_try_compile "$LINENO"; then :
16096 libgomp_cv_have_attribute_dllexport=yes
16097 else
16098 libgomp_cv_have_attribute_dllexport=no
16099 fi
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 CFLAGS="$save_CFLAGS"
16102 fi
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16104 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16105 if test $libgomp_cv_have_attribute_dllexport = yes; then
16106
16107 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16108
16109 fi
16110
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16112 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16113 if ${libgomp_cv_have_attribute_alias+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119
16120 void foo(void) { }
16121 extern void bar(void) __attribute__((alias("foo")));
16122 int
16123 main ()
16124 {
16125 bar();
16126 ;
16127 return 0;
16128 }
16129 _ACEOF
16130 if ac_fn_c_try_link "$LINENO"; then :
16131 libgomp_cv_have_attribute_alias=yes
16132 else
16133 libgomp_cv_have_attribute_alias=no
16134 fi
16135 rm -f core conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16137 fi
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16139 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16140 if test $libgomp_cv_have_attribute_alias = yes; then
16141
16142 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16143
16144 fi
16145
16146
16147 # Check whether --with-gnu-ld was given.
16148 if test "${with_gnu_ld+set}" = set; then :
16149 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16150 else
16151 with_gnu_ld=no
16152 fi
16153
16154 ac_prog=ld
16155 if test "$GCC" = yes; then
16156 # Check if gcc -print-prog-name=ld gives a path.
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16158 $as_echo_n "checking for ld used by $CC... " >&6; }
16159 case $host in
16160 *-*-mingw*)
16161 # gcc leaves a trailing carriage return which upsets mingw
16162 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16163 *)
16164 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16165 esac
16166 case $ac_prog in
16167 # Accept absolute paths.
16168 [\\/]* | ?:[\\/]*)
16169 re_direlt='/[^/][^/]*/\.\./'
16170 # Canonicalize the pathname of ld
16171 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16172 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16173 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16174 done
16175 test -z "$LD" && LD="$ac_prog"
16176 ;;
16177 "")
16178 # If it fails, then pretend we aren't using GCC.
16179 ac_prog=ld
16180 ;;
16181 *)
16182 # If it is relative, then search for the first ld in PATH.
16183 with_gnu_ld=unknown
16184 ;;
16185 esac
16186 elif test "$with_gnu_ld" = yes; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16188 $as_echo_n "checking for GNU ld... " >&6; }
16189 else
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16191 $as_echo_n "checking for non-GNU ld... " >&6; }
16192 fi
16193 if ${lt_cv_path_LD+:} false; then :
16194 $as_echo_n "(cached) " >&6
16195 else
16196 if test -z "$LD"; then
16197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16198 for ac_dir in $PATH; do
16199 IFS="$lt_save_ifs"
16200 test -z "$ac_dir" && ac_dir=.
16201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16202 lt_cv_path_LD="$ac_dir/$ac_prog"
16203 # Check to see if the program is GNU ld. I'd rather use --version,
16204 # but apparently some variants of GNU ld only accept -v.
16205 # Break only if it was the GNU/non-GNU ld that we prefer.
16206 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16207 *GNU* | *'with BFD'*)
16208 test "$with_gnu_ld" != no && break
16209 ;;
16210 *)
16211 test "$with_gnu_ld" != yes && break
16212 ;;
16213 esac
16214 fi
16215 done
16216 IFS="$lt_save_ifs"
16217 else
16218 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16219 fi
16220 fi
16221
16222 LD="$lt_cv_path_LD"
16223 if test -n "$LD"; then
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16225 $as_echo "$LD" >&6; }
16226 else
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16228 $as_echo "no" >&6; }
16229 fi
16230 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16232 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16233 if ${lt_cv_prog_gnu_ld+:} false; then :
16234 $as_echo_n "(cached) " >&6
16235 else
16236 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16237 case `$LD -v 2>&1 </dev/null` in
16238 *GNU* | *'with BFD'*)
16239 lt_cv_prog_gnu_ld=yes
16240 ;;
16241 *)
16242 lt_cv_prog_gnu_ld=no
16243 ;;
16244 esac
16245 fi
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16247 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16248 with_gnu_ld=$lt_cv_prog_gnu_ld
16249
16250
16251
16252
16253
16254
16255
16256 # If we're not using GNU ld, then there's no point in even trying these
16257 # tests. Check for that first. We should have already tested for gld
16258 # by now (in libtool), but require it now just to be safe...
16259 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16260 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16261
16262
16263
16264 # The name set by libtool depends on the version of libtool. Shame on us
16265 # for depending on an impl detail, but c'est la vie. Older versions used
16266 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16267 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16268 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16269 # set (hence we're using an older libtool), then set it.
16270 if test x${with_gnu_ld+set} != xset; then
16271 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16272 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16273 with_gnu_ld=no
16274 else
16275 with_gnu_ld=$ac_cv_prog_gnu_ld
16276 fi
16277 fi
16278
16279 # Start by getting the version number. I think the libtool test already
16280 # does some of this, but throws away the result.
16281 libgomp_ld_is_gold=no
16282 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16283 libgomp_ld_is_gold=yes
16284 fi
16285
16286 ldver=`$LD --version 2>/dev/null |
16287 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16288
16289 libgomp_gnu_ld_version=`echo $ldver | \
16290 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16291
16292 # Set --gc-sections.
16293 if test "$with_gnu_ld" = "notbroken"; then
16294 # GNU ld it is! Joy and bunny rabbits!
16295
16296 # All these tests are for C++; save the language and the compiler flags.
16297 # Need to do this so that g++ won't try to link in libstdc++
16298 ac_test_CFLAGS="${CFLAGS+set}"
16299 ac_save_CFLAGS="$CFLAGS"
16300 CFLAGS='-x c++ -Wl,--gc-sections'
16301
16302 # Check for -Wl,--gc-sections
16303 # XXX This test is broken at the moment, as symbols required for linking
16304 # are now in libsupc++ (not built yet). In addition, this test has
16305 # cored on solaris in the past. In addition, --gc-sections doesn't
16306 # really work at the moment (keeps on discarding used sections, first
16307 # .eh_frame and now some of the glibc sections for iconv).
16308 # Bzzzzt. Thanks for playing, maybe next time.
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16310 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16311 if test "$cross_compiling" = yes; then :
16312 ac_sectionLDflags=yes
16313 else
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316
16317 int main(void)
16318 {
16319 try { throw 1; }
16320 catch (...) { };
16321 return 0;
16322 }
16323
16324 _ACEOF
16325 if ac_fn_c_try_run "$LINENO"; then :
16326 ac_sectionLDflags=yes
16327 else
16328 ac_sectionLDflags=no
16329 fi
16330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16331 conftest.$ac_objext conftest.beam conftest.$ac_ext
16332 fi
16333
16334 if test "$ac_test_CFLAGS" = set; then
16335 CFLAGS="$ac_save_CFLAGS"
16336 else
16337 # this is the suspicious part
16338 CFLAGS=''
16339 fi
16340 if test "$ac_sectionLDflags" = "yes"; then
16341 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16342 fi
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16344 $as_echo "$ac_sectionLDflags" >&6; }
16345 fi
16346
16347 # Set linker optimization flags.
16348 if test x"$with_gnu_ld" = x"yes"; then
16349 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16350 fi
16351
16352
16353
16354
16355
16356
16357 # Check whether --enable-symvers was given.
16358 if test "${enable_symvers+set}" = set; then :
16359 enableval=$enable_symvers;
16360 case "$enableval" in
16361 yes|no|gnu*|sun) ;;
16362 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16363 esac
16364
16365 else
16366 enable_symvers=yes
16367 fi
16368
16369
16370
16371 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16372 # don't know enough about $LD to do tricks...
16373
16374
16375 # Turn a 'yes' into a suitable default.
16376 if test x$enable_symvers = xyes ; then
16377 # FIXME The following test is too strict, in theory.
16378 if test $enable_shared = no || test "x$LD" = x; then
16379 enable_symvers=no
16380 else
16381 if test $with_gnu_ld = yes ; then
16382 enable_symvers=gnu
16383 else
16384 case ${target_os} in
16385 # Sun symbol versioning exists since Solaris 2.5.
16386 solaris2.[5-9]* | solaris2.1[0-9]*)
16387 enable_symvers=sun ;;
16388 *)
16389 enable_symvers=no ;;
16390 esac
16391 fi
16392 fi
16393 fi
16394
16395 # Check if 'sun' was requested on non-Solaris 2 platforms.
16396 if test x$enable_symvers = xsun ; then
16397 case ${target_os} in
16398 solaris2*)
16399 # All fine.
16400 ;;
16401 *)
16402 # Unlikely to work.
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16404 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16406 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16408 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16409 enable_symvers=no
16410 ;;
16411 esac
16412 fi
16413
16414 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16415 if test $enable_symvers != no; then
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16417 $as_echo_n "checking for shared libgcc... " >&6; }
16418 ac_save_CFLAGS="$CFLAGS"
16419 CFLAGS=' -lgcc_s'
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422
16423 int
16424 main ()
16425 {
16426 return 0;
16427 ;
16428 return 0;
16429 }
16430 _ACEOF
16431 if ac_fn_c_try_link "$LINENO"; then :
16432 libgomp_shared_libgcc=yes
16433 else
16434 libgomp_shared_libgcc=no
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 CFLAGS="$ac_save_CFLAGS"
16439 if test $libgomp_shared_libgcc = no; then
16440 cat > conftest.c <<EOF
16441 int main (void) { return 0; }
16442 EOF
16443 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16444 -shared -shared-libgcc -o conftest.so \
16445 conftest.c -v 2>&1 >/dev/null \
16446 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16447 rm -f conftest.c conftest.so
16448 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16449 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452
16453 int
16454 main ()
16455 {
16456 return 0;
16457 ;
16458 return 0;
16459 }
16460 _ACEOF
16461 if ac_fn_c_try_link "$LINENO"; then :
16462 libgomp_shared_libgcc=yes
16463 fi
16464 rm -f core conftest.err conftest.$ac_objext \
16465 conftest$ac_exeext conftest.$ac_ext
16466 CFLAGS="$ac_save_CFLAGS"
16467 fi
16468 fi
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16470 $as_echo "$libgomp_shared_libgcc" >&6; }
16471 fi
16472
16473 # For GNU ld, we need at least this version. The format is described in
16474 # LIBGOMP_CHECK_LINKER_FEATURES above.
16475 libgomp_min_gnu_ld_version=21400
16476 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16477
16478 # Check to see if unspecified "yes" value can win, given results above.
16479 # Change "yes" into either "no" or a style name.
16480 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16481 if test $with_gnu_ld = yes; then
16482 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16483 enable_symvers=gnu
16484 elif test $libgomp_ld_is_gold = yes ; then
16485 enable_symvers=gnu
16486 else
16487 # The right tools, the right setup, but too old. Fallbacks?
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16489 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16491 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16493 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16495 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16496 if test $libgomp_gnu_ld_version -ge 21200 ; then
16497 # Globbing fix is present, proper block support is not.
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16499 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16500 enable_symvers=no
16501 else
16502 # 2.11 or older.
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16504 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16505 enable_symvers=no
16506 fi
16507 fi
16508 elif test $enable_symvers = sun; then
16509 : All interesting versions of Sun ld support sun style symbol versioning.
16510 else
16511 # just fail for now
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16513 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16515 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16517 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16519 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16520 enable_symvers=no
16521 fi
16522 fi
16523
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16525 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16526 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16527 $as_echo_n "(cached) " >&6
16528 else
16529
16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16532 void foo (void); __asm (".symver foo, bar@SYMVER");
16533 int
16534 main ()
16535 {
16536
16537 ;
16538 return 0;
16539 }
16540 _ACEOF
16541 if ac_fn_c_try_compile "$LINENO"; then :
16542 libgomp_cv_have_as_symver_directive=yes
16543 else
16544 libgomp_cv_have_as_symver_directive=no
16545 fi
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 fi
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16549 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16550 if test $libgomp_cv_have_as_symver_directive = yes; then
16551
16552 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16553
16554 fi
16555
16556 if test $enable_symvers != no; then
16557 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16558 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16559 else
16560 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16561 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16562 fi
16563
16564 if test $enable_symvers = gnu; then
16565 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16566 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16567 else
16568 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16569 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16570 fi
16571
16572 if test $enable_symvers = sun; then
16573 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16574 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16575 else
16576 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16577 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16578 fi
16579
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16581 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16582
16583 if test $enable_symvers != no ; then
16584 case ${target_os} in
16585 # The Solaris 2 runtime linker doesn't support the GNU extension of
16586 # binding the same symbol to different versions
16587 solaris2*)
16588 ;;
16589 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16590 *)
16591
16592 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16593
16594 ;;
16595 esac
16596 fi
16597
16598
16599 if test $enable_symvers = gnu; then
16600
16601 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16602
16603 fi
16604
16605 # Determine cpu count to limit testsuite parallelism.
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16607 $as_echo_n "checking the number of available CPUs... " >&6; }
16608 CPU_COUNT="0"
16609
16610 # Try generic methods
16611
16612 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16613 # 'NPROCESSORS_ONLN' are platform-specific
16614 command -v getconf >/dev/null 2>&1 && \
16615 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16616 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16617 : # empty
16618 else
16619 # 'nproc' is part of GNU Coreutils and is widely available
16620 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16621
16622 fi
16623 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16624 : # empty
16625 else
16626 # Try platform-specific preferred methods
16627 case $host_os in #(
16628 *linux*) :
16629 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16630 *darwin*) :
16631 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16632 freebsd*) :
16633 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16634 netbsd*) :
16635 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16636 solaris*) :
16637 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" ;; #(
16638 mingw*) :
16639 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16640 msys*) :
16641 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16642 cygwin*) :
16643 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16644 *) :
16645 ;;
16646 esac
16647 fi
16648 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16649 : # empty
16650 else
16651 # Try less preferred generic method
16652 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16653 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16654
16655 fi
16656 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16657 : # empty
16658 else
16659 # Try platform-specific fallback methods
16660 # They can be less accurate and slower then preferred methods
16661 case $host_os in #(
16662 *linux*) :
16663 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16664 *darwin*) :
16665 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16666 freebsd*) :
16667 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16668 netbsd*) :
16669 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16670 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16671 solaris*) :
16672 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16673 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16674 mingw*) :
16675 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16676 : # empty
16677 else
16678 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16679 fi ;; #(
16680 msys*) :
16681 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16682 cygwin*) :
16683 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16684 *) :
16685 ;;
16686 esac
16687 fi
16688 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16690 $as_echo "$CPU_COUNT" >&6; }
16691
16692 else
16693 CPU_COUNT="1"
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16695 $as_echo "unable to detect (assuming 1)" >&6; }
16696
16697 fi
16698
16699
16700 # Get target configury.
16701 . ${srcdir}/configure.tgt
16702 CFLAGS="$save_CFLAGS $XCFLAGS"
16703
16704 # Check for __sync_val_compare_and_swap, but only after the target has
16705 # had a chance to set XCFLAGS.
16706
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16708 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16709 if ${libgomp_cv_have_sync_builtins+:} false; then :
16710 $as_echo_n "(cached) " >&6
16711 else
16712
16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h. */
16715
16716 int
16717 main ()
16718 {
16719 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16720 ;
16721 return 0;
16722 }
16723 _ACEOF
16724 if ac_fn_c_try_link "$LINENO"; then :
16725 libgomp_cv_have_sync_builtins=yes
16726 else
16727 libgomp_cv_have_sync_builtins=no
16728 fi
16729 rm -f core conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16731 fi
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16733 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16734 if test $libgomp_cv_have_sync_builtins = yes; then
16735
16736 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16737
16738 fi
16739
16740 XCFLAGS="$XCFLAGS$XPCFLAGS"
16741
16742 # Add CET specific flags if CET is enabled
16743 # Check whether --enable-cet was given.
16744 if test "${enable_cet+set}" = set; then :
16745 enableval=$enable_cet;
16746 case "$enableval" in
16747 yes|no|auto) ;;
16748 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16749 esac
16750
16751 else
16752 enable_cet=no
16753 fi
16754
16755
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16757 $as_echo_n "checking for CET support... " >&6; }
16758
16759 case "$host" in
16760 i[34567]86-*-linux* | x86_64-*-linux*)
16761 case "$enable_cet" in
16762 auto)
16763 # Check if target supports multi-byte NOPs
16764 # and if assembler supports CET insn.
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16767
16768 int
16769 main ()
16770 {
16771
16772 #if !defined(__SSE2__)
16773 #error target does not support multi-byte NOPs
16774 #else
16775 asm ("setssbsy");
16776 #endif
16777
16778 ;
16779 return 0;
16780 }
16781 _ACEOF
16782 if ac_fn_c_try_compile "$LINENO"; then :
16783 enable_cet=yes
16784 else
16785 enable_cet=no
16786 fi
16787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788 ;;
16789 yes)
16790 # Check if assembler supports CET.
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793
16794 int
16795 main ()
16796 {
16797 asm ("setssbsy");
16798 ;
16799 return 0;
16800 }
16801 _ACEOF
16802 if ac_fn_c_try_compile "$LINENO"; then :
16803
16804 else
16805 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16806 fi
16807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16808 ;;
16809 esac
16810 ;;
16811 *)
16812 enable_cet=no
16813 ;;
16814 esac
16815 if test x$enable_cet = xyes; then
16816 CET_FLAGS="-fcf-protection -mshstk"
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16818 $as_echo "yes" >&6; }
16819 else
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821 $as_echo "no" >&6; }
16822 fi
16823
16824 XCFLAGS="$XCFLAGS $CET_FLAGS"
16825 FCFLAGS="$FCFLAGS $CET_FLAGS"
16826
16827
16828
16829
16830
16831 # Cleanup and exit.
16832 CFLAGS="$save_CFLAGS"
16833 cat >confcache <<\_ACEOF
16834 # This file is a shell script that caches the results of configure
16835 # tests run on this system so they can be shared between configure
16836 # scripts and configure runs, see configure's option --config-cache.
16837 # It is not useful on other systems. If it contains results you don't
16838 # want to keep, you may remove or edit it.
16839 #
16840 # config.status only pays attention to the cache file if you give it
16841 # the --recheck option to rerun configure.
16842 #
16843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16845 # following values.
16846
16847 _ACEOF
16848
16849 # The following way of writing the cache mishandles newlines in values,
16850 # but we know of no workaround that is simple, portable, and efficient.
16851 # So, we kill variables containing newlines.
16852 # Ultrix sh set writes to stderr and can't be redirected directly,
16853 # and sets the high bit in the cache file unless we assign to the vars.
16854 (
16855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16856 eval ac_val=\$$ac_var
16857 case $ac_val in #(
16858 *${as_nl}*)
16859 case $ac_var in #(
16860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16862 esac
16863 case $ac_var in #(
16864 _ | IFS | as_nl) ;; #(
16865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16866 *) { eval $ac_var=; unset $ac_var;} ;;
16867 esac ;;
16868 esac
16869 done
16870
16871 (set) 2>&1 |
16872 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16873 *${as_nl}ac_space=\ *)
16874 # `set' does not quote correctly, so add quotes: double-quote
16875 # substitution turns \\\\ into \\, and sed turns \\ into \.
16876 sed -n \
16877 "s/'/'\\\\''/g;
16878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16879 ;; #(
16880 *)
16881 # `set' quotes correctly as required by POSIX, so do not add quotes.
16882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16883 ;;
16884 esac |
16885 sort
16886 ) |
16887 sed '
16888 /^ac_cv_env_/b end
16889 t clear
16890 :clear
16891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16892 t end
16893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16894 :end' >>confcache
16895 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16896 if test -w "$cache_file"; then
16897 if test "x$cache_file" != "x/dev/null"; then
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16899 $as_echo "$as_me: updating cache $cache_file" >&6;}
16900 if test ! -f "$cache_file" || test -h "$cache_file"; then
16901 cat confcache >"$cache_file"
16902 else
16903 case $cache_file in #(
16904 */* | ?:*)
16905 mv -f confcache "$cache_file"$$ &&
16906 mv -f "$cache_file"$$ "$cache_file" ;; #(
16907 *)
16908 mv -f confcache "$cache_file" ;;
16909 esac
16910 fi
16911 fi
16912 else
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16914 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16915 fi
16916 fi
16917 rm -f confcache
16918
16919 if test ${multilib} = yes; then
16920 multilib_arg="--enable-multilib"
16921 else
16922 multilib_arg=
16923 fi
16924
16925 # Set up the set of libraries that we need to link against for libgomp.
16926 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16927 # which will force linkage against -lpthread (or equivalent for the system).
16928 # That's not 100% ideal, but about the best we can do easily.
16929 if test $enable_shared = yes; then
16930 link_gomp="-lgomp %{static: $LIBS}"
16931 else
16932 link_gomp="-lgomp $LIBS"
16933 fi
16934
16935
16936 if test "$ac_cv_fc_compiler_gnu" = yes; then
16937 USE_FORTRAN_TRUE=
16938 USE_FORTRAN_FALSE='#'
16939 else
16940 USE_FORTRAN_TRUE='#'
16941 USE_FORTRAN_FALSE=
16942 fi
16943
16944
16945 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16946 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16947 # the underscore here and update the PREREQ. If it doesn't, then we'll
16948 # need to copy this macro to our acinclude.m4.
16949 save_CFLAGS="$CFLAGS"
16950 for i in $config_path; do
16951 if test -f $srcdir/config/$i/omp-lock.h; then
16952 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16953 break
16954 fi
16955 done
16956
16957 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16958
16959 else
16960 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16961 fi
16962
16963
16964 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16965
16966 fi
16967
16968
16969 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16970
16971 fi
16972
16973
16974 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16975
16976 fi
16977
16978
16979 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16980
16981 else
16982 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16983 fi
16984
16985
16986 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16987
16988 fi
16989
16990
16991 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16992
16993 fi
16994
16995
16996 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16997
16998 fi
16999
17000
17001
17002 # If the lock fits in an integer, then arrange for Fortran to use that
17003 # integer. If it doesn't, then arrange for Fortran to use a pointer.
17004 # Except that we don't have a way at present to multi-lib the installed
17005 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
17006 # actual target.
17007 OMP_LOCK_KIND=$OMP_LOCK_SIZE
17008 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
17009 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17010 OMP_LOCK_KIND=8
17011 fi
17012 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17013 OMP_NEST_LOCK_KIND=8
17014 fi
17015 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
17016 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
17017 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17018 OMP_LOCK_25_KIND=8
17019 fi
17020 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17021 OMP_NEST_LOCK_25_KIND=8
17022 fi
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036 CFLAGS="$save_CFLAGS"
17037
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
17045 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17046 fi
17047
17048 fi
17049
17050
17051
17052
17053 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17054
17055 ac_config_files="$ac_config_files Makefile libgomp.spec"
17056
17057 #ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17058
17059 #ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
17060
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.
17079 # So, we kill variables containing newlines.
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.
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
17099 (set) 2>&1 |
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 \.
17104 sed -n \
17105 "s/'/'\\\\''/g;
17106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17107 ;; #(
17108 *)
17109 # `set' quotes correctly as required by POSIX, so do not add quotes.
17110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17111 ;;
17112 esac |
17113 sort
17114 ) |
17115 sed '
17116 /^ac_cv_env_/b end
17117 t clear
17118 :clear
17119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17120 t end
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
17125 if test "x$cache_file" != "x/dev/null"; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17127 $as_echo "$as_me: updating cache $cache_file" >&6;}
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
17140 else
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;}
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
17151 DEFS=-DHAVE_CONFIG_H
17152
17153 ac_libobjs=
17154 ac_ltlibobjs=
17155 U=
17156 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17157 # 1. Remove the extension, and $U if already installed.
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'
17164 done
17165 LIBOBJS=$ac_libobjs
17166
17167 LTLIBOBJS=$ac_ltlibobjs
17168
17169
17170 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17171 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17173 fi
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; }
17182 if test -n "$EXEEXT"; then
17183 am__EXEEXT_TRUE=
17184 am__EXEEXT_FALSE='#'
17185 else
17186 am__EXEEXT_TRUE='#'
17187 am__EXEEXT_FALSE=
17188 fi
17189
17190 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17191 as_fn_error $? "conditional \"AMDEP\" was never defined.
17192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17193 fi
17194 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17195 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17197 fi
17198 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17199 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17201 fi
17202 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17203 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17205 fi
17206 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17207 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17209 fi
17210 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17211 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined.
17212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17213 fi
17214 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17215 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17217 fi
17218 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17219 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17221 fi
17222 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17223 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17225 fi
17226 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17227 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17229 fi
17230 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17231 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17233 fi
17234
17235 : "${CONFIG_STATUS=./config.status}"
17236 ac_write_fail=0
17237 ac_clean_files_save=$ac_clean_files
17238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17240 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17241 as_write_fail=0
17242 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17243 #! $SHELL
17244 # Generated by $as_me.
17245 # Run this file to recreate the current configuration.
17246 # Compiler output produced by configure, useful for debugging
17247 # configure, is in config.log if it exists.
17248
17249 debug=false
17250 ac_cs_recheck=false
17251 ac_cs_silent=false
17252
17253 SHELL=\${CONFIG_SHELL-$SHELL}
17254 export SHELL
17255 _ASEOF
17256 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17257 ## -------------------- ##
17258 ## M4sh Initialization. ##
17259 ## -------------------- ##
17260
17261 # Be more Bourne compatible
17262 DUALCASE=1; export DUALCASE # for MKS sh
17263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17264 emulate sh
17265 NULLCMD=:
17266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17267 # is contrary to our usage. Disable this feature.
17268 alias -g '${1+"$@"}'='"$@"'
17269 setopt NO_GLOB_SUBST
17270 else
17271 case `(set -o) 2>/dev/null` in #(
17272 *posix*) :
17273 set -o posix ;; #(
17274 *) :
17275 ;;
17276 esac
17277 fi
17278
17279
17280 as_nl='
17281 '
17282 export as_nl
17283 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17284 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17285 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17287 # Prefer a ksh shell builtin over an external printf program on Solaris,
17288 # but without wasting forks for bash or zsh.
17289 if test -z "$BASH_VERSION$ZSH_VERSION" \
17290 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17291 as_echo='print -r --'
17292 as_echo_n='print -rn --'
17293 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17294 as_echo='printf %s\n'
17295 as_echo_n='printf %s'
17296 else
17297 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17298 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17299 as_echo_n='/usr/ucb/echo -n'
17300 else
17301 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17302 as_echo_n_body='eval
17303 arg=$1;
17304 case $arg in #(
17305 *"$as_nl"*)
17306 expr "X$arg" : "X\\(.*\\)$as_nl";
17307 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17308 esac;
17309 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17310 '
17311 export as_echo_n_body
17312 as_echo_n='sh -c $as_echo_n_body as_echo'
17313 fi
17314 export as_echo_body
17315 as_echo='sh -c $as_echo_body as_echo'
17316 fi
17317
17318 # The user is always right.
17319 if test "${PATH_SEPARATOR+set}" != set; then
17320 PATH_SEPARATOR=:
17321 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17322 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17323 PATH_SEPARATOR=';'
17324 }
17325 fi
17326
17327
17328 # IFS
17329 # We need space, tab and new line, in precisely that order. Quoting is
17330 # there to prevent editors from complaining about space-tab.
17331 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17332 # splitting by setting IFS to empty value.)
17333 IFS=" "" $as_nl"
17334
17335 # Find who we are. Look in the path if we contain no directory separator.
17336 as_myself=
17337 case $0 in #((
17338 *[\\/]* ) as_myself=$0 ;;
17339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17340 for as_dir in $PATH
17341 do
17342 IFS=$as_save_IFS
17343 test -z "$as_dir" && as_dir=.
17344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17345 done
17346 IFS=$as_save_IFS
17347
17348 ;;
17349 esac
17350 # We did not find ourselves, most probably we were run as `sh COMMAND'
17351 # in which case we are not to be found in the path.
17352 if test "x$as_myself" = x; then
17353 as_myself=$0
17354 fi
17355 if test ! -f "$as_myself"; then
17356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17357 exit 1
17358 fi
17359
17360 # Unset variables that we do not need and which cause bugs (e.g. in
17361 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17362 # suppresses any "Segmentation fault" message there. '((' could
17363 # trigger a bug in pdksh 5.2.14.
17364 for as_var in BASH_ENV ENV MAIL MAILPATH
17365 do eval test x\${$as_var+set} = xset \
17366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17367 done
17368 PS1='$ '
17369 PS2='> '
17370 PS4='+ '
17371
17372 # NLS nuisances.
17373 LC_ALL=C
17374 export LC_ALL
17375 LANGUAGE=C
17376 export LANGUAGE
17377
17378 # CDPATH.
17379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17380
17381
17382 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17383 # ----------------------------------------
17384 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17385 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17386 # script with STATUS, using 1 if that was 0.
17387 as_fn_error ()
17388 {
17389 as_status=$1; test $as_status -eq 0 && as_status=1
17390 if test "$4"; then
17391 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17392 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17393 fi
17394 $as_echo "$as_me: error: $2" >&2
17395 as_fn_exit $as_status
17396 } # as_fn_error
17397
17398
17399 # as_fn_set_status STATUS
17400 # -----------------------
17401 # Set $? to STATUS, without forking.
17402 as_fn_set_status ()
17403 {
17404 return $1
17405 } # as_fn_set_status
17406
17407 # as_fn_exit STATUS
17408 # -----------------
17409 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17410 as_fn_exit ()
17411 {
17412 set +e
17413 as_fn_set_status $1
17414 exit $1
17415 } # as_fn_exit
17416
17417 # as_fn_unset VAR
17418 # ---------------
17419 # Portably unset VAR.
17420 as_fn_unset ()
17421 {
17422 { eval $1=; unset $1;}
17423 }
17424 as_unset=as_fn_unset
17425 # as_fn_append VAR VALUE
17426 # ----------------------
17427 # Append the text in VALUE to the end of the definition contained in VAR. Take
17428 # advantage of any shell optimizations that allow amortized linear growth over
17429 # repeated appends, instead of the typical quadratic growth present in naive
17430 # implementations.
17431 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17432 eval 'as_fn_append ()
17433 {
17434 eval $1+=\$2
17435 }'
17436 else
17437 as_fn_append ()
17438 {
17439 eval $1=\$$1\$2
17440 }
17441 fi # as_fn_append
17442
17443 # as_fn_arith ARG...
17444 # ------------------
17445 # Perform arithmetic evaluation on the ARGs, and store the result in the
17446 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17447 # must be portable across $(()) and expr.
17448 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17449 eval 'as_fn_arith ()
17450 {
17451 as_val=$(( $* ))
17452 }'
17453 else
17454 as_fn_arith ()
17455 {
17456 as_val=`expr "$@" || test $? -eq 1`
17457 }
17458 fi # as_fn_arith
17459
17460
17461 if expr a : '\(a\)' >/dev/null 2>&1 &&
17462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17463 as_expr=expr
17464 else
17465 as_expr=false
17466 fi
17467
17468 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17469 as_basename=basename
17470 else
17471 as_basename=false
17472 fi
17473
17474 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17475 as_dirname=dirname
17476 else
17477 as_dirname=false
17478 fi
17479
17480 as_me=`$as_basename -- "$0" ||
17481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17482 X"$0" : 'X\(//\)$' \| \
17483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17484 $as_echo X/"$0" |
17485 sed '/^.*\/\([^/][^/]*\)\/*$/{
17486 s//\1/
17487 q
17488 }
17489 /^X\/\(\/\/\)$/{
17490 s//\1/
17491 q
17492 }
17493 /^X\/\(\/\).*/{
17494 s//\1/
17495 q
17496 }
17497 s/.*/./; q'`
17498
17499 # Avoid depending upon Character Ranges.
17500 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17501 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17502 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17503 as_cr_digits='0123456789'
17504 as_cr_alnum=$as_cr_Letters$as_cr_digits
17505
17506 ECHO_C= ECHO_N= ECHO_T=
17507 case `echo -n x` in #(((((
17508 -n*)
17509 case `echo 'xy\c'` in
17510 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17511 xy) ECHO_C='\c';;
17512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17513 ECHO_T=' ';;
17514 esac;;
17515 *)
17516 ECHO_N='-n';;
17517 esac
17518
17519 rm -f conf$$ conf$$.exe conf$$.file
17520 if test -d conf$$.dir; then
17521 rm -f conf$$.dir/conf$$.file
17522 else
17523 rm -f conf$$.dir
17524 mkdir conf$$.dir 2>/dev/null
17525 fi
17526 if (echo >conf$$.file) 2>/dev/null; then
17527 if ln -s conf$$.file conf$$ 2>/dev/null; then
17528 as_ln_s='ln -s'
17529 # ... but there are two gotchas:
17530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17532 # In both cases, we have to default to `cp -pR'.
17533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17534 as_ln_s='cp -pR'
17535 elif ln conf$$.file conf$$ 2>/dev/null; then
17536 as_ln_s=ln
17537 else
17538 as_ln_s='cp -pR'
17539 fi
17540 else
17541 as_ln_s='cp -pR'
17542 fi
17543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17544 rmdir conf$$.dir 2>/dev/null
17545
17546
17547 # as_fn_mkdir_p
17548 # -------------
17549 # Create "$as_dir" as a directory, including parents if necessary.
17550 as_fn_mkdir_p ()
17551 {
17552
17553 case $as_dir in #(
17554 -*) as_dir=./$as_dir;;
17555 esac
17556 test -d "$as_dir" || eval $as_mkdir_p || {
17557 as_dirs=
17558 while :; do
17559 case $as_dir in #(
17560 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17561 *) as_qdir=$as_dir;;
17562 esac
17563 as_dirs="'$as_qdir' $as_dirs"
17564 as_dir=`$as_dirname -- "$as_dir" ||
17565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17566 X"$as_dir" : 'X\(//\)[^/]' \| \
17567 X"$as_dir" : 'X\(//\)$' \| \
17568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17569 $as_echo X"$as_dir" |
17570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17571 s//\1/
17572 q
17573 }
17574 /^X\(\/\/\)[^/].*/{
17575 s//\1/
17576 q
17577 }
17578 /^X\(\/\/\)$/{
17579 s//\1/
17580 q
17581 }
17582 /^X\(\/\).*/{
17583 s//\1/
17584 q
17585 }
17586 s/.*/./; q'`
17587 test -d "$as_dir" && break
17588 done
17589 test -z "$as_dirs" || eval "mkdir $as_dirs"
17590 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17591
17592
17593 } # as_fn_mkdir_p
17594 if mkdir -p . 2>/dev/null; then
17595 as_mkdir_p='mkdir -p "$as_dir"'
17596 else
17597 test -d ./-p && rmdir ./-p
17598 as_mkdir_p=false
17599 fi
17600
17601
17602 # as_fn_executable_p FILE
17603 # -----------------------
17604 # Test if FILE is an executable regular file.
17605 as_fn_executable_p ()
17606 {
17607 test -f "$1" && test -x "$1"
17608 } # as_fn_executable_p
17609 as_test_x='test -x'
17610 as_executable_p=as_fn_executable_p
17611
17612 # Sed expression to map a string onto a valid CPP name.
17613 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17614
17615 # Sed expression to map a string onto a valid variable name.
17616 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17617
17618
17619 exec 6>&1
17620 ## ----------------------------------- ##
17621 ## Main body of $CONFIG_STATUS script. ##
17622 ## ----------------------------------- ##
17623 _ASEOF
17624 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17625
17626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17627 # Save the log message, to keep $0 and so on meaningful, and to
17628 # report actual input values of CONFIG_FILES etc. instead of their
17629 # values after options handling.
17630 ac_log="
17631 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17632 generated by GNU Autoconf 2.69. Invocation command line was
17633
17634 CONFIG_FILES = $CONFIG_FILES
17635 CONFIG_HEADERS = $CONFIG_HEADERS
17636 CONFIG_LINKS = $CONFIG_LINKS
17637 CONFIG_COMMANDS = $CONFIG_COMMANDS
17638 $ $0 $@
17639
17640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17641 "
17642
17643 _ACEOF
17644
17645 case $ac_config_files in *"
17646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17647 esac
17648
17649 case $ac_config_headers in *"
17650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17651 esac
17652
17653
17654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17655 # Files that config.status was made for.
17656 config_files="$ac_config_files"
17657 config_headers="$ac_config_headers"
17658 config_commands="$ac_config_commands"
17659
17660 _ACEOF
17661
17662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17663 ac_cs_usage="\
17664 \`$as_me' instantiates files and other configuration actions
17665 from templates according to the current configuration. Unless the files
17666 and actions are specified as TAGs, all are instantiated by default.
17667
17668 Usage: $0 [OPTION]... [TAG]...
17669
17670 -h, --help print this help, then exit
17671 -V, --version print version number and configuration settings, then exit
17672 --config print configuration, then exit
17673 -q, --quiet, --silent
17674 do not print progress messages
17675 -d, --debug don't remove temporary files
17676 --recheck update $as_me by reconfiguring in the same conditions
17677 --file=FILE[:TEMPLATE]
17678 instantiate the configuration file FILE
17679 --header=FILE[:TEMPLATE]
17680 instantiate the configuration header FILE
17681
17682 Configuration files:
17683 $config_files
17684
17685 Configuration headers:
17686 $config_headers
17687
17688 Configuration commands:
17689 $config_commands
17690
17691 Report bugs to the package provider.
17692 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17693 General help using GNU software: <http://www.gnu.org/gethelp/>."
17694
17695 _ACEOF
17696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17697 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17698 ac_cs_version="\\
17699 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17700 configured by $0, generated by GNU Autoconf 2.69,
17701 with options \\"\$ac_cs_config\\"
17702
17703 Copyright (C) 2012 Free Software Foundation, Inc.
17704 This config.status script is free software; the Free Software Foundation
17705 gives unlimited permission to copy, distribute and modify it."
17706
17707 ac_pwd='$ac_pwd'
17708 srcdir='$srcdir'
17709 INSTALL='$INSTALL'
17710 MKDIR_P='$MKDIR_P'
17711 AWK='$AWK'
17712 test -n "\$AWK" || AWK=awk
17713 _ACEOF
17714
17715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17716 # The default lists apply if the user does not specify any file.
17717 ac_need_defaults=:
17718 while test $# != 0
17719 do
17720 case $1 in
17721 --*=?*)
17722 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17723 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17724 ac_shift=:
17725 ;;
17726 --*=)
17727 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17728 ac_optarg=
17729 ac_shift=:
17730 ;;
17731 *)
17732 ac_option=$1
17733 ac_optarg=$2
17734 ac_shift=shift
17735 ;;
17736 esac
17737
17738 case $ac_option in
17739 # Handling of the options.
17740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17741 ac_cs_recheck=: ;;
17742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17743 $as_echo "$ac_cs_version"; exit ;;
17744 --config | --confi | --conf | --con | --co | --c )
17745 $as_echo "$ac_cs_config"; exit ;;
17746 --debug | --debu | --deb | --de | --d | -d )
17747 debug=: ;;
17748 --file | --fil | --fi | --f )
17749 $ac_shift
17750 case $ac_optarg in
17751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17752 '') as_fn_error $? "missing file argument" ;;
17753 esac
17754 as_fn_append CONFIG_FILES " '$ac_optarg'"
17755 ac_need_defaults=false;;
17756 --header | --heade | --head | --hea )
17757 $ac_shift
17758 case $ac_optarg in
17759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17760 esac
17761 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17762 ac_need_defaults=false;;
17763 --he | --h)
17764 # Conflict between --help and --header
17765 as_fn_error $? "ambiguous option: \`$1'
17766 Try \`$0 --help' for more information.";;
17767 --help | --hel | -h )
17768 $as_echo "$ac_cs_usage"; exit ;;
17769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17770 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17771 ac_cs_silent=: ;;
17772
17773 # This is an error.
17774 -*) as_fn_error $? "unrecognized option: \`$1'
17775 Try \`$0 --help' for more information." ;;
17776
17777 *) as_fn_append ac_config_targets " $1"
17778 ac_need_defaults=false ;;
17779
17780 esac
17781 shift
17782 done
17783
17784 ac_configure_extra_args=
17785
17786 if $ac_cs_silent; then
17787 exec 6>/dev/null
17788 ac_configure_extra_args="$ac_configure_extra_args --silent"
17789 fi
17790
17791 _ACEOF
17792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17793 if \$ac_cs_recheck; then
17794 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17795 shift
17796 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17797 CONFIG_SHELL='$SHELL'
17798 export CONFIG_SHELL
17799 exec "\$@"
17800 fi
17801
17802 _ACEOF
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804 exec 5>>config.log
17805 {
17806 echo
17807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17808 ## Running $as_me. ##
17809 _ASBOX
17810 $as_echo "$ac_log"
17811 } >&5
17812
17813 _ACEOF
17814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17815 #
17816 # INIT-COMMANDS
17817 #
17818
17819 srcdir="$srcdir"
17820 host="$host"
17821 target="$target"
17822 with_multisubdir="$with_multisubdir"
17823 with_multisrctop="$with_multisrctop"
17824 with_target_subdir="$with_target_subdir"
17825 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17826 multi_basedir="$multi_basedir"
17827 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17828 CC="$CC"
17829 CXX="$CXX"
17830 GFORTRAN="$GFORTRAN"
17831 GDC="$GDC"
17832 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17833
17834
17835 # The HP-UX ksh and POSIX shell print the target directory to stdout
17836 # if CDPATH is set.
17837 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17838
17839 sed_quote_subst='$sed_quote_subst'
17840 double_quote_subst='$double_quote_subst'
17841 delay_variable_subst='$delay_variable_subst'
17842 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17843 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17844 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17845 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17846 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17847 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17848 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17849 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17850 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17851 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17852 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17853 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17854 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17855 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17856 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17857 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17858 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17859 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17860 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17861 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17862 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17863 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17864 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17865 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17866 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17867 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17868 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17869 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17870 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17871 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17872 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17873 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17874 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17875 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17876 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17877 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17878 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17879 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17880 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17881 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17882 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17883 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17884 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17885 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17886 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17887 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17888 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17889 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17890 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"`'
17891 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17892 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17893 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17894 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17895 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17896 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17897 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17898 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17899 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17900 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17901 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17902 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17903 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17904 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17905 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17906 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17907 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17908 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17909 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17910 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17911 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17912 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17913 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17914 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17915 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17916 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17917 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17918 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17919 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17920 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17921 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17922 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17923 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17924 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17925 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17926 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17927 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17928 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17929 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17930 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17931 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17932 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17933 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17934 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17935 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17936 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17937 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17938 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17939 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17940 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17941 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17942 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17943 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17944 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17945 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17946 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17947 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17948 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17949 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17950 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17951 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17952 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17953 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17954 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17955 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17956 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17957 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17958 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17959 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17960 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17961 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17962 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17963 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17964 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17965 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17966 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17967 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17968 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17969 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17970 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17971 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17972 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17973 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17974 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17975 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17976 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17977 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17978 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17979 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17980 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17981 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17982 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17983 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17984 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17985 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17986 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17987 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17988 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17989 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17990 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17991 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17992 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17993 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17994 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17995 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17996 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17997 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17998 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17999 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18000 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18001 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18002 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18003 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18004 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18005 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18006 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18007 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18008 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18009 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18010 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18011 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18012 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18013 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18014 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18015 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18016 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18017
18018 LTCC='$LTCC'
18019 LTCFLAGS='$LTCFLAGS'
18020 compiler='$compiler_DEFAULT'
18021
18022 # A function that is used when there is no print builtin or printf.
18023 func_fallback_echo ()
18024 {
18025 eval 'cat <<_LTECHO_EOF
18026 \$1
18027 _LTECHO_EOF'
18028 }
18029
18030 # Quote evaled strings.
18031 for var in SHELL \
18032 ECHO \
18033 SED \
18034 GREP \
18035 EGREP \
18036 FGREP \
18037 LD \
18038 NM \
18039 LN_S \
18040 lt_SP2NL \
18041 lt_NL2SP \
18042 reload_flag \
18043 OBJDUMP \
18044 deplibs_check_method \
18045 file_magic_cmd \
18046 AR \
18047 AR_FLAGS \
18048 STRIP \
18049 RANLIB \
18050 CC \
18051 CFLAGS \
18052 compiler \
18053 lt_cv_sys_global_symbol_pipe \
18054 lt_cv_sys_global_symbol_to_cdecl \
18055 lt_cv_sys_global_symbol_to_c_name_address \
18056 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18057 lt_prog_compiler_no_builtin_flag \
18058 lt_prog_compiler_wl \
18059 lt_prog_compiler_pic \
18060 lt_prog_compiler_static \
18061 lt_cv_prog_compiler_c_o \
18062 need_locks \
18063 DSYMUTIL \
18064 NMEDIT \
18065 LIPO \
18066 OTOOL \
18067 OTOOL64 \
18068 shrext_cmds \
18069 export_dynamic_flag_spec \
18070 whole_archive_flag_spec \
18071 compiler_needs_object \
18072 with_gnu_ld \
18073 allow_undefined_flag \
18074 no_undefined_flag \
18075 hardcode_libdir_flag_spec \
18076 hardcode_libdir_flag_spec_ld \
18077 hardcode_libdir_separator \
18078 fix_srcfile_path \
18079 exclude_expsyms \
18080 include_expsyms \
18081 file_list_spec \
18082 variables_saved_for_relink \
18083 libname_spec \
18084 library_names_spec \
18085 soname_spec \
18086 install_override_mode \
18087 finish_eval \
18088 old_striplib \
18089 striplib \
18090 compiler_lib_search_dirs \
18091 predep_objects \
18092 postdep_objects \
18093 predeps \
18094 postdeps \
18095 compiler_lib_search_path \
18096 LD_FC \
18097 reload_flag_FC \
18098 compiler_FC \
18099 lt_prog_compiler_no_builtin_flag_FC \
18100 lt_prog_compiler_wl_FC \
18101 lt_prog_compiler_pic_FC \
18102 lt_prog_compiler_static_FC \
18103 lt_cv_prog_compiler_c_o_FC \
18104 export_dynamic_flag_spec_FC \
18105 whole_archive_flag_spec_FC \
18106 compiler_needs_object_FC \
18107 with_gnu_ld_FC \
18108 allow_undefined_flag_FC \
18109 no_undefined_flag_FC \
18110 hardcode_libdir_flag_spec_FC \
18111 hardcode_libdir_flag_spec_ld_FC \
18112 hardcode_libdir_separator_FC \
18113 fix_srcfile_path_FC \
18114 exclude_expsyms_FC \
18115 include_expsyms_FC \
18116 file_list_spec_FC \
18117 compiler_lib_search_dirs_FC \
18118 predep_objects_FC \
18119 postdep_objects_FC \
18120 predeps_FC \
18121 postdeps_FC \
18122 compiler_lib_search_path_FC; do
18123 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18124 *[\\\\\\\`\\"\\\$]*)
18125 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18126 ;;
18127 *)
18128 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18129 ;;
18130 esac
18131 done
18132
18133 # Double-quote double-evaled strings.
18134 for var in reload_cmds \
18135 old_postinstall_cmds \
18136 old_postuninstall_cmds \
18137 old_archive_cmds \
18138 extract_expsyms_cmds \
18139 old_archive_from_new_cmds \
18140 old_archive_from_expsyms_cmds \
18141 archive_cmds \
18142 archive_expsym_cmds \
18143 module_cmds \
18144 module_expsym_cmds \
18145 export_symbols_cmds \
18146 prelink_cmds \
18147 postinstall_cmds \
18148 postuninstall_cmds \
18149 finish_cmds \
18150 sys_lib_search_path_spec \
18151 sys_lib_dlsearch_path_spec \
18152 reload_cmds_FC \
18153 old_archive_cmds_FC \
18154 old_archive_from_new_cmds_FC \
18155 old_archive_from_expsyms_cmds_FC \
18156 archive_cmds_FC \
18157 archive_expsym_cmds_FC \
18158 module_cmds_FC \
18159 module_expsym_cmds_FC \
18160 export_symbols_cmds_FC \
18161 prelink_cmds_FC; do
18162 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18163 *[\\\\\\\`\\"\\\$]*)
18164 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18165 ;;
18166 *)
18167 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18168 ;;
18169 esac
18170 done
18171
18172 ac_aux_dir='$ac_aux_dir'
18173 xsi_shell='$xsi_shell'
18174 lt_shell_append='$lt_shell_append'
18175
18176 # See if we are running on zsh, and set the options which allow our
18177 # commands through without removal of \ escapes INIT.
18178 if test -n "\${ZSH_VERSION+set}" ; then
18179 setopt NO_GLOB_SUBST
18180 fi
18181
18182
18183 PACKAGE='$PACKAGE'
18184 VERSION='$VERSION'
18185 TIMESTAMP='$TIMESTAMP'
18186 RM='$RM'
18187 ofile='$ofile'
18188
18189
18190
18191
18192
18193
18194 _ACEOF
18195
18196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18197
18198 # Handling of arguments.
18199 for ac_config_target in $ac_config_targets
18200 do
18201 case $ac_config_target in
18202 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18203 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18204 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18205 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18206 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18207 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18208 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18209 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18210 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18211 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18212 #"testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18213 #"testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18214
18215 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18216 esac
18217 done
18218
18219
18220 # If the user did not use the arguments to specify the items to instantiate,
18221 # then the envvar interface is used. Set only those that are not.
18222 # We use the long form for the default assignment because of an extremely
18223 # bizarre bug on SunOS 4.1.3.
18224 if $ac_need_defaults; then
18225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18228 fi
18229
18230 # Have a temporary directory for convenience. Make it in the build tree
18231 # simply because there is no reason against having it here, and in addition,
18232 # creating and moving files from /tmp can sometimes cause problems.
18233 # Hook for its removal unless debugging.
18234 # Note that there is a small window in which the directory will not be cleaned:
18235 # after its creation but before its name has been assigned to `$tmp'.
18236 $debug ||
18237 {
18238 tmp= ac_tmp=
18239 trap 'exit_status=$?
18240 : "${ac_tmp:=$tmp}"
18241 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18242 ' 0
18243 trap 'as_fn_exit 1' 1 2 13 15
18244 }
18245 # Create a (secure) tmp directory for tmp files.
18246
18247 {
18248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18249 test -d "$tmp"
18250 } ||
18251 {
18252 tmp=./conf$$-$RANDOM
18253 (umask 077 && mkdir "$tmp")
18254 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18255 ac_tmp=$tmp
18256
18257 # Set up the scripts for CONFIG_FILES section.
18258 # No need to generate them if there are no CONFIG_FILES.
18259 # This happens for instance with `./config.status config.h'.
18260 if test -n "$CONFIG_FILES"; then
18261
18262
18263 ac_cr=`echo X | tr X '\015'`
18264 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18265 # But we know of no other shell where ac_cr would be empty at this
18266 # point, so we can use a bashism as a fallback.
18267 if test "x$ac_cr" = x; then
18268 eval ac_cr=\$\'\\r\'
18269 fi
18270 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18271 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18272 ac_cs_awk_cr='\\r'
18273 else
18274 ac_cs_awk_cr=$ac_cr
18275 fi
18276
18277 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18278 _ACEOF
18279
18280
18281 {
18282 echo "cat >conf$$subs.awk <<_ACEOF" &&
18283 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18284 echo "_ACEOF"
18285 } >conf$$subs.sh ||
18286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18287 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18288 ac_delim='%!_!# '
18289 for ac_last_try in false false false false false :; do
18290 . ./conf$$subs.sh ||
18291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18292
18293 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18294 if test $ac_delim_n = $ac_delim_num; then
18295 break
18296 elif $ac_last_try; then
18297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18298 else
18299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18300 fi
18301 done
18302 rm -f conf$$subs.sh
18303
18304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18305 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18306 _ACEOF
18307 sed -n '
18308 h
18309 s/^/S["/; s/!.*/"]=/
18310 p
18311 g
18312 s/^[^!]*!//
18313 :repl
18314 t repl
18315 s/'"$ac_delim"'$//
18316 t delim
18317 :nl
18318 h
18319 s/\(.\{148\}\)..*/\1/
18320 t more1
18321 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18322 p
18323 n
18324 b repl
18325 :more1
18326 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18327 p
18328 g
18329 s/.\{148\}//
18330 t nl
18331 :delim
18332 h
18333 s/\(.\{148\}\)..*/\1/
18334 t more2
18335 s/["\\]/\\&/g; s/^/"/; s/$/"/
18336 p
18337 b
18338 :more2
18339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18340 p
18341 g
18342 s/.\{148\}//
18343 t delim
18344 ' <conf$$subs.awk | sed '
18345 /^[^""]/{
18346 N
18347 s/\n//
18348 }
18349 ' >>$CONFIG_STATUS || ac_write_fail=1
18350 rm -f conf$$subs.awk
18351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18352 _ACAWK
18353 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18354 for (key in S) S_is_set[key] = 1
18355 FS = ""
18356
18357 }
18358 {
18359 line = $ 0
18360 nfields = split(line, field, "@")
18361 substed = 0
18362 len = length(field[1])
18363 for (i = 2; i < nfields; i++) {
18364 key = field[i]
18365 keylen = length(key)
18366 if (S_is_set[key]) {
18367 value = S[key]
18368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18369 len += length(value) + length(field[++i])
18370 substed = 1
18371 } else
18372 len += 1 + keylen
18373 }
18374
18375 print line
18376 }
18377
18378 _ACAWK
18379 _ACEOF
18380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18381 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18383 else
18384 cat
18385 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18387 _ACEOF
18388
18389 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18390 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18391 # trailing colons and then remove the whole line if VPATH becomes empty
18392 # (actually we leave an empty line to preserve line numbers).
18393 if test "x$srcdir" = x.; then
18394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18395 h
18396 s///
18397 s/^/:/
18398 s/[ ]*$/:/
18399 s/:\$(srcdir):/:/g
18400 s/:\${srcdir}:/:/g
18401 s/:@srcdir@:/:/g
18402 s/^:*//
18403 s/:*$//
18404 x
18405 s/\(=[ ]*\).*/\1/
18406 G
18407 s/\n//
18408 s/^[^=]*=[ ]*$//
18409 }'
18410 fi
18411
18412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18413 fi # test -n "$CONFIG_FILES"
18414
18415 # Set up the scripts for CONFIG_HEADERS section.
18416 # No need to generate them if there are no CONFIG_HEADERS.
18417 # This happens for instance with `./config.status Makefile'.
18418 if test -n "$CONFIG_HEADERS"; then
18419 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18420 BEGIN {
18421 _ACEOF
18422
18423 # Transform confdefs.h into an awk script `defines.awk', embedded as
18424 # here-document in config.status, that substitutes the proper values into
18425 # config.h.in to produce config.h.
18426
18427 # Create a delimiter string that does not exist in confdefs.h, to ease
18428 # handling of long lines.
18429 ac_delim='%!_!# '
18430 for ac_last_try in false false :; do
18431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18432 if test -z "$ac_tt"; then
18433 break
18434 elif $ac_last_try; then
18435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18436 else
18437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18438 fi
18439 done
18440
18441 # For the awk script, D is an array of macro values keyed by name,
18442 # likewise P contains macro parameters if any. Preserve backslash
18443 # newline sequences.
18444
18445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18446 sed -n '
18447 s/.\{148\}/&'"$ac_delim"'/g
18448 t rset
18449 :rset
18450 s/^[ ]*#[ ]*define[ ][ ]*/ /
18451 t def
18452 d
18453 :def
18454 s/\\$//
18455 t bsnl
18456 s/["\\]/\\&/g
18457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18458 D["\1"]=" \3"/p
18459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18460 d
18461 :bsnl
18462 s/["\\]/\\&/g
18463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18464 D["\1"]=" \3\\\\\\n"\\/p
18465 t cont
18466 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18467 t cont
18468 d
18469 :cont
18470 n
18471 s/.\{148\}/&'"$ac_delim"'/g
18472 t clear
18473 :clear
18474 s/\\$//
18475 t bsnlc
18476 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18477 d
18478 :bsnlc
18479 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18480 b cont
18481 ' <confdefs.h | sed '
18482 s/'"$ac_delim"'/"\\\
18483 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18484
18485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18486 for (key in D) D_is_set[key] = 1
18487 FS = ""
18488 }
18489 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18490 line = \$ 0
18491 split(line, arg, " ")
18492 if (arg[1] == "#") {
18493 defundef = arg[2]
18494 mac1 = arg[3]
18495 } else {
18496 defundef = substr(arg[1], 2)
18497 mac1 = arg[2]
18498 }
18499 split(mac1, mac2, "(") #)
18500 macro = mac2[1]
18501 prefix = substr(line, 1, index(line, defundef) - 1)
18502 if (D_is_set[macro]) {
18503 # Preserve the white space surrounding the "#".
18504 print prefix "define", macro P[macro] D[macro]
18505 next
18506 } else {
18507 # Replace #undef with comments. This is necessary, for example,
18508 # in the case of _POSIX_SOURCE, which is predefined and required
18509 # on some systems where configure will not decide to define it.
18510 if (defundef == "undef") {
18511 print "/*", prefix defundef, macro, "*/"
18512 next
18513 }
18514 }
18515 }
18516 { print }
18517 _ACAWK
18518 _ACEOF
18519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18521 fi # test -n "$CONFIG_HEADERS"
18522
18523
18524 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18525 shift
18526 for ac_tag
18527 do
18528 case $ac_tag in
18529 :[FHLC]) ac_mode=$ac_tag; continue;;
18530 esac
18531 case $ac_mode$ac_tag in
18532 :[FHL]*:*);;
18533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18534 :[FH]-) ac_tag=-:-;;
18535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18536 esac
18537 ac_save_IFS=$IFS
18538 IFS=:
18539 set x $ac_tag
18540 IFS=$ac_save_IFS
18541 shift
18542 ac_file=$1
18543 shift
18544
18545 case $ac_mode in
18546 :L) ac_source=$1;;
18547 :[FH])
18548 ac_file_inputs=
18549 for ac_f
18550 do
18551 case $ac_f in
18552 -) ac_f="$ac_tmp/stdin";;
18553 *) # Look for the file first in the build tree, then in the source tree
18554 # (if the path is not absolute). The absolute path cannot be DOS-style,
18555 # because $ac_f cannot contain `:'.
18556 test -f "$ac_f" ||
18557 case $ac_f in
18558 [\\/$]*) false;;
18559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18560 esac ||
18561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18562 esac
18563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18564 as_fn_append ac_file_inputs " '$ac_f'"
18565 done
18566
18567 # Let's still pretend it is `configure' which instantiates (i.e., don't
18568 # use $as_me), people would be surprised to read:
18569 # /* config.h. Generated by config.status. */
18570 configure_input='Generated from '`
18571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18572 `' by configure.'
18573 if test x"$ac_file" != x-; then
18574 configure_input="$ac_file. $configure_input"
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18576 $as_echo "$as_me: creating $ac_file" >&6;}
18577 fi
18578 # Neutralize special characters interpreted by sed in replacement strings.
18579 case $configure_input in #(
18580 *\&* | *\|* | *\\* )
18581 ac_sed_conf_input=`$as_echo "$configure_input" |
18582 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18583 *) ac_sed_conf_input=$configure_input;;
18584 esac
18585
18586 case $ac_tag in
18587 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18589 esac
18590 ;;
18591 esac
18592
18593 ac_dir=`$as_dirname -- "$ac_file" ||
18594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18595 X"$ac_file" : 'X\(//\)[^/]' \| \
18596 X"$ac_file" : 'X\(//\)$' \| \
18597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18598 $as_echo X"$ac_file" |
18599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18600 s//\1/
18601 q
18602 }
18603 /^X\(\/\/\)[^/].*/{
18604 s//\1/
18605 q
18606 }
18607 /^X\(\/\/\)$/{
18608 s//\1/
18609 q
18610 }
18611 /^X\(\/\).*/{
18612 s//\1/
18613 q
18614 }
18615 s/.*/./; q'`
18616 as_dir="$ac_dir"; as_fn_mkdir_p
18617 ac_builddir=.
18618
18619 case "$ac_dir" in
18620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18621 *)
18622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18623 # A ".." for each directory in $ac_dir_suffix.
18624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18625 case $ac_top_builddir_sub in
18626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18628 esac ;;
18629 esac
18630 ac_abs_top_builddir=$ac_pwd
18631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18632 # for backward compatibility:
18633 ac_top_builddir=$ac_top_build_prefix
18634
18635 case $srcdir in
18636 .) # We are building in place.
18637 ac_srcdir=.
18638 ac_top_srcdir=$ac_top_builddir_sub
18639 ac_abs_top_srcdir=$ac_pwd ;;
18640 [\\/]* | ?:[\\/]* ) # Absolute name.
18641 ac_srcdir=$srcdir$ac_dir_suffix;
18642 ac_top_srcdir=$srcdir
18643 ac_abs_top_srcdir=$srcdir ;;
18644 *) # Relative name.
18645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18646 ac_top_srcdir=$ac_top_build_prefix$srcdir
18647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18648 esac
18649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18650
18651
18652 case $ac_mode in
18653 :F)
18654 #
18655 # CONFIG_FILE
18656 #
18657
18658 case $INSTALL in
18659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18661 esac
18662 ac_MKDIR_P=$MKDIR_P
18663 case $MKDIR_P in
18664 [\\/$]* | ?:[\\/]* ) ;;
18665 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18666 esac
18667 _ACEOF
18668
18669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18670 # If the template does not know about datarootdir, expand it.
18671 # FIXME: This hack should be removed a few years after 2.60.
18672 ac_datarootdir_hack=; ac_datarootdir_seen=
18673 ac_sed_dataroot='
18674 /datarootdir/ {
18675 p
18676 q
18677 }
18678 /@datadir@/p
18679 /@docdir@/p
18680 /@infodir@/p
18681 /@localedir@/p
18682 /@mandir@/p'
18683 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18684 *datarootdir*) ac_datarootdir_seen=yes;;
18685 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18687 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18688 _ACEOF
18689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18690 ac_datarootdir_hack='
18691 s&@datadir@&$datadir&g
18692 s&@docdir@&$docdir&g
18693 s&@infodir@&$infodir&g
18694 s&@localedir@&$localedir&g
18695 s&@mandir@&$mandir&g
18696 s&\\\${datarootdir}&$datarootdir&g' ;;
18697 esac
18698 _ACEOF
18699
18700 # Neutralize VPATH when `$srcdir' = `.'.
18701 # Shell code in configure.ac might set extrasub.
18702 # FIXME: do we really want to maintain this feature?
18703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18704 ac_sed_extra="$ac_vpsub
18705 $extrasub
18706 _ACEOF
18707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18708 :t
18709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18710 s|@configure_input@|$ac_sed_conf_input|;t t
18711 s&@top_builddir@&$ac_top_builddir_sub&;t t
18712 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18713 s&@srcdir@&$ac_srcdir&;t t
18714 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18715 s&@top_srcdir@&$ac_top_srcdir&;t t
18716 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18717 s&@builddir@&$ac_builddir&;t t
18718 s&@abs_builddir@&$ac_abs_builddir&;t t
18719 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18720 s&@INSTALL@&$ac_INSTALL&;t t
18721 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18722 $ac_datarootdir_hack
18723 "
18724 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18725 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18726
18727 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18728 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18730 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18732 which seems to be undefined. Please make sure it is defined" >&5
18733 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18734 which seems to be undefined. Please make sure it is defined" >&2;}
18735
18736 rm -f "$ac_tmp/stdin"
18737 case $ac_file in
18738 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18739 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18740 esac \
18741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18742 ;;
18743 :H)
18744 #
18745 # CONFIG_HEADER
18746 #
18747 if test x"$ac_file" != x-; then
18748 {
18749 $as_echo "/* $configure_input */" \
18750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18751 } >"$ac_tmp/config.h" \
18752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18753 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18755 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18756 else
18757 rm -f "$ac_file"
18758 mv "$ac_tmp/config.h" "$ac_file" \
18759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18760 fi
18761 else
18762 $as_echo "/* $configure_input */" \
18763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18764 || as_fn_error $? "could not create -" "$LINENO" 5
18765 fi
18766 # Compute "$ac_file"'s index in $config_headers.
18767 _am_arg="$ac_file"
18768 _am_stamp_count=1
18769 for _am_header in $config_headers :; do
18770 case $_am_header in
18771 $_am_arg | $_am_arg:* )
18772 break ;;
18773 * )
18774 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18775 esac
18776 done
18777 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18778 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18779 X"$_am_arg" : 'X\(//\)[^/]' \| \
18780 X"$_am_arg" : 'X\(//\)$' \| \
18781 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18782 $as_echo X"$_am_arg" |
18783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18784 s//\1/
18785 q
18786 }
18787 /^X\(\/\/\)[^/].*/{
18788 s//\1/
18789 q
18790 }
18791 /^X\(\/\/\)$/{
18792 s//\1/
18793 q
18794 }
18795 /^X\(\/\).*/{
18796 s//\1/
18797 q
18798 }
18799 s/.*/./; q'`/stamp-h$_am_stamp_count
18800 ;;
18801
18802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18803 $as_echo "$as_me: executing $ac_file commands" >&6;}
18804 ;;
18805 esac
18806
18807
18808 case $ac_file$ac_mode in
18809 "default-1":C)
18810 # Only add multilib support code if we just rebuilt the top-level
18811 # Makefile.
18812 case " $CONFIG_FILES " in
18813 *" Makefile "*)
18814 ac_file=Makefile . ${multi_basedir}/config-ml.in
18815 ;;
18816 esac ;;
18817 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18818 # Older Autoconf quotes --file arguments for eval, but not when files
18819 # are listed without --file. Let's play safe and only enable the eval
18820 # if we detect the quoting.
18821 case $CONFIG_FILES in
18822 *\'*) eval set x "$CONFIG_FILES" ;;
18823 *) set x $CONFIG_FILES ;;
18824 esac
18825 shift
18826 for mf
18827 do
18828 # Strip MF so we end up with the name of the file.
18829 mf=`echo "$mf" | sed -e 's/:.*$//'`
18830 # Check whether this is an Automake generated Makefile or not.
18831 # We used to match only the files named 'Makefile.in', but
18832 # some people rename them; so instead we look at the file content.
18833 # Grep'ing the first line is not enough: some people post-process
18834 # each Makefile.in and add a new line on top of each file to say so.
18835 # Grep'ing the whole file is not good either: AIX grep has a line
18836 # limit of 2048, but all sed's we know have understand at least 4000.
18837 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18838 dirpart=`$as_dirname -- "$mf" ||
18839 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18840 X"$mf" : 'X\(//\)[^/]' \| \
18841 X"$mf" : 'X\(//\)$' \| \
18842 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18843 $as_echo X"$mf" |
18844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18845 s//\1/
18846 q
18847 }
18848 /^X\(\/\/\)[^/].*/{
18849 s//\1/
18850 q
18851 }
18852 /^X\(\/\/\)$/{
18853 s//\1/
18854 q
18855 }
18856 /^X\(\/\).*/{
18857 s//\1/
18858 q
18859 }
18860 s/.*/./; q'`
18861 else
18862 continue
18863 fi
18864 # Extract the definition of DEPDIR, am__include, and am__quote
18865 # from the Makefile without running 'make'.
18866 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18867 test -z "$DEPDIR" && continue
18868 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18869 test -z "$am__include" && continue
18870 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18871 # Find all dependency output files, they are included files with
18872 # $(DEPDIR) in their names. We invoke sed twice because it is the
18873 # simplest approach to changing $(DEPDIR) to its actual value in the
18874 # expansion.
18875 for file in `sed -n "
18876 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18877 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18878 # Make sure the directory exists.
18879 test -f "$dirpart/$file" && continue
18880 fdir=`$as_dirname -- "$file" ||
18881 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18882 X"$file" : 'X\(//\)[^/]' \| \
18883 X"$file" : 'X\(//\)$' \| \
18884 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18885 $as_echo X"$file" |
18886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18887 s//\1/
18888 q
18889 }
18890 /^X\(\/\/\)[^/].*/{
18891 s//\1/
18892 q
18893 }
18894 /^X\(\/\/\)$/{
18895 s//\1/
18896 q
18897 }
18898 /^X\(\/\).*/{
18899 s//\1/
18900 q
18901 }
18902 s/.*/./; q'`
18903 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18904 # echo "creating $dirpart/$file"
18905 echo '# dummy' > "$dirpart/$file"
18906 done
18907 done
18908 }
18909 ;;
18910 "libtool":C)
18911
18912 # See if we are running on zsh, and set the options which allow our
18913 # commands through without removal of \ escapes.
18914 if test -n "${ZSH_VERSION+set}" ; then
18915 setopt NO_GLOB_SUBST
18916 fi
18917
18918 cfgfile="${ofile}T"
18919 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18920 $RM "$cfgfile"
18921
18922 cat <<_LT_EOF >> "$cfgfile"
18923 #! $SHELL
18924
18925 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18926 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18927 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18928 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18929 #
18930 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18931 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18932 # Written by Gordon Matzigkeit, 1996
18933 #
18934 # This file is part of GNU Libtool.
18935 #
18936 # GNU Libtool is free software; you can redistribute it and/or
18937 # modify it under the terms of the GNU General Public License as
18938 # published by the Free Software Foundation; either version 2 of
18939 # the License, or (at your option) any later version.
18940 #
18941 # As a special exception to the GNU General Public License,
18942 # if you distribute this file as part of a program or library that
18943 # is built using GNU Libtool, you may include this file under the
18944 # same distribution terms that you use for the rest of that program.
18945 #
18946 # GNU Libtool is distributed in the hope that it will be useful,
18947 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18948 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18949 # GNU General Public License for more details.
18950 #
18951 # You should have received a copy of the GNU General Public License
18952 # along with GNU Libtool; see the file COPYING. If not, a copy
18953 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18954 # obtained by writing to the Free Software Foundation, Inc.,
18955 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18956
18957
18958 # The names of the tagged configurations supported by this script.
18959 available_tags="FC "
18960
18961 # ### BEGIN LIBTOOL CONFIG
18962
18963 # Which release of libtool.m4 was used?
18964 macro_version=$macro_version
18965 macro_revision=$macro_revision
18966
18967 # Whether or not to build shared libraries.
18968 build_libtool_libs=$enable_shared
18969
18970 # Whether or not to build static libraries.
18971 build_old_libs=$enable_static
18972
18973 # What type of objects to build.
18974 pic_mode=$pic_mode
18975
18976 # Whether or not to optimize for fast installation.
18977 fast_install=$enable_fast_install
18978
18979 # Shell to use when invoking shell scripts.
18980 SHELL=$lt_SHELL
18981
18982 # An echo program that protects backslashes.
18983 ECHO=$lt_ECHO
18984
18985 # The host system.
18986 host_alias=$host_alias
18987 host=$host
18988 host_os=$host_os
18989
18990 # The build system.
18991 build_alias=$build_alias
18992 build=$build
18993 build_os=$build_os
18994
18995 # A sed program that does not truncate output.
18996 SED=$lt_SED
18997
18998 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18999 Xsed="\$SED -e 1s/^X//"
19000
19001 # A grep program that handles long lines.
19002 GREP=$lt_GREP
19003
19004 # An ERE matcher.
19005 EGREP=$lt_EGREP
19006
19007 # A literal string matcher.
19008 FGREP=$lt_FGREP
19009
19010 # A BSD- or MS-compatible name lister.
19011 NM=$lt_NM
19012
19013 # Whether we need soft or hard links.
19014 LN_S=$lt_LN_S
19015
19016 # What is the maximum length of a command?
19017 max_cmd_len=$max_cmd_len
19018
19019 # Object file suffix (normally "o").
19020 objext=$ac_objext
19021
19022 # Executable file suffix (normally "").
19023 exeext=$exeext
19024
19025 # whether the shell understands "unset".
19026 lt_unset=$lt_unset
19027
19028 # turn spaces into newlines.
19029 SP2NL=$lt_lt_SP2NL
19030
19031 # turn newlines into spaces.
19032 NL2SP=$lt_lt_NL2SP
19033
19034 # An object symbol dumper.
19035 OBJDUMP=$lt_OBJDUMP
19036
19037 # Method to check whether dependent libraries are shared objects.
19038 deplibs_check_method=$lt_deplibs_check_method
19039
19040 # Command to use when deplibs_check_method == "file_magic".
19041 file_magic_cmd=$lt_file_magic_cmd
19042
19043 # The archiver.
19044 AR=$lt_AR
19045 AR_FLAGS=$lt_AR_FLAGS
19046
19047 # A symbol stripping program.
19048 STRIP=$lt_STRIP
19049
19050 # Commands used to install an old-style archive.
19051 RANLIB=$lt_RANLIB
19052 old_postinstall_cmds=$lt_old_postinstall_cmds
19053 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19054
19055 # Whether to use a lock for old archive extraction.
19056 lock_old_archive_extraction=$lock_old_archive_extraction
19057
19058 # A C compiler.
19059 LTCC=$lt_CC
19060
19061 # LTCC compiler flags.
19062 LTCFLAGS=$lt_CFLAGS
19063
19064 # Take the output of nm and produce a listing of raw symbols and C names.
19065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19066
19067 # Transform the output of nm in a proper C declaration.
19068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19069
19070 # Transform the output of nm in a C name address pair.
19071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19072
19073 # Transform the output of nm in a C name address pair when lib prefix is needed.
19074 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19075
19076 # The name of the directory that contains temporary libtool files.
19077 objdir=$objdir
19078
19079 # Used to examine libraries when file_magic_cmd begins with "file".
19080 MAGIC_CMD=$MAGIC_CMD
19081
19082 # Must we lock files when doing compilation?
19083 need_locks=$lt_need_locks
19084
19085 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19086 DSYMUTIL=$lt_DSYMUTIL
19087
19088 # Tool to change global to local symbols on Mac OS X.
19089 NMEDIT=$lt_NMEDIT
19090
19091 # Tool to manipulate fat objects and archives on Mac OS X.
19092 LIPO=$lt_LIPO
19093
19094 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19095 OTOOL=$lt_OTOOL
19096
19097 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19098 OTOOL64=$lt_OTOOL64
19099
19100 # Old archive suffix (normally "a").
19101 libext=$libext
19102
19103 # Shared library suffix (normally ".so").
19104 shrext_cmds=$lt_shrext_cmds
19105
19106 # The commands to extract the exported symbol list from a shared archive.
19107 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19108
19109 # Variables whose values should be saved in libtool wrapper scripts and
19110 # restored at link time.
19111 variables_saved_for_relink=$lt_variables_saved_for_relink
19112
19113 # Do we need the "lib" prefix for modules?
19114 need_lib_prefix=$need_lib_prefix
19115
19116 # Do we need a version for libraries?
19117 need_version=$need_version
19118
19119 # Library versioning type.
19120 version_type=$version_type
19121
19122 # Shared library runtime path variable.
19123 runpath_var=$runpath_var
19124
19125 # Shared library path variable.
19126 shlibpath_var=$shlibpath_var
19127
19128 # Is shlibpath searched before the hard-coded library search path?
19129 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19130
19131 # Format of library name prefix.
19132 libname_spec=$lt_libname_spec
19133
19134 # List of archive names. First name is the real one, the rest are links.
19135 # The last name is the one that the linker finds with -lNAME
19136 library_names_spec=$lt_library_names_spec
19137
19138 # The coded name of the library, if different from the real name.
19139 soname_spec=$lt_soname_spec
19140
19141 # Permission mode override for installation of shared libraries.
19142 install_override_mode=$lt_install_override_mode
19143
19144 # Command to use after installation of a shared archive.
19145 postinstall_cmds=$lt_postinstall_cmds
19146
19147 # Command to use after uninstallation of a shared archive.
19148 postuninstall_cmds=$lt_postuninstall_cmds
19149
19150 # Commands used to finish a libtool library installation in a directory.
19151 finish_cmds=$lt_finish_cmds
19152
19153 # As "finish_cmds", except a single script fragment to be evaled but
19154 # not shown.
19155 finish_eval=$lt_finish_eval
19156
19157 # Whether we should hardcode library paths into libraries.
19158 hardcode_into_libs=$hardcode_into_libs
19159
19160 # Compile-time system search path for libraries.
19161 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19162
19163 # Run-time system search path for libraries.
19164 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19165
19166 # Whether dlopen is supported.
19167 dlopen_support=$enable_dlopen
19168
19169 # Whether dlopen of programs is supported.
19170 dlopen_self=$enable_dlopen_self
19171
19172 # Whether dlopen of statically linked programs is supported.
19173 dlopen_self_static=$enable_dlopen_self_static
19174
19175 # Commands to strip libraries.
19176 old_striplib=$lt_old_striplib
19177 striplib=$lt_striplib
19178
19179
19180 # The linker used to build libraries.
19181 LD=$lt_LD
19182
19183 # How to create reloadable object files.
19184 reload_flag=$lt_reload_flag
19185 reload_cmds=$lt_reload_cmds
19186
19187 # Commands used to build an old-style archive.
19188 old_archive_cmds=$lt_old_archive_cmds
19189
19190 # A language specific compiler.
19191 CC=$lt_compiler
19192
19193 # Is the compiler the GNU compiler?
19194 with_gcc=$GCC
19195
19196 # Compiler flag to turn off builtin functions.
19197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19198
19199 # How to pass a linker flag through the compiler.
19200 wl=$lt_lt_prog_compiler_wl
19201
19202 # Additional compiler flags for building library objects.
19203 pic_flag=$lt_lt_prog_compiler_pic
19204
19205 # Compiler flag to prevent dynamic linking.
19206 link_static_flag=$lt_lt_prog_compiler_static
19207
19208 # Does compiler simultaneously support -c and -o options?
19209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19210
19211 # Whether or not to add -lc for building shared libraries.
19212 build_libtool_need_lc=$archive_cmds_need_lc
19213
19214 # Whether or not to disallow shared libs when runtime libs are static.
19215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19216
19217 # Compiler flag to allow reflexive dlopens.
19218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19219
19220 # Compiler flag to generate shared objects directly from archives.
19221 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19222
19223 # Whether the compiler copes with passing no objects directly.
19224 compiler_needs_object=$lt_compiler_needs_object
19225
19226 # Create an old-style archive from a shared archive.
19227 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19228
19229 # Create a temporary old-style archive to link instead of a shared archive.
19230 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19231
19232 # Commands used to build a shared archive.
19233 archive_cmds=$lt_archive_cmds
19234 archive_expsym_cmds=$lt_archive_expsym_cmds
19235
19236 # Commands used to build a loadable module if different from building
19237 # a shared archive.
19238 module_cmds=$lt_module_cmds
19239 module_expsym_cmds=$lt_module_expsym_cmds
19240
19241 # Whether we are building with GNU ld or not.
19242 with_gnu_ld=$lt_with_gnu_ld
19243
19244 # Flag that allows shared libraries with undefined symbols to be built.
19245 allow_undefined_flag=$lt_allow_undefined_flag
19246
19247 # Flag that enforces no undefined symbols.
19248 no_undefined_flag=$lt_no_undefined_flag
19249
19250 # Flag to hardcode \$libdir into a binary during linking.
19251 # This must work even if \$libdir does not exist
19252 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19253
19254 # If ld is used when linking, flag to hardcode \$libdir into a binary
19255 # during linking. This must work even if \$libdir does not exist.
19256 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19257
19258 # Whether we need a single "-rpath" flag with a separated argument.
19259 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19260
19261 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19262 # DIR into the resulting binary.
19263 hardcode_direct=$hardcode_direct
19264
19265 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19266 # DIR into the resulting binary and the resulting library dependency is
19267 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19268 # library is relocated.
19269 hardcode_direct_absolute=$hardcode_direct_absolute
19270
19271 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19272 # into the resulting binary.
19273 hardcode_minus_L=$hardcode_minus_L
19274
19275 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19276 # into the resulting binary.
19277 hardcode_shlibpath_var=$hardcode_shlibpath_var
19278
19279 # Set to "yes" if building a shared library automatically hardcodes DIR
19280 # into the library and all subsequent libraries and executables linked
19281 # against it.
19282 hardcode_automatic=$hardcode_automatic
19283
19284 # Set to yes if linker adds runtime paths of dependent libraries
19285 # to runtime path list.
19286 inherit_rpath=$inherit_rpath
19287
19288 # Whether libtool must link a program against all its dependency libraries.
19289 link_all_deplibs=$link_all_deplibs
19290
19291 # Fix the shell variable \$srcfile for the compiler.
19292 fix_srcfile_path=$lt_fix_srcfile_path
19293
19294 # Set to "yes" if exported symbols are required.
19295 always_export_symbols=$always_export_symbols
19296
19297 # The commands to list exported symbols.
19298 export_symbols_cmds=$lt_export_symbols_cmds
19299
19300 # Symbols that should not be listed in the preloaded symbols.
19301 exclude_expsyms=$lt_exclude_expsyms
19302
19303 # Symbols that must always be exported.
19304 include_expsyms=$lt_include_expsyms
19305
19306 # Commands necessary for linking programs (against libraries) with templates.
19307 prelink_cmds=$lt_prelink_cmds
19308
19309 # Specify filename containing input files.
19310 file_list_spec=$lt_file_list_spec
19311
19312 # How to hardcode a shared library path into an executable.
19313 hardcode_action=$hardcode_action
19314
19315 # The directories searched by this compiler when creating a shared library.
19316 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19317
19318 # Dependencies to place before and after the objects being linked to
19319 # create a shared library.
19320 predep_objects=$lt_predep_objects
19321 postdep_objects=$lt_postdep_objects
19322 predeps=$lt_predeps
19323 postdeps=$lt_postdeps
19324
19325 # The library search path used internally by the compiler when linking
19326 # a shared library.
19327 compiler_lib_search_path=$lt_compiler_lib_search_path
19328
19329 # ### END LIBTOOL CONFIG
19330
19331 _LT_EOF
19332
19333 case $host_os in
19334 aix3*)
19335 cat <<\_LT_EOF >> "$cfgfile"
19336 # AIX sometimes has problems with the GCC collect2 program. For some
19337 # reason, if we set the COLLECT_NAMES environment variable, the problems
19338 # vanish in a puff of smoke.
19339 if test "X${COLLECT_NAMES+set}" != Xset; then
19340 COLLECT_NAMES=
19341 export COLLECT_NAMES
19342 fi
19343 _LT_EOF
19344 ;;
19345 esac
19346
19347
19348 ltmain="$ac_aux_dir/ltmain.sh"
19349
19350
19351 # We use sed instead of cat because bash on DJGPP gets confused if
19352 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19353 # text mode, it properly converts lines to CR/LF. This bash problem
19354 # is reportedly fixed, but why not run on old versions too?
19355 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19356 || (rm -f "$cfgfile"; exit 1)
19357
19358 case $xsi_shell in
19359 yes)
19360 cat << \_LT_EOF >> "$cfgfile"
19361
19362 # func_dirname file append nondir_replacement
19363 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19364 # otherwise set result to NONDIR_REPLACEMENT.
19365 func_dirname ()
19366 {
19367 case ${1} in
19368 */*) func_dirname_result="${1%/*}${2}" ;;
19369 * ) func_dirname_result="${3}" ;;
19370 esac
19371 }
19372
19373 # func_basename file
19374 func_basename ()
19375 {
19376 func_basename_result="${1##*/}"
19377 }
19378
19379 # func_dirname_and_basename file append nondir_replacement
19380 # perform func_basename and func_dirname in a single function
19381 # call:
19382 # dirname: Compute the dirname of FILE. If nonempty,
19383 # add APPEND to the result, otherwise set result
19384 # to NONDIR_REPLACEMENT.
19385 # value returned in "$func_dirname_result"
19386 # basename: Compute filename of FILE.
19387 # value retuned in "$func_basename_result"
19388 # Implementation must be kept synchronized with func_dirname
19389 # and func_basename. For efficiency, we do not delegate to
19390 # those functions but instead duplicate the functionality here.
19391 func_dirname_and_basename ()
19392 {
19393 case ${1} in
19394 */*) func_dirname_result="${1%/*}${2}" ;;
19395 * ) func_dirname_result="${3}" ;;
19396 esac
19397 func_basename_result="${1##*/}"
19398 }
19399
19400 # func_stripname prefix suffix name
19401 # strip PREFIX and SUFFIX off of NAME.
19402 # PREFIX and SUFFIX must not contain globbing or regex special
19403 # characters, hashes, percent signs, but SUFFIX may contain a leading
19404 # dot (in which case that matches only a dot).
19405 func_stripname ()
19406 {
19407 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19408 # positional parameters, so assign one to ordinary parameter first.
19409 func_stripname_result=${3}
19410 func_stripname_result=${func_stripname_result#"${1}"}
19411 func_stripname_result=${func_stripname_result%"${2}"}
19412 }
19413
19414 # func_opt_split
19415 func_opt_split ()
19416 {
19417 func_opt_split_opt=${1%%=*}
19418 func_opt_split_arg=${1#*=}
19419 }
19420
19421 # func_lo2o object
19422 func_lo2o ()
19423 {
19424 case ${1} in
19425 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19426 *) func_lo2o_result=${1} ;;
19427 esac
19428 }
19429
19430 # func_xform libobj-or-source
19431 func_xform ()
19432 {
19433 func_xform_result=${1%.*}.lo
19434 }
19435
19436 # func_arith arithmetic-term...
19437 func_arith ()
19438 {
19439 func_arith_result=$(( $* ))
19440 }
19441
19442 # func_len string
19443 # STRING may not start with a hyphen.
19444 func_len ()
19445 {
19446 func_len_result=${#1}
19447 }
19448
19449 _LT_EOF
19450 ;;
19451 *) # Bourne compatible functions.
19452 cat << \_LT_EOF >> "$cfgfile"
19453
19454 # func_dirname file append nondir_replacement
19455 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19456 # otherwise set result to NONDIR_REPLACEMENT.
19457 func_dirname ()
19458 {
19459 # Extract subdirectory from the argument.
19460 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19461 if test "X$func_dirname_result" = "X${1}"; then
19462 func_dirname_result="${3}"
19463 else
19464 func_dirname_result="$func_dirname_result${2}"
19465 fi
19466 }
19467
19468 # func_basename file
19469 func_basename ()
19470 {
19471 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19472 }
19473
19474
19475 # func_stripname prefix suffix name
19476 # strip PREFIX and SUFFIX off of NAME.
19477 # PREFIX and SUFFIX must not contain globbing or regex special
19478 # characters, hashes, percent signs, but SUFFIX may contain a leading
19479 # dot (in which case that matches only a dot).
19480 # func_strip_suffix prefix name
19481 func_stripname ()
19482 {
19483 case ${2} in
19484 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19485 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19486 esac
19487 }
19488
19489 # sed scripts:
19490 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19491 my_sed_long_arg='1s/^-[^=]*=//'
19492
19493 # func_opt_split
19494 func_opt_split ()
19495 {
19496 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19497 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19498 }
19499
19500 # func_lo2o object
19501 func_lo2o ()
19502 {
19503 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19504 }
19505
19506 # func_xform libobj-or-source
19507 func_xform ()
19508 {
19509 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19510 }
19511
19512 # func_arith arithmetic-term...
19513 func_arith ()
19514 {
19515 func_arith_result=`expr "$@"`
19516 }
19517
19518 # func_len string
19519 # STRING may not start with a hyphen.
19520 func_len ()
19521 {
19522 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19523 }
19524
19525 _LT_EOF
19526 esac
19527
19528 case $lt_shell_append in
19529 yes)
19530 cat << \_LT_EOF >> "$cfgfile"
19531
19532 # func_append var value
19533 # Append VALUE to the end of shell variable VAR.
19534 func_append ()
19535 {
19536 eval "$1+=\$2"
19537 }
19538 _LT_EOF
19539 ;;
19540 *)
19541 cat << \_LT_EOF >> "$cfgfile"
19542
19543 # func_append var value
19544 # Append VALUE to the end of shell variable VAR.
19545 func_append ()
19546 {
19547 eval "$1=\$$1\$2"
19548 }
19549
19550 _LT_EOF
19551 ;;
19552 esac
19553
19554
19555 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19556 || (rm -f "$cfgfile"; exit 1)
19557
19558 mv -f "$cfgfile" "$ofile" ||
19559 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19560 chmod +x "$ofile"
19561
19562
19563 cat <<_LT_EOF >> "$ofile"
19564
19565 # ### BEGIN LIBTOOL TAG CONFIG: FC
19566
19567 # The linker used to build libraries.
19568 LD=$lt_LD_FC
19569
19570 # How to create reloadable object files.
19571 reload_flag=$lt_reload_flag_FC
19572 reload_cmds=$lt_reload_cmds_FC
19573
19574 # Commands used to build an old-style archive.
19575 old_archive_cmds=$lt_old_archive_cmds_FC
19576
19577 # A language specific compiler.
19578 CC=$lt_compiler_FC
19579
19580 # Is the compiler the GNU compiler?
19581 with_gcc=$GCC_FC
19582
19583 # Compiler flag to turn off builtin functions.
19584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19585
19586 # How to pass a linker flag through the compiler.
19587 wl=$lt_lt_prog_compiler_wl_FC
19588
19589 # Additional compiler flags for building library objects.
19590 pic_flag=$lt_lt_prog_compiler_pic_FC
19591
19592 # Compiler flag to prevent dynamic linking.
19593 link_static_flag=$lt_lt_prog_compiler_static_FC
19594
19595 # Does compiler simultaneously support -c and -o options?
19596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19597
19598 # Whether or not to add -lc for building shared libraries.
19599 build_libtool_need_lc=$archive_cmds_need_lc_FC
19600
19601 # Whether or not to disallow shared libs when runtime libs are static.
19602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19603
19604 # Compiler flag to allow reflexive dlopens.
19605 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19606
19607 # Compiler flag to generate shared objects directly from archives.
19608 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19609
19610 # Whether the compiler copes with passing no objects directly.
19611 compiler_needs_object=$lt_compiler_needs_object_FC
19612
19613 # Create an old-style archive from a shared archive.
19614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19615
19616 # Create a temporary old-style archive to link instead of a shared archive.
19617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19618
19619 # Commands used to build a shared archive.
19620 archive_cmds=$lt_archive_cmds_FC
19621 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19622
19623 # Commands used to build a loadable module if different from building
19624 # a shared archive.
19625 module_cmds=$lt_module_cmds_FC
19626 module_expsym_cmds=$lt_module_expsym_cmds_FC
19627
19628 # Whether we are building with GNU ld or not.
19629 with_gnu_ld=$lt_with_gnu_ld_FC
19630
19631 # Flag that allows shared libraries with undefined symbols to be built.
19632 allow_undefined_flag=$lt_allow_undefined_flag_FC
19633
19634 # Flag that enforces no undefined symbols.
19635 no_undefined_flag=$lt_no_undefined_flag_FC
19636
19637 # Flag to hardcode \$libdir into a binary during linking.
19638 # This must work even if \$libdir does not exist
19639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19640
19641 # If ld is used when linking, flag to hardcode \$libdir into a binary
19642 # during linking. This must work even if \$libdir does not exist.
19643 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19644
19645 # Whether we need a single "-rpath" flag with a separated argument.
19646 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19647
19648 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19649 # DIR into the resulting binary.
19650 hardcode_direct=$hardcode_direct_FC
19651
19652 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19653 # DIR into the resulting binary and the resulting library dependency is
19654 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19655 # library is relocated.
19656 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19657
19658 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19659 # into the resulting binary.
19660 hardcode_minus_L=$hardcode_minus_L_FC
19661
19662 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19663 # into the resulting binary.
19664 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19665
19666 # Set to "yes" if building a shared library automatically hardcodes DIR
19667 # into the library and all subsequent libraries and executables linked
19668 # against it.
19669 hardcode_automatic=$hardcode_automatic_FC
19670
19671 # Set to yes if linker adds runtime paths of dependent libraries
19672 # to runtime path list.
19673 inherit_rpath=$inherit_rpath_FC
19674
19675 # Whether libtool must link a program against all its dependency libraries.
19676 link_all_deplibs=$link_all_deplibs_FC
19677
19678 # Fix the shell variable \$srcfile for the compiler.
19679 fix_srcfile_path=$lt_fix_srcfile_path_FC
19680
19681 # Set to "yes" if exported symbols are required.
19682 always_export_symbols=$always_export_symbols_FC
19683
19684 # The commands to list exported symbols.
19685 export_symbols_cmds=$lt_export_symbols_cmds_FC
19686
19687 # Symbols that should not be listed in the preloaded symbols.
19688 exclude_expsyms=$lt_exclude_expsyms_FC
19689
19690 # Symbols that must always be exported.
19691 include_expsyms=$lt_include_expsyms_FC
19692
19693 # Commands necessary for linking programs (against libraries) with templates.
19694 prelink_cmds=$lt_prelink_cmds_FC
19695
19696 # Specify filename containing input files.
19697 file_list_spec=$lt_file_list_spec_FC
19698
19699 # How to hardcode a shared library path into an executable.
19700 hardcode_action=$hardcode_action_FC
19701
19702 # The directories searched by this compiler when creating a shared library.
19703 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19704
19705 # Dependencies to place before and after the objects being linked to
19706 # create a shared library.
19707 predep_objects=$lt_predep_objects_FC
19708 postdep_objects=$lt_postdep_objects_FC
19709 predeps=$lt_predeps_FC
19710 postdeps=$lt_postdeps_FC
19711
19712 # The library search path used internally by the compiler when linking
19713 # a shared library.
19714 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19715
19716 # ### END LIBTOOL TAG CONFIG: FC
19717 _LT_EOF
19718
19719 ;;
19720
19721 esac
19722 done # for ac_tag
19723
19724
19725 as_fn_exit 0
19726 _ACEOF
19727 ac_clean_files=$ac_clean_files_save
19728
19729 test $ac_write_fail = 0 ||
19730 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19731
19732
19733 # configure is writing to config.log, and then calls config.status.
19734 # config.status does its own redirection, appending to config.log.
19735 # Unfortunately, on DOS this fails, as config.log is still kept open
19736 # by configure, so config.status won't be able to write to it; its
19737 # output is simply discarded. So we exec the FD to /dev/null,
19738 # effectively closing config.log, so it can be properly (re)opened and
19739 # appended to by config.status. When coming back to configure, we
19740 # need to make the FD available again.
19741 if test "$no_create" != yes; then
19742 ac_cs_success=:
19743 ac_config_status_args=
19744 test "$silent" = yes &&
19745 ac_config_status_args="$ac_config_status_args --quiet"
19746 exec 5>/dev/null
19747 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19748 exec 5>>config.log
19749 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19750 # would make configure fail if this is the last instruction.
19751 $ac_cs_success || as_fn_exit 1
19752 fi
19753 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19755 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19756 fi
19757
19758