]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/configure
libtool.m4: fix nm BSD flag detection
[thirdparty/gcc.git] / libgomp / configure
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@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_DEPEND_KIND
639 OMP_NEST_LOCK_25_KIND
640 OMP_LOCK_25_KIND
641 OMP_NEST_LOCK_25_ALIGN
642 OMP_NEST_LOCK_25_SIZE
643 OMP_LOCK_25_ALIGN
644 OMP_LOCK_25_SIZE
645 OMP_NEST_LOCK_KIND
646 OMP_LOCK_KIND
647 OMP_NEST_LOCK_ALIGN
648 OMP_NEST_LOCK_SIZE
649 OMP_LOCK_ALIGN
650 OMP_LOCK_SIZE
651 INTPTR_T_KIND
652 USE_FORTRAN_FALSE
653 USE_FORTRAN_TRUE
654 link_gomp
655 tmake_file
656 XLDFLAGS
657 XCFLAGS
658 config_path
659 FLOCK
660 CPU_COUNT
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
666 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
667 OPT_LDFLAGS
668 SECTION_LDFLAGS
669 PLUGIN_GCN_FALSE
670 PLUGIN_GCN_TRUE
671 PLUGIN_NVPTX_FALSE
672 PLUGIN_NVPTX_TRUE
673 offload_additional_lib_paths
674 offload_additional_options
675 offload_targets
676 offload_plugins
677 DL_LIBS
678 libtool_VERSION
679 ac_ct_FC
680 FCFLAGS
681 FC
682 CXX
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 enable_static
687 enable_shared
688 lt_host_flags
689 CPP
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 OBJDUMP
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 LIBTOOL
706 BUILD_INFO_FALSE
707 BUILD_INFO_TRUE
708 RANLIB
709 AR
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__quote
718 am__include
719 DEPDIR
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 toolexeclibdir
728 toolexecdir
729 multi_basedir
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 target_os
758 target_vendor
759 target_cpu
760 target
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 GENINSRC_FALSE
770 GENINSRC_TRUE
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 localstatedir
791 sharedstatedir
792 sysconfdir
793 datadir
794 datarootdir
795 libexecdir
796 sbindir
797 bindir
798 program_transform_name
799 prefix
800 exec_prefix
801 PACKAGE_URL
802 PACKAGE_BUGREPORT
803 PACKAGE_STRING
804 PACKAGE_VERSION
805 PACKAGE_TARNAME
806 PACKAGE_NAME
807 PATH_SEPARATOR
808 SHELL'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_version_specific_runtime_libs
813 enable_generated_files_in_srcdir
814 enable_silent_rules
815 enable_multilib
816 with_toolexeclibdir
817 enable_dependency_tracking
818 enable_werror
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_gnu_ld
824 enable_libtool_lock
825 enable_maintainer_mode
826 enable_linux_futex
827 enable_tls
828 enable_symvers
829 enable_cet
830 with_gcc_major_version_only
831 '
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CPP
836 CPPFLAGS
837 FC
838 FCFLAGS
839 LDFLAGS
840 LIBS'
841
842
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
864
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
900 fi
901
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1175
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1191
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1225
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1228 ;;
1229
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1239
1240 *)
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 ;;
1247
1248 esac
1249 done
1250
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1254 fi
1255
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1262 fi
1263
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1269 do
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299 fi
1300
1301 ac_tool_prefix=
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304 test "$silent" = yes && exec 6>/dev/null
1305
1306
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error $? "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error $? "pwd does not report name of working directory"
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346 else
1347 ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352 fi
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1373
1374 #
1375 # Report the --help message.
1376 #
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1382
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1387
1388 Defaults for the options are specified in brackets.
1389
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking ...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1406
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1411
1412 For better control, use the options below.
1413
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1435
1436 cat <<\_ACEOF
1437
1438 Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 --target=TARGET configure for building compilers for TARGET [HOST]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1453 esac
1454 cat <<\_ACEOF
1455
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-version-specific-runtime-libs
1461 Specify that runtime libraries should be installed
1462 in a compiler-specific directory [default=no]
1463 --enable-generated-files-in-srcdir
1464 put copies of generated files in source dir intended
1465 for creating source tarballs for users without
1466 texinfo bison or flex. [default=no]
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
1469 --enable-multilib build many library versions (default)
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
1474 --disable-werror disable building with -Werror
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483 --enable-linux-futex use the Linux futex system call [default=default]
1484 --enable-tls Use thread-local storage [default=yes]
1485 --enable-symvers=STYLE enables symbol versioning of the shared library
1486 [default=yes]
1487 --enable-cet enable Intel CET in target libraries [default=auto]
1488
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-toolexeclibdir=DIR
1493 install libraries built with a cross compiler within
1494 DIR
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1496 both]
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-gcc-major-version-only
1499 use only GCC major number in filesystem paths
1500
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1509 CPP C preprocessor
1510 FC Fortran compiler command
1511 FCFLAGS Fortran compiler flags
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to the package provider.
1517 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1518 General help using GNU software: <http://www.gnu.org/gethelp/>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 GNU Offloading and Multi Processing Runtime Library configure 1.0
1582 generated by GNU Autoconf 2.69
1583
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588 exit
1589 fi
1590
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1594
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_link ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1661 }; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1670 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1671 # interfere with the next link command; also delete a directory that is
1672 # left behind by Apple's compiler. We do this before executing the actions.
1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_link
1678
1679 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists and can be compiled using the include files in
1682 # INCLUDES, setting the cache variable VAR accordingly.
1683 ac_fn_c_check_header_compile ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1693 $4
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 eval "$3=yes"
1698 else
1699 eval "$3=no"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 fi
1703 eval ac_res=\$$3
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708 } # ac_fn_c_check_header_compile
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1751 ac_fn_c_try_run ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765 { { case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_try") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; }; }; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: program exited with status $ac_status" >&5
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=$ac_status
1782 fi
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_run
1788
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1805
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1810
1811 #ifdef __STDC__
1812 # include <limits.h>
1813 #else
1814 # include <assert.h>
1815 #endif
1816
1817 #undef $2
1818
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1822 #ifdef __cplusplus
1823 extern "C"
1824 #endif
1825 char $2 ();
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1830 choke me
1831 #endif
1832
1833 int
1834 main ()
1835 {
1836 return $2 ();
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_link "$LINENO"; then :
1842 eval "$3=yes"
1843 else
1844 eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext \
1847 conftest$ac_exeext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_func
1855
1856 # ac_fn_fc_try_compile LINENO
1857 # ---------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_fc_try_compile ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext
1863 if { { ac_try="$ac_compile"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1876 fi
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_fc_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.$ac_objext; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=1
1888 fi
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1891
1892 } # ac_fn_fc_try_compile
1893
1894 # ac_fn_fc_try_link LINENO
1895 # ------------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_fc_try_link ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1914 fi
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_fc_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest$ac_exeext
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 ac_retval=1
1929 fi
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938 } # ac_fn_fc_try_link
1939
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1944 # accordingly.
1945 ac_fn_c_check_header_mongrel ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if eval \${$3+:} false; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 else
1958 # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $4
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_header_compiler=yes
1968 else
1969 ac_header_compiler=no
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1974
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 #include <$2>
1981 _ACEOF
1982 if ac_fn_c_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1984 else
1985 ac_header_preproc=no
1986 fi
1987 rm -f conftest.err conftest.i conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1990
1991 # So? What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 yes:no: )
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 ;;
1999 no:yes:* )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ;;
2011 esac
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 else
2017 eval "$3=\$ac_header_compiler"
2018 fi
2019 eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 fi
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025 } # ac_fn_c_check_header_mongrel
2026
2027 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2028 # --------------------------------------------
2029 # Tries to find the compile-time value of EXPR in a program that includes
2030 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2031 # computed
2032 ac_fn_c_compute_int ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if test "$cross_compiling" = yes; then
2036 # Depending upon the size, compute the lo and hi bounds.
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 $4
2040 int
2041 main ()
2042 {
2043 static int test_array [1 - 2 * !(($2) >= 0)];
2044 test_array [0] = 0;
2045 return test_array [0];
2046
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_lo=0 ac_mid=0
2053 while :; do
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 int
2058 main ()
2059 {
2060 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 test_array [0] = 0;
2062 return test_array [0];
2063
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_hi=$ac_mid; break
2070 else
2071 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2072 if test $ac_lo -le $ac_mid; then
2073 ac_lo= ac_hi=
2074 break
2075 fi
2076 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 done
2080 else
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 $4
2084 int
2085 main ()
2086 {
2087 static int test_array [1 - 2 * !(($2) < 0)];
2088 test_array [0] = 0;
2089 return test_array [0];
2090
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=-1 ac_mid=-1
2097 while :; do
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2105 test_array [0] = 0;
2106 return test_array [0];
2107
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_lo=$ac_mid; break
2114 else
2115 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2116 if test $ac_mid -le $ac_hi; then
2117 ac_lo= ac_hi=
2118 break
2119 fi
2120 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 done
2124 else
2125 ac_lo= ac_hi=
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $4
2136 int
2137 main ()
2138 {
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 test_array [0] = 0;
2141 return test_array [0];
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid
2149 else
2150 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 case $ac_lo in #((
2155 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2156 '') ac_retval=1 ;;
2157 esac
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 static long int longval () { return $2; }
2163 static unsigned long int ulongval () { return $2; }
2164 #include <stdio.h>
2165 #include <stdlib.h>
2166 int
2167 main ()
2168 {
2169
2170 FILE *f = fopen ("conftest.val", "w");
2171 if (! f)
2172 return 1;
2173 if (($2) < 0)
2174 {
2175 long int i = longval ();
2176 if (i != ($2))
2177 return 1;
2178 fprintf (f, "%ld", i);
2179 }
2180 else
2181 {
2182 unsigned long int i = ulongval ();
2183 if (i != ($2))
2184 return 1;
2185 fprintf (f, "%lu", i);
2186 }
2187 /* Do not output a trailing newline, as this causes \r\n confusion
2188 on some platforms. */
2189 return ferror (f) || fclose (f) != 0;
2190
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_run "$LINENO"; then :
2196 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2197 else
2198 ac_retval=1
2199 fi
2200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2201 conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 rm -f conftest.val
2203
2204 fi
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 as_fn_set_status $ac_retval
2207
2208 } # ac_fn_c_compute_int
2209
2210 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2211 # -------------------------------------------
2212 # Tests whether TYPE exists after having included INCLUDES, setting cache
2213 # variable VAR accordingly.
2214 ac_fn_c_check_type ()
2215 {
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 eval "$3=no"
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2225 $4
2226 int
2227 main ()
2228 {
2229 if (sizeof ($2))
2230 return 0;
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2238 $4
2239 int
2240 main ()
2241 {
2242 if (sizeof (($2)))
2243 return 0;
2244 ;
2245 return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249
2250 else
2251 eval "$3=yes"
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261
2262 } # ac_fn_c_check_type
2263 cat >config.log <<_ACEOF
2264 This file contains any messages produced by compilers while
2265 running configure, to aid debugging if configure makes a mistake.
2266
2267 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2268 generated by GNU Autoconf 2.69. Invocation command line was
2269
2270 $ $0 $@
2271
2272 _ACEOF
2273 exec 5>>config.log
2274 {
2275 cat <<_ASUNAME
2276 ## --------- ##
2277 ## Platform. ##
2278 ## --------- ##
2279
2280 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2281 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2282 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2283 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2284 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285
2286 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2287 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2288
2289 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2290 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2291 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2292 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2293 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2294 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2295 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2296
2297 _ASUNAME
2298
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 $as_echo "PATH: $as_dir"
2305 done
2306 IFS=$as_save_IFS
2307
2308 } >&5
2309
2310 cat >&5 <<_ACEOF
2311
2312
2313 ## ----------- ##
2314 ## Core tests. ##
2315 ## ----------- ##
2316
2317 _ACEOF
2318
2319
2320 # Keep a trace of the command line.
2321 # Strip out --no-create and --no-recursion so they do not pile up.
2322 # Strip out --silent because we don't want to record it for future runs.
2323 # Also quote any args containing shell meta-characters.
2324 # Make two passes to allow for proper duplicate-argument suppression.
2325 ac_configure_args=
2326 ac_configure_args0=
2327 ac_configure_args1=
2328 ac_must_keep_next=false
2329 for ac_pass in 1 2
2330 do
2331 for ac_arg
2332 do
2333 case $ac_arg in
2334 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2336 | -silent | --silent | --silen | --sile | --sil)
2337 continue ;;
2338 *\'*)
2339 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2340 esac
2341 case $ac_pass in
2342 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2343 2)
2344 as_fn_append ac_configure_args1 " '$ac_arg'"
2345 if test $ac_must_keep_next = true; then
2346 ac_must_keep_next=false # Got value, back to normal.
2347 else
2348 case $ac_arg in
2349 *=* | --config-cache | -C | -disable-* | --disable-* \
2350 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2351 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2352 | -with-* | --with-* | -without-* | --without-* | --x)
2353 case "$ac_configure_args0 " in
2354 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2355 esac
2356 ;;
2357 -* ) ac_must_keep_next=true ;;
2358 esac
2359 fi
2360 as_fn_append ac_configure_args " '$ac_arg'"
2361 ;;
2362 esac
2363 done
2364 done
2365 { ac_configure_args0=; unset ac_configure_args0;}
2366 { ac_configure_args1=; unset ac_configure_args1;}
2367
2368 # When interrupted or exit'd, cleanup temporary files, and complete
2369 # config.log. We remove comments because anyway the quotes in there
2370 # would cause problems or look ugly.
2371 # WARNING: Use '\'' to represent an apostrophe within the trap.
2372 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2373 trap 'exit_status=$?
2374 # Save into config.log some information that might help in debugging.
2375 {
2376 echo
2377
2378 $as_echo "## ---------------- ##
2379 ## Cache variables. ##
2380 ## ---------------- ##"
2381 echo
2382 # The following way of writing the cache mishandles newlines in values,
2383 (
2384 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2385 eval ac_val=\$$ac_var
2386 case $ac_val in #(
2387 *${as_nl}*)
2388 case $ac_var in #(
2389 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2390 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2391 esac
2392 case $ac_var in #(
2393 _ | IFS | as_nl) ;; #(
2394 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2395 *) { eval $ac_var=; unset $ac_var;} ;;
2396 esac ;;
2397 esac
2398 done
2399 (set) 2>&1 |
2400 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2401 *${as_nl}ac_space=\ *)
2402 sed -n \
2403 "s/'\''/'\''\\\\'\'''\''/g;
2404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2405 ;; #(
2406 *)
2407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2408 ;;
2409 esac |
2410 sort
2411 )
2412 echo
2413
2414 $as_echo "## ----------------- ##
2415 ## Output variables. ##
2416 ## ----------------- ##"
2417 echo
2418 for ac_var in $ac_subst_vars
2419 do
2420 eval ac_val=\$$ac_var
2421 case $ac_val in
2422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423 esac
2424 $as_echo "$ac_var='\''$ac_val'\''"
2425 done | sort
2426 echo
2427
2428 if test -n "$ac_subst_files"; then
2429 $as_echo "## ------------------- ##
2430 ## File substitutions. ##
2431 ## ------------------- ##"
2432 echo
2433 for ac_var in $ac_subst_files
2434 do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 esac
2439 $as_echo "$ac_var='\''$ac_val'\''"
2440 done | sort
2441 echo
2442 fi
2443
2444 if test -s confdefs.h; then
2445 $as_echo "## ----------- ##
2446 ## confdefs.h. ##
2447 ## ----------- ##"
2448 echo
2449 cat confdefs.h
2450 echo
2451 fi
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2455 } >&5
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 exit $exit_status
2459 ' 0
2460 for ac_signal in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 done
2463 ac_signal=0
2464
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest* confdefs.h
2467
2468 $as_echo "/* confdefs.h */" > confdefs.h
2469
2470 # Predefined preprocessor variables.
2471
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 _ACEOF
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 _ACEOF
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 _ACEOF
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 _ACEOF
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2494 _ACEOF
2495
2496
2497 # Let the site file select an alternate cache file if it wants to.
2498 # Prefer an explicitly selected file to automatically selected ones.
2499 ac_site_file1=NONE
2500 ac_site_file2=NONE
2501 if test -n "$CONFIG_SITE"; then
2502 # We do not want a PATH search for config.site.
2503 case $CONFIG_SITE in #((
2504 -*) ac_site_file1=./$CONFIG_SITE;;
2505 */*) ac_site_file1=$CONFIG_SITE;;
2506 *) ac_site_file1=./$CONFIG_SITE;;
2507 esac
2508 elif test "x$prefix" != xNONE; then
2509 ac_site_file1=$prefix/share/config.site
2510 ac_site_file2=$prefix/etc/config.site
2511 else
2512 ac_site_file1=$ac_default_prefix/share/config.site
2513 ac_site_file2=$ac_default_prefix/etc/config.site
2514 fi
2515 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2516 do
2517 test "x$ac_site_file" = xNONE && continue
2518 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2520 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2521 sed 's/^/| /' "$ac_site_file" >&5
2522 . "$ac_site_file" \
2523 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 as_fn_error $? "failed to load site script $ac_site_file
2526 See \`config.log' for more details" "$LINENO" 5; }
2527 fi
2528 done
2529
2530 if test -r "$cache_file"; then
2531 # Some versions of bash will fail to source /dev/null (special files
2532 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2533 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2535 $as_echo "$as_me: loading cache $cache_file" >&6;}
2536 case $cache_file in
2537 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2538 *) . "./$cache_file";;
2539 esac
2540 fi
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2543 $as_echo "$as_me: creating cache $cache_file" >&6;}
2544 >$cache_file
2545 fi
2546
2547 as_fn_append ac_header_list " unistd.h"
2548 as_fn_append ac_func_list " secure_getenv"
2549 as_fn_append ac_func_list " __secure_getenv"
2550 as_fn_append ac_func_list " getuid"
2551 as_fn_append ac_func_list " geteuid"
2552 as_fn_append ac_func_list " getgid"
2553 as_fn_append ac_func_list " getegid"
2554 # Check that the precious variables saved in the cache have kept the same
2555 # value.
2556 ac_cache_corrupted=false
2557 for ac_var in $ac_precious_vars; do
2558 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559 eval ac_new_set=\$ac_env_${ac_var}_set
2560 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561 eval ac_new_val=\$ac_env_${ac_var}_value
2562 case $ac_old_set,$ac_new_set in
2563 set,)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2567 ,set)
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2571 ,);;
2572 *)
2573 if test "x$ac_old_val" != "x$ac_new_val"; then
2574 # differences in whitespace do not lead to failure.
2575 ac_old_val_w=`echo x $ac_old_val`
2576 ac_new_val_w=`echo x $ac_new_val`
2577 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580 ac_cache_corrupted=:
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584 eval $ac_var=\$ac_old_val
2585 fi
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2587 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2589 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2590 fi;;
2591 esac
2592 # Pass precious variables to config.status.
2593 if test "$ac_new_set" = set; then
2594 case $ac_new_val in
2595 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596 *) ac_arg=$ac_var=$ac_new_val ;;
2597 esac
2598 case " $ac_configure_args " in
2599 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2600 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2601 esac
2602 fi
2603 done
2604 if $ac_cache_corrupted; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2609 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2610 fi
2611 ## -------------------- ##
2612 ## Main body of script. ##
2613 ## -------------------- ##
2614
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620
2621
2622
2623
2624
2625 ac_config_headers="$ac_config_headers config.h"
2626
2627
2628 # -------
2629 # Options
2630 # -------
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2633 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2634 # Check whether --enable-version-specific-runtime-libs was given.
2635 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2636 enableval=$enable_version_specific_runtime_libs;
2637 case "$enableval" in
2638 yes|no) ;;
2639 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2640 esac
2641
2642 else
2643 enable_version_specific_runtime_libs=no
2644 fi
2645
2646
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2648 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2649
2650 # We would like our source tree to be readonly. However when releases or
2651 # pre-releases are generated, the flex/bison generated files as well as the
2652 # various formats of manuals need to be included along with the rest of the
2653 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2654 # just that.
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2656 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2657 # Check whether --enable-generated-files-in-srcdir was given.
2658 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2659 enableval=$enable_generated_files_in_srcdir;
2660 case "$enableval" in
2661 yes|no) ;;
2662 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2663 esac
2664
2665 else
2666 enable_generated_files_in_srcdir=no
2667 fi
2668
2669
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2671 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2672 if test "$enable_generated_files_in_srcdir" = yes; then
2673 GENINSRC_TRUE=
2674 GENINSRC_FALSE='#'
2675 else
2676 GENINSRC_TRUE='#'
2677 GENINSRC_FALSE=
2678 fi
2679
2680
2681
2682 # -------
2683 # -------
2684
2685 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2686 #
2687 # You will slowly go insane if you do not grok the following fact: when
2688 # building this library, the top-level /target/ becomes the library's /host/.
2689 #
2690 # configure then causes --target to default to --host, exactly like any
2691 # other package using autoconf. Therefore, 'target' and 'host' will
2692 # always be the same. This makes sense both for native and cross compilers
2693 # just think about it for a little while. :-)
2694 #
2695 # Also, if this library is being configured as part of a cross compiler, the
2696 # top-level configure script will pass the "real" host as $with_cross_host.
2697 #
2698 # Do not delete or change the following two lines. For why, see
2699 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2700 ac_aux_dir=
2701 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2702 if test -f "$ac_dir/install-sh"; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/install-sh -c"
2705 break
2706 elif test -f "$ac_dir/install.sh"; then
2707 ac_aux_dir=$ac_dir
2708 ac_install_sh="$ac_aux_dir/install.sh -c"
2709 break
2710 elif test -f "$ac_dir/shtool"; then
2711 ac_aux_dir=$ac_dir
2712 ac_install_sh="$ac_aux_dir/shtool install -c"
2713 break
2714 fi
2715 done
2716 if test -z "$ac_aux_dir"; then
2717 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2718 fi
2719
2720 # These three variables are undocumented and unsupported,
2721 # and are intended to be withdrawn in a future Autoconf release.
2722 # They can cause serious problems if a builder's source tree is in a directory
2723 # whose full name contains unusual characters.
2724 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2725 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2726 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2727
2728
2729 # Make sure we can run config.sub.
2730 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2731 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2732
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2734 $as_echo_n "checking build system type... " >&6; }
2735 if ${ac_cv_build+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 ac_build_alias=$build_alias
2739 test "x$ac_build_alias" = x &&
2740 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2741 test "x$ac_build_alias" = x &&
2742 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2743 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2744 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2745
2746 fi
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2748 $as_echo "$ac_cv_build" >&6; }
2749 case $ac_cv_build in
2750 *-*-*) ;;
2751 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2752 esac
2753 build=$ac_cv_build
2754 ac_save_IFS=$IFS; IFS='-'
2755 set x $ac_cv_build
2756 shift
2757 build_cpu=$1
2758 build_vendor=$2
2759 shift; shift
2760 # Remember, the first character of IFS is used to create $*,
2761 # except with old shells:
2762 build_os=$*
2763 IFS=$ac_save_IFS
2764 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2765
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2768 $as_echo_n "checking host system type... " >&6; }
2769 if ${ac_cv_host+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test "x$host_alias" = x; then
2773 ac_cv_host=$ac_cv_build
2774 else
2775 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2776 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2777 fi
2778
2779 fi
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2781 $as_echo "$ac_cv_host" >&6; }
2782 case $ac_cv_host in
2783 *-*-*) ;;
2784 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2785 esac
2786 host=$ac_cv_host
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_host
2789 shift
2790 host_cpu=$1
2791 host_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 host_os=$*
2796 IFS=$ac_save_IFS
2797 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2798
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2801 $as_echo_n "checking target system type... " >&6; }
2802 if ${ac_cv_target+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test "x$target_alias" = x; then
2806 ac_cv_target=$ac_cv_host
2807 else
2808 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2810 fi
2811
2812 fi
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2814 $as_echo "$ac_cv_target" >&6; }
2815 case $ac_cv_target in
2816 *-*-*) ;;
2817 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2818 esac
2819 target=$ac_cv_target
2820 ac_save_IFS=$IFS; IFS='-'
2821 set x $ac_cv_target
2822 shift
2823 target_cpu=$1
2824 target_vendor=$2
2825 shift; shift
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2828 target_os=$*
2829 IFS=$ac_save_IFS
2830 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2831
2832
2833 # The aliases save the names the user supplied, while $host etc.
2834 # will get canonicalized.
2835 test -n "$target_alias" &&
2836 test "$program_prefix$program_suffix$program_transform_name" = \
2837 NONENONEs,x,x, &&
2838 program_prefix=${target_alias}-
2839
2840 target_alias=${target_alias-$host_alias}
2841
2842 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2843 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2844 # 1.9.0: minimum required version
2845 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2846 # of other PACKAGE_* variables will, however, and there's nothing
2847 # we can do about that; they come from AC_INIT).
2848 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2849 # file in the top srcdir, etc, etc), so stop complaining.
2850 # no-dist: we don't want 'dist' and related rules.
2851 # -Wall: turns on all automake warnings...
2852 # -Wno-portability: ...except this one, since GNU make is required.
2853 # -Wno-override: ... and this one, since we do want this in testsuite.
2854 am__api_version='1.15'
2855
2856 # Find a good install program. We prefer a C program (faster),
2857 # so one script is as good as another. But avoid the broken or
2858 # incompatible versions:
2859 # SysV /etc/install, /usr/sbin/install
2860 # SunOS /usr/etc/install
2861 # IRIX /sbin/install
2862 # AIX /bin/install
2863 # AmigaOS /C/install, which installs bootblocks on floppy discs
2864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867 # OS/2's system install, which has a completely different semantic
2868 # ./install, which can be erroneously created by make from ./install.sh.
2869 # Reject install programs that cannot install multiple files.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2871 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2872 if test -z "$INSTALL"; then
2873 if ${ac_cv_path_install+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 # Account for people who put trailing slashes in PATH elements.
2882 case $as_dir/ in #((
2883 ./ | .// | /[cC]/* | \
2884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2886 /usr/ucb/* ) ;;
2887 *)
2888 # OSF1 and SCO ODT 3.0 have their own names for install.
2889 # Don't use installbsd from OSF since it installs stuff as root
2890 # by default.
2891 for ac_prog in ginstall scoinst install; do
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2894 if test $ac_prog = install &&
2895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896 # AIX install. It has an incompatible calling convention.
2897 :
2898 elif test $ac_prog = install &&
2899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900 # program-specific install script used by HP pwplus--don't use.
2901 :
2902 else
2903 rm -rf conftest.one conftest.two conftest.dir
2904 echo one > conftest.one
2905 echo two > conftest.two
2906 mkdir conftest.dir
2907 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2908 test -s conftest.one && test -s conftest.two &&
2909 test -s conftest.dir/conftest.one &&
2910 test -s conftest.dir/conftest.two
2911 then
2912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2913 break 3
2914 fi
2915 fi
2916 fi
2917 done
2918 done
2919 ;;
2920 esac
2921
2922 done
2923 IFS=$as_save_IFS
2924
2925 rm -rf conftest.one conftest.two conftest.dir
2926
2927 fi
2928 if test "${ac_cv_path_install+set}" = set; then
2929 INSTALL=$ac_cv_path_install
2930 else
2931 # As a last resort, use the slow shell script. Don't cache a
2932 # value for INSTALL within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the value is a relative name.
2935 INSTALL=$ac_install_sh
2936 fi
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2939 $as_echo "$INSTALL" >&6; }
2940
2941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2942 # It thinks the first close brace ends the variable substitution.
2943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2944
2945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2946
2947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2950 $as_echo_n "checking whether build environment is sane... " >&6; }
2951 # Reject unsafe characters in $srcdir or the absolute working directory
2952 # name. Accept space and tab only in the latter.
2953 am_lf='
2954 '
2955 case `pwd` in
2956 *[\\\"\#\$\&\'\`$am_lf]*)
2957 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2958 esac
2959 case $srcdir in
2960 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2961 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2962 esac
2963
2964 # Do 'set' in a subshell so we don't clobber the current shell's
2965 # arguments. Must try -L first in case configure is actually a
2966 # symlink; some systems play weird games with the mod time of symlinks
2967 # (eg FreeBSD returns the mod time of the symlink's containing
2968 # directory).
2969 if (
2970 am_has_slept=no
2971 for am_try in 1 2; do
2972 echo "timestamp, slept: $am_has_slept" > conftest.file
2973 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2974 if test "$*" = "X"; then
2975 # -L didn't work.
2976 set X `ls -t "$srcdir/configure" conftest.file`
2977 fi
2978 if test "$*" != "X $srcdir/configure conftest.file" \
2979 && test "$*" != "X conftest.file $srcdir/configure"; then
2980
2981 # If neither matched, then we have a broken ls. This can happen
2982 # if, for instance, CONFIG_SHELL is bash and it inherits a
2983 # broken ls alias from the environment. This has actually
2984 # happened. Such a system could not be considered "sane".
2985 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2987 fi
2988 if test "$2" = conftest.file || test $am_try -eq 2; then
2989 break
2990 fi
2991 # Just in case.
2992 sleep 1
2993 am_has_slept=yes
2994 done
2995 test "$2" = conftest.file
2996 )
2997 then
2998 # Ok.
2999 :
3000 else
3001 as_fn_error $? "newly created file is older than distributed files!
3002 Check your system clock" "$LINENO" 5
3003 fi
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006 # If we didn't sleep, we still need to ensure time stamps of config.status and
3007 # generated files are strictly newer.
3008 am_sleep_pid=
3009 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3010 ( sleep 1 ) &
3011 am_sleep_pid=$!
3012 fi
3013
3014 rm -f conftest.file
3015
3016 test "$program_prefix" != NONE &&
3017 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3018 # Use a double $ so make ignores it.
3019 test "$program_suffix" != NONE &&
3020 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3021 # Double any \ or $.
3022 # By default was `s,x,x', remove it if useless.
3023 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3024 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3025
3026 # Expand $ac_aux_dir to an absolute path.
3027 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3028
3029 if test x"${MISSING+set}" != xset; then
3030 case $am_aux_dir in
3031 *\ * | *\ *)
3032 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3033 *)
3034 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3035 esac
3036 fi
3037 # Use eval to expand $SHELL
3038 if eval "$MISSING --is-lightweight"; then
3039 am_missing_run="$MISSING "
3040 else
3041 am_missing_run=
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3043 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3044 fi
3045
3046 if test x"${install_sh+set}" != xset; then
3047 case $am_aux_dir in
3048 *\ * | *\ *)
3049 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3050 *)
3051 install_sh="\${SHELL} $am_aux_dir/install-sh"
3052 esac
3053 fi
3054
3055 # Installed binaries are usually stripped using 'strip' when the user
3056 # run "make install-strip". However 'strip' might not be the right
3057 # tool to use in cross-compilation environments, therefore Automake
3058 # will honor the 'STRIP' environment variable to overrule this program.
3059 if test "$cross_compiling" != no; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}strip; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_STRIP+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$STRIP"; then
3069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 STRIP=$ac_cv_prog_STRIP
3089 if test -n "$STRIP"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3091 $as_echo "$STRIP" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 fi
3099 if test -z "$ac_cv_prog_STRIP"; then
3100 ac_ct_STRIP=$STRIP
3101 # Extract the first word of "strip", so it can be a program name with args.
3102 set dummy strip; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$ac_ct_STRIP"; then
3109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_STRIP="strip"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3129 if test -n "$ac_ct_STRIP"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3131 $as_echo "$ac_ct_STRIP" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137 if test "x$ac_ct_STRIP" = x; then
3138 STRIP=":"
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146 STRIP=$ac_ct_STRIP
3147 fi
3148 else
3149 STRIP="$ac_cv_prog_STRIP"
3150 fi
3151
3152 fi
3153 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3154
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3156 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3157 if test -z "$MKDIR_P"; then
3158 if ${ac_cv_path_mkdir+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3163 do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_prog in mkdir gmkdir; do
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3170 'mkdir (GNU coreutils) '* | \
3171 'mkdir (coreutils) '* | \
3172 'mkdir (fileutils) '4.1*)
3173 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3174 break 3;;
3175 esac
3176 done
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182
3183 test -d ./--version && rmdir ./--version
3184 if test "${ac_cv_path_mkdir+set}" = set; then
3185 MKDIR_P="$ac_cv_path_mkdir -p"
3186 else
3187 # As a last resort, use the slow shell script. Don't cache a
3188 # value for MKDIR_P within a source directory, because that will
3189 # break other packages using the cache if that directory is
3190 # removed, or if the value is a relative name.
3191 MKDIR_P="$ac_install_sh -d"
3192 fi
3193 fi
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3195 $as_echo "$MKDIR_P" >&6; }
3196
3197 for ac_prog in gawk mawk nawk awk
3198 do
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_AWK+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$AWK"; then
3207 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_AWK="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 AWK=$ac_cv_prog_AWK
3227 if test -n "$AWK"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3229 $as_echo "$AWK" >&6; }
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236 test -n "$AWK" && break
3237 done
3238
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3241 set x ${MAKE-make}
3242 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3243 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 cat >conftest.make <<\_ACEOF
3247 SHELL = /bin/sh
3248 all:
3249 @echo '@@@%%%=$(MAKE)=@@@%%%'
3250 _ACEOF
3251 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3253 *@@@%%%=?*=@@@%%%*)
3254 eval ac_cv_prog_make_${ac_make}_set=yes;;
3255 *)
3256 eval ac_cv_prog_make_${ac_make}_set=no;;
3257 esac
3258 rm -f conftest.make
3259 fi
3260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3263 SET_MAKE=
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 SET_MAKE="MAKE=${MAKE-make}"
3268 fi
3269
3270 rm -rf .tst 2>/dev/null
3271 mkdir .tst 2>/dev/null
3272 if test -d .tst; then
3273 am__leading_dot=.
3274 else
3275 am__leading_dot=_
3276 fi
3277 rmdir .tst 2>/dev/null
3278
3279 # Check whether --enable-silent-rules was given.
3280 if test "${enable_silent_rules+set}" = set; then :
3281 enableval=$enable_silent_rules;
3282 fi
3283
3284 case $enable_silent_rules in # (((
3285 yes) AM_DEFAULT_VERBOSITY=0;;
3286 no) AM_DEFAULT_VERBOSITY=1;;
3287 *) AM_DEFAULT_VERBOSITY=1;;
3288 esac
3289 am_make=${MAKE-make}
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3291 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3292 if ${am_cv_make_support_nested_variables+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if $as_echo 'TRUE=$(BAR$(V))
3296 BAR0=false
3297 BAR1=true
3298 V=1
3299 am__doit:
3300 @$(TRUE)
3301 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3302 am_cv_make_support_nested_variables=yes
3303 else
3304 am_cv_make_support_nested_variables=no
3305 fi
3306 fi
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3308 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3309 if test $am_cv_make_support_nested_variables = yes; then
3310 AM_V='$(V)'
3311 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3312 else
3313 AM_V=$AM_DEFAULT_VERBOSITY
3314 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3315 fi
3316 AM_BACKSLASH='\'
3317
3318 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3319 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3320 # is not polluted with repeated "-I."
3321 am__isrc=' -I$(srcdir)'
3322 # test to see if srcdir already configured
3323 if test -f $srcdir/config.status; then
3324 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3325 fi
3326 fi
3327
3328 # test whether we have cygpath
3329 if test -z "$CYGPATH_W"; then
3330 if (cygpath --version) >/dev/null 2>/dev/null; then
3331 CYGPATH_W='cygpath -w'
3332 else
3333 CYGPATH_W=echo
3334 fi
3335 fi
3336
3337
3338 # Define the identity of the package.
3339 PACKAGE='libgomp'
3340 VERSION='1.0'
3341
3342
3343 cat >>confdefs.h <<_ACEOF
3344 #define PACKAGE "$PACKAGE"
3345 _ACEOF
3346
3347
3348 cat >>confdefs.h <<_ACEOF
3349 #define VERSION "$VERSION"
3350 _ACEOF
3351
3352 # Some tools Automake needs.
3353
3354 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3355
3356
3357 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3358
3359
3360 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3361
3362
3363 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3364
3365
3366 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3367
3368 # For better backward compatibility. To be removed once Automake 1.9.x
3369 # dies out for good. For more background, see:
3370 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3371 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3372 mkdir_p='$(MKDIR_P)'
3373
3374 # We need awk for the "check" target (and possibly the TAP driver). The
3375 # system "awk" is bad on some platforms.
3376 # Always define AMTAR for backward compatibility. Yes, it's still used
3377 # in the wild :-( We should find a proper way to deprecate it ...
3378 AMTAR='$${TAR-tar}'
3379
3380
3381 # We'll loop over all known methods to create a tar archive until one works.
3382 _am_tools='gnutar pax cpio none'
3383
3384 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3385
3386
3387
3388
3389
3390
3391 # POSIX will say in a future version that running "rm -f" with no argument
3392 # is OK; and we want to be able to make that assumption in our Makefile
3393 # recipes. So use an aggressive probe to check that the usage we want is
3394 # actually supported "in the wild" to an acceptable degree.
3395 # See automake bug#10828.
3396 # To make any issue more visible, cause the running configure to be aborted
3397 # by default if the 'rm' program in use doesn't match our expectations; the
3398 # user can still override this though.
3399 if rm -f && rm -fr && rm -rf; then : OK; else
3400 cat >&2 <<'END'
3401 Oops!
3402
3403 Your 'rm' program seems unable to run without file operands specified
3404 on the command line, even when the '-f' option is present. This is contrary
3405 to the behaviour of most rm programs out there, and not conforming with
3406 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3407
3408 Please tell bug-automake@gnu.org about your system, including the value
3409 of your $PATH and any error possibly output before this message. This
3410 can help us improve future automake versions.
3411
3412 END
3413 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3414 echo 'Configuration will proceed anyway, since you have set the' >&2
3415 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3416 echo >&2
3417 else
3418 cat >&2 <<'END'
3419 Aborting the configuration process, to ensure you take notice of the issue.
3420
3421 You can download and install GNU coreutils to get an 'rm' implementation
3422 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3423
3424 If you want to complete the configuration process using your problematic
3425 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3426 to "yes", and re-run configure.
3427
3428 END
3429 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3430 fi
3431 fi
3432
3433 # Default to --enable-multilib
3434 # Check whether --enable-multilib was given.
3435 if test "${enable_multilib+set}" = set; then :
3436 enableval=$enable_multilib; case "$enableval" in
3437 yes) multilib=yes ;;
3438 no) multilib=no ;;
3439 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3440 esac
3441 else
3442 multilib=yes
3443 fi
3444
3445
3446 # We may get other options which we leave undocumented:
3447 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3448 # See config-ml.in if you want the gory details.
3449
3450 if test "$srcdir" = "."; then
3451 if test "$with_target_subdir" != "."; then
3452 multi_basedir="$srcdir/$with_multisrctop../.."
3453 else
3454 multi_basedir="$srcdir/$with_multisrctop.."
3455 fi
3456 else
3457 multi_basedir="$srcdir/.."
3458 fi
3459
3460
3461 # Even if the default multilib is not a cross compilation,
3462 # it may be that some of the other multilibs are.
3463 if test $cross_compiling = no && test $multilib = yes \
3464 && test "x${with_multisubdir}" != x ; then
3465 cross_compiling=maybe
3466 fi
3467
3468 ac_config_commands="$ac_config_commands default-1"
3469
3470
3471
3472 # Check whether --with-toolexeclibdir was given.
3473 if test "${with_toolexeclibdir+set}" = set; then :
3474 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3475 /)
3476 ;;
3477 */)
3478 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3479 ;;
3480 esac
3481 else
3482 with_toolexeclibdir=no
3483 fi
3484
3485
3486
3487 # Calculate toolexeclibdir
3488 # Also toolexecdir, though it's only used in toolexeclibdir
3489 case ${enable_version_specific_runtime_libs} in
3490 yes)
3491 # Need the gcc compiler version to know where to install libraries
3492 # and header files if --enable-version-specific-runtime-libs option
3493 # is selected.
3494 toolexecdir='$(libdir)/gcc/$(target_alias)'
3495 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3496 ;;
3497 no)
3498 if test -n "$with_cross_host" &&
3499 test x"$with_cross_host" != x"no"; then
3500 # Install a library built with a cross compiler in tooldir, not libdir.
3501 toolexecdir='$(exec_prefix)/$(target_alias)'
3502 case ${with_toolexeclibdir} in
3503 no)
3504 toolexeclibdir='$(toolexecdir)/lib'
3505 ;;
3506 *)
3507 toolexeclibdir=${with_toolexeclibdir}
3508 ;;
3509 esac
3510 else
3511 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3512 toolexeclibdir='$(libdir)'
3513 fi
3514 multi_os_directory=`$CC -print-multi-os-directory`
3515 case $multi_os_directory in
3516 .) ;; # Avoid trailing /.
3517 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3518 esac
3519 ;;
3520 esac
3521
3522
3523
3524 # Check the compiler.
3525 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3526 # We must force CC to /not/ be precious variables; otherwise
3527 # the wrong, non-multilib-adjusted value will be used in multilibs.
3528 # As a side effect, we have to subst CFLAGS ourselves.
3529
3530
3531
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 if test -n "$ac_tool_prefix"; then
3538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if ${ac_cv_prog_CC+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3558 fi
3559 done
3560 done
3561 IFS=$as_save_IFS
3562
3563 fi
3564 fi
3565 CC=$ac_cv_prog_CC
3566 if test -n "$CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 $as_echo "$CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 fi
3573
3574
3575 fi
3576 if test -z "$ac_cv_prog_CC"; then
3577 ac_ct_CC=$CC
3578 # Extract the first word of "gcc", so it can be a program name with args.
3579 set dummy gcc; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 if test -n "$ac_ct_CC"; then
3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_ac_ct_CC="gcc"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3598 fi
3599 done
3600 done
3601 IFS=$as_save_IFS
3602
3603 fi
3604 fi
3605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3606 if test -n "$ac_ct_CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608 $as_echo "$ac_ct_CC" >&6; }
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3612 fi
3613
3614 if test "x$ac_ct_CC" = x; then
3615 CC=""
3616 else
3617 case $cross_compiling:$ac_tool_warned in
3618 yes:)
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned=yes ;;
3622 esac
3623 CC=$ac_ct_CC
3624 fi
3625 else
3626 CC="$ac_cv_prog_CC"
3627 fi
3628
3629 if test -z "$CC"; then
3630 if test -n "$ac_tool_prefix"; then
3631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3632 set dummy ${ac_tool_prefix}cc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_CC+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_prog_CC="${ac_tool_prefix}cc"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 fi
3657 fi
3658 CC=$ac_cv_prog_CC
3659 if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 fi
3666
3667
3668 fi
3669 fi
3670 if test -z "$CC"; then
3671 # Extract the first word of "cc", so it can be a program name with args.
3672 set dummy cc; ac_word=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if ${ac_cv_prog_CC+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 if test -n "$CC"; then
3679 ac_cv_prog_CC="$CC" # Let the user override the test.
3680 else
3681 ac_prog_rejected=no
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3690 ac_prog_rejected=yes
3691 continue
3692 fi
3693 ac_cv_prog_CC="cc"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697 done
3698 done
3699 IFS=$as_save_IFS
3700
3701 if test $ac_prog_rejected = yes; then
3702 # We found a bogon in the path, so make sure we never use it.
3703 set dummy $ac_cv_prog_CC
3704 shift
3705 if test $# != 0; then
3706 # We chose a different compiler from the bogus one.
3707 # However, it has the same basename, so the bogon will be chosen
3708 # first if we set CC to just the basename; use the full file name.
3709 shift
3710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3711 fi
3712 fi
3713 fi
3714 fi
3715 CC=$ac_cv_prog_CC
3716 if test -n "$CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 fi
3723
3724
3725 fi
3726 if test -z "$CC"; then
3727 if test -n "$ac_tool_prefix"; then
3728 for ac_prog in cl.exe
3729 do
3730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if ${ac_cv_prog_CC+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$CC"; then
3738 ac_cv_prog_CC="$CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 CC=$ac_cv_prog_CC
3758 if test -n "$CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3760 $as_echo "$CC" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766
3767 test -n "$CC" && break
3768 done
3769 fi
3770 if test -z "$CC"; then
3771 ac_ct_CC=$CC
3772 for ac_prog in cl.exe
3773 do
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 if test -n "$ac_ct_CC"; then
3782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_ac_ct_CC="$ac_prog"
3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795 done
3796 done
3797 IFS=$as_save_IFS
3798
3799 fi
3800 fi
3801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3802 if test -n "$ac_ct_CC"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3804 $as_echo "$ac_ct_CC" >&6; }
3805 else
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3808 fi
3809
3810
3811 test -n "$ac_ct_CC" && break
3812 done
3813
3814 if test "x$ac_ct_CC" = x; then
3815 CC=""
3816 else
3817 case $cross_compiling:$ac_tool_warned in
3818 yes:)
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821 ac_tool_warned=yes ;;
3822 esac
3823 CC=$ac_ct_CC
3824 fi
3825 fi
3826
3827 fi
3828
3829
3830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "no acceptable C compiler found in \$PATH
3833 See \`config.log' for more details" "$LINENO" 5; }
3834
3835 # Provide some information about the compiler.
3836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3837 set X $ac_compile
3838 ac_compiler=$2
3839 for ac_option in --version -v -V -qversion; do
3840 { { ac_try="$ac_compiler $ac_option >&5"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3848 ac_status=$?
3849 if test -s conftest.err; then
3850 sed '10a\
3851 ... rest of stderr output deleted ...
3852 10q' conftest.err >conftest.er1
3853 cat conftest.er1 >&5
3854 fi
3855 rm -f conftest.er1 conftest.err
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }
3858 done
3859
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862
3863 int
3864 main ()
3865 {
3866
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 ac_clean_files_save=$ac_clean_files
3872 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3873 # Try to create an executable without -o first, disregard a.out.
3874 # It will help us diagnose broken compilers, and finding out an intuition
3875 # of exeext.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3877 $as_echo_n "checking whether the C compiler works... " >&6; }
3878 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3879
3880 # The possible output files:
3881 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3882
3883 ac_rmfiles=
3884 for ac_file in $ac_files
3885 do
3886 case $ac_file in
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3888 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3889 esac
3890 done
3891 rm -f $ac_rmfiles
3892
3893 if { { ac_try="$ac_link_default"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_link_default") 2>&5
3901 ac_status=$?
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3905 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3906 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3907 # so that the user can short-circuit this test for compilers unknown to
3908 # Autoconf.
3909 for ac_file in $ac_files ''
3910 do
3911 test -f "$ac_file" || continue
3912 case $ac_file in
3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3914 ;;
3915 [ab].out )
3916 # We found the default executable, but exeext='' is most
3917 # certainly right.
3918 break;;
3919 *.* )
3920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3921 then :; else
3922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923 fi
3924 # We set ac_cv_exeext here because the later test for it is not
3925 # safe: cross compilers may not add the suffix if given an `-o'
3926 # argument, so we may need to know it at that point already.
3927 # Even if this section looks crufty: it has the advantage of
3928 # actually working.
3929 break;;
3930 * )
3931 break;;
3932 esac
3933 done
3934 test "$ac_cv_exeext" = no && ac_cv_exeext=
3935
3936 else
3937 ac_file=''
3938 fi
3939 if test -z "$ac_file"; then :
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 $as_echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error 77 "C compiler cannot create executables
3948 See \`config.log' for more details" "$LINENO" 5; }
3949 else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951 $as_echo "yes" >&6; }
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3954 $as_echo_n "checking for C compiler default output file name... " >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3956 $as_echo "$ac_file" >&6; }
3957 ac_exeext=$ac_cv_exeext
3958
3959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3960 ac_clean_files=$ac_clean_files_save
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3962 $as_echo_n "checking for suffix of executables... " >&6; }
3963 if { { ac_try="$ac_link"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3976 # work properly (i.e., refer to `conftest.exe'), while it won't with
3977 # `rm'.
3978 for ac_file in conftest.exe conftest conftest.*; do
3979 test -f "$ac_file" || continue
3980 case $ac_file in
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983 break;;
3984 * ) break;;
3985 esac
3986 done
3987 else
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3991 See \`config.log' for more details" "$LINENO" 5; }
3992 fi
3993 rm -f conftest conftest$ac_cv_exeext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3995 $as_echo "$ac_cv_exeext" >&6; }
3996
3997 rm -f conftest.$ac_ext
3998 EXEEXT=$ac_cv_exeext
3999 ac_exeext=$EXEEXT
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <stdio.h>
4003 int
4004 main ()
4005 {
4006 FILE *f = fopen ("conftest.out", "w");
4007 return ferror (f) || fclose (f) != 0;
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 ac_clean_files="$ac_clean_files conftest.out"
4014 # Check that the compiler produces executables we can run. If not, either
4015 # the compiler is broken, or we cross compile.
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4017 $as_echo_n "checking whether we are cross compiling... " >&6; }
4018 if test "$cross_compiling" != yes; then
4019 { { ac_try="$ac_link"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_link") 2>&5
4027 ac_status=$?
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }
4030 if { ac_try='./conftest$ac_cv_exeext'
4031 { { case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_try") 2>&5
4038 ac_status=$?
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; }; then
4041 cross_compiling=no
4042 else
4043 if test "$cross_compiling" = maybe; then
4044 cross_compiling=yes
4045 else
4046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error $? "cannot run C compiled programs.
4049 If you meant to cross compile, use \`--host'.
4050 See \`config.log' for more details" "$LINENO" 5; }
4051 fi
4052 fi
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4055 $as_echo "$cross_compiling" >&6; }
4056
4057 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4058 ac_clean_files=$ac_clean_files_save
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4060 $as_echo_n "checking for suffix of object files... " >&6; }
4061 if ${ac_cv_objext+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066
4067 int
4068 main ()
4069 {
4070
4071 ;
4072 return 0;
4073 }
4074 _ACEOF
4075 rm -f conftest.o conftest.obj
4076 if { { ac_try="$ac_compile"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 $as_echo "$ac_try_echo"; } >&5
4083 (eval "$ac_compile") 2>&5
4084 ac_status=$?
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }; then :
4087 for ac_file in conftest.o conftest.obj conftest.*; do
4088 test -f "$ac_file" || continue;
4089 case $ac_file in
4090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4092 break;;
4093 esac
4094 done
4095 else
4096 $as_echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101 as_fn_error $? "cannot compute suffix of object files: cannot compile
4102 See \`config.log' for more details" "$LINENO" 5; }
4103 fi
4104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4105 fi
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4107 $as_echo "$ac_cv_objext" >&6; }
4108 OBJEXT=$ac_cv_objext
4109 ac_objext=$OBJEXT
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4111 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4112 if ${ac_cv_c_compiler_gnu+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117
4118 int
4119 main ()
4120 {
4121 #ifndef __GNUC__
4122 choke me
4123 #endif
4124
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_compiler_gnu=yes
4131 else
4132 ac_compiler_gnu=no
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4136
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4139 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4140 if test $ac_compiler_gnu = yes; then
4141 GCC=yes
4142 else
4143 GCC=
4144 fi
4145 ac_test_CFLAGS=${CFLAGS+set}
4146 ac_save_CFLAGS=$CFLAGS
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4148 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4149 if ${ac_cv_prog_cc_g+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 ac_save_c_werror_flag=$ac_c_werror_flag
4153 ac_c_werror_flag=yes
4154 ac_cv_prog_cc_g=no
4155 CFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158
4159 int
4160 main ()
4161 {
4162
4163 ;
4164 return 0;
4165 }
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_g=yes
4169 else
4170 CFLAGS=""
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173
4174 int
4175 main ()
4176 {
4177
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183
4184 else
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4186 CFLAGS="-g"
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189
4190 int
4191 main ()
4192 {
4193
4194 ;
4195 return 0;
4196 }
4197 _ACEOF
4198 if ac_fn_c_try_compile "$LINENO"; then :
4199 ac_cv_prog_cc_g=yes
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4207 fi
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4209 $as_echo "$ac_cv_prog_cc_g" >&6; }
4210 if test "$ac_test_CFLAGS" = set; then
4211 CFLAGS=$ac_save_CFLAGS
4212 elif test $ac_cv_prog_cc_g = yes; then
4213 if test "$GCC" = yes; then
4214 CFLAGS="-g -O2"
4215 else
4216 CFLAGS="-g"
4217 fi
4218 else
4219 if test "$GCC" = yes; then
4220 CFLAGS="-O2"
4221 else
4222 CFLAGS=
4223 fi
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4227 if ${ac_cv_prog_cc_c89+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 ac_cv_prog_cc_c89=no
4231 ac_save_CC=$CC
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <stdarg.h>
4235 #include <stdio.h>
4236 struct stat;
4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4238 struct buf { int x; };
4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240 static char *e (p, i)
4241 char **p;
4242 int i;
4243 {
4244 return p[i];
4245 }
4246 static char *f (char * (*g) (char **, int), char **p, ...)
4247 {
4248 char *s;
4249 va_list v;
4250 va_start (v,p);
4251 s = g (p, va_arg (v,int));
4252 va_end (v);
4253 return s;
4254 }
4255
4256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4257 function prototypes and stuff, but not '\xHH' hex character constants.
4258 These don't provoke an error unfortunately, instead are silently treated
4259 as 'x'. The following induces an error, until -std is added to get
4260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4261 array size at least. It's necessary to write '\x00'==0 to get something
4262 that's true only with -std. */
4263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4264
4265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4266 inside strings and character constants. */
4267 #define FOO(x) 'x'
4268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4269
4270 int test (int i, double x);
4271 struct s1 {int (*f) (int a);};
4272 struct s2 {int (*f) (double a);};
4273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4274 int argc;
4275 char **argv;
4276 int
4277 main ()
4278 {
4279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4286 do
4287 CC="$ac_save_CC $ac_arg"
4288 if ac_fn_c_try_compile "$LINENO"; then :
4289 ac_cv_prog_cc_c89=$ac_arg
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext
4292 test "x$ac_cv_prog_cc_c89" != "xno" && break
4293 done
4294 rm -f conftest.$ac_ext
4295 CC=$ac_save_CC
4296
4297 fi
4298 # AC_CACHE_VAL
4299 case "x$ac_cv_prog_cc_c89" in
4300 x)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4302 $as_echo "none needed" >&6; } ;;
4303 xno)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4305 $as_echo "unsupported" >&6; } ;;
4306 *)
4307 CC="$CC $ac_cv_prog_cc_c89"
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4309 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4310 esac
4311 if test "x$ac_cv_prog_cc_c89" != xno; then :
4312
4313 fi
4314
4315 ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
4321 ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4327 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4328 if ${am_cv_prog_cc_c_o+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333
4334 int
4335 main ()
4336 {
4337
4338 ;
4339 return 0;
4340 }
4341 _ACEOF
4342 # Make sure it works both with $CC and with simple cc.
4343 # Following AC_PROG_CC_C_O, we do the test twice because some
4344 # compilers refuse to overwrite an existing .o file with -o,
4345 # though they will create one.
4346 am_cv_prog_cc_c_o=yes
4347 for am_i in 1 2; do
4348 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4349 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } \
4353 && test -f conftest2.$ac_objext; then
4354 : OK
4355 else
4356 am_cv_prog_cc_c_o=no
4357 break
4358 fi
4359 done
4360 rm -f core conftest*
4361 unset am_i
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4364 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4365 if test "$am_cv_prog_cc_c_o" != yes; then
4366 # Losing compiler, so override with the script.
4367 # FIXME: It is wrong to rewrite CC.
4368 # But if we don't then we get into trouble of one sort or another.
4369 # A longer-term fix would be to have automake use am__CC in this case,
4370 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4371 CC="$am_aux_dir/compile $CC"
4372 fi
4373 ac_ext=c
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
4379 DEPDIR="${am__leading_dot}deps"
4380
4381 ac_config_commands="$ac_config_commands depfiles"
4382
4383
4384 am_make=${MAKE-make}
4385 cat > confinc << 'END'
4386 am__doit:
4387 @echo this is the am__doit target
4388 .PHONY: am__doit
4389 END
4390 # If we don't find an include directive, just comment out the code.
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4392 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4393 am__include="#"
4394 am__quote=
4395 _am_result=none
4396 # First try GNU make style include.
4397 echo "include confinc" > confmf
4398 # Ignore all kinds of additional output from 'make'.
4399 case `$am_make -s -f confmf 2> /dev/null` in #(
4400 *the\ am__doit\ target*)
4401 am__include=include
4402 am__quote=
4403 _am_result=GNU
4404 ;;
4405 esac
4406 # Now try BSD make style include.
4407 if test "$am__include" = "#"; then
4408 echo '.include "confinc"' > confmf
4409 case `$am_make -s -f confmf 2> /dev/null` in #(
4410 *the\ am__doit\ target*)
4411 am__include=.include
4412 am__quote="\""
4413 _am_result=BSD
4414 ;;
4415 esac
4416 fi
4417
4418
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4420 $as_echo "$_am_result" >&6; }
4421 rm -f confinc confmf
4422
4423 # Check whether --enable-dependency-tracking was given.
4424 if test "${enable_dependency_tracking+set}" = set; then :
4425 enableval=$enable_dependency_tracking;
4426 fi
4427
4428 if test "x$enable_dependency_tracking" != xno; then
4429 am_depcomp="$ac_aux_dir/depcomp"
4430 AMDEPBACKSLASH='\'
4431 am__nodep='_no'
4432 fi
4433 if test "x$enable_dependency_tracking" != xno; then
4434 AMDEP_TRUE=
4435 AMDEP_FALSE='#'
4436 else
4437 AMDEP_TRUE='#'
4438 AMDEP_FALSE=
4439 fi
4440
4441
4442
4443 depcc="$CC" am_compiler_list=
4444
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4446 $as_echo_n "checking dependency style of $depcc... " >&6; }
4447 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4451 # We make a subdir and do the tests there. Otherwise we can end up
4452 # making bogus files that we don't know about and never remove. For
4453 # instance it was reported that on HP-UX the gcc test will end up
4454 # making a dummy file named 'D' -- because '-MD' means "put the output
4455 # in D".
4456 rm -rf conftest.dir
4457 mkdir conftest.dir
4458 # Copy depcomp to subdir because otherwise we won't find it if we're
4459 # using a relative directory.
4460 cp "$am_depcomp" conftest.dir
4461 cd conftest.dir
4462 # We will build objects and dependencies in a subdirectory because
4463 # it helps to detect inapplicable dependency modes. For instance
4464 # both Tru64's cc and ICC support -MD to output dependencies as a
4465 # side effect of compilation, but ICC will put the dependencies in
4466 # the current directory while Tru64 will put them in the object
4467 # directory.
4468 mkdir sub
4469
4470 am_cv_CC_dependencies_compiler_type=none
4471 if test "$am_compiler_list" = ""; then
4472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4473 fi
4474 am__universal=false
4475 case " $depcc " in #(
4476 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4477 esac
4478
4479 for depmode in $am_compiler_list; do
4480 # Setup a source with many dependencies, because some compilers
4481 # like to wrap large dependency lists on column 80 (with \), and
4482 # we should not choose a depcomp mode which is confused by this.
4483 #
4484 # We need to recreate these files for each test, as the compiler may
4485 # overwrite some of them when testing with obscure command lines.
4486 # This happens at least with the AIX C compiler.
4487 : > sub/conftest.c
4488 for i in 1 2 3 4 5 6; do
4489 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4490 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4491 # Solaris 10 /bin/sh.
4492 echo '/* dummy */' > sub/conftst$i.h
4493 done
4494 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4495
4496 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4497 # mode. It turns out that the SunPro C++ compiler does not properly
4498 # handle '-M -o', and we need to detect this. Also, some Intel
4499 # versions had trouble with output in subdirs.
4500 am__obj=sub/conftest.${OBJEXT-o}
4501 am__minus_obj="-o $am__obj"
4502 case $depmode in
4503 gcc)
4504 # This depmode causes a compiler race in universal mode.
4505 test "$am__universal" = false || continue
4506 ;;
4507 nosideeffect)
4508 # After this tag, mechanisms are not by side-effect, so they'll
4509 # only be used when explicitly requested.
4510 if test "x$enable_dependency_tracking" = xyes; then
4511 continue
4512 else
4513 break
4514 fi
4515 ;;
4516 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4517 # This compiler won't grok '-c -o', but also, the minuso test has
4518 # not run yet. These depmodes are late enough in the game, and
4519 # so weak that their functioning should not be impacted.
4520 am__obj=conftest.${OBJEXT-o}
4521 am__minus_obj=
4522 ;;
4523 none) break ;;
4524 esac
4525 if depmode=$depmode \
4526 source=sub/conftest.c object=$am__obj \
4527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4528 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4529 >/dev/null 2>conftest.err &&
4530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534 # icc doesn't choke on unknown options, it will just issue warnings
4535 # or remarks (even with -Werror). So we grep stderr for any message
4536 # that says an option was ignored or not supported.
4537 # When given -MP, icc 7.0 and 7.1 complain thusly:
4538 # icc: Command line warning: ignoring option '-M'; no argument required
4539 # The diagnosis changed in icc 8.0:
4540 # icc: Command line remark: option '-MP' not supported
4541 if (grep 'ignoring option' conftest.err ||
4542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543 am_cv_CC_dependencies_compiler_type=$depmode
4544 break
4545 fi
4546 fi
4547 done
4548
4549 cd ..
4550 rm -rf conftest.dir
4551 else
4552 am_cv_CC_dependencies_compiler_type=none
4553 fi
4554
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4557 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4559
4560 if
4561 test "x$enable_dependency_tracking" != xno \
4562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4563 am__fastdepCC_TRUE=
4564 am__fastdepCC_FALSE='#'
4565 else
4566 am__fastdepCC_TRUE='#'
4567 am__fastdepCC_FALSE=
4568 fi
4569
4570
4571
4572
4573
4574
4575 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4576 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4577 # in both places for now and restore CFLAGS at the end of config.
4578 save_CFLAGS="$CFLAGS"
4579
4580 # Check whether --enable-werror was given.
4581 if test "${enable_werror+set}" = set; then :
4582 enableval=$enable_werror;
4583 fi
4584
4585 # Add -Wall -Werror if we are using GCC.
4586 if test "x$GCC" = "xyes"; then :
4587 XCFLAGS="$XCFLAGS -Wall"
4588 fi
4589 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4590 XCFLAGS="$XCFLAGS -Werror"
4591 fi
4592
4593 # Find other programs we need.
4594 if test -n "$ac_tool_prefix"; then
4595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4596 set dummy ${ac_tool_prefix}ar; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_prog_AR+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$AR"; then
4603 ac_cv_prog_AR="$AR" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_AR="${ac_tool_prefix}ar"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616 done
4617 done
4618 IFS=$as_save_IFS
4619
4620 fi
4621 fi
4622 AR=$ac_cv_prog_AR
4623 if test -n "$AR"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4625 $as_echo "$AR" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4629 fi
4630
4631
4632 fi
4633 if test -z "$ac_cv_prog_AR"; then
4634 ac_ct_AR=$AR
4635 # Extract the first word of "ar", so it can be a program name with args.
4636 set dummy ar; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$ac_ct_AR"; then
4643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652 ac_cv_prog_ac_ct_AR="ar"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4663 if test -n "$ac_ct_AR"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4665 $as_echo "$ac_ct_AR" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671 if test "x$ac_ct_AR" = x; then
4672 AR=""
4673 else
4674 case $cross_compiling:$ac_tool_warned in
4675 yes:)
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678 ac_tool_warned=yes ;;
4679 esac
4680 AR=$ac_ct_AR
4681 fi
4682 else
4683 AR="$ac_cv_prog_AR"
4684 fi
4685
4686 if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_RANLIB+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$RANLIB"; then
4695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 RANLIB=$ac_cv_prog_RANLIB
4715 if test -n "$RANLIB"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4717 $as_echo "$RANLIB" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723
4724 fi
4725 if test -z "$ac_cv_prog_RANLIB"; then
4726 ac_ct_RANLIB=$RANLIB
4727 # Extract the first word of "ranlib", so it can be a program name with args.
4728 set dummy ranlib; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 if test -n "$ac_ct_RANLIB"; then
4735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4736 else
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_prog_ac_ct_RANLIB="ranlib"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 fi
4753 fi
4754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4755 if test -n "$ac_ct_RANLIB"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4757 $as_echo "$ac_ct_RANLIB" >&6; }
4758 else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4761 fi
4762
4763 if test "x$ac_ct_RANLIB" = x; then
4764 RANLIB="ranlib-not-found-in-path-error"
4765 else
4766 case $cross_compiling:$ac_tool_warned in
4767 yes:)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770 ac_tool_warned=yes ;;
4771 esac
4772 RANLIB=$ac_ct_RANLIB
4773 fi
4774 else
4775 RANLIB="$ac_cv_prog_RANLIB"
4776 fi
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4779 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4780 set x ${MAKE-make}
4781 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4782 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 cat >conftest.make <<\_ACEOF
4786 SHELL = /bin/sh
4787 all:
4788 @echo '@@@%%%=$(MAKE)=@@@%%%'
4789 _ACEOF
4790 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4791 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4792 *@@@%%%=?*=@@@%%%*)
4793 eval ac_cv_prog_make_${ac_make}_set=yes;;
4794 *)
4795 eval ac_cv_prog_make_${ac_make}_set=no;;
4796 esac
4797 rm -f conftest.make
4798 fi
4799 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4801 $as_echo "yes" >&6; }
4802 SET_MAKE=
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 SET_MAKE="MAKE=${MAKE-make}"
4807 fi
4808
4809
4810
4811 # See if makeinfo has been installed and is modern enough
4812 # that we can use it.
4813
4814 # Extract the first word of "makeinfo", so it can be a program name with args.
4815 set dummy makeinfo; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_MAKEINFO+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$MAKEINFO"; then
4822 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_MAKEINFO="makeinfo"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 MAKEINFO=$ac_cv_prog_MAKEINFO
4842 if test -n "$MAKEINFO"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4844 $as_echo "$MAKEINFO" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 if test -n "$MAKEINFO"; then
4852 # Found it, now check the version.
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4854 $as_echo_n "checking for modern makeinfo... " >&6; }
4855 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4859 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4860
4861 case $ac_prog_version in
4862 '') gcc_cv_prog_makeinfo_modern=no;;
4863 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4864 *) gcc_cv_prog_makeinfo_modern=no;;
4865 esac
4866
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4869 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4870 else
4871 gcc_cv_prog_makeinfo_modern=no
4872 fi
4873 if test $gcc_cv_prog_makeinfo_modern = no; then
4874 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4875 fi
4876
4877 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4878 BUILD_INFO_TRUE=
4879 BUILD_INFO_FALSE='#'
4880 else
4881 BUILD_INFO_TRUE='#'
4882 BUILD_INFO_FALSE=
4883 fi
4884
4885
4886
4887 # Configure libtool
4888 case `pwd` in
4889 *\ * | *\ *)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4891 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4892 esac
4893
4894
4895
4896 macro_version='2.2.7a'
4897 macro_revision='1.3134'
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911 ltmain="$ac_aux_dir/ltmain.sh"
4912
4913 # Backslashify metacharacters that are still active within
4914 # double-quoted strings.
4915 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4916
4917 # Same as above, but do not quote variable references.
4918 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4919
4920 # Sed substitution to delay expansion of an escaped shell variable in a
4921 # double_quote_subst'ed string.
4922 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4923
4924 # Sed substitution to delay expansion of an escaped single quote.
4925 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4926
4927 # Sed substitution to avoid accidental globbing in evaled expressions
4928 no_glob_subst='s/\*/\\\*/g'
4929
4930 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4931 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4932 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4935 $as_echo_n "checking how to print strings... " >&6; }
4936 # Test print first, because it will be a builtin if present.
4937 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4938 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4939 ECHO='print -r --'
4940 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4941 ECHO='printf %s\n'
4942 else
4943 # Use this function as a fallback that always works.
4944 func_fallback_echo ()
4945 {
4946 eval 'cat <<_LTECHO_EOF
4947 $1
4948 _LTECHO_EOF'
4949 }
4950 ECHO='func_fallback_echo'
4951 fi
4952
4953 # func_echo_all arg...
4954 # Invoke $ECHO with all args, space-separated.
4955 func_echo_all ()
4956 {
4957 $ECHO ""
4958 }
4959
4960 case "$ECHO" in
4961 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4962 $as_echo "printf" >&6; } ;;
4963 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4964 $as_echo "print -r" >&6; } ;;
4965 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4966 $as_echo "cat" >&6; } ;;
4967 esac
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4983 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4984 if ${ac_cv_path_SED+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4988 for ac_i in 1 2 3 4 5 6 7; do
4989 ac_script="$ac_script$as_nl$ac_script"
4990 done
4991 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4992 { ac_script=; unset ac_script;}
4993 if test -z "$SED"; then
4994 ac_path_SED_found=false
4995 # Loop through the user's path and test for each of PROGNAME-LIST
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_prog in sed gsed; do
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5004 as_fn_executable_p "$ac_path_SED" || continue
5005 # Check for GNU ac_path_SED and select it if it is found.
5006 # Check for GNU $ac_path_SED
5007 case `"$ac_path_SED" --version 2>&1` in
5008 *GNU*)
5009 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5010 *)
5011 ac_count=0
5012 $as_echo_n 0123456789 >"conftest.in"
5013 while :
5014 do
5015 cat "conftest.in" "conftest.in" >"conftest.tmp"
5016 mv "conftest.tmp" "conftest.in"
5017 cp "conftest.in" "conftest.nl"
5018 $as_echo '' >> "conftest.nl"
5019 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5021 as_fn_arith $ac_count + 1 && ac_count=$as_val
5022 if test $ac_count -gt ${ac_path_SED_max-0}; then
5023 # Best one so far, save it but keep looking for a better one
5024 ac_cv_path_SED="$ac_path_SED"
5025 ac_path_SED_max=$ac_count
5026 fi
5027 # 10*(2^10) chars as input seems more than enough
5028 test $ac_count -gt 10 && break
5029 done
5030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5031 esac
5032
5033 $ac_path_SED_found && break 3
5034 done
5035 done
5036 done
5037 IFS=$as_save_IFS
5038 if test -z "$ac_cv_path_SED"; then
5039 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5040 fi
5041 else
5042 ac_cv_path_SED=$SED
5043 fi
5044
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5047 $as_echo "$ac_cv_path_SED" >&6; }
5048 SED="$ac_cv_path_SED"
5049 rm -f conftest.sed
5050
5051 test -z "$SED" && SED=sed
5052 Xsed="$SED -e 1s/^X//"
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5065 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5066 if ${ac_cv_path_GREP+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -z "$GREP"; then
5070 ac_path_GREP_found=false
5071 # Loop through the user's path and test for each of PROGNAME-LIST
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5074 do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_prog in grep ggrep; do
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5080 as_fn_executable_p "$ac_path_GREP" || continue
5081 # Check for GNU ac_path_GREP and select it if it is found.
5082 # Check for GNU $ac_path_GREP
5083 case `"$ac_path_GREP" --version 2>&1` in
5084 *GNU*)
5085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5086 *)
5087 ac_count=0
5088 $as_echo_n 0123456789 >"conftest.in"
5089 while :
5090 do
5091 cat "conftest.in" "conftest.in" >"conftest.tmp"
5092 mv "conftest.tmp" "conftest.in"
5093 cp "conftest.in" "conftest.nl"
5094 $as_echo 'GREP' >> "conftest.nl"
5095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5097 as_fn_arith $ac_count + 1 && ac_count=$as_val
5098 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5099 # Best one so far, save it but keep looking for a better one
5100 ac_cv_path_GREP="$ac_path_GREP"
5101 ac_path_GREP_max=$ac_count
5102 fi
5103 # 10*(2^10) chars as input seems more than enough
5104 test $ac_count -gt 10 && break
5105 done
5106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5107 esac
5108
5109 $ac_path_GREP_found && break 3
5110 done
5111 done
5112 done
5113 IFS=$as_save_IFS
5114 if test -z "$ac_cv_path_GREP"; then
5115 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5116 fi
5117 else
5118 ac_cv_path_GREP=$GREP
5119 fi
5120
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5123 $as_echo "$ac_cv_path_GREP" >&6; }
5124 GREP="$ac_cv_path_GREP"
5125
5126
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5128 $as_echo_n "checking for egrep... " >&6; }
5129 if ${ac_cv_path_EGREP+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5133 then ac_cv_path_EGREP="$GREP -E"
5134 else
5135 if test -z "$EGREP"; then
5136 ac_path_EGREP_found=false
5137 # Loop through the user's path and test for each of PROGNAME-LIST
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5140 do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_prog in egrep; do
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5146 as_fn_executable_p "$ac_path_EGREP" || continue
5147 # Check for GNU ac_path_EGREP and select it if it is found.
5148 # Check for GNU $ac_path_EGREP
5149 case `"$ac_path_EGREP" --version 2>&1` in
5150 *GNU*)
5151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5152 *)
5153 ac_count=0
5154 $as_echo_n 0123456789 >"conftest.in"
5155 while :
5156 do
5157 cat "conftest.in" "conftest.in" >"conftest.tmp"
5158 mv "conftest.tmp" "conftest.in"
5159 cp "conftest.in" "conftest.nl"
5160 $as_echo 'EGREP' >> "conftest.nl"
5161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5163 as_fn_arith $ac_count + 1 && ac_count=$as_val
5164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5165 # Best one so far, save it but keep looking for a better one
5166 ac_cv_path_EGREP="$ac_path_EGREP"
5167 ac_path_EGREP_max=$ac_count
5168 fi
5169 # 10*(2^10) chars as input seems more than enough
5170 test $ac_count -gt 10 && break
5171 done
5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5173 esac
5174
5175 $ac_path_EGREP_found && break 3
5176 done
5177 done
5178 done
5179 IFS=$as_save_IFS
5180 if test -z "$ac_cv_path_EGREP"; then
5181 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5182 fi
5183 else
5184 ac_cv_path_EGREP=$EGREP
5185 fi
5186
5187 fi
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5190 $as_echo "$ac_cv_path_EGREP" >&6; }
5191 EGREP="$ac_cv_path_EGREP"
5192
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5195 $as_echo_n "checking for fgrep... " >&6; }
5196 if ${ac_cv_path_FGREP+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5200 then ac_cv_path_FGREP="$GREP -F"
5201 else
5202 if test -z "$FGREP"; then
5203 ac_path_FGREP_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_prog in fgrep; do
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5213 as_fn_executable_p "$ac_path_FGREP" || continue
5214 # Check for GNU ac_path_FGREP and select it if it is found.
5215 # Check for GNU $ac_path_FGREP
5216 case `"$ac_path_FGREP" --version 2>&1` in
5217 *GNU*)
5218 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5219 *)
5220 ac_count=0
5221 $as_echo_n 0123456789 >"conftest.in"
5222 while :
5223 do
5224 cat "conftest.in" "conftest.in" >"conftest.tmp"
5225 mv "conftest.tmp" "conftest.in"
5226 cp "conftest.in" "conftest.nl"
5227 $as_echo 'FGREP' >> "conftest.nl"
5228 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5230 as_fn_arith $ac_count + 1 && ac_count=$as_val
5231 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5232 # Best one so far, save it but keep looking for a better one
5233 ac_cv_path_FGREP="$ac_path_FGREP"
5234 ac_path_FGREP_max=$ac_count
5235 fi
5236 # 10*(2^10) chars as input seems more than enough
5237 test $ac_count -gt 10 && break
5238 done
5239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5240 esac
5241
5242 $ac_path_FGREP_found && break 3
5243 done
5244 done
5245 done
5246 IFS=$as_save_IFS
5247 if test -z "$ac_cv_path_FGREP"; then
5248 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5249 fi
5250 else
5251 ac_cv_path_FGREP=$FGREP
5252 fi
5253
5254 fi
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5257 $as_echo "$ac_cv_path_FGREP" >&6; }
5258 FGREP="$ac_cv_path_FGREP"
5259
5260
5261 test -z "$GREP" && GREP=grep
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 # Check whether --with-gnu-ld was given.
5282 if test "${with_gnu_ld+set}" = set; then :
5283 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5284 else
5285 with_gnu_ld=no
5286 fi
5287
5288 ac_prog=ld
5289 if test "$GCC" = yes; then
5290 # Check if gcc -print-prog-name=ld gives a path.
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5292 $as_echo_n "checking for ld used by $CC... " >&6; }
5293 case $host in
5294 *-*-mingw*)
5295 # gcc leaves a trailing carriage return which upsets mingw
5296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5297 *)
5298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5299 esac
5300 case $ac_prog in
5301 # Accept absolute paths.
5302 [\\/]* | ?:[\\/]*)
5303 re_direlt='/[^/][^/]*/\.\./'
5304 # Canonicalize the pathname of ld
5305 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5306 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5307 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5308 done
5309 test -z "$LD" && LD="$ac_prog"
5310 ;;
5311 "")
5312 # If it fails, then pretend we aren't using GCC.
5313 ac_prog=ld
5314 ;;
5315 *)
5316 # If it is relative, then search for the first ld in PATH.
5317 with_gnu_ld=unknown
5318 ;;
5319 esac
5320 elif test "$with_gnu_ld" = yes; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5322 $as_echo_n "checking for GNU ld... " >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5325 $as_echo_n "checking for non-GNU ld... " >&6; }
5326 fi
5327 if ${lt_cv_path_LD+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -z "$LD"; then
5331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5332 for ac_dir in $PATH; do
5333 IFS="$lt_save_ifs"
5334 test -z "$ac_dir" && ac_dir=.
5335 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5336 lt_cv_path_LD="$ac_dir/$ac_prog"
5337 # Check to see if the program is GNU ld. I'd rather use --version,
5338 # but apparently some variants of GNU ld only accept -v.
5339 # Break only if it was the GNU/non-GNU ld that we prefer.
5340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5341 *GNU* | *'with BFD'*)
5342 test "$with_gnu_ld" != no && break
5343 ;;
5344 *)
5345 test "$with_gnu_ld" != yes && break
5346 ;;
5347 esac
5348 fi
5349 done
5350 IFS="$lt_save_ifs"
5351 else
5352 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5353 fi
5354 fi
5355
5356 LD="$lt_cv_path_LD"
5357 if test -n "$LD"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5359 $as_echo "$LD" >&6; }
5360 else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 fi
5364 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5366 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5367 if ${lt_cv_prog_gnu_ld+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5371 case `$LD -v 2>&1 </dev/null` in
5372 *GNU* | *'with BFD'*)
5373 lt_cv_prog_gnu_ld=yes
5374 ;;
5375 *)
5376 lt_cv_prog_gnu_ld=no
5377 ;;
5378 esac
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5381 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5382 with_gnu_ld=$lt_cv_prog_gnu_ld
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5393 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5394 if ${lt_cv_path_NM+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$NM"; then
5398 # Let the user override the nm to test.
5399 lt_nm_to_check="$NM"
5400 else
5401 lt_nm_to_check="${ac_tool_prefix}nm"
5402 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5403 lt_nm_to_check="$lt_nm_to_check nm"
5404 fi
5405 fi
5406 for lt_tmp_nm in $lt_nm_to_check; do
5407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5408 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5409 IFS="$lt_save_ifs"
5410 test -z "$ac_dir" && ac_dir=.
5411 case "$lt_tmp_nm" in
5412 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5413 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5414 esac
5415 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5416 # Check to see if the nm accepts a BSD-compat flag.
5417 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5418 # nm: unknown option "B" ignored
5419 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5420 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5421 break
5422 ;;
5423 *)
5424 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5425 *$tmp_nm*)
5426 lt_cv_path_NM="$tmp_nm -p"
5427 break
5428 ;;
5429 *)
5430 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5431 continue # so that we can try to find one that supports BSD flags
5432 ;;
5433 esac
5434 ;;
5435 esac
5436 fi
5437 done
5438 IFS="$lt_save_ifs"
5439 done
5440 : ${lt_cv_path_NM=no}
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5443 $as_echo "$lt_cv_path_NM" >&6; }
5444 if test "$lt_cv_path_NM" != "no"; then
5445 NM="$lt_cv_path_NM"
5446 else
5447 # Didn't find any BSD compatible name lister, look for dumpbin.
5448 if test -n "$DUMPBIN"; then :
5449 # Let the user override the test.
5450 else
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in dumpbin "link -dump"
5453 do
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_DUMPBIN+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$DUMPBIN"; then
5462 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 DUMPBIN=$ac_cv_prog_DUMPBIN
5482 if test -n "$DUMPBIN"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5484 $as_echo "$DUMPBIN" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 test -n "$DUMPBIN" && break
5492 done
5493 fi
5494 if test -z "$DUMPBIN"; then
5495 ac_ct_DUMPBIN=$DUMPBIN
5496 for ac_prog in dumpbin "link -dump"
5497 do
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test -n "$ac_ct_DUMPBIN"; then
5506 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519 done
5520 done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5526 if test -n "$ac_ct_DUMPBIN"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5528 $as_echo "$ac_ct_DUMPBIN" >&6; }
5529 else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 test -n "$ac_ct_DUMPBIN" && break
5536 done
5537
5538 if test "x$ac_ct_DUMPBIN" = x; then
5539 DUMPBIN=":"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 DUMPBIN=$ac_ct_DUMPBIN
5548 fi
5549 fi
5550
5551 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5552 *COFF*)
5553 DUMPBIN="$DUMPBIN -symbols"
5554 ;;
5555 *)
5556 DUMPBIN=:
5557 ;;
5558 esac
5559 fi
5560
5561 if test "$DUMPBIN" != ":"; then
5562 NM="$DUMPBIN"
5563 fi
5564 fi
5565 test -z "$NM" && NM=nm
5566
5567
5568
5569
5570
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5573 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5574 if ${lt_cv_nm_interface+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 lt_cv_nm_interface="BSD nm"
5578 echo "int some_variable = 0;" > conftest.$ac_ext
5579 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5580 (eval "$ac_compile" 2>conftest.err)
5581 cat conftest.err >&5
5582 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5583 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5584 cat conftest.err >&5
5585 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5586 cat conftest.out >&5
5587 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5588 lt_cv_nm_interface="MS dumpbin"
5589 fi
5590 rm -f conftest*
5591 fi
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5593 $as_echo "$lt_cv_nm_interface" >&6; }
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5596 $as_echo_n "checking whether ln -s works... " >&6; }
5597 LN_S=$as_ln_s
5598 if test "$LN_S" = "ln -s"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5600 $as_echo "yes" >&6; }
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5603 $as_echo "no, using $LN_S" >&6; }
5604 fi
5605
5606 # find the maximum length of command line arguments
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5608 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5609 if ${lt_cv_sys_max_cmd_len+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 i=0
5613 teststring="ABCD"
5614
5615 case $build_os in
5616 msdosdjgpp*)
5617 # On DJGPP, this test can blow up pretty badly due to problems in libc
5618 # (any single argument exceeding 2000 bytes causes a buffer overrun
5619 # during glob expansion). Even if it were fixed, the result of this
5620 # check would be larger than it should be.
5621 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5622 ;;
5623
5624 gnu*)
5625 # Under GNU Hurd, this test is not required because there is
5626 # no limit to the length of command line arguments.
5627 # Libtool will interpret -1 as no limit whatsoever
5628 lt_cv_sys_max_cmd_len=-1;
5629 ;;
5630
5631 cygwin* | mingw* | cegcc*)
5632 # On Win9x/ME, this test blows up -- it succeeds, but takes
5633 # about 5 minutes as the teststring grows exponentially.
5634 # Worse, since 9x/ME are not pre-emptively multitasking,
5635 # you end up with a "frozen" computer, even though with patience
5636 # the test eventually succeeds (with a max line length of 256k).
5637 # Instead, let's just punt: use the minimum linelength reported by
5638 # all of the supported platforms: 8192 (on NT/2K/XP).
5639 lt_cv_sys_max_cmd_len=8192;
5640 ;;
5641
5642 mint*)
5643 # On MiNT this can take a long time and run out of memory.
5644 lt_cv_sys_max_cmd_len=8192;
5645 ;;
5646
5647 amigaos*)
5648 # On AmigaOS with pdksh, this test takes hours, literally.
5649 # So we just punt and use a minimum line length of 8192.
5650 lt_cv_sys_max_cmd_len=8192;
5651 ;;
5652
5653 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5654 # This has been around since 386BSD, at least. Likely further.
5655 if test -x /sbin/sysctl; then
5656 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5657 elif test -x /usr/sbin/sysctl; then
5658 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5659 else
5660 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5661 fi
5662 # And add a safety zone
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5665 ;;
5666
5667 interix*)
5668 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5669 lt_cv_sys_max_cmd_len=196608
5670 ;;
5671
5672 osf*)
5673 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5674 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5675 # nice to cause kernel panics so lets avoid the loop below.
5676 # First set a reasonable default.
5677 lt_cv_sys_max_cmd_len=16384
5678 #
5679 if test -x /sbin/sysconfig; then
5680 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5681 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5682 esac
5683 fi
5684 ;;
5685 sco3.2v5*)
5686 lt_cv_sys_max_cmd_len=102400
5687 ;;
5688 sysv5* | sco5v6* | sysv4.2uw2*)
5689 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5690 if test -n "$kargmax"; then
5691 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5692 else
5693 lt_cv_sys_max_cmd_len=32768
5694 fi
5695 ;;
5696 *)
5697 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5698 if test -n "$lt_cv_sys_max_cmd_len"; then
5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5701 else
5702 # Make teststring a little bigger before we do anything with it.
5703 # a 1K string should be a reasonable start.
5704 for i in 1 2 3 4 5 6 7 8 ; do
5705 teststring=$teststring$teststring
5706 done
5707 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5708 # If test is not a shell built-in, we'll probably end up computing a
5709 # maximum length that is only half of the actual maximum length, but
5710 # we can't tell.
5711 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5712 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5713 test $i != 17 # 1/2 MB should be enough
5714 do
5715 i=`expr $i + 1`
5716 teststring=$teststring$teststring
5717 done
5718 # Only check the string length outside the loop.
5719 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5720 teststring=
5721 # Add a significant safety factor because C++ compilers can tack on
5722 # massive amounts of additional arguments before passing them to the
5723 # linker. It appears as though 1/2 is a usable value.
5724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5725 fi
5726 ;;
5727 esac
5728
5729 fi
5730
5731 if test -n $lt_cv_sys_max_cmd_len ; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5733 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5736 $as_echo "none" >&6; }
5737 fi
5738 max_cmd_len=$lt_cv_sys_max_cmd_len
5739
5740
5741
5742
5743
5744
5745 : ${CP="cp -f"}
5746 : ${MV="mv -f"}
5747 : ${RM="rm -f"}
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5750 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5751 # Try some XSI features
5752 xsi_shell=no
5753 ( _lt_dummy="a/b/c"
5754 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5755 = c,a/b,, \
5756 && eval 'test $(( 1 + 1 )) -eq 2 \
5757 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5758 && xsi_shell=yes
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5760 $as_echo "$xsi_shell" >&6; }
5761
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5764 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5765 lt_shell_append=no
5766 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5767 >/dev/null 2>&1 \
5768 && lt_shell_append=yes
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5770 $as_echo "$lt_shell_append" >&6; }
5771
5772
5773 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5774 lt_unset=unset
5775 else
5776 lt_unset=false
5777 fi
5778
5779
5780
5781
5782
5783 # test EBCDIC or ASCII
5784 case `echo X|tr X '\101'` in
5785 A) # ASCII based system
5786 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5787 lt_SP2NL='tr \040 \012'
5788 lt_NL2SP='tr \015\012 \040\040'
5789 ;;
5790 *) # EBCDIC based system
5791 lt_SP2NL='tr \100 \n'
5792 lt_NL2SP='tr \r\n \100\100'
5793 ;;
5794 esac
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5805 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5806 if ${lt_cv_ld_reload_flag+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 lt_cv_ld_reload_flag='-r'
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5812 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5813 reload_flag=$lt_cv_ld_reload_flag
5814 case $reload_flag in
5815 "" | " "*) ;;
5816 *) reload_flag=" $reload_flag" ;;
5817 esac
5818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5819 case $host_os in
5820 darwin*)
5821 if test "$GCC" = yes; then
5822 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5823 else
5824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5825 fi
5826 ;;
5827 esac
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_OBJDUMP+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$OBJDUMP"; then
5846 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 OBJDUMP=$ac_cv_prog_OBJDUMP
5866 if test -n "$OBJDUMP"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5868 $as_echo "$OBJDUMP" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874
5875 fi
5876 if test -z "$ac_cv_prog_OBJDUMP"; then
5877 ac_ct_OBJDUMP=$OBJDUMP
5878 # Extract the first word of "objdump", so it can be a program name with args.
5879 set dummy objdump; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test -n "$ac_ct_OBJDUMP"; then
5886 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899 done
5900 done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5906 if test -n "$ac_ct_OBJDUMP"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5908 $as_echo "$ac_ct_OBJDUMP" >&6; }
5909 else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913
5914 if test "x$ac_ct_OBJDUMP" = x; then
5915 OBJDUMP="false"
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923 OBJDUMP=$ac_ct_OBJDUMP
5924 fi
5925 else
5926 OBJDUMP="$ac_cv_prog_OBJDUMP"
5927 fi
5928
5929 test -z "$OBJDUMP" && OBJDUMP=objdump
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5940 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5941 if ${lt_cv_deplibs_check_method+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 lt_cv_file_magic_cmd='$MAGIC_CMD'
5945 lt_cv_file_magic_test_file=
5946 lt_cv_deplibs_check_method='unknown'
5947 # Need to set the preceding variable on all platforms that support
5948 # interlibrary dependencies.
5949 # 'none' -- dependencies not supported.
5950 # `unknown' -- same as none, but documents that we really don't know.
5951 # 'pass_all' -- all dependencies passed with no checks.
5952 # 'test_compile' -- check by making test program.
5953 # 'file_magic [[regex]]' -- check by looking for files in library path
5954 # which responds to the $file_magic_cmd with a given extended regex.
5955 # If you have `file' or equivalent on your system and you're not sure
5956 # whether `pass_all' will *always* work, you probably want this one.
5957
5958 case $host_os in
5959 aix[4-9]*)
5960 lt_cv_deplibs_check_method=pass_all
5961 ;;
5962
5963 beos*)
5964 lt_cv_deplibs_check_method=pass_all
5965 ;;
5966
5967 bsdi[45]*)
5968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5969 lt_cv_file_magic_cmd='/usr/bin/file -L'
5970 lt_cv_file_magic_test_file=/shlib/libc.so
5971 ;;
5972
5973 cygwin*)
5974 # func_win32_libid is a shell function defined in ltmain.sh
5975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5976 lt_cv_file_magic_cmd='func_win32_libid'
5977 ;;
5978
5979 mingw* | pw32*)
5980 # Base MSYS/MinGW do not provide the 'file' command needed by
5981 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5982 # unless we find 'file', for example because we are cross-compiling.
5983 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5984 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5986 lt_cv_file_magic_cmd='func_win32_libid'
5987 else
5988 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5989 lt_cv_file_magic_cmd='$OBJDUMP -f'
5990 fi
5991 ;;
5992
5993 cegcc*)
5994 # use the weaker test based on 'objdump'. See mingw*.
5995 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5996 lt_cv_file_magic_cmd='$OBJDUMP -f'
5997 ;;
5998
5999 darwin* | rhapsody*)
6000 lt_cv_deplibs_check_method=pass_all
6001 ;;
6002
6003 freebsd* | dragonfly*)
6004 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6005 case $host_cpu in
6006 i*86 )
6007 # Not sure whether the presence of OpenBSD here was a mistake.
6008 # Let's accept both of them until this is cleared up.
6009 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6010 lt_cv_file_magic_cmd=/usr/bin/file
6011 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6012 ;;
6013 esac
6014 else
6015 lt_cv_deplibs_check_method=pass_all
6016 fi
6017 ;;
6018
6019 gnu*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023 haiku*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027 hpux10.20* | hpux11*)
6028 lt_cv_file_magic_cmd=/usr/bin/file
6029 case $host_cpu in
6030 ia64*)
6031 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6032 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6033 ;;
6034 hppa*64*)
6035 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]'
6036 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6037 ;;
6038 *)
6039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6040 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6041 ;;
6042 esac
6043 ;;
6044
6045 interix[3-9]*)
6046 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6048 ;;
6049
6050 irix5* | irix6* | nonstopux*)
6051 case $LD in
6052 *-32|*"-32 ") libmagic=32-bit;;
6053 *-n32|*"-n32 ") libmagic=N32;;
6054 *-64|*"-64 ") libmagic=64-bit;;
6055 *) libmagic=never-match;;
6056 esac
6057 lt_cv_deplibs_check_method=pass_all
6058 ;;
6059
6060 # This must be Linux ELF.
6061 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
6064
6065 netbsd*)
6066 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6068 else
6069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6070 fi
6071 ;;
6072
6073 newos6*)
6074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6075 lt_cv_file_magic_cmd=/usr/bin/file
6076 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6077 ;;
6078
6079 *nto* | *qnx*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083 openbsd*)
6084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6086 else
6087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6088 fi
6089 ;;
6090
6091 osf3* | osf4* | osf5*)
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094
6095 rdos*)
6096 lt_cv_deplibs_check_method=pass_all
6097 ;;
6098
6099 solaris*)
6100 lt_cv_deplibs_check_method=pass_all
6101 ;;
6102
6103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 sysv4 | sysv4.3*)
6108 case $host_vendor in
6109 motorola)
6110 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]'
6111 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6112 ;;
6113 ncr)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116 sequent)
6117 lt_cv_file_magic_cmd='/bin/file'
6118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6119 ;;
6120 sni)
6121 lt_cv_file_magic_cmd='/bin/file'
6122 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6123 lt_cv_file_magic_test_file=/lib/libc.so
6124 ;;
6125 siemens)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128 pc)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131 esac
6132 ;;
6133
6134 tpf*)
6135 lt_cv_deplibs_check_method=pass_all
6136 ;;
6137 vxworks*)
6138 # Assume VxWorks cross toolchains are built on Linux, possibly
6139 # as canadian for Windows hosts.
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142 esac
6143
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6146 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6147 file_magic_cmd=$lt_cv_file_magic_cmd
6148 deplibs_check_method=$lt_cv_deplibs_check_method
6149 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162 plugin_option=
6163 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6164 for plugin in $plugin_names; do
6165 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6166 if test x$plugin_so = x$plugin; then
6167 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6168 fi
6169 if test x$plugin_so != x$plugin; then
6170 plugin_option="--plugin $plugin_so"
6171 break
6172 fi
6173 done
6174
6175 if test -n "$ac_tool_prefix"; then
6176 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6177 set dummy ${ac_tool_prefix}ar; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_AR+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 if test -n "$AR"; then
6184 ac_cv_prog_AR="$AR" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193 ac_cv_prog_AR="${ac_tool_prefix}ar"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 AR=$ac_cv_prog_AR
6204 if test -n "$AR"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6206 $as_echo "$AR" >&6; }
6207 else
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211
6212
6213 fi
6214 if test -z "$ac_cv_prog_AR"; then
6215 ac_ct_AR=$AR
6216 # Extract the first word of "ar", so it can be a program name with args.
6217 set dummy ar; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 if test -n "$ac_ct_AR"; then
6224 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_ac_ct_AR="ar"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
6237 done
6238 done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6244 if test -n "$ac_ct_AR"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6246 $as_echo "$ac_ct_AR" >&6; }
6247 else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251
6252 if test "x$ac_ct_AR" = x; then
6253 AR="false"
6254 else
6255 case $cross_compiling:$ac_tool_warned in
6256 yes:)
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259 ac_tool_warned=yes ;;
6260 esac
6261 AR=$ac_ct_AR
6262 fi
6263 else
6264 AR="$ac_cv_prog_AR"
6265 fi
6266
6267 test -z "$AR" && AR=ar
6268 if test -n "$plugin_option"; then
6269 if $AR --help 2>&1 | grep -q "\--plugin"; then
6270 touch conftest.c
6271 $AR $plugin_option rc conftest.a conftest.c
6272 if test "$?" != 0; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6274 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6275 else
6276 AR="$AR $plugin_option"
6277 fi
6278 rm -f conftest.*
6279 fi
6280 fi
6281 test -z "$AR_FLAGS" && AR_FLAGS=cru
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6295 set dummy ${ac_tool_prefix}strip; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_STRIP+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$STRIP"; then
6302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6318
6319 fi
6320 fi
6321 STRIP=$ac_cv_prog_STRIP
6322 if test -n "$STRIP"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6324 $as_echo "$STRIP" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329
6330
6331 fi
6332 if test -z "$ac_cv_prog_STRIP"; then
6333 ac_ct_STRIP=$STRIP
6334 # Extract the first word of "strip", so it can be a program name with args.
6335 set dummy strip; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if test -n "$ac_ct_STRIP"; then
6342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_ac_ct_STRIP="strip"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355 done
6356 done
6357 IFS=$as_save_IFS
6358
6359 fi
6360 fi
6361 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6362 if test -n "$ac_ct_STRIP"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6364 $as_echo "$ac_ct_STRIP" >&6; }
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369
6370 if test "x$ac_ct_STRIP" = x; then
6371 STRIP=":"
6372 else
6373 case $cross_compiling:$ac_tool_warned in
6374 yes:)
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6377 ac_tool_warned=yes ;;
6378 esac
6379 STRIP=$ac_ct_STRIP
6380 fi
6381 else
6382 STRIP="$ac_cv_prog_STRIP"
6383 fi
6384
6385 test -z "$STRIP" && STRIP=:
6386
6387
6388
6389
6390
6391
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_RANLIB+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test -n "$RANLIB"; then
6401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 RANLIB=$ac_cv_prog_RANLIB
6421 if test -n "$RANLIB"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6423 $as_echo "$RANLIB" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429
6430 fi
6431 if test -z "$ac_cv_prog_RANLIB"; then
6432 ac_ct_RANLIB=$RANLIB
6433 # Extract the first word of "ranlib", so it can be a program name with args.
6434 set dummy ranlib; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 if test -n "$ac_ct_RANLIB"; then
6441 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_ac_ct_RANLIB="ranlib"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458 fi
6459 fi
6460 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6461 if test -n "$ac_ct_RANLIB"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6463 $as_echo "$ac_ct_RANLIB" >&6; }
6464 else
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468
6469 if test "x$ac_ct_RANLIB" = x; then
6470 RANLIB=":"
6471 else
6472 case $cross_compiling:$ac_tool_warned in
6473 yes:)
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6477 esac
6478 RANLIB=$ac_ct_RANLIB
6479 fi
6480 else
6481 RANLIB="$ac_cv_prog_RANLIB"
6482 fi
6483
6484 test -z "$RANLIB" && RANLIB=:
6485 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6486 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6487 RANLIB="$RANLIB $plugin_option"
6488 fi
6489 fi
6490
6491
6492
6493
6494
6495
6496 # Determine commands to create old-style static archives.
6497 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6498 old_postinstall_cmds='chmod 644 $oldlib'
6499 old_postuninstall_cmds=
6500
6501 if test -n "$RANLIB"; then
6502 case $host_os in
6503 openbsd*)
6504 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6505 ;;
6506 *)
6507 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6508 ;;
6509 esac
6510 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6511 fi
6512
6513 case $host_os in
6514 darwin*)
6515 lock_old_archive_extraction=yes ;;
6516 *)
6517 lock_old_archive_extraction=no ;;
6518 esac
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 # If no C compiler was specified, use CC.
6559 LTCC=${LTCC-"$CC"}
6560
6561 # If no C compiler flags were specified, use CFLAGS.
6562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6563
6564 # Allow CC to be a program name with arguments.
6565 compiler=$CC
6566
6567
6568 # Check for command to grab the raw symbol name followed by C symbol from nm.
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6570 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6571 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574
6575 # These are sane defaults that work on at least a few old systems.
6576 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6577
6578 # Character class describing NM global symbol codes.
6579 symcode='[BCDEGRST]'
6580
6581 # Regexp to match symbols that can be accessed directly from C.
6582 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6583
6584 # Define system-specific variables.
6585 case $host_os in
6586 aix*)
6587 symcode='[BCDT]'
6588 ;;
6589 cygwin* | mingw* | pw32* | cegcc*)
6590 symcode='[ABCDGISTW]'
6591 ;;
6592 hpux*)
6593 if test "$host_cpu" = ia64; then
6594 symcode='[ABCDEGRST]'
6595 fi
6596 ;;
6597 irix* | nonstopux*)
6598 symcode='[BCDEGRST]'
6599 ;;
6600 osf*)
6601 symcode='[BCDEGQRST]'
6602 ;;
6603 solaris*)
6604 symcode='[BDRT]'
6605 ;;
6606 sco3.2v5*)
6607 symcode='[DT]'
6608 ;;
6609 sysv4.2uw2*)
6610 symcode='[DT]'
6611 ;;
6612 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6613 symcode='[ABDT]'
6614 ;;
6615 sysv4)
6616 symcode='[DFNSTU]'
6617 ;;
6618 esac
6619
6620 # If we're using GNU nm, then use its standard symbol codes.
6621 case `$NM -V 2>&1` in
6622 *GNU* | *'with BFD'*)
6623 symcode='[ABCDGIRSTW]' ;;
6624 esac
6625
6626 # Transform an extracted symbol line into a proper C declaration.
6627 # Some systems (esp. on ia64) link data and code symbols differently,
6628 # so use this general approach.
6629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6630
6631 # Transform an extracted symbol line into symbol name and symbol address
6632 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6633 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6634
6635 # Handle CRLF in mingw tool chain
6636 opt_cr=
6637 case $build_os in
6638 mingw*)
6639 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6640 ;;
6641 esac
6642
6643 # Try without a prefix underscore, then with it.
6644 for ac_symprfx in "" "_"; do
6645
6646 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6647 symxfrm="\\1 $ac_symprfx\\2 \\2"
6648
6649 # Write the raw and C identifiers.
6650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6651 # Fake it for dumpbin and say T for any non-static function
6652 # and D for any global variable.
6653 # Also find C++ and __fastcall symbols from MSVC++,
6654 # which start with @ or ?.
6655 lt_cv_sys_global_symbol_pipe="$AWK '"\
6656 " {last_section=section; section=\$ 3};"\
6657 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6658 " \$ 0!~/External *\|/{next};"\
6659 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6660 " {if(hide[section]) next};"\
6661 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6662 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6663 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6664 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6665 " ' prfx=^$ac_symprfx"
6666 else
6667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6668 fi
6669
6670 # Check to see that the pipe works correctly.
6671 pipe_works=no
6672
6673 rm -f conftest*
6674 cat > conftest.$ac_ext <<_LT_EOF
6675 #ifdef __cplusplus
6676 extern "C" {
6677 #endif
6678 char nm_test_var;
6679 void nm_test_func(void);
6680 void nm_test_func(void){}
6681 #ifdef __cplusplus
6682 }
6683 #endif
6684 int main(){nm_test_var='a';nm_test_func();return(0);}
6685 _LT_EOF
6686
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688 (eval $ac_compile) 2>&5
6689 ac_status=$?
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691 test $ac_status = 0; }; then
6692 # Now try to grab the symbols.
6693 nlist=conftest.nm
6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6695 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6696 ac_status=$?
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; } && test -s "$nlist"; then
6699 # Try sorting and uniquifying the output.
6700 if sort "$nlist" | uniq > "$nlist"T; then
6701 mv -f "$nlist"T "$nlist"
6702 else
6703 rm -f "$nlist"T
6704 fi
6705
6706 # Make sure that we snagged all the symbols we need.
6707 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6708 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6709 cat <<_LT_EOF > conftest.$ac_ext
6710 #ifdef __cplusplus
6711 extern "C" {
6712 #endif
6713
6714 _LT_EOF
6715 # Now generate the symbol file.
6716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6717
6718 cat <<_LT_EOF >> conftest.$ac_ext
6719
6720 /* The mapping between symbol names and symbols. */
6721 const struct {
6722 const char *name;
6723 void *address;
6724 }
6725 lt__PROGRAM__LTX_preloaded_symbols[] =
6726 {
6727 { "@PROGRAM@", (void *) 0 },
6728 _LT_EOF
6729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6730 cat <<\_LT_EOF >> conftest.$ac_ext
6731 {0, (void *) 0}
6732 };
6733
6734 /* This works around a problem in FreeBSD linker */
6735 #ifdef FREEBSD_WORKAROUND
6736 static const void *lt_preloaded_setup() {
6737 return lt__PROGRAM__LTX_preloaded_symbols;
6738 }
6739 #endif
6740
6741 #ifdef __cplusplus
6742 }
6743 #endif
6744 _LT_EOF
6745 # Now try linking the two files.
6746 mv conftest.$ac_objext conftstm.$ac_objext
6747 lt_save_LIBS="$LIBS"
6748 lt_save_CFLAGS="$CFLAGS"
6749 LIBS="conftstm.$ac_objext"
6750 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6752 (eval $ac_link) 2>&5
6753 ac_status=$?
6754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6756 pipe_works=yes
6757 fi
6758 LIBS="$lt_save_LIBS"
6759 CFLAGS="$lt_save_CFLAGS"
6760 else
6761 echo "cannot find nm_test_func in $nlist" >&5
6762 fi
6763 else
6764 echo "cannot find nm_test_var in $nlist" >&5
6765 fi
6766 else
6767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6768 fi
6769 else
6770 echo "$progname: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6772 fi
6773 rm -rf conftest* conftst*
6774
6775 # Do not use the global_symbol_pipe unless it works.
6776 if test "$pipe_works" = yes; then
6777 break
6778 else
6779 lt_cv_sys_global_symbol_pipe=
6780 fi
6781 done
6782
6783 fi
6784
6785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6786 lt_cv_sys_global_symbol_to_cdecl=
6787 fi
6788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6790 $as_echo "failed" >&6; }
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6793 $as_echo "ok" >&6; }
6794 fi
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818 # Check whether --enable-libtool-lock was given.
6819 if test "${enable_libtool_lock+set}" = set; then :
6820 enableval=$enable_libtool_lock;
6821 fi
6822
6823 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6824
6825 # Some flags need to be propagated to the compiler or linker for good
6826 # libtool support.
6827 case $host in
6828 ia64-*-hpux*)
6829 # Find out which ABI we are using.
6830 echo 'int i;' > conftest.$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.$ac_objext` in
6837 *ELF-32*)
6838 HPUX_IA64_MODE="32"
6839 ;;
6840 *ELF-64*)
6841 HPUX_IA64_MODE="64"
6842 ;;
6843 esac
6844 fi
6845 rm -rf conftest*
6846 ;;
6847 *-*-irix6*)
6848 # Find out which ABI we are using.
6849 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6852 ac_status=$?
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 if test "$lt_cv_prog_gnu_ld" = yes; then
6856 case `/usr/bin/file conftest.$ac_objext` in
6857 *32-bit*)
6858 LD="${LD-ld} -melf32bsmip"
6859 ;;
6860 *N32*)
6861 LD="${LD-ld} -melf32bmipn32"
6862 ;;
6863 *64-bit*)
6864 LD="${LD-ld} -melf64bmip"
6865 ;;
6866 esac
6867 else
6868 case `/usr/bin/file conftest.$ac_objext` in
6869 *32-bit*)
6870 LD="${LD-ld} -32"
6871 ;;
6872 *N32*)
6873 LD="${LD-ld} -n32"
6874 ;;
6875 *64-bit*)
6876 LD="${LD-ld} -64"
6877 ;;
6878 esac
6879 fi
6880 fi
6881 rm -rf conftest*
6882 ;;
6883
6884 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6885 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6886 # Find out which ABI we are using.
6887 echo 'int i;' > conftest.$ac_ext
6888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889 (eval $ac_compile) 2>&5
6890 ac_status=$?
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }; then
6893 case `/usr/bin/file conftest.o` in
6894 *32-bit*)
6895 case $host in
6896 x86_64-*kfreebsd*-gnu)
6897 LD="${LD-ld} -m elf_i386_fbsd"
6898 ;;
6899 x86_64-*linux*)
6900 case `/usr/bin/file conftest.o` in
6901 *x86-64*)
6902 LD="${LD-ld} -m elf32_x86_64"
6903 ;;
6904 *)
6905 LD="${LD-ld} -m elf_i386"
6906 ;;
6907 esac
6908 ;;
6909 powerpc64le-*linux*)
6910 LD="${LD-ld} -m elf32lppclinux"
6911 ;;
6912 powerpc64-*linux*)
6913 LD="${LD-ld} -m elf32ppclinux"
6914 ;;
6915 s390x-*linux*)
6916 LD="${LD-ld} -m elf_s390"
6917 ;;
6918 sparc64-*linux*)
6919 LD="${LD-ld} -m elf32_sparc"
6920 ;;
6921 esac
6922 ;;
6923 *64-bit*)
6924 case $host in
6925 x86_64-*kfreebsd*-gnu)
6926 LD="${LD-ld} -m elf_x86_64_fbsd"
6927 ;;
6928 x86_64-*linux*)
6929 LD="${LD-ld} -m elf_x86_64"
6930 ;;
6931 powerpcle-*linux*)
6932 LD="${LD-ld} -m elf64lppc"
6933 ;;
6934 powerpc-*linux*)
6935 LD="${LD-ld} -m elf64ppc"
6936 ;;
6937 s390*-*linux*|s390*-*tpf*)
6938 LD="${LD-ld} -m elf64_s390"
6939 ;;
6940 sparc*-*linux*)
6941 LD="${LD-ld} -m elf64_sparc"
6942 ;;
6943 esac
6944 ;;
6945 esac
6946 fi
6947 rm -rf conftest*
6948 ;;
6949
6950 *-*-sco3.2v5*)
6951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6952 SAVE_CFLAGS="$CFLAGS"
6953 CFLAGS="$CFLAGS -belf"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6955 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6956 if ${lt_cv_cc_needs_belf+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 ac_ext=c
6960 ac_cpp='$CPP $CPPFLAGS'
6961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6967
6968 int
6969 main ()
6970 {
6971
6972 ;
6973 return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 lt_cv_cc_needs_belf=yes
6978 else
6979 lt_cv_cc_needs_belf=no
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 ac_ext=c
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989 fi
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6991 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6992 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6993 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6994 CFLAGS="$SAVE_CFLAGS"
6995 fi
6996 ;;
6997 sparc*-*solaris*)
6998 # Find out which ABI we are using.
6999 echo 'int i;' > conftest.$ac_ext
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7002 ac_status=$?
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 case `/usr/bin/file conftest.o` in
7006 *64-bit*)
7007 case $lt_cv_prog_gnu_ld in
7008 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7009 *)
7010 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7011 LD="${LD-ld} -64"
7012 fi
7013 ;;
7014 esac
7015 ;;
7016 esac
7017 fi
7018 rm -rf conftest*
7019 ;;
7020 esac
7021
7022 need_locks="$enable_libtool_lock"
7023
7024
7025 case $host_os in
7026 rhapsody* | darwin*)
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$DSYMUTIL"; then
7036 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7056 if test -n "$DSYMUTIL"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7058 $as_echo "$DSYMUTIL" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064
7065 fi
7066 if test -z "$ac_cv_prog_DSYMUTIL"; then
7067 ac_ct_DSYMUTIL=$DSYMUTIL
7068 # Extract the first word of "dsymutil", so it can be a program name with args.
7069 set dummy dsymutil; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_DSYMUTIL"; then
7076 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7096 if test -n "$ac_ct_DSYMUTIL"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7098 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104 if test "x$ac_ct_DSYMUTIL" = x; then
7105 DSYMUTIL=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 DSYMUTIL=$ac_ct_DSYMUTIL
7114 fi
7115 else
7116 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7117 fi
7118
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_NMEDIT+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$NMEDIT"; then
7128 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 NMEDIT=$ac_cv_prog_NMEDIT
7148 if test -n "$NMEDIT"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7150 $as_echo "$NMEDIT" >&6; }
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156
7157 fi
7158 if test -z "$ac_cv_prog_NMEDIT"; then
7159 ac_ct_NMEDIT=$NMEDIT
7160 # Extract the first word of "nmedit", so it can be a program name with args.
7161 set dummy nmedit; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$ac_ct_NMEDIT"; then
7168 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7188 if test -n "$ac_ct_NMEDIT"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7190 $as_echo "$ac_ct_NMEDIT" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196 if test "x$ac_ct_NMEDIT" = x; then
7197 NMEDIT=":"
7198 else
7199 case $cross_compiling:$ac_tool_warned in
7200 yes:)
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205 NMEDIT=$ac_ct_NMEDIT
7206 fi
7207 else
7208 NMEDIT="$ac_cv_prog_NMEDIT"
7209 fi
7210
7211 if test -n "$ac_tool_prefix"; then
7212 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7213 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_LIPO+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 if test -n "$LIPO"; then
7220 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237 fi
7238 fi
7239 LIPO=$ac_cv_prog_LIPO
7240 if test -n "$LIPO"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7242 $as_echo "$LIPO" >&6; }
7243 else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7246 fi
7247
7248
7249 fi
7250 if test -z "$ac_cv_prog_LIPO"; then
7251 ac_ct_LIPO=$LIPO
7252 # Extract the first word of "lipo", so it can be a program name with args.
7253 set dummy lipo; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test -n "$ac_ct_LIPO"; then
7260 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_LIPO="lipo"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273 done
7274 done
7275 IFS=$as_save_IFS
7276
7277 fi
7278 fi
7279 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7280 if test -n "$ac_ct_LIPO"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7282 $as_echo "$ac_ct_LIPO" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288 if test "x$ac_ct_LIPO" = x; then
7289 LIPO=":"
7290 else
7291 case $cross_compiling:$ac_tool_warned in
7292 yes:)
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295 ac_tool_warned=yes ;;
7296 esac
7297 LIPO=$ac_ct_LIPO
7298 fi
7299 else
7300 LIPO="$ac_cv_prog_LIPO"
7301 fi
7302
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}otool; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_OTOOL+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -n "$OTOOL"; then
7312 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329 fi
7330 fi
7331 OTOOL=$ac_cv_prog_OTOOL
7332 if test -n "$OTOOL"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7334 $as_echo "$OTOOL" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340
7341 fi
7342 if test -z "$ac_cv_prog_OTOOL"; then
7343 ac_ct_OTOOL=$OTOOL
7344 # Extract the first word of "otool", so it can be a program name with args.
7345 set dummy otool; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$ac_ct_OTOOL"; then
7352 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_OTOOL="otool"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7372 if test -n "$ac_ct_OTOOL"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7374 $as_echo "$ac_ct_OTOOL" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380 if test "x$ac_ct_OTOOL" = x; then
7381 OTOOL=":"
7382 else
7383 case $cross_compiling:$ac_tool_warned in
7384 yes:)
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389 OTOOL=$ac_ct_OTOOL
7390 fi
7391 else
7392 OTOOL="$ac_cv_prog_OTOOL"
7393 fi
7394
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_OTOOL64+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 if test -n "$OTOOL64"; then
7404 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 OTOOL64=$ac_cv_prog_OTOOL64
7424 if test -n "$OTOOL64"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7426 $as_echo "$OTOOL64" >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432
7433 fi
7434 if test -z "$ac_cv_prog_OTOOL64"; then
7435 ac_ct_OTOOL64=$OTOOL64
7436 # Extract the first word of "otool64", so it can be a program name with args.
7437 set dummy otool64; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 if test -n "$ac_ct_OTOOL64"; then
7444 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_OTOOL64="otool64"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7456 fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7460
7461 fi
7462 fi
7463 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7464 if test -n "$ac_ct_OTOOL64"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7466 $as_echo "$ac_ct_OTOOL64" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 fi
7471
7472 if test "x$ac_ct_OTOOL64" = x; then
7473 OTOOL64=":"
7474 else
7475 case $cross_compiling:$ac_tool_warned in
7476 yes:)
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned=yes ;;
7480 esac
7481 OTOOL64=$ac_ct_OTOOL64
7482 fi
7483 else
7484 OTOOL64="$ac_cv_prog_OTOOL64"
7485 fi
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7514 $as_echo_n "checking for -single_module linker flag... " >&6; }
7515 if ${lt_cv_apple_cc_single_mod+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 lt_cv_apple_cc_single_mod=no
7519 if test -z "${LT_MULTI_MODULE}"; then
7520 # By default we will add the -single_module flag. You can override
7521 # by either setting the environment variable LT_MULTI_MODULE
7522 # non-empty at configure time, or by adding -multi_module to the
7523 # link flags.
7524 rm -rf libconftest.dylib*
7525 echo "int foo(void){return 1;}" > conftest.c
7526 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527 -dynamiclib -Wl,-single_module conftest.c" >&5
7528 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7529 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7530 _lt_result=$?
7531 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7532 lt_cv_apple_cc_single_mod=yes
7533 else
7534 cat conftest.err >&5
7535 fi
7536 rm -rf libconftest.dylib*
7537 rm -f conftest.*
7538 fi
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7541 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7543 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7544 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 lt_cv_ld_exported_symbols_list=no
7548 save_LDFLAGS=$LDFLAGS
7549 echo "_main" > conftest.sym
7550 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553
7554 int
7555 main ()
7556 {
7557
7558 ;
7559 return 0;
7560 }
7561 _ACEOF
7562 if ac_fn_c_try_link "$LINENO"; then :
7563 lt_cv_ld_exported_symbols_list=yes
7564 else
7565 lt_cv_ld_exported_symbols_list=no
7566 fi
7567 rm -f core conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7569 LDFLAGS="$save_LDFLAGS"
7570
7571 fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7573 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7575 $as_echo_n "checking for -force_load linker flag... " >&6; }
7576 if ${lt_cv_ld_force_load+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 lt_cv_ld_force_load=no
7580 cat > conftest.c << _LT_EOF
7581 int forced_loaded() { return 2;}
7582 _LT_EOF
7583 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7584 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7585 echo "$AR cru libconftest.a conftest.o" >&5
7586 $AR cru libconftest.a conftest.o 2>&5
7587 cat > conftest.c << _LT_EOF
7588 int main() { return 0;}
7589 _LT_EOF
7590 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7591 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7592 _lt_result=$?
7593 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7594 lt_cv_ld_force_load=yes
7595 else
7596 cat conftest.err >&5
7597 fi
7598 rm -f conftest.err libconftest.a conftest conftest.c
7599 rm -rf conftest.dSYM
7600
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7603 $as_echo "$lt_cv_ld_force_load" >&6; }
7604 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7605 # build without first building modern cctools / linker.
7606 case $host_cpu-$host_os in
7607 *-rhapsody* | *-darwin1.[012])
7608 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7609 *-darwin1.*)
7610 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7611 *-darwin*)
7612 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7613 # deployment target is forced to an earlier version.
7614 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7615 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7616 ;;
7617 10.[012][,.]*)
7618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7619 ;;
7620 *)
7621 ;;
7622 esac
7623 ;;
7624 esac
7625 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7626 _lt_dar_single_mod='$single_module'
7627 fi
7628 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7629 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7630 else
7631 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7632 fi
7633 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7634 _lt_dsymutil='~$DSYMUTIL $lib || :'
7635 else
7636 _lt_dsymutil=
7637 fi
7638 ;;
7639 esac
7640
7641 ac_ext=c
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7647 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7648 # On Suns, sometimes $CPP names a directory.
7649 if test -n "$CPP" && test -d "$CPP"; then
7650 CPP=
7651 fi
7652 if test -z "$CPP"; then
7653 if ${ac_cv_prog_CPP+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 # Double quotes because CPP needs to be expanded
7657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7658 do
7659 ac_preproc_ok=false
7660 for ac_c_preproc_warn_flag in '' yes
7661 do
7662 # Use a header file that comes with gcc, so configuring glibc
7663 # with a fresh cross-compiler works.
7664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665 # <limits.h> exists even on freestanding compilers.
7666 # On the NeXT, cc -E runs the code through the compiler's parser,
7667 # not just through cpp. "Syntax error" is here to catch this case.
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7670 #ifdef __STDC__
7671 # include <limits.h>
7672 #else
7673 # include <assert.h>
7674 #endif
7675 Syntax error
7676 _ACEOF
7677 if ac_fn_c_try_cpp "$LINENO"; then :
7678
7679 else
7680 # Broken: fails on valid input.
7681 continue
7682 fi
7683 rm -f conftest.err conftest.i conftest.$ac_ext
7684
7685 # OK, works on sane cases. Now check whether nonexistent headers
7686 # can be detected and how.
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689 #include <ac_nonexistent.h>
7690 _ACEOF
7691 if ac_fn_c_try_cpp "$LINENO"; then :
7692 # Broken: success on invalid input.
7693 continue
7694 else
7695 # Passes both tests.
7696 ac_preproc_ok=:
7697 break
7698 fi
7699 rm -f conftest.err conftest.i conftest.$ac_ext
7700
7701 done
7702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7703 rm -f conftest.i conftest.err conftest.$ac_ext
7704 if $ac_preproc_ok; then :
7705 break
7706 fi
7707
7708 done
7709 ac_cv_prog_CPP=$CPP
7710
7711 fi
7712 CPP=$ac_cv_prog_CPP
7713 else
7714 ac_cv_prog_CPP=$CPP
7715 fi
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7717 $as_echo "$CPP" >&6; }
7718 ac_preproc_ok=false
7719 for ac_c_preproc_warn_flag in '' yes
7720 do
7721 # Use a header file that comes with gcc, so configuring glibc
7722 # with a fresh cross-compiler works.
7723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7724 # <limits.h> exists even on freestanding compilers.
7725 # On the NeXT, cc -E runs the code through the compiler's parser,
7726 # not just through cpp. "Syntax error" is here to catch this case.
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729 #ifdef __STDC__
7730 # include <limits.h>
7731 #else
7732 # include <assert.h>
7733 #endif
7734 Syntax error
7735 _ACEOF
7736 if ac_fn_c_try_cpp "$LINENO"; then :
7737
7738 else
7739 # Broken: fails on valid input.
7740 continue
7741 fi
7742 rm -f conftest.err conftest.i conftest.$ac_ext
7743
7744 # OK, works on sane cases. Now check whether nonexistent headers
7745 # can be detected and how.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #include <ac_nonexistent.h>
7749 _ACEOF
7750 if ac_fn_c_try_cpp "$LINENO"; then :
7751 # Broken: success on invalid input.
7752 continue
7753 else
7754 # Passes both tests.
7755 ac_preproc_ok=:
7756 break
7757 fi
7758 rm -f conftest.err conftest.i conftest.$ac_ext
7759
7760 done
7761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7762 rm -f conftest.i conftest.err conftest.$ac_ext
7763 if $ac_preproc_ok; then :
7764
7765 else
7766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7768 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7769 See \`config.log' for more details" "$LINENO" 5; }
7770 fi
7771
7772 ac_ext=c
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777
7778
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7780 $as_echo_n "checking for ANSI C header files... " >&6; }
7781 if ${ac_cv_header_stdc+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786 #include <stdlib.h>
7787 #include <stdarg.h>
7788 #include <string.h>
7789 #include <float.h>
7790
7791 int
7792 main ()
7793 {
7794
7795 ;
7796 return 0;
7797 }
7798 _ACEOF
7799 if ac_fn_c_try_compile "$LINENO"; then :
7800 ac_cv_header_stdc=yes
7801 else
7802 ac_cv_header_stdc=no
7803 fi
7804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805
7806 if test $ac_cv_header_stdc = yes; then
7807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 #include <string.h>
7811
7812 _ACEOF
7813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 $EGREP "memchr" >/dev/null 2>&1; then :
7815
7816 else
7817 ac_cv_header_stdc=no
7818 fi
7819 rm -f conftest*
7820
7821 fi
7822
7823 if test $ac_cv_header_stdc = yes; then
7824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 #include <stdlib.h>
7828
7829 _ACEOF
7830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7831 $EGREP "free" >/dev/null 2>&1; then :
7832
7833 else
7834 ac_cv_header_stdc=no
7835 fi
7836 rm -f conftest*
7837
7838 fi
7839
7840 if test $ac_cv_header_stdc = yes; then
7841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7842 if test "$cross_compiling" = yes; then :
7843 :
7844 else
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847 #include <ctype.h>
7848 #include <stdlib.h>
7849 #if ((' ' & 0x0FF) == 0x020)
7850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7852 #else
7853 # define ISLOWER(c) \
7854 (('a' <= (c) && (c) <= 'i') \
7855 || ('j' <= (c) && (c) <= 'r') \
7856 || ('s' <= (c) && (c) <= 'z'))
7857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7858 #endif
7859
7860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7861 int
7862 main ()
7863 {
7864 int i;
7865 for (i = 0; i < 256; i++)
7866 if (XOR (islower (i), ISLOWER (i))
7867 || toupper (i) != TOUPPER (i))
7868 return 2;
7869 return 0;
7870 }
7871 _ACEOF
7872 if ac_fn_c_try_run "$LINENO"; then :
7873
7874 else
7875 ac_cv_header_stdc=no
7876 fi
7877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7878 conftest.$ac_objext conftest.beam conftest.$ac_ext
7879 fi
7880
7881 fi
7882 fi
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7884 $as_echo "$ac_cv_header_stdc" >&6; }
7885 if test $ac_cv_header_stdc = yes; then
7886
7887 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7888
7889 fi
7890
7891 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7893 inttypes.h stdint.h unistd.h
7894 do :
7895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7896 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7897 "
7898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7899 cat >>confdefs.h <<_ACEOF
7900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901 _ACEOF
7902
7903 fi
7904
7905 done
7906
7907
7908 for ac_header in dlfcn.h
7909 do :
7910 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7911 "
7912 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7913 cat >>confdefs.h <<_ACEOF
7914 #define HAVE_DLFCN_H 1
7915 _ACEOF
7916
7917 fi
7918
7919 done
7920
7921
7922
7923
7924
7925 # Set options
7926
7927
7928
7929 enable_dlopen=no
7930
7931
7932 enable_win32_dll=no
7933
7934
7935 # Check whether --enable-shared was given.
7936 if test "${enable_shared+set}" = set; then :
7937 enableval=$enable_shared; p=${PACKAGE-default}
7938 case $enableval in
7939 yes) enable_shared=yes ;;
7940 no) enable_shared=no ;;
7941 *)
7942 enable_shared=no
7943 # Look at the argument we got. We use all the common list separators.
7944 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7945 for pkg in $enableval; do
7946 IFS="$lt_save_ifs"
7947 if test "X$pkg" = "X$p"; then
7948 enable_shared=yes
7949 fi
7950 done
7951 IFS="$lt_save_ifs"
7952 ;;
7953 esac
7954 else
7955 enable_shared=yes
7956 fi
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966 # Check whether --enable-static was given.
7967 if test "${enable_static+set}" = set; then :
7968 enableval=$enable_static; p=${PACKAGE-default}
7969 case $enableval in
7970 yes) enable_static=yes ;;
7971 no) enable_static=no ;;
7972 *)
7973 enable_static=no
7974 # Look at the argument we got. We use all the common list separators.
7975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7976 for pkg in $enableval; do
7977 IFS="$lt_save_ifs"
7978 if test "X$pkg" = "X$p"; then
7979 enable_static=yes
7980 fi
7981 done
7982 IFS="$lt_save_ifs"
7983 ;;
7984 esac
7985 else
7986 enable_static=yes
7987 fi
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998 # Check whether --with-pic was given.
7999 if test "${with_pic+set}" = set; then :
8000 withval=$with_pic; pic_mode="$withval"
8001 else
8002 pic_mode=default
8003 fi
8004
8005
8006 test -z "$pic_mode" && pic_mode=default
8007
8008
8009
8010
8011
8012
8013
8014 # Check whether --enable-fast-install was given.
8015 if test "${enable_fast_install+set}" = set; then :
8016 enableval=$enable_fast_install; p=${PACKAGE-default}
8017 case $enableval in
8018 yes) enable_fast_install=yes ;;
8019 no) enable_fast_install=no ;;
8020 *)
8021 enable_fast_install=no
8022 # Look at the argument we got. We use all the common list separators.
8023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8024 for pkg in $enableval; do
8025 IFS="$lt_save_ifs"
8026 if test "X$pkg" = "X$p"; then
8027 enable_fast_install=yes
8028 fi
8029 done
8030 IFS="$lt_save_ifs"
8031 ;;
8032 esac
8033 else
8034 enable_fast_install=yes
8035 fi
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047 # This can be used to rebuild libtool when needed
8048 LIBTOOL_DEPS="$ltmain"
8049
8050 # Always use our own libtool.
8051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 test -z "$LN_S" && LN_S="ln -s"
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 if test -n "${ZSH_VERSION+set}" ; then
8094 setopt NO_GLOB_SUBST
8095 fi
8096
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8098 $as_echo_n "checking for objdir... " >&6; }
8099 if ${lt_cv_objdir+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 rm -f .libs 2>/dev/null
8103 mkdir .libs 2>/dev/null
8104 if test -d .libs; then
8105 lt_cv_objdir=.libs
8106 else
8107 # MS-DOS does not allow filenames that begin with a dot.
8108 lt_cv_objdir=_libs
8109 fi
8110 rmdir .libs 2>/dev/null
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8113 $as_echo "$lt_cv_objdir" >&6; }
8114 objdir=$lt_cv_objdir
8115
8116
8117
8118
8119
8120 cat >>confdefs.h <<_ACEOF
8121 #define LT_OBJDIR "$lt_cv_objdir/"
8122 _ACEOF
8123
8124
8125
8126
8127 case $host_os in
8128 aix3*)
8129 # AIX sometimes has problems with the GCC collect2 program. For some
8130 # reason, if we set the COLLECT_NAMES environment variable, the problems
8131 # vanish in a puff of smoke.
8132 if test "X${COLLECT_NAMES+set}" != Xset; then
8133 COLLECT_NAMES=
8134 export COLLECT_NAMES
8135 fi
8136 ;;
8137 esac
8138
8139 # Global variables:
8140 ofile=libtool
8141 can_build_shared=yes
8142
8143 # All known linkers require a `.a' archive for static linking (except MSVC,
8144 # which needs '.lib').
8145 libext=a
8146
8147 with_gnu_ld="$lt_cv_prog_gnu_ld"
8148
8149 old_CC="$CC"
8150 old_CFLAGS="$CFLAGS"
8151
8152 # Set sane defaults for various variables
8153 test -z "$CC" && CC=cc
8154 test -z "$LTCC" && LTCC=$CC
8155 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8156 test -z "$LD" && LD=ld
8157 test -z "$ac_objext" && ac_objext=o
8158
8159 for cc_temp in $compiler""; do
8160 case $cc_temp in
8161 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8162 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8163 \-*) ;;
8164 *) break;;
8165 esac
8166 done
8167 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8168
8169
8170 # Only perform the check for file, if the check method requires it
8171 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8172 case $deplibs_check_method in
8173 file_magic*)
8174 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8176 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8177 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 case $MAGIC_CMD in
8181 [\\/*] | ?:[\\/]*)
8182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8183 ;;
8184 *)
8185 lt_save_MAGIC_CMD="$MAGIC_CMD"
8186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8187 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8188 for ac_dir in $ac_dummy; do
8189 IFS="$lt_save_ifs"
8190 test -z "$ac_dir" && ac_dir=.
8191 if test -f $ac_dir/${ac_tool_prefix}file; then
8192 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8193 if test -n "$file_magic_test_file"; then
8194 case $deplibs_check_method in
8195 "file_magic "*)
8196 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8198 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8199 $EGREP "$file_magic_regex" > /dev/null; then
8200 :
8201 else
8202 cat <<_LT_EOF 1>&2
8203
8204 *** Warning: the command libtool uses to detect shared libraries,
8205 *** $file_magic_cmd, produces output that libtool cannot recognize.
8206 *** The result is that libtool may fail to recognize shared libraries
8207 *** as such. This will affect the creation of libtool libraries that
8208 *** depend on shared libraries, but programs linked with such libtool
8209 *** libraries will work regardless of this problem. Nevertheless, you
8210 *** may want to report the problem to your system manager and/or to
8211 *** bug-libtool@gnu.org
8212
8213 _LT_EOF
8214 fi ;;
8215 esac
8216 fi
8217 break
8218 fi
8219 done
8220 IFS="$lt_save_ifs"
8221 MAGIC_CMD="$lt_save_MAGIC_CMD"
8222 ;;
8223 esac
8224 fi
8225
8226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8227 if test -n "$MAGIC_CMD"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8229 $as_echo "$MAGIC_CMD" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236
8237
8238
8239 if test -z "$lt_cv_path_MAGIC_CMD"; then
8240 if test -n "$ac_tool_prefix"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8242 $as_echo_n "checking for file... " >&6; }
8243 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 case $MAGIC_CMD in
8247 [\\/*] | ?:[\\/]*)
8248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8249 ;;
8250 *)
8251 lt_save_MAGIC_CMD="$MAGIC_CMD"
8252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254 for ac_dir in $ac_dummy; do
8255 IFS="$lt_save_ifs"
8256 test -z "$ac_dir" && ac_dir=.
8257 if test -f $ac_dir/file; then
8258 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8259 if test -n "$file_magic_test_file"; then
8260 case $deplibs_check_method in
8261 "file_magic "*)
8262 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265 $EGREP "$file_magic_regex" > /dev/null; then
8266 :
8267 else
8268 cat <<_LT_EOF 1>&2
8269
8270 *** Warning: the command libtool uses to detect shared libraries,
8271 *** $file_magic_cmd, produces output that libtool cannot recognize.
8272 *** The result is that libtool may fail to recognize shared libraries
8273 *** as such. This will affect the creation of libtool libraries that
8274 *** depend on shared libraries, but programs linked with such libtool
8275 *** libraries will work regardless of this problem. Nevertheless, you
8276 *** may want to report the problem to your system manager and/or to
8277 *** bug-libtool@gnu.org
8278
8279 _LT_EOF
8280 fi ;;
8281 esac
8282 fi
8283 break
8284 fi
8285 done
8286 IFS="$lt_save_ifs"
8287 MAGIC_CMD="$lt_save_MAGIC_CMD"
8288 ;;
8289 esac
8290 fi
8291
8292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293 if test -n "$MAGIC_CMD"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8295 $as_echo "$MAGIC_CMD" >&6; }
8296 else
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8299 fi
8300
8301
8302 else
8303 MAGIC_CMD=:
8304 fi
8305 fi
8306
8307 fi
8308 ;;
8309 esac
8310
8311 # Use C for the default configuration in the libtool script
8312
8313 lt_save_CC="$CC"
8314 ac_ext=c
8315 ac_cpp='$CPP $CPPFLAGS'
8316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319
8320
8321 # Source file extension for C test sources.
8322 ac_ext=c
8323
8324 # Object file extension for compiled C test sources.
8325 objext=o
8326 objext=$objext
8327
8328 # Code to be used in simple compile tests
8329 lt_simple_compile_test_code="int some_variable = 0;"
8330
8331 # Code to be used in simple link tests
8332 lt_simple_link_test_code='int main(){return(0);}'
8333
8334
8335
8336
8337
8338
8339
8340 # If no C compiler was specified, use CC.
8341 LTCC=${LTCC-"$CC"}
8342
8343 # If no C compiler flags were specified, use CFLAGS.
8344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8345
8346 # Allow CC to be a program name with arguments.
8347 compiler=$CC
8348
8349 # Save the default compiler, since it gets overwritten when the other
8350 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8351 compiler_DEFAULT=$CC
8352
8353 # save warnings/boilerplate of simple test code
8354 ac_outfile=conftest.$ac_objext
8355 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8356 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8357 _lt_compiler_boilerplate=`cat conftest.err`
8358 $RM conftest*
8359
8360 ac_outfile=conftest.$ac_objext
8361 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8362 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8363 _lt_linker_boilerplate=`cat conftest.err`
8364 $RM -r conftest*
8365
8366
8367 ## CAVEAT EMPTOR:
8368 ## There is no encapsulation within the following macros, do not change
8369 ## the running order or otherwise move them around unless you know exactly
8370 ## what you are doing...
8371 if test -n "$compiler"; then
8372
8373 lt_prog_compiler_no_builtin_flag=
8374
8375 if test "$GCC" = yes; then
8376 case $cc_basename in
8377 nvcc*)
8378 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8379 *)
8380 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8381 esac
8382
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8384 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8385 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 lt_cv_prog_compiler_rtti_exceptions=no
8389 ac_outfile=conftest.$ac_objext
8390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8391 lt_compiler_flag="-fno-rtti -fno-exceptions"
8392 # Insert the option either (1) after the last *FLAGS variable, or
8393 # (2) before a word containing "conftest.", or (3) at the end.
8394 # Note that $ac_compile itself does not contain backslashes and begins
8395 # with a dollar sign (not a hyphen), so the echo should work correctly.
8396 # The option is referenced via a variable to avoid confusing sed.
8397 lt_compile=`echo "$ac_compile" | $SED \
8398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8400 -e 's:$: $lt_compiler_flag:'`
8401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8402 (eval "$lt_compile" 2>conftest.err)
8403 ac_status=$?
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 if (exit $ac_status) && test -s "$ac_outfile"; then
8407 # The compiler can only warn and ignore the option if not recognized
8408 # So say no if there are warnings other than the usual output.
8409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8412 lt_cv_prog_compiler_rtti_exceptions=yes
8413 fi
8414 fi
8415 $RM conftest*
8416
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8419 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8420
8421 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8422 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8423 else
8424 :
8425 fi
8426
8427 fi
8428
8429
8430
8431
8432
8433
8434 lt_prog_compiler_wl=
8435 lt_prog_compiler_pic=
8436 lt_prog_compiler_static=
8437
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8439 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8440
8441 if test "$GCC" = yes; then
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_static='-static'
8444
8445 case $host_os in
8446 aix*)
8447 # All AIX code is PIC.
8448 if test "$host_cpu" = ia64; then
8449 # AIX 5 now supports IA64 processor
8450 lt_prog_compiler_static='-Bstatic'
8451 fi
8452 lt_prog_compiler_pic='-fPIC'
8453 ;;
8454
8455 amigaos*)
8456 case $host_cpu in
8457 powerpc)
8458 # see comment about AmigaOS4 .so support
8459 lt_prog_compiler_pic='-fPIC'
8460 ;;
8461 m68k)
8462 # FIXME: we need at least 68020 code to build shared libraries, but
8463 # adding the `-m68020' flag to GCC prevents building anything better,
8464 # like `-m68040'.
8465 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8466 ;;
8467 esac
8468 ;;
8469
8470 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8471 # PIC is the default for these OSes.
8472 ;;
8473
8474 mingw* | cygwin* | pw32* | os2* | cegcc*)
8475 # This hack is so that the source file can tell whether it is being
8476 # built for inclusion in a dll (and should export symbols for example).
8477 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8478 # (--disable-auto-import) libraries
8479 lt_prog_compiler_pic='-DDLL_EXPORT'
8480 ;;
8481
8482 darwin* | rhapsody*)
8483 # PIC is the default on this platform
8484 # Common symbols not allowed in MH_DYLIB files
8485 lt_prog_compiler_pic='-fno-common'
8486 ;;
8487
8488 haiku*)
8489 # PIC is the default for Haiku.
8490 # The "-static" flag exists, but is broken.
8491 lt_prog_compiler_static=
8492 ;;
8493
8494 hpux*)
8495 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8496 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8497 # sets the default TLS model and affects inlining.
8498 case $host_cpu in
8499 hppa*64*)
8500 # +Z the default
8501 ;;
8502 *)
8503 lt_prog_compiler_pic='-fPIC'
8504 ;;
8505 esac
8506 ;;
8507
8508 interix[3-9]*)
8509 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8510 # Instead, we relocate shared libraries at runtime.
8511 ;;
8512
8513 msdosdjgpp*)
8514 # Just because we use GCC doesn't mean we suddenly get shared libraries
8515 # on systems that don't support them.
8516 lt_prog_compiler_can_build_shared=no
8517 enable_shared=no
8518 ;;
8519
8520 *nto* | *qnx*)
8521 # QNX uses GNU C++, but need to define -shared option too, otherwise
8522 # it will coredump.
8523 lt_prog_compiler_pic='-fPIC -shared'
8524 ;;
8525
8526 sysv4*MP*)
8527 if test -d /usr/nec; then
8528 lt_prog_compiler_pic=-Kconform_pic
8529 fi
8530 ;;
8531
8532 *)
8533 lt_prog_compiler_pic='-fPIC'
8534 ;;
8535 esac
8536
8537 case $cc_basename in
8538 nvcc*) # Cuda Compiler Driver 2.2
8539 lt_prog_compiler_wl='-Xlinker '
8540 lt_prog_compiler_pic='-Xcompiler -fPIC'
8541 ;;
8542 esac
8543 else
8544 # PORTME Check for flag to pass linker flags through the system compiler.
8545 case $host_os in
8546 aix*)
8547 lt_prog_compiler_wl='-Wl,'
8548 if test "$host_cpu" = ia64; then
8549 # AIX 5 now supports IA64 processor
8550 lt_prog_compiler_static='-Bstatic'
8551 else
8552 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8553 fi
8554 ;;
8555
8556 mingw* | cygwin* | pw32* | os2* | cegcc*)
8557 # This hack is so that the source file can tell whether it is being
8558 # built for inclusion in a dll (and should export symbols for example).
8559 lt_prog_compiler_pic='-DDLL_EXPORT'
8560 ;;
8561
8562 hpux9* | hpux10* | hpux11*)
8563 lt_prog_compiler_wl='-Wl,'
8564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8565 # not for PA HP-UX.
8566 case $host_cpu in
8567 hppa*64*|ia64*)
8568 # +Z the default
8569 ;;
8570 *)
8571 lt_prog_compiler_pic='+Z'
8572 ;;
8573 esac
8574 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8575 lt_prog_compiler_static='${wl}-a ${wl}archive'
8576 ;;
8577
8578 irix5* | irix6* | nonstopux*)
8579 lt_prog_compiler_wl='-Wl,'
8580 # PIC (with -KPIC) is the default.
8581 lt_prog_compiler_static='-non_shared'
8582 ;;
8583
8584 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8585 case $cc_basename in
8586 # old Intel for x86_64 which still supported -KPIC.
8587 ecc*)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='-KPIC'
8590 lt_prog_compiler_static='-static'
8591 ;;
8592 # icc used to be incompatible with GCC.
8593 # ICC 10 doesn't accept -KPIC any more.
8594 icc* | ifort*)
8595 lt_prog_compiler_wl='-Wl,'
8596 lt_prog_compiler_pic='-fPIC'
8597 lt_prog_compiler_static='-static'
8598 ;;
8599 # Lahey Fortran 8.1.
8600 lf95*)
8601 lt_prog_compiler_wl='-Wl,'
8602 lt_prog_compiler_pic='--shared'
8603 lt_prog_compiler_static='--static'
8604 ;;
8605 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8606 # Portland Group compilers (*not* the Pentium gcc compiler,
8607 # which looks to be a dead project)
8608 lt_prog_compiler_wl='-Wl,'
8609 lt_prog_compiler_pic='-fpic'
8610 lt_prog_compiler_static='-Bstatic'
8611 ;;
8612 ccc*)
8613 lt_prog_compiler_wl='-Wl,'
8614 # All Alpha code is PIC.
8615 lt_prog_compiler_static='-non_shared'
8616 ;;
8617 xl* | bgxl* | bgf* | mpixl*)
8618 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-qpic'
8621 lt_prog_compiler_static='-qstaticlink'
8622 ;;
8623 *)
8624 case `$CC -V 2>&1 | sed 5q` in
8625 *Sun\ F* | *Sun*Fortran*)
8626 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8629 lt_prog_compiler_wl=''
8630 ;;
8631 *Sun\ C*)
8632 # Sun C 5.9
8633 lt_prog_compiler_pic='-KPIC'
8634 lt_prog_compiler_static='-Bstatic'
8635 lt_prog_compiler_wl='-Wl,'
8636 ;;
8637 esac
8638 ;;
8639 esac
8640 ;;
8641
8642 newsos6)
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 ;;
8646
8647 *nto* | *qnx*)
8648 # QNX uses GNU C++, but need to define -shared option too, otherwise
8649 # it will coredump.
8650 lt_prog_compiler_pic='-fPIC -shared'
8651 ;;
8652
8653 osf3* | osf4* | osf5*)
8654 lt_prog_compiler_wl='-Wl,'
8655 # All OSF/1 code is PIC.
8656 lt_prog_compiler_static='-non_shared'
8657 ;;
8658
8659 rdos*)
8660 lt_prog_compiler_static='-non_shared'
8661 ;;
8662
8663 solaris*)
8664 lt_prog_compiler_pic='-KPIC'
8665 lt_prog_compiler_static='-Bstatic'
8666 case $cc_basename in
8667 f77* | f90* | f95*)
8668 lt_prog_compiler_wl='-Qoption ld ';;
8669 *)
8670 lt_prog_compiler_wl='-Wl,';;
8671 esac
8672 ;;
8673
8674 sunos4*)
8675 lt_prog_compiler_wl='-Qoption ld '
8676 lt_prog_compiler_pic='-PIC'
8677 lt_prog_compiler_static='-Bstatic'
8678 ;;
8679
8680 sysv4 | sysv4.2uw2* | sysv4.3*)
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-KPIC'
8683 lt_prog_compiler_static='-Bstatic'
8684 ;;
8685
8686 sysv4*MP*)
8687 if test -d /usr/nec ;then
8688 lt_prog_compiler_pic='-Kconform_pic'
8689 lt_prog_compiler_static='-Bstatic'
8690 fi
8691 ;;
8692
8693 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_pic='-KPIC'
8696 lt_prog_compiler_static='-Bstatic'
8697 ;;
8698
8699 unicos*)
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_can_build_shared=no
8702 ;;
8703
8704 uts4*)
8705 lt_prog_compiler_pic='-pic'
8706 lt_prog_compiler_static='-Bstatic'
8707 ;;
8708
8709 *)
8710 lt_prog_compiler_can_build_shared=no
8711 ;;
8712 esac
8713 fi
8714
8715 case $host_os in
8716 # For platforms which do not support PIC, -DPIC is meaningless:
8717 *djgpp*)
8718 lt_prog_compiler_pic=
8719 ;;
8720 *)
8721 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8722 ;;
8723 esac
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8725 $as_echo "$lt_prog_compiler_pic" >&6; }
8726
8727
8728
8729
8730
8731
8732 #
8733 # Check to make sure the PIC flag actually works.
8734 #
8735 if test -n "$lt_prog_compiler_pic"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8737 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8738 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 lt_cv_prog_compiler_pic_works=no
8742 ac_outfile=conftest.$ac_objext
8743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8744 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8745 # Insert the option either (1) after the last *FLAGS variable, or
8746 # (2) before a word containing "conftest.", or (3) at the end.
8747 # Note that $ac_compile itself does not contain backslashes and begins
8748 # with a dollar sign (not a hyphen), so the echo should work correctly.
8749 # The option is referenced via a variable to avoid confusing sed.
8750 lt_compile=`echo "$ac_compile" | $SED \
8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8753 -e 's:$: $lt_compiler_flag:'`
8754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8755 (eval "$lt_compile" 2>conftest.err)
8756 ac_status=$?
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 if (exit $ac_status) && test -s "$ac_outfile"; then
8760 # The compiler can only warn and ignore the option if not recognized
8761 # So say no if there are warnings other than the usual output.
8762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8765 lt_cv_prog_compiler_pic_works=yes
8766 fi
8767 fi
8768 $RM conftest*
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8772 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8773
8774 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8775 case $lt_prog_compiler_pic in
8776 "" | " "*) ;;
8777 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8778 esac
8779 else
8780 lt_prog_compiler_pic=
8781 lt_prog_compiler_can_build_shared=no
8782 fi
8783
8784 fi
8785
8786
8787
8788
8789
8790
8791 #
8792 # Check to make sure the static flag actually works.
8793 #
8794 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8796 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8797 if ${lt_cv_prog_compiler_static_works+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 lt_cv_prog_compiler_static_works=no
8801 save_LDFLAGS="$LDFLAGS"
8802 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8803 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8805 # The linker can only warn and ignore the option if not recognized
8806 # So say no if there are warnings
8807 if test -s conftest.err; then
8808 # Append any errors to the config.log.
8809 cat conftest.err 1>&5
8810 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8812 if diff conftest.exp conftest.er2 >/dev/null; then
8813 lt_cv_prog_compiler_static_works=yes
8814 fi
8815 else
8816 lt_cv_prog_compiler_static_works=yes
8817 fi
8818 fi
8819 $RM -r conftest*
8820 LDFLAGS="$save_LDFLAGS"
8821
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8824 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8825
8826 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8827 :
8828 else
8829 lt_prog_compiler_static=
8830 fi
8831
8832
8833
8834
8835
8836
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840 if ${lt_cv_prog_compiler_c_o+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 lt_cv_prog_compiler_c_o=no
8844 $RM -r conftest 2>/dev/null
8845 mkdir conftest
8846 cd conftest
8847 mkdir out
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
8850 lt_compiler_flag="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>out/conftest.err)
8861 ac_status=$?
8862 cat out/conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_c_o=yes
8872 fi
8873 fi
8874 chmod u+w . 2>&5
8875 $RM conftest*
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879 $RM out/* && rmdir out
8880 cd ..
8881 $RM -r conftest
8882 $RM conftest*
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887
8888
8889
8890
8891
8892
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8895 if ${lt_cv_prog_compiler_c_o+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 lt_cv_prog_compiler_c_o=no
8899 $RM -r conftest 2>/dev/null
8900 mkdir conftest
8901 cd conftest
8902 mkdir out
8903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904
8905 lt_compiler_flag="-o out/conftest2.$ac_objext"
8906 # Insert the option either (1) after the last *FLAGS variable, or
8907 # (2) before a word containing "conftest.", or (3) at the end.
8908 # Note that $ac_compile itself does not contain backslashes and begins
8909 # with a dollar sign (not a hyphen), so the echo should work correctly.
8910 lt_compile=`echo "$ac_compile" | $SED \
8911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913 -e 's:$: $lt_compiler_flag:'`
8914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8915 (eval "$lt_compile" 2>out/conftest.err)
8916 ac_status=$?
8917 cat out/conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8920 then
8921 # The compiler can only warn and ignore the option if not recognized
8922 # So say no if there are warnings
8923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8926 lt_cv_prog_compiler_c_o=yes
8927 fi
8928 fi
8929 chmod u+w . 2>&5
8930 $RM conftest*
8931 # SGI C++ compiler will create directory out/ii_files/ for
8932 # template instantiation
8933 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8934 $RM out/* && rmdir out
8935 cd ..
8936 $RM -r conftest
8937 $RM conftest*
8938
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8942
8943
8944
8945
8946 hard_links="nottested"
8947 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8948 # do not overwrite the value of need_locks provided by the user
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8950 $as_echo_n "checking if we can lock with hard links... " >&6; }
8951 hard_links=yes
8952 $RM conftest*
8953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8954 touch conftest.a
8955 ln conftest.a conftest.b 2>&5 || hard_links=no
8956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8958 $as_echo "$hard_links" >&6; }
8959 if test "$hard_links" = no; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8961 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8962 need_locks=warn
8963 fi
8964 else
8965 need_locks=no
8966 fi
8967
8968
8969
8970
8971
8972
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8974 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8975
8976 runpath_var=
8977 allow_undefined_flag=
8978 always_export_symbols=no
8979 archive_cmds=
8980 archive_expsym_cmds=
8981 compiler_needs_object=no
8982 enable_shared_with_static_runtimes=no
8983 export_dynamic_flag_spec=
8984 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8985 hardcode_automatic=no
8986 hardcode_direct=no
8987 hardcode_direct_absolute=no
8988 hardcode_libdir_flag_spec=
8989 hardcode_libdir_flag_spec_ld=
8990 hardcode_libdir_separator=
8991 hardcode_minus_L=no
8992 hardcode_shlibpath_var=unsupported
8993 inherit_rpath=no
8994 link_all_deplibs=unknown
8995 module_cmds=
8996 module_expsym_cmds=
8997 old_archive_from_new_cmds=
8998 old_archive_from_expsyms_cmds=
8999 thread_safe_flag_spec=
9000 whole_archive_flag_spec=
9001 # include_expsyms should be a list of space-separated symbols to be *always*
9002 # included in the symbol list
9003 include_expsyms=
9004 # exclude_expsyms can be an extended regexp of symbols to exclude
9005 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9007 # as well as any symbol that contains `d'.
9008 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9010 # platforms (ab)use it in PIC code, but their linkers get confused if
9011 # the symbol is explicitly referenced. Since portable code cannot
9012 # rely on this symbol name, it's probably fine to never include it in
9013 # preloaded symbol tables.
9014 # Exclude shared library initialization/finalization symbols.
9015 extract_expsyms_cmds=
9016
9017 case $host_os in
9018 cygwin* | mingw* | pw32* | cegcc*)
9019 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9020 # When not using gcc, we currently assume that we are using
9021 # Microsoft Visual C++.
9022 if test "$GCC" != yes; then
9023 with_gnu_ld=no
9024 fi
9025 ;;
9026 interix*)
9027 # we just hope/assume this is gcc and not c89 (= MSVC++)
9028 with_gnu_ld=yes
9029 ;;
9030 openbsd*)
9031 with_gnu_ld=no
9032 ;;
9033 esac
9034
9035 ld_shlibs=yes
9036
9037 # On some targets, GNU ld is compatible enough with the native linker
9038 # that we're better off using the native interface for both.
9039 lt_use_gnu_ld_interface=no
9040 if test "$with_gnu_ld" = yes; then
9041 case $host_os in
9042 aix*)
9043 # The AIX port of GNU ld has always aspired to compatibility
9044 # with the native linker. However, as the warning in the GNU ld
9045 # block says, versions before 2.19.5* couldn't really create working
9046 # shared libraries, regardless of the interface used.
9047 case `$LD -v 2>&1` in
9048 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9049 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9050 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9051 *)
9052 lt_use_gnu_ld_interface=yes
9053 ;;
9054 esac
9055 ;;
9056 *)
9057 lt_use_gnu_ld_interface=yes
9058 ;;
9059 esac
9060 fi
9061
9062 if test "$lt_use_gnu_ld_interface" = yes; then
9063 # If archive_cmds runs LD, not CC, wlarc should be empty
9064 wlarc='${wl}'
9065
9066 # Set some defaults for GNU ld with shared library support. These
9067 # are reset later if shared libraries are not supported. Putting them
9068 # here allows them to be overridden if necessary.
9069 runpath_var=LD_RUN_PATH
9070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9071 export_dynamic_flag_spec='${wl}--export-dynamic'
9072 # ancient GNU ld didn't support --whole-archive et. al.
9073 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9074 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9075 else
9076 whole_archive_flag_spec=
9077 fi
9078 supports_anon_versioning=no
9079 case `$LD -v 2>&1` in
9080 *GNU\ gold*) supports_anon_versioning=yes ;;
9081 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9082 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9083 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9084 *\ 2.11.*) ;; # other 2.11 versions
9085 *) supports_anon_versioning=yes ;;
9086 esac
9087
9088 # See if GNU ld supports shared libraries.
9089 case $host_os in
9090 aix[3-9]*)
9091 # On AIX/PPC, the GNU linker is very broken
9092 if test "$host_cpu" != ia64; then
9093 ld_shlibs=no
9094 cat <<_LT_EOF 1>&2
9095
9096 *** Warning: the GNU linker, at least up to release 2.19, is reported
9097 *** to be unable to reliably create shared libraries on AIX.
9098 *** Therefore, libtool is disabling shared libraries support. If you
9099 *** really care for shared libraries, you may want to install binutils
9100 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9101 *** You will then need to restart the configuration process.
9102
9103 _LT_EOF
9104 fi
9105 ;;
9106
9107 amigaos*)
9108 case $host_cpu in
9109 powerpc)
9110 # see comment about AmigaOS4 .so support
9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112 archive_expsym_cmds=''
9113 ;;
9114 m68k)
9115 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)'
9116 hardcode_libdir_flag_spec='-L$libdir'
9117 hardcode_minus_L=yes
9118 ;;
9119 esac
9120 ;;
9121
9122 beos*)
9123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9124 allow_undefined_flag=unsupported
9125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9126 # support --undefined. This deserves some investigation. FIXME
9127 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 else
9129 ld_shlibs=no
9130 fi
9131 ;;
9132
9133 cygwin* | mingw* | pw32* | cegcc*)
9134 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9135 # as there is no search path for DLLs.
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 export_dynamic_flag_spec='${wl}--export-all-symbols'
9138 allow_undefined_flag=unsupported
9139 always_export_symbols=no
9140 enable_shared_with_static_runtimes=yes
9141 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9142
9143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9145 # If the export-symbols file already is a .def file (1st line
9146 # is EXPORTS), use it as is; otherwise, prepend...
9147 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9148 cp $export_symbols $output_objdir/$soname.def;
9149 else
9150 echo EXPORTS > $output_objdir/$soname.def;
9151 cat $export_symbols >> $output_objdir/$soname.def;
9152 fi~
9153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158
9159 haiku*)
9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161 link_all_deplibs=yes
9162 ;;
9163
9164 interix[3-9]*)
9165 hardcode_direct=no
9166 hardcode_shlibpath_var=no
9167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9168 export_dynamic_flag_spec='${wl}-E'
9169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9170 # Instead, shared libraries are loaded at an image base (0x10000000 by
9171 # default) and relocated if they conflict, which is a slow very memory
9172 # consuming and fragmenting process. To avoid this, we pick a random,
9173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9176 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'
9177 ;;
9178
9179 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9180 tmp_diet=no
9181 if test "$host_os" = linux-dietlibc; then
9182 case $cc_basename in
9183 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9184 esac
9185 fi
9186 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9187 && test "$tmp_diet" = no
9188 then
9189 tmp_addflag=' $pic_flag'
9190 tmp_sharedflag='-shared'
9191 case $cc_basename,$host_cpu in
9192 pgcc*) # Portland Group C compiler
9193 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'
9194 tmp_addflag=' $pic_flag'
9195 ;;
9196 pgf77* | pgf90* | pgf95* | pgfortran*)
9197 # Portland Group f77 and f90 compilers
9198 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'
9199 tmp_addflag=' $pic_flag -Mnomain' ;;
9200 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9201 tmp_addflag=' -i_dynamic' ;;
9202 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9203 tmp_addflag=' -i_dynamic -nofor_main' ;;
9204 ifc* | ifort*) # Intel Fortran compiler
9205 tmp_addflag=' -nofor_main' ;;
9206 lf95*) # Lahey Fortran 8.1
9207 whole_archive_flag_spec=
9208 tmp_sharedflag='--shared' ;;
9209 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9210 tmp_sharedflag='-qmkshrobj'
9211 tmp_addflag= ;;
9212 nvcc*) # Cuda Compiler Driver 2.2
9213 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'
9214 compiler_needs_object=yes
9215 ;;
9216 esac
9217 case `$CC -V 2>&1 | sed 5q` in
9218 *Sun\ C*) # Sun C 5.9
9219 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'
9220 compiler_needs_object=yes
9221 tmp_sharedflag='-G' ;;
9222 *Sun\ F*) # Sun Fortran 8.3
9223 tmp_sharedflag='-G' ;;
9224 esac
9225 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226
9227 if test "x$supports_anon_versioning" = xyes; then
9228 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9230 echo "local: *; };" >> $output_objdir/$libname.ver~
9231 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9232 fi
9233
9234 case $cc_basename in
9235 xlf* | bgf* | bgxlf* | mpixlf*)
9236 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9237 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9238 hardcode_libdir_flag_spec=
9239 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9240 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9241 if test "x$supports_anon_versioning" = xyes; then
9242 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9244 echo "local: *; };" >> $output_objdir/$libname.ver~
9245 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9246 fi
9247 ;;
9248 esac
9249 else
9250 ld_shlibs=no
9251 fi
9252 ;;
9253
9254 netbsd*)
9255 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9256 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9257 wlarc=
9258 else
9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9261 fi
9262 ;;
9263
9264 solaris*)
9265 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9266 ld_shlibs=no
9267 cat <<_LT_EOF 1>&2
9268
9269 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9270 *** create shared libraries on Solaris systems. Therefore, libtool
9271 *** is disabling shared libraries support. We urge you to upgrade GNU
9272 *** binutils to release 2.9.1 or newer. Another option is to modify
9273 *** your PATH or compiler configuration so that the native linker is
9274 *** used, and then restart.
9275
9276 _LT_EOF
9277 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9280 else
9281 ld_shlibs=no
9282 fi
9283 ;;
9284
9285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9286 case `$LD -v 2>&1` in
9287 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9288 ld_shlibs=no
9289 cat <<_LT_EOF 1>&2
9290
9291 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9292 *** reliably create shared libraries on SCO systems. Therefore, libtool
9293 *** is disabling shared libraries support. We urge you to upgrade GNU
9294 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9295 *** your PATH or compiler configuration so that the native linker is
9296 *** used, and then restart.
9297
9298 _LT_EOF
9299 ;;
9300 *)
9301 # For security reasons, it is highly recommended that you always
9302 # use absolute paths for naming shared libraries, and exclude the
9303 # DT_RUNPATH tag from executables and libraries. But doing so
9304 # requires that you compile everything twice, which is a pain.
9305 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9309 else
9310 ld_shlibs=no
9311 fi
9312 ;;
9313 esac
9314 ;;
9315
9316 sunos4*)
9317 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9318 wlarc=
9319 hardcode_direct=yes
9320 hardcode_shlibpath_var=no
9321 ;;
9322
9323 *)
9324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9327 else
9328 ld_shlibs=no
9329 fi
9330 ;;
9331 esac
9332
9333 if test "$ld_shlibs" = no; then
9334 runpath_var=
9335 hardcode_libdir_flag_spec=
9336 export_dynamic_flag_spec=
9337 whole_archive_flag_spec=
9338 fi
9339 else
9340 # PORTME fill in a description of your system's linker (not GNU ld)
9341 case $host_os in
9342 aix3*)
9343 allow_undefined_flag=unsupported
9344 always_export_symbols=yes
9345 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'
9346 # Note: this linker hardcodes the directories in LIBPATH if there
9347 # are no directories specified by -L.
9348 hardcode_minus_L=yes
9349 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9350 # Neither direct hardcoding nor static linking is supported with a
9351 # broken collect2.
9352 hardcode_direct=unsupported
9353 fi
9354 ;;
9355
9356 aix[4-9]*)
9357 if test "$host_cpu" = ia64; then
9358 # On IA64, the linker does run time linking by default, so we don't
9359 # have to do anything special.
9360 aix_use_runtimelinking=no
9361 exp_sym_flag='-Bexport'
9362 no_entry_flag=""
9363 else
9364 # If we're using GNU nm, then we don't want the "-C" option.
9365 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9366 # Also, AIX nm treats weak defined symbols like other global
9367 # defined symbols, whereas GNU nm marks them as "W".
9368 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9369 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'
9370 else
9371 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'
9372 fi
9373 aix_use_runtimelinking=no
9374
9375 # Test if we are trying to use run time linking or normal
9376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9377 # need to do runtime linking.
9378 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9379 for ld_flag in $LDFLAGS; do
9380 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9381 aix_use_runtimelinking=yes
9382 break
9383 fi
9384 done
9385 ;;
9386 esac
9387
9388 exp_sym_flag='-bexport'
9389 no_entry_flag='-bnoentry'
9390 fi
9391
9392 # When large executables or shared objects are built, AIX ld can
9393 # have problems creating the table of contents. If linking a library
9394 # or program results in "error TOC overflow" add -mminimal-toc to
9395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9397
9398 archive_cmds=''
9399 hardcode_direct=yes
9400 hardcode_direct_absolute=yes
9401 hardcode_libdir_separator=':'
9402 link_all_deplibs=yes
9403 file_list_spec='${wl}-f,'
9404
9405 if test "$GCC" = yes; then
9406 case $host_os in aix4.[012]|aix4.[012].*)
9407 # We only want to do this on AIX 4.2 and lower, the check
9408 # below for broken collect2 doesn't work under 4.3+
9409 collect2name=`${CC} -print-prog-name=collect2`
9410 if test -f "$collect2name" &&
9411 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9412 then
9413 # We have reworked collect2
9414 :
9415 else
9416 # We have old collect2
9417 hardcode_direct=unsupported
9418 # It fails to find uninstalled libraries when the uninstalled
9419 # path is not listed in the libpath. Setting hardcode_minus_L
9420 # to unsupported forces relinking
9421 hardcode_minus_L=yes
9422 hardcode_libdir_flag_spec='-L$libdir'
9423 hardcode_libdir_separator=
9424 fi
9425 ;;
9426 esac
9427 shared_flag='-shared'
9428 if test "$aix_use_runtimelinking" = yes; then
9429 shared_flag="$shared_flag "'${wl}-G'
9430 fi
9431 else
9432 # not using gcc
9433 if test "$host_cpu" = ia64; then
9434 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9435 # chokes on -Wl,-G. The following line is correct:
9436 shared_flag='-G'
9437 else
9438 if test "$aix_use_runtimelinking" = yes; then
9439 shared_flag='${wl}-G'
9440 else
9441 shared_flag='${wl}-bM:SRE'
9442 fi
9443 fi
9444 fi
9445
9446 export_dynamic_flag_spec='${wl}-bexpall'
9447 # It seems that -bexpall does not export symbols beginning with
9448 # underscore (_), so it is better to generate a list of symbols to export.
9449 always_export_symbols=yes
9450 if test "$aix_use_runtimelinking" = yes; then
9451 # Warning - without using the other runtime loading flags (-brtl),
9452 # -berok will link without error, but may produce a broken library.
9453 allow_undefined_flag='-berok'
9454 # Determine the default libpath from the value encoded in an
9455 # empty executable.
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458
9459 int
9460 main ()
9461 {
9462
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"; then :
9468
9469 lt_aix_libpath_sed='
9470 /Import File Strings/,/^$/ {
9471 /^0/ {
9472 s/^0 *\(.*\)$/\1/
9473 p
9474 }
9475 }'
9476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477 # Check for a 64-bit object if we didn't find anything.
9478 if test -z "$aix_libpath"; then
9479 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480 fi
9481 fi
9482 rm -f core conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9485
9486 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9487 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"
9488 else
9489 if test "$host_cpu" = ia64; then
9490 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9491 allow_undefined_flag="-z nodefs"
9492 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"
9493 else
9494 # Determine the default libpath from the value encoded in an
9495 # empty executable.
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498
9499 int
9500 main ()
9501 {
9502
9503 ;
9504 return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9508
9509 lt_aix_libpath_sed='
9510 /Import File Strings/,/^$/ {
9511 /^0/ {
9512 s/^0 *\(.*\)$/\1/
9513 p
9514 }
9515 }'
9516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9517 # Check for a 64-bit object if we didn't find anything.
9518 if test -z "$aix_libpath"; then
9519 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9520 fi
9521 fi
9522 rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9525
9526 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9527 # Warning - without using the other run time loading flags,
9528 # -berok will link without error, but may produce a broken library.
9529 no_undefined_flag=' ${wl}-bernotok'
9530 allow_undefined_flag=' ${wl}-berok'
9531 if test "$with_gnu_ld" = yes; then
9532 # We only use this code for GNU lds that support --whole-archive.
9533 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9534 else
9535 # Exported symbols can be pulled into shared objects from archives
9536 whole_archive_flag_spec='$convenience'
9537 fi
9538 archive_cmds_need_lc=yes
9539 # This is similar to how AIX traditionally builds its shared libraries.
9540 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'
9541 fi
9542 fi
9543 ;;
9544
9545 amigaos*)
9546 case $host_cpu in
9547 powerpc)
9548 # see comment about AmigaOS4 .so support
9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 archive_expsym_cmds=''
9551 ;;
9552 m68k)
9553 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)'
9554 hardcode_libdir_flag_spec='-L$libdir'
9555 hardcode_minus_L=yes
9556 ;;
9557 esac
9558 ;;
9559
9560 bsdi[45]*)
9561 export_dynamic_flag_spec=-rdynamic
9562 ;;
9563
9564 cygwin* | mingw* | pw32* | cegcc*)
9565 # When not using gcc, we currently assume that we are using
9566 # Microsoft Visual C++.
9567 # hardcode_libdir_flag_spec is actually meaningless, as there is
9568 # no search path for DLLs.
9569 hardcode_libdir_flag_spec=' '
9570 allow_undefined_flag=unsupported
9571 # Tell ltmain to make .lib files, not .a files.
9572 libext=lib
9573 # Tell ltmain to make .dll files, not .so files.
9574 shrext_cmds=".dll"
9575 # FIXME: Setting linknames here is a bad hack.
9576 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9577 # The linker will automatically build a .lib file if we build a DLL.
9578 old_archive_from_new_cmds='true'
9579 # FIXME: Should let the user specify the lib program.
9580 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9581 fix_srcfile_path='`cygpath -w "$srcfile"`'
9582 enable_shared_with_static_runtimes=yes
9583 ;;
9584
9585 darwin* | rhapsody*)
9586
9587
9588 archive_cmds_need_lc=no
9589 hardcode_direct=no
9590 hardcode_automatic=yes
9591 hardcode_shlibpath_var=unsupported
9592 if test "$lt_cv_ld_force_load" = "yes"; then
9593 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\"`'
9594 else
9595 whole_archive_flag_spec=''
9596 fi
9597 link_all_deplibs=yes
9598 allow_undefined_flag="$_lt_dar_allow_undefined"
9599 case $cc_basename in
9600 ifort*) _lt_dar_can_shared=yes ;;
9601 *) _lt_dar_can_shared=$GCC ;;
9602 esac
9603 if test "$_lt_dar_can_shared" = "yes"; then
9604 output_verbose_link_cmd=func_echo_all
9605 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9606 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9607 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}"
9608 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}"
9609
9610 else
9611 ld_shlibs=no
9612 fi
9613
9614 ;;
9615
9616 dgux*)
9617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618 hardcode_libdir_flag_spec='-L$libdir'
9619 hardcode_shlibpath_var=no
9620 ;;
9621
9622 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9623 # support. Future versions do this automatically, but an explicit c++rt0.o
9624 # does not break anything, and helps significantly (at the cost of a little
9625 # extra space).
9626 freebsd2.2*)
9627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9628 hardcode_libdir_flag_spec='-R$libdir'
9629 hardcode_direct=yes
9630 hardcode_shlibpath_var=no
9631 ;;
9632
9633 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9634 freebsd2.*)
9635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636 hardcode_direct=yes
9637 hardcode_minus_L=yes
9638 hardcode_shlibpath_var=no
9639 ;;
9640
9641 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9642 freebsd* | dragonfly*)
9643 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9644 hardcode_libdir_flag_spec='-R$libdir'
9645 hardcode_direct=yes
9646 hardcode_shlibpath_var=no
9647 ;;
9648
9649 hpux9*)
9650 if test "$GCC" = yes; then
9651 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'
9652 else
9653 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'
9654 fi
9655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9656 hardcode_libdir_separator=:
9657 hardcode_direct=yes
9658
9659 # hardcode_minus_L: Not really in the search PATH,
9660 # but as the default location of the library.
9661 hardcode_minus_L=yes
9662 export_dynamic_flag_spec='${wl}-E'
9663 ;;
9664
9665 hpux10*)
9666 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9668 else
9669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9670 fi
9671 if test "$with_gnu_ld" = no; then
9672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9673 hardcode_libdir_flag_spec_ld='+b $libdir'
9674 hardcode_libdir_separator=:
9675 hardcode_direct=yes
9676 hardcode_direct_absolute=yes
9677 export_dynamic_flag_spec='${wl}-E'
9678 # hardcode_minus_L: Not really in the search PATH,
9679 # but as the default location of the library.
9680 hardcode_minus_L=yes
9681 fi
9682 ;;
9683
9684 hpux11*)
9685 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9686 case $host_cpu in
9687 hppa*64*)
9688 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9689 ;;
9690 ia64*)
9691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9692 ;;
9693 *)
9694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9695 ;;
9696 esac
9697 else
9698 case $host_cpu in
9699 hppa*64*)
9700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9701 ;;
9702 ia64*)
9703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9704 ;;
9705 *)
9706
9707 # Older versions of the 11.00 compiler do not understand -b yet
9708 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9710 $as_echo_n "checking if $CC understands -b... " >&6; }
9711 if ${lt_cv_prog_compiler__b+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 lt_cv_prog_compiler__b=no
9715 save_LDFLAGS="$LDFLAGS"
9716 LDFLAGS="$LDFLAGS -b"
9717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9719 # The linker can only warn and ignore the option if not recognized
9720 # So say no if there are warnings
9721 if test -s conftest.err; then
9722 # Append any errors to the config.log.
9723 cat conftest.err 1>&5
9724 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9726 if diff conftest.exp conftest.er2 >/dev/null; then
9727 lt_cv_prog_compiler__b=yes
9728 fi
9729 else
9730 lt_cv_prog_compiler__b=yes
9731 fi
9732 fi
9733 $RM -r conftest*
9734 LDFLAGS="$save_LDFLAGS"
9735
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9738 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9739
9740 if test x"$lt_cv_prog_compiler__b" = xyes; then
9741 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9742 else
9743 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9744 fi
9745
9746 ;;
9747 esac
9748 fi
9749 if test "$with_gnu_ld" = no; then
9750 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9751 hardcode_libdir_separator=:
9752
9753 case $host_cpu in
9754 hppa*64*|ia64*)
9755 hardcode_direct=no
9756 hardcode_shlibpath_var=no
9757 ;;
9758 *)
9759 hardcode_direct=yes
9760 hardcode_direct_absolute=yes
9761 export_dynamic_flag_spec='${wl}-E'
9762
9763 # hardcode_minus_L: Not really in the search PATH,
9764 # but as the default location of the library.
9765 hardcode_minus_L=yes
9766 ;;
9767 esac
9768 fi
9769 ;;
9770
9771 irix5* | irix6* | nonstopux*)
9772 if test "$GCC" = yes; then
9773 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'
9774 # Try to use the -exported_symbol ld option, if it does not
9775 # work, assume that -exports_file does not work either and
9776 # implicitly export all symbols.
9777 save_LDFLAGS="$LDFLAGS"
9778 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9781 int foo(void) {}
9782 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then :
9784 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'
9785
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789 LDFLAGS="$save_LDFLAGS"
9790 else
9791 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'
9792 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'
9793 fi
9794 archive_cmds_need_lc='no'
9795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9796 hardcode_libdir_separator=:
9797 inherit_rpath=yes
9798 link_all_deplibs=yes
9799 ;;
9800
9801 netbsd*)
9802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9804 else
9805 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9806 fi
9807 hardcode_libdir_flag_spec='-R$libdir'
9808 hardcode_direct=yes
9809 hardcode_shlibpath_var=no
9810 ;;
9811
9812 newsos6)
9813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9814 hardcode_direct=yes
9815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9816 hardcode_libdir_separator=:
9817 hardcode_shlibpath_var=no
9818 ;;
9819
9820 *nto* | *qnx*)
9821 ;;
9822
9823 openbsd*)
9824 if test -f /usr/libexec/ld.so; then
9825 hardcode_direct=yes
9826 hardcode_shlibpath_var=no
9827 hardcode_direct_absolute=yes
9828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9832 export_dynamic_flag_spec='${wl}-E'
9833 else
9834 case $host_os in
9835 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9837 hardcode_libdir_flag_spec='-R$libdir'
9838 ;;
9839 *)
9840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9842 ;;
9843 esac
9844 fi
9845 else
9846 ld_shlibs=no
9847 fi
9848 ;;
9849
9850 os2*)
9851 hardcode_libdir_flag_spec='-L$libdir'
9852 hardcode_minus_L=yes
9853 allow_undefined_flag=unsupported
9854 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'
9855 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9856 ;;
9857
9858 osf3*)
9859 if test "$GCC" = yes; then
9860 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9861 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'
9862 else
9863 allow_undefined_flag=' -expect_unresolved \*'
9864 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'
9865 fi
9866 archive_cmds_need_lc='no'
9867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9868 hardcode_libdir_separator=:
9869 ;;
9870
9871 osf4* | osf5*) # as osf3* with the addition of -msym flag
9872 if test "$GCC" = yes; then
9873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9874 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'
9875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9876 else
9877 allow_undefined_flag=' -expect_unresolved \*'
9878 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'
9879 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~
9880 $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'
9881
9882 # Both c and cxx compiler support -rpath directly
9883 hardcode_libdir_flag_spec='-rpath $libdir'
9884 fi
9885 archive_cmds_need_lc='no'
9886 hardcode_libdir_separator=:
9887 ;;
9888
9889 solaris*)
9890 no_undefined_flag=' -z defs'
9891 if test "$GCC" = yes; then
9892 wlarc='${wl}'
9893 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9895 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9896 else
9897 case `$CC -V 2>&1` in
9898 *"Compilers 5.0"*)
9899 wlarc=''
9900 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9902 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9903 ;;
9904 *)
9905 wlarc='${wl}'
9906 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9907 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9908 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9909 ;;
9910 esac
9911 fi
9912 hardcode_libdir_flag_spec='-R$libdir'
9913 hardcode_shlibpath_var=no
9914 case $host_os in
9915 solaris2.[0-5] | solaris2.[0-5].*) ;;
9916 *)
9917 # The compiler driver will combine and reorder linker options,
9918 # but understands `-z linker_flag'. GCC discards it without `$wl',
9919 # but is careful enough not to reorder.
9920 # Supported since Solaris 2.6 (maybe 2.5.1?)
9921 if test "$GCC" = yes; then
9922 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9923 else
9924 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9925 fi
9926 ;;
9927 esac
9928 link_all_deplibs=yes
9929 ;;
9930
9931 sunos4*)
9932 if test "x$host_vendor" = xsequent; then
9933 # Use $CC to link under sequent, because it throws in some extra .o
9934 # files that make .init and .fini sections work.
9935 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9936 else
9937 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9938 fi
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_direct=yes
9941 hardcode_minus_L=yes
9942 hardcode_shlibpath_var=no
9943 ;;
9944
9945 sysv4)
9946 case $host_vendor in
9947 sni)
9948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_direct=yes # is this really true???
9950 ;;
9951 siemens)
9952 ## LD is ld it makes a PLAMLIB
9953 ## CC just makes a GrossModule.
9954 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9955 reload_cmds='$CC -r -o $output$reload_objs'
9956 hardcode_direct=no
9957 ;;
9958 motorola)
9959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9961 ;;
9962 esac
9963 runpath_var='LD_RUN_PATH'
9964 hardcode_shlibpath_var=no
9965 ;;
9966
9967 sysv4.3*)
9968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969 hardcode_shlibpath_var=no
9970 export_dynamic_flag_spec='-Bexport'
9971 ;;
9972
9973 sysv4*MP*)
9974 if test -d /usr/nec; then
9975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_shlibpath_var=no
9977 runpath_var=LD_RUN_PATH
9978 hardcode_runpath_var=yes
9979 ld_shlibs=yes
9980 fi
9981 ;;
9982
9983 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9984 no_undefined_flag='${wl}-z,text'
9985 archive_cmds_need_lc=no
9986 hardcode_shlibpath_var=no
9987 runpath_var='LD_RUN_PATH'
9988
9989 if test "$GCC" = yes; then
9990 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 else
9993 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 fi
9996 ;;
9997
9998 sysv5* | sco3.2v5* | sco5v6*)
9999 # Note: We can NOT use -z defs as we might desire, because we do not
10000 # link with -lc, and that would cause any symbols used from libc to
10001 # always be unresolved, which means just about no library would
10002 # ever link correctly. If we're not using GNU ld we use -z text
10003 # though, which does catch some bad symbols but isn't as heavy-handed
10004 # as -z defs.
10005 no_undefined_flag='${wl}-z,text'
10006 allow_undefined_flag='${wl}-z,nodefs'
10007 archive_cmds_need_lc=no
10008 hardcode_shlibpath_var=no
10009 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10010 hardcode_libdir_separator=':'
10011 link_all_deplibs=yes
10012 export_dynamic_flag_spec='${wl}-Bexport'
10013 runpath_var='LD_RUN_PATH'
10014
10015 if test "$GCC" = yes; then
10016 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 else
10019 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 fi
10022 ;;
10023
10024 uts4*)
10025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026 hardcode_libdir_flag_spec='-L$libdir'
10027 hardcode_shlibpath_var=no
10028 ;;
10029
10030 *)
10031 ld_shlibs=no
10032 ;;
10033 esac
10034
10035 if test x$host_vendor = xsni; then
10036 case $host in
10037 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10038 export_dynamic_flag_spec='${wl}-Blargedynsym'
10039 ;;
10040 esac
10041 fi
10042 fi
10043
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10045 $as_echo "$ld_shlibs" >&6; }
10046 test "$ld_shlibs" = no && can_build_shared=no
10047
10048 with_gnu_ld=$with_gnu_ld
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064 #
10065 # Do we need to explicitly link libc?
10066 #
10067 case "x$archive_cmds_need_lc" in
10068 x|xyes)
10069 # Assume -lc should be added
10070 archive_cmds_need_lc=yes
10071
10072 if test "$enable_shared" = yes && test "$GCC" = yes; then
10073 case $archive_cmds in
10074 *'~'*)
10075 # FIXME: we may have to deal with multi-command sequences.
10076 ;;
10077 '$CC '*)
10078 # Test whether the compiler implicitly links with -lc since on some
10079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10080 # to ld, don't add -lc before -lgcc.
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10083 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 $RM conftest*
10087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10088
10089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10090 (eval $ac_compile) 2>&5
10091 ac_status=$?
10092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10093 test $ac_status = 0; } 2>conftest.err; then
10094 soname=conftest
10095 lib=conftest
10096 libobjs=conftest.$ac_objext
10097 deplibs=
10098 wl=$lt_prog_compiler_wl
10099 pic_flag=$lt_prog_compiler_pic
10100 compiler_flags=-v
10101 linker_flags=-v
10102 verstring=
10103 output_objdir=.
10104 libname=conftest
10105 lt_save_allow_undefined_flag=$allow_undefined_flag
10106 allow_undefined_flag=
10107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10108 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10109 ac_status=$?
10110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10111 test $ac_status = 0; }
10112 then
10113 lt_cv_archive_cmds_need_lc=no
10114 else
10115 lt_cv_archive_cmds_need_lc=yes
10116 fi
10117 allow_undefined_flag=$lt_save_allow_undefined_flag
10118 else
10119 cat conftest.err 1>&5
10120 fi
10121 $RM conftest*
10122
10123 fi
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10125 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10126 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10127 ;;
10128 esac
10129 fi
10130 ;;
10131 esac
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10290 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10291
10292 if test "$GCC" = yes; then
10293 case $host_os in
10294 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10295 *) lt_awk_arg="/^libraries:/" ;;
10296 esac
10297 case $host_os in
10298 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10299 *) lt_sed_strip_eq="s,=/,/,g" ;;
10300 esac
10301 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10302 case $lt_search_path_spec in
10303 *\;*)
10304 # if the path contains ";" then we assume it to be the separator
10305 # otherwise default to the standard path separator (i.e. ":") - it is
10306 # assumed that no part of a normal pathname contains ";" but that should
10307 # okay in the real world where ";" in dirpaths is itself problematic.
10308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10309 ;;
10310 *)
10311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10312 ;;
10313 esac
10314 # Ok, now we have the path, separated by spaces, we can step through it
10315 # and add multilib dir if necessary.
10316 lt_tmp_lt_search_path_spec=
10317 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10318 for lt_sys_path in $lt_search_path_spec; do
10319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10321 else
10322 test -d "$lt_sys_path" && \
10323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10324 fi
10325 done
10326 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10327 BEGIN {RS=" "; FS="/|\n";} {
10328 lt_foo="";
10329 lt_count=0;
10330 for (lt_i = NF; lt_i > 0; lt_i--) {
10331 if ($lt_i != "" && $lt_i != ".") {
10332 if ($lt_i == "..") {
10333 lt_count++;
10334 } else {
10335 if (lt_count == 0) {
10336 lt_foo="/" $lt_i lt_foo;
10337 } else {
10338 lt_count--;
10339 }
10340 }
10341 }
10342 }
10343 if (lt_foo != "") { lt_freq[lt_foo]++; }
10344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10345 }'`
10346 # AWK program above erroneously prepends '/' to C:/dos/paths
10347 # for these hosts.
10348 case $host_os in
10349 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10350 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10351 esac
10352 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10353 else
10354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10355 fi
10356 library_names_spec=
10357 libname_spec='lib$name'
10358 soname_spec=
10359 shrext_cmds=".so"
10360 postinstall_cmds=
10361 postuninstall_cmds=
10362 finish_cmds=
10363 finish_eval=
10364 shlibpath_var=
10365 shlibpath_overrides_runpath=unknown
10366 version_type=none
10367 dynamic_linker="$host_os ld.so"
10368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10369 need_lib_prefix=unknown
10370 hardcode_into_libs=no
10371
10372 # when you set need_version to no, make sure it does not cause -set_version
10373 # flags to be left without arguments
10374 need_version=unknown
10375
10376 case $host_os in
10377 aix3*)
10378 version_type=linux
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10380 shlibpath_var=LIBPATH
10381
10382 # AIX 3 has no versioning support, so we append a major version to the name.
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 ;;
10385
10386 aix[4-9]*)
10387 version_type=linux
10388 need_lib_prefix=no
10389 need_version=no
10390 hardcode_into_libs=yes
10391 if test "$host_cpu" = ia64; then
10392 # AIX 5 supports IA64
10393 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 else
10396 # With GCC up to 2.95.x, collect2 would create an import file
10397 # for dependence libraries. The import file would start with
10398 # the line `#! .'. This would cause the generated library to
10399 # depend on `.', always an invalid library. This was fixed in
10400 # development snapshots of GCC prior to 3.0.
10401 case $host_os in
10402 aix4 | aix4.[01] | aix4.[01].*)
10403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10404 echo ' yes '
10405 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10406 :
10407 else
10408 can_build_shared=no
10409 fi
10410 ;;
10411 esac
10412 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10413 # soname into executable. Probably we can add versioning support to
10414 # collect2, so additional links can be useful in future.
10415 if test "$aix_use_runtimelinking" = yes; then
10416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10417 # instead of lib<name>.a to let people know that these are not
10418 # typical AIX shared libraries.
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 else
10421 # We preserve .a as extension for shared libraries through AIX4.2
10422 # and later when we are not doing run time linking.
10423 library_names_spec='${libname}${release}.a $libname.a'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 fi
10426 shlibpath_var=LIBPATH
10427 fi
10428 ;;
10429
10430 amigaos*)
10431 case $host_cpu in
10432 powerpc)
10433 # Since July 2007 AmigaOS4 officially supports .so libraries.
10434 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436 ;;
10437 m68k)
10438 library_names_spec='$libname.ixlibrary $libname.a'
10439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10440 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'
10441 ;;
10442 esac
10443 ;;
10444
10445 beos*)
10446 library_names_spec='${libname}${shared_ext}'
10447 dynamic_linker="$host_os ld.so"
10448 shlibpath_var=LIBRARY_PATH
10449 ;;
10450
10451 bsdi[45]*)
10452 version_type=linux
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10460 # the default ld.so.conf also contains /usr/contrib/lib and
10461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10462 # libtool to hard-code these into programs
10463 ;;
10464
10465 cygwin* | mingw* | pw32* | cegcc*)
10466 version_type=windows
10467 shrext_cmds=".dll"
10468 need_version=no
10469 need_lib_prefix=no
10470
10471 case $GCC,$host_os in
10472 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10473 library_names_spec='$libname.dll.a'
10474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10475 postinstall_cmds='base_file=`basename \${file}`~
10476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10477 dldir=$destdir/`dirname \$dlpath`~
10478 test -d \$dldir || mkdir -p \$dldir~
10479 $install_prog $dir/$dlname \$dldir/$dlname~
10480 chmod a+x \$dldir/$dlname~
10481 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10482 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10483 fi'
10484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10485 dlpath=$dir/\$dldll~
10486 $RM \$dlpath'
10487 shlibpath_overrides_runpath=yes
10488
10489 case $host_os in
10490 cygwin*)
10491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10492 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10493
10494 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10495 ;;
10496 mingw* | cegcc*)
10497 # MinGW DLLs use traditional 'lib' prefix
10498 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10499 ;;
10500 pw32*)
10501 # pw32 DLLs use 'pw' prefix rather than 'lib'
10502 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10503 ;;
10504 esac
10505 ;;
10506
10507 *)
10508 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10509 ;;
10510 esac
10511 dynamic_linker='Win32 ld.exe'
10512 # FIXME: first we should search . and the directory the executable is in
10513 shlibpath_var=PATH
10514 ;;
10515
10516 darwin* | rhapsody*)
10517 dynamic_linker="$host_os dyld"
10518 version_type=darwin
10519 need_lib_prefix=no
10520 need_version=no
10521 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10522 soname_spec='${libname}${release}${major}$shared_ext'
10523 shlibpath_overrides_runpath=yes
10524 shlibpath_var=DYLD_LIBRARY_PATH
10525 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10526
10527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10528 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10529 ;;
10530
10531 dgux*)
10532 version_type=linux
10533 need_lib_prefix=no
10534 need_version=no
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 ;;
10539
10540 freebsd* | dragonfly*)
10541 # DragonFly does not have aout. When/if they implement a new
10542 # versioning mechanism, adjust this.
10543 if test -x /usr/bin/objformat; then
10544 objformat=`/usr/bin/objformat`
10545 else
10546 case $host_os in
10547 freebsd[23].*) objformat=aout ;;
10548 *) objformat=elf ;;
10549 esac
10550 fi
10551 version_type=freebsd-$objformat
10552 case $version_type in
10553 freebsd-elf*)
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10555 need_version=no
10556 need_lib_prefix=no
10557 ;;
10558 freebsd-*)
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10560 need_version=yes
10561 ;;
10562 esac
10563 shlibpath_var=LD_LIBRARY_PATH
10564 case $host_os in
10565 freebsd2.*)
10566 shlibpath_overrides_runpath=yes
10567 ;;
10568 freebsd3.[01]* | freebsdelf3.[01]*)
10569 shlibpath_overrides_runpath=yes
10570 hardcode_into_libs=yes
10571 ;;
10572 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10573 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10574 shlibpath_overrides_runpath=no
10575 hardcode_into_libs=yes
10576 ;;
10577 *) # from 4.6 on, and DragonFly
10578 shlibpath_overrides_runpath=yes
10579 hardcode_into_libs=yes
10580 ;;
10581 esac
10582 ;;
10583
10584 haiku*)
10585 version_type=linux
10586 need_lib_prefix=no
10587 need_version=no
10588 dynamic_linker="$host_os runtime_loader"
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LIBRARY_PATH
10592 shlibpath_overrides_runpath=yes
10593 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10594 hardcode_into_libs=yes
10595 ;;
10596
10597 hpux9* | hpux10* | hpux11*)
10598 # Give a soname corresponding to the major version so that dld.sl refuses to
10599 # link against other versions.
10600 version_type=sunos
10601 need_lib_prefix=no
10602 need_version=no
10603 case $host_cpu in
10604 ia64*)
10605 shrext_cmds='.so'
10606 hardcode_into_libs=yes
10607 dynamic_linker="$host_os dld.so"
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 if test "X$HPUX_IA64_MODE" = X32; then
10613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10614 else
10615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10616 fi
10617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10618 ;;
10619 hppa*64*)
10620 shrext_cmds='.sl'
10621 hardcode_into_libs=yes
10622 dynamic_linker="$host_os dld.sl"
10623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10629 ;;
10630 *)
10631 shrext_cmds='.sl'
10632 dynamic_linker="$host_os dld.sl"
10633 shlibpath_var=SHLIB_PATH
10634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 ;;
10638 esac
10639 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10640 postinstall_cmds='chmod 555 $lib'
10641 # or fails outright, so override atomically:
10642 install_override_mode=555
10643 ;;
10644
10645 interix[3-9]*)
10646 version_type=linux
10647 need_lib_prefix=no
10648 need_version=no
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=no
10654 hardcode_into_libs=yes
10655 ;;
10656
10657 irix5* | irix6* | nonstopux*)
10658 case $host_os in
10659 nonstopux*) version_type=nonstopux ;;
10660 *)
10661 if test "$lt_cv_prog_gnu_ld" = yes; then
10662 version_type=linux
10663 else
10664 version_type=irix
10665 fi ;;
10666 esac
10667 need_lib_prefix=no
10668 need_version=no
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10671 case $host_os in
10672 irix5* | nonstopux*)
10673 libsuff= shlibsuff=
10674 ;;
10675 *)
10676 case $LD in # libtool.m4 will add one of these switches to LD
10677 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10678 libsuff= shlibsuff= libmagic=32-bit;;
10679 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10680 libsuff=32 shlibsuff=N32 libmagic=N32;;
10681 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10682 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10683 *) libsuff= shlibsuff= libmagic=never-match;;
10684 esac
10685 ;;
10686 esac
10687 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10688 shlibpath_overrides_runpath=no
10689 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10690 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10691 hardcode_into_libs=yes
10692 ;;
10693
10694 # No shared lib support for Linux oldld, aout, or coff.
10695 linux*oldld* | linux*aout* | linux*coff*)
10696 dynamic_linker=no
10697 ;;
10698
10699 # This must be Linux ELF.
10700
10701 # uclinux* changes (here and below) have been submitted to the libtool
10702 # project, but have not yet been accepted: they are GCC-local changes
10703 # for the time being. (See
10704 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10705 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10706 version_type=linux
10707 need_lib_prefix=no
10708 need_version=no
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=no
10714
10715 # Some binutils ld are patched to set DT_RUNPATH
10716 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 lt_cv_shlibpath_overrides_runpath=no
10720 save_LDFLAGS=$LDFLAGS
10721 save_libdir=$libdir
10722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726
10727 int
10728 main ()
10729 {
10730
10731 ;
10732 return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10737 lt_cv_shlibpath_overrides_runpath=yes
10738 fi
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LDFLAGS=$save_LDFLAGS
10743 libdir=$save_libdir
10744
10745 fi
10746
10747 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10748
10749 # This implies no fast_install, which is unacceptable.
10750 # Some rework will be needed to allow for fast_install
10751 # before this can be enabled.
10752 hardcode_into_libs=yes
10753
10754 # Append ld.so.conf contents to the search path
10755 if test -f /etc/ld.so.conf; then
10756 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' ' '`
10757 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10758 fi
10759
10760 # We used to test for /lib/ld.so.1 and disable shared libraries on
10761 # powerpc, because MkLinux only supported shared libraries with the
10762 # GNU dynamic linker. Since this was broken with cross compilers,
10763 # most powerpc-linux boxes support dynamic linking these days and
10764 # people can always --disable-shared, the test was removed, and we
10765 # assume the GNU/Linux dynamic linker is in use.
10766 dynamic_linker='GNU/Linux ld.so'
10767 ;;
10768
10769 netbsd*)
10770 version_type=sunos
10771 need_lib_prefix=no
10772 need_version=no
10773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10776 dynamic_linker='NetBSD (a.out) ld.so'
10777 else
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 dynamic_linker='NetBSD ld.elf_so'
10781 fi
10782 shlibpath_var=LD_LIBRARY_PATH
10783 shlibpath_overrides_runpath=yes
10784 hardcode_into_libs=yes
10785 ;;
10786
10787 newsos6)
10788 version_type=linux
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=yes
10792 ;;
10793
10794 *nto* | *qnx*)
10795 version_type=qnx
10796 need_lib_prefix=no
10797 need_version=no
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 shlibpath_overrides_runpath=no
10802 hardcode_into_libs=yes
10803 dynamic_linker='ldqnx.so'
10804 ;;
10805
10806 openbsd*)
10807 version_type=sunos
10808 sys_lib_dlsearch_path_spec="/usr/lib"
10809 need_lib_prefix=no
10810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10811 case $host_os in
10812 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10813 *) need_version=no ;;
10814 esac
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10819 case $host_os in
10820 openbsd2.[89] | openbsd2.[89].*)
10821 shlibpath_overrides_runpath=no
10822 ;;
10823 *)
10824 shlibpath_overrides_runpath=yes
10825 ;;
10826 esac
10827 else
10828 shlibpath_overrides_runpath=yes
10829 fi
10830 ;;
10831
10832 os2*)
10833 libname_spec='$name'
10834 shrext_cmds=".dll"
10835 need_lib_prefix=no
10836 library_names_spec='$libname${shared_ext} $libname.a'
10837 dynamic_linker='OS/2 ld.exe'
10838 shlibpath_var=LIBPATH
10839 ;;
10840
10841 osf3* | osf4* | osf5*)
10842 version_type=osf
10843 need_lib_prefix=no
10844 need_version=no
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 shlibpath_var=LD_LIBRARY_PATH
10848 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10849 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10850 ;;
10851
10852 rdos*)
10853 dynamic_linker=no
10854 ;;
10855
10856 solaris*)
10857 version_type=linux
10858 need_lib_prefix=no
10859 need_version=no
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=yes
10864 hardcode_into_libs=yes
10865 # ldd complains unless libraries are executable
10866 postinstall_cmds='chmod +x $lib'
10867 ;;
10868
10869 sunos4*)
10870 version_type=sunos
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 shlibpath_overrides_runpath=yes
10875 if test "$with_gnu_ld" = yes; then
10876 need_lib_prefix=no
10877 fi
10878 need_version=yes
10879 ;;
10880
10881 sysv4 | sysv4.3*)
10882 version_type=linux
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 case $host_vendor in
10887 sni)
10888 shlibpath_overrides_runpath=no
10889 need_lib_prefix=no
10890 runpath_var=LD_RUN_PATH
10891 ;;
10892 siemens)
10893 need_lib_prefix=no
10894 ;;
10895 motorola)
10896 need_lib_prefix=no
10897 need_version=no
10898 shlibpath_overrides_runpath=no
10899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10900 ;;
10901 esac
10902 ;;
10903
10904 sysv4*MP*)
10905 if test -d /usr/nec ;then
10906 version_type=linux
10907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10908 soname_spec='$libname${shared_ext}.$major'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 fi
10911 ;;
10912
10913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10914 version_type=freebsd-elf
10915 need_lib_prefix=no
10916 need_version=no
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath=yes
10921 hardcode_into_libs=yes
10922 if test "$with_gnu_ld" = yes; then
10923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10924 else
10925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10926 case $host_os in
10927 sco3.2v5*)
10928 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10929 ;;
10930 esac
10931 fi
10932 sys_lib_dlsearch_path_spec='/usr/lib'
10933 ;;
10934
10935 tpf*)
10936 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10937 version_type=linux
10938 need_lib_prefix=no
10939 need_version=no
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=no
10943 hardcode_into_libs=yes
10944 ;;
10945
10946 uts4*)
10947 version_type=linux
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 ;;
10952
10953 # Shared libraries for VwWorks, >= 7 only at this stage
10954 # and (fpic) still incompatible with "large" code models
10955 # in a few configurations. Only for RTP mode in any case,
10956 # and upon explicit request at configure time.
10957 vxworks7*)
10958 dynamic_linker=no
10959 case ${with_multisubdir}-${enable_shared} in
10960 *large*)
10961 ;;
10962 *mrtp*-yes)
10963 version_type=linux
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 dynamic_linker="$host_os module_loader"
10969 ;;
10970 esac
10971 ;;
10972 *)
10973 dynamic_linker=no
10974 ;;
10975 esac
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10977 $as_echo "$dynamic_linker" >&6; }
10978 test "$dynamic_linker" = no && can_build_shared=no
10979
10980 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10981 if test "$GCC" = yes; then
10982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10983 fi
10984
10985 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10986 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10987 fi
10988 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10989 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10990 fi
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11084 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11085 hardcode_action=
11086 if test -n "$hardcode_libdir_flag_spec" ||
11087 test -n "$runpath_var" ||
11088 test "X$hardcode_automatic" = "Xyes" ; then
11089
11090 # We can hardcode non-existent directories.
11091 if test "$hardcode_direct" != no &&
11092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11093 # have to relink, otherwise we might link with an installed library
11094 # when we should be linking with a yet-to-be-installed one
11095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11096 test "$hardcode_minus_L" != no; then
11097 # Linking always hardcodes the temporary library directory.
11098 hardcode_action=relink
11099 else
11100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11101 hardcode_action=immediate
11102 fi
11103 else
11104 # We cannot hardcode anything, or else we can only hardcode existing
11105 # directories.
11106 hardcode_action=unsupported
11107 fi
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11109 $as_echo "$hardcode_action" >&6; }
11110
11111 if test "$hardcode_action" = relink ||
11112 test "$inherit_rpath" = yes; then
11113 # Fast installation is not supported
11114 enable_fast_install=no
11115 elif test "$shlibpath_overrides_runpath" = yes ||
11116 test "$enable_shared" = no; then
11117 # Fast installation is not necessary
11118 enable_fast_install=needless
11119 fi
11120
11121
11122
11123
11124
11125
11126 if test "x$enable_dlopen" != xyes; then
11127 enable_dlopen=unknown
11128 enable_dlopen_self=unknown
11129 enable_dlopen_self_static=unknown
11130 else
11131 lt_cv_dlopen=no
11132 lt_cv_dlopen_libs=
11133
11134 case $host_os in
11135 beos*)
11136 lt_cv_dlopen="load_add_on"
11137 lt_cv_dlopen_libs=
11138 lt_cv_dlopen_self=yes
11139 ;;
11140
11141 mingw* | pw32* | cegcc*)
11142 lt_cv_dlopen="LoadLibrary"
11143 lt_cv_dlopen_libs=
11144 ;;
11145
11146 cygwin*)
11147 lt_cv_dlopen="dlopen"
11148 lt_cv_dlopen_libs=
11149 ;;
11150
11151 darwin*)
11152 # if libdl is installed we need to link against it
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11154 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11155 if ${ac_cv_lib_dl_dlopen+:} false; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11158 ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-ldl $LIBS"
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11162
11163 /* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11166 #ifdef __cplusplus
11167 extern "C"
11168 #endif
11169 char dlopen ();
11170 int
11171 main ()
11172 {
11173 return dlopen ();
11174 ;
11175 return 0;
11176 }
11177 _ACEOF
11178 if ac_fn_c_try_link "$LINENO"; then :
11179 ac_cv_lib_dl_dlopen=yes
11180 else
11181 ac_cv_lib_dl_dlopen=no
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11188 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11189 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11191 else
11192
11193 lt_cv_dlopen="dyld"
11194 lt_cv_dlopen_libs=
11195 lt_cv_dlopen_self=yes
11196
11197 fi
11198
11199 ;;
11200
11201 *)
11202 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11203 if test "x$ac_cv_func_shl_load" = xyes; then :
11204 lt_cv_dlopen="shl_load"
11205 else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11207 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11208 if ${ac_cv_lib_dld_shl_load+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 ac_check_lib_save_LIBS=$LIBS
11212 LIBS="-ldld $LIBS"
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11215
11216 /* Override any GCC internal prototype to avoid an error.
11217 Use char because int might match the return type of a GCC
11218 builtin and then its argument prototype would still apply. */
11219 #ifdef __cplusplus
11220 extern "C"
11221 #endif
11222 char shl_load ();
11223 int
11224 main ()
11225 {
11226 return shl_load ();
11227 ;
11228 return 0;
11229 }
11230 _ACEOF
11231 if ac_fn_c_try_link "$LINENO"; then :
11232 ac_cv_lib_dld_shl_load=yes
11233 else
11234 ac_cv_lib_dld_shl_load=no
11235 fi
11236 rm -f core conftest.err conftest.$ac_objext \
11237 conftest$ac_exeext conftest.$ac_ext
11238 LIBS=$ac_check_lib_save_LIBS
11239 fi
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11241 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11242 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11244 else
11245 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11246 if test "x$ac_cv_func_dlopen" = xyes; then :
11247 lt_cv_dlopen="dlopen"
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11251 if ${ac_cv_lib_dl_dlopen+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 ac_check_lib_save_LIBS=$LIBS
11255 LIBS="-ldl $LIBS"
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11258
11259 /* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11262 #ifdef __cplusplus
11263 extern "C"
11264 #endif
11265 char dlopen ();
11266 int
11267 main ()
11268 {
11269 return dlopen ();
11270 ;
11271 return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 ac_cv_lib_dl_dlopen=yes
11276 else
11277 ac_cv_lib_dl_dlopen=no
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11282 fi
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11285 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11289 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11290 if ${ac_cv_lib_svld_dlopen+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 ac_check_lib_save_LIBS=$LIBS
11294 LIBS="-lsvld $LIBS"
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11297
11298 /* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11301 #ifdef __cplusplus
11302 extern "C"
11303 #endif
11304 char dlopen ();
11305 int
11306 main ()
11307 {
11308 return dlopen ();
11309 ;
11310 return 0;
11311 }
11312 _ACEOF
11313 if ac_fn_c_try_link "$LINENO"; then :
11314 ac_cv_lib_svld_dlopen=yes
11315 else
11316 ac_cv_lib_svld_dlopen=no
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_check_lib_save_LIBS
11321 fi
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11323 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11324 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11326 else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11328 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11329 if ${ac_cv_lib_dld_dld_link+:} false; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 ac_check_lib_save_LIBS=$LIBS
11333 LIBS="-ldld $LIBS"
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11336
11337 /* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340 #ifdef __cplusplus
11341 extern "C"
11342 #endif
11343 char dld_link ();
11344 int
11345 main ()
11346 {
11347 return dld_link ();
11348 ;
11349 return 0;
11350 }
11351 _ACEOF
11352 if ac_fn_c_try_link "$LINENO"; then :
11353 ac_cv_lib_dld_dld_link=yes
11354 else
11355 ac_cv_lib_dld_dld_link=no
11356 fi
11357 rm -f core conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext conftest.$ac_ext
11359 LIBS=$ac_check_lib_save_LIBS
11360 fi
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11363 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11365 fi
11366
11367
11368 fi
11369
11370
11371 fi
11372
11373
11374 fi
11375
11376
11377 fi
11378
11379
11380 fi
11381
11382 ;;
11383 esac
11384
11385 if test "x$lt_cv_dlopen" != xno; then
11386 enable_dlopen=yes
11387 else
11388 enable_dlopen=no
11389 fi
11390
11391 case $lt_cv_dlopen in
11392 dlopen)
11393 save_CPPFLAGS="$CPPFLAGS"
11394 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11395
11396 save_LDFLAGS="$LDFLAGS"
11397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11398
11399 save_LIBS="$LIBS"
11400 LIBS="$lt_cv_dlopen_libs $LIBS"
11401
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11403 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11404 if ${lt_cv_dlopen_self+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 if test "$cross_compiling" = yes; then :
11408 lt_cv_dlopen_self=cross
11409 else
11410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11411 lt_status=$lt_dlunknown
11412 cat > conftest.$ac_ext <<_LT_EOF
11413 #line 11413 "configure"
11414 #include "confdefs.h"
11415
11416 #if HAVE_DLFCN_H
11417 #include <dlfcn.h>
11418 #endif
11419
11420 #include <stdio.h>
11421
11422 #ifdef RTLD_GLOBAL
11423 # define LT_DLGLOBAL RTLD_GLOBAL
11424 #else
11425 # ifdef DL_GLOBAL
11426 # define LT_DLGLOBAL DL_GLOBAL
11427 # else
11428 # define LT_DLGLOBAL 0
11429 # endif
11430 #endif
11431
11432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11433 find out it does not work in some platform. */
11434 #ifndef LT_DLLAZY_OR_NOW
11435 # ifdef RTLD_LAZY
11436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11437 # else
11438 # ifdef DL_LAZY
11439 # define LT_DLLAZY_OR_NOW DL_LAZY
11440 # else
11441 # ifdef RTLD_NOW
11442 # define LT_DLLAZY_OR_NOW RTLD_NOW
11443 # else
11444 # ifdef DL_NOW
11445 # define LT_DLLAZY_OR_NOW DL_NOW
11446 # else
11447 # define LT_DLLAZY_OR_NOW 0
11448 # endif
11449 # endif
11450 # endif
11451 # endif
11452 #endif
11453
11454 /* When -fvisbility=hidden is used, assume the code has been annotated
11455 correspondingly for the symbols needed. */
11456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11457 void fnord () __attribute__((visibility("default")));
11458 #endif
11459
11460 void fnord () { int i=42; }
11461 int main ()
11462 {
11463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11464 int status = $lt_dlunknown;
11465
11466 if (self)
11467 {
11468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11469 else
11470 {
11471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11472 else puts (dlerror ());
11473 }
11474 /* dlclose (self); */
11475 }
11476 else
11477 puts (dlerror ());
11478
11479 return status;
11480 }
11481 _LT_EOF
11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11483 (eval $ac_link) 2>&5
11484 ac_status=$?
11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11487 (./conftest; exit; ) >&5 2>/dev/null
11488 lt_status=$?
11489 case x$lt_status in
11490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11493 esac
11494 else :
11495 # compilation failed
11496 lt_cv_dlopen_self=no
11497 fi
11498 fi
11499 rm -fr conftest*
11500
11501
11502 fi
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11504 $as_echo "$lt_cv_dlopen_self" >&6; }
11505
11506 if test "x$lt_cv_dlopen_self" = xyes; then
11507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11509 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11510 if ${lt_cv_dlopen_self_static+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 if test "$cross_compiling" = yes; then :
11514 lt_cv_dlopen_self_static=cross
11515 else
11516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11517 lt_status=$lt_dlunknown
11518 cat > conftest.$ac_ext <<_LT_EOF
11519 #line 11519 "configure"
11520 #include "confdefs.h"
11521
11522 #if HAVE_DLFCN_H
11523 #include <dlfcn.h>
11524 #endif
11525
11526 #include <stdio.h>
11527
11528 #ifdef RTLD_GLOBAL
11529 # define LT_DLGLOBAL RTLD_GLOBAL
11530 #else
11531 # ifdef DL_GLOBAL
11532 # define LT_DLGLOBAL DL_GLOBAL
11533 # else
11534 # define LT_DLGLOBAL 0
11535 # endif
11536 #endif
11537
11538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11539 find out it does not work in some platform. */
11540 #ifndef LT_DLLAZY_OR_NOW
11541 # ifdef RTLD_LAZY
11542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11543 # else
11544 # ifdef DL_LAZY
11545 # define LT_DLLAZY_OR_NOW DL_LAZY
11546 # else
11547 # ifdef RTLD_NOW
11548 # define LT_DLLAZY_OR_NOW RTLD_NOW
11549 # else
11550 # ifdef DL_NOW
11551 # define LT_DLLAZY_OR_NOW DL_NOW
11552 # else
11553 # define LT_DLLAZY_OR_NOW 0
11554 # endif
11555 # endif
11556 # endif
11557 # endif
11558 #endif
11559
11560 /* When -fvisbility=hidden is used, assume the code has been annotated
11561 correspondingly for the symbols needed. */
11562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11563 void fnord () __attribute__((visibility("default")));
11564 #endif
11565
11566 void fnord () { int i=42; }
11567 int main ()
11568 {
11569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11570 int status = $lt_dlunknown;
11571
11572 if (self)
11573 {
11574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11575 else
11576 {
11577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11578 else puts (dlerror ());
11579 }
11580 /* dlclose (self); */
11581 }
11582 else
11583 puts (dlerror ());
11584
11585 return status;
11586 }
11587 _LT_EOF
11588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11589 (eval $ac_link) 2>&5
11590 ac_status=$?
11591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11593 (./conftest; exit; ) >&5 2>/dev/null
11594 lt_status=$?
11595 case x$lt_status in
11596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11598 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11599 esac
11600 else :
11601 # compilation failed
11602 lt_cv_dlopen_self_static=no
11603 fi
11604 fi
11605 rm -fr conftest*
11606
11607
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11610 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11611 fi
11612
11613 CPPFLAGS="$save_CPPFLAGS"
11614 LDFLAGS="$save_LDFLAGS"
11615 LIBS="$save_LIBS"
11616 ;;
11617 esac
11618
11619 case $lt_cv_dlopen_self in
11620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11621 *) enable_dlopen_self=unknown ;;
11622 esac
11623
11624 case $lt_cv_dlopen_self_static in
11625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11626 *) enable_dlopen_self_static=unknown ;;
11627 esac
11628 fi
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646 striplib=
11647 old_striplib=
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11649 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11650 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11651 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11652 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654 $as_echo "yes" >&6; }
11655 else
11656 # FIXME - insert some real tests, host_os isn't really good enough
11657 case $host_os in
11658 darwin*)
11659 if test -n "$STRIP" ; then
11660 striplib="$STRIP -x"
11661 old_striplib="$STRIP -S"
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11663 $as_echo "yes" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11667 fi
11668 ;;
11669 *)
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 $as_echo "no" >&6; }
11672 ;;
11673 esac
11674 fi
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687 # Report which library types will actually be built
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11689 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11691 $as_echo "$can_build_shared" >&6; }
11692
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11694 $as_echo_n "checking whether to build shared libraries... " >&6; }
11695 test "$can_build_shared" = "no" && enable_shared=no
11696
11697 # On AIX, shared libraries and static libraries use the same namespace, and
11698 # are all built from PIC.
11699 case $host_os in
11700 aix3*)
11701 test "$enable_shared" = yes && enable_static=no
11702 if test -n "$RANLIB"; then
11703 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11704 postinstall_cmds='$RANLIB $lib'
11705 fi
11706 ;;
11707
11708 aix[4-9]*)
11709 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11710 test "$enable_shared" = yes && enable_static=no
11711 fi
11712 ;;
11713 esac
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11715 $as_echo "$enable_shared" >&6; }
11716
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11718 $as_echo_n "checking whether to build static libraries... " >&6; }
11719 # Make sure either enable_shared or enable_static is yes.
11720 test "$enable_shared" = yes || enable_static=yes
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11722 $as_echo "$enable_static" >&6; }
11723
11724
11725
11726
11727 fi
11728 ac_ext=c
11729 ac_cpp='$CPP $CPPFLAGS'
11730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11733
11734 CC="$lt_save_CC"
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748 ac_config_commands="$ac_config_commands libtool"
11749
11750
11751
11752
11753 # Only expand once:
11754
11755
11756
11757
11758
11759 case $host in
11760 *-cygwin* | *-mingw*)
11761 # 'host' will be top-level target in the case of a target lib,
11762 # we must compare to with_cross_host to decide if this is a native
11763 # or cross-compiler and select where to install dlls appropriately.
11764 if test -n "$with_cross_host" &&
11765 test x"$with_cross_host" != x"no"; then
11766 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11767 else
11768 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11769 fi
11770 ;;
11771 *)
11772 lt_host_flags=
11773 ;;
11774 esac
11775
11776
11777
11778
11779
11780
11781
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11783 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11784 # Check whether --enable-maintainer-mode was given.
11785 if test "${enable_maintainer_mode+set}" = set; then :
11786 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11787 else
11788 USE_MAINTAINER_MODE=no
11789 fi
11790
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11792 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11793 if test $USE_MAINTAINER_MODE = yes; then
11794 MAINTAINER_MODE_TRUE=
11795 MAINTAINER_MODE_FALSE='#'
11796 else
11797 MAINTAINER_MODE_TRUE='#'
11798 MAINTAINER_MODE_FALSE=
11799 fi
11800
11801 MAINT=$MAINTAINER_MODE_TRUE
11802
11803
11804
11805 # We optionally test libgomp C++ support, and for that want to use the proper
11806 # C++ driver, 'g++' (or 'xg++' for build-tree testing). Given that build of
11807 # target libstdc++-v3 depends on target libgomp (see '../Makefile.def'), we
11808 # cannot make build of target libgomp depend on target libstdc++-v3: circular
11809 # dependency. We thus cannot instantiate 'AC_PROG_CXX' here: we'd get
11810 # '-funconfigured-libstdc++-v3' (see '../configure.ac'). Therefore, just
11811 # capture 'CXX', and we'll fix this up at 'make check' time (see
11812 # 'testsuite/lib/libgomp.exp:libgomp_init').
11813
11814
11815 # Create a spec file, so that compile/link tests don't fail
11816 test -f libgfortran.spec || touch libgfortran.spec
11817 FCFLAGS="$FCFLAGS -L."
11818
11819 # We need 'gfortran' to compile parts of the library, and test libgomp Fortran
11820 # support.
11821 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11822 #AC_PROG_FC(gfortran)
11823 case `echo $GFORTRAN` in
11824 -* | no* )
11825 FC=no ;;
11826 *)
11827 set dummy $GFORTRAN; ac_word=$2
11828 if test -x "$ac_word"; then
11829 FC="$GFORTRAN"
11830 else
11831 FC=no
11832 fi ;;
11833 esac
11834 ac_ext=${ac_fc_srcext-f}
11835 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11836 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11837 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11838 if test -n "$ac_tool_prefix"; then
11839 for ac_prog in gfortran
11840 do
11841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if ${ac_cv_prog_FC+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 if test -n "$FC"; then
11849 ac_cv_prog_FC="$FC" # Let the user override the test.
11850 else
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11853 do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11858 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 break 2
11861 fi
11862 done
11863 done
11864 IFS=$as_save_IFS
11865
11866 fi
11867 fi
11868 FC=$ac_cv_prog_FC
11869 if test -n "$FC"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11871 $as_echo "$FC" >&6; }
11872 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11875 fi
11876
11877
11878 test -n "$FC" && break
11879 done
11880 fi
11881 if test -z "$FC"; then
11882 ac_ct_FC=$FC
11883 for ac_prog in gfortran
11884 do
11885 # Extract the first word of "$ac_prog", so it can be a program name with args.
11886 set dummy $ac_prog; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 if test -n "$ac_ct_FC"; then
11893 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11894 else
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898 IFS=$as_save_IFS
11899 test -z "$as_dir" && as_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11902 ac_cv_prog_ac_ct_FC="$ac_prog"
11903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904 break 2
11905 fi
11906 done
11907 done
11908 IFS=$as_save_IFS
11909
11910 fi
11911 fi
11912 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11913 if test -n "$ac_ct_FC"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11915 $as_echo "$ac_ct_FC" >&6; }
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919 fi
11920
11921
11922 test -n "$ac_ct_FC" && break
11923 done
11924
11925 if test "x$ac_ct_FC" = x; then
11926 FC=""
11927 else
11928 case $cross_compiling:$ac_tool_warned in
11929 yes:)
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11932 ac_tool_warned=yes ;;
11933 esac
11934 FC=$ac_ct_FC
11935 fi
11936 fi
11937
11938
11939 # Provide some information about the compiler.
11940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11941 set X $ac_compile
11942 ac_compiler=$2
11943 for ac_option in --version -v -V -qversion; do
11944 { { ac_try="$ac_compiler $ac_option >&5"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948 esac
11949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11950 $as_echo "$ac_try_echo"; } >&5
11951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11952 ac_status=$?
11953 if test -s conftest.err; then
11954 sed '10a\
11955 ... rest of stderr output deleted ...
11956 10q' conftest.err >conftest.er1
11957 cat conftest.er1 >&5
11958 fi
11959 rm -f conftest.er1 conftest.err
11960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11961 test $ac_status = 0; }
11962 done
11963 rm -f a.out
11964
11965 # If we don't use `.F' as extension, the preprocessor is not run on the
11966 # input file. (Note that this only needs to work for GNU compilers.)
11967 ac_save_ext=$ac_ext
11968 ac_ext=F
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11970 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11971 if ${ac_cv_fc_compiler_gnu+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 cat > conftest.$ac_ext <<_ACEOF
11975 program main
11976 #ifndef __GNUC__
11977 choke me
11978 #endif
11979
11980 end
11981 _ACEOF
11982 if ac_fn_fc_try_compile "$LINENO"; then :
11983 ac_compiler_gnu=yes
11984 else
11985 ac_compiler_gnu=no
11986 fi
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11989
11990 fi
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11992 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11993 ac_ext=$ac_save_ext
11994 ac_test_FCFLAGS=${FCFLAGS+set}
11995 ac_save_FCFLAGS=$FCFLAGS
11996 FCFLAGS=
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11998 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11999 if ${ac_cv_prog_fc_g+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 FCFLAGS=-g
12003 cat > conftest.$ac_ext <<_ACEOF
12004 program main
12005
12006 end
12007 _ACEOF
12008 if ac_fn_fc_try_compile "$LINENO"; then :
12009 ac_cv_prog_fc_g=yes
12010 else
12011 ac_cv_prog_fc_g=no
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014
12015 fi
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12017 $as_echo "$ac_cv_prog_fc_g" >&6; }
12018 if test "$ac_test_FCFLAGS" = set; then
12019 FCFLAGS=$ac_save_FCFLAGS
12020 elif test $ac_cv_prog_fc_g = yes; then
12021 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12022 FCFLAGS="-g -O2"
12023 else
12024 FCFLAGS="-g"
12025 fi
12026 else
12027 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12028 FCFLAGS="-O2"
12029 else
12030 FCFLAGS=
12031 fi
12032 fi
12033
12034 if test $ac_compiler_gnu = yes; then
12035 GFC=yes
12036 else
12037 GFC=
12038 fi
12039 ac_ext=c
12040 ac_cpp='$CPP $CPPFLAGS'
12041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12044
12045 ac_ext=${ac_fc_srcext-f}
12046 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12047 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12048 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12049
12050
12051 if test -z "$FC" || test "X$FC" = "Xno"; then
12052 _lt_disable_FC=yes
12053 fi
12054
12055 archive_cmds_need_lc_FC=no
12056 allow_undefined_flag_FC=
12057 always_export_symbols_FC=no
12058 archive_expsym_cmds_FC=
12059 export_dynamic_flag_spec_FC=
12060 hardcode_direct_FC=no
12061 hardcode_direct_absolute_FC=no
12062 hardcode_libdir_flag_spec_FC=
12063 hardcode_libdir_flag_spec_ld_FC=
12064 hardcode_libdir_separator_FC=
12065 hardcode_minus_L_FC=no
12066 hardcode_automatic_FC=no
12067 inherit_rpath_FC=no
12068 module_cmds_FC=
12069 module_expsym_cmds_FC=
12070 link_all_deplibs_FC=unknown
12071 old_archive_cmds_FC=$old_archive_cmds
12072 reload_flag_FC=$reload_flag
12073 reload_cmds_FC=$reload_cmds
12074 no_undefined_flag_FC=
12075 whole_archive_flag_spec_FC=
12076 enable_shared_with_static_runtimes_FC=no
12077
12078 # Source file extension for fc test sources.
12079 ac_ext=${ac_fc_srcext-f}
12080
12081 # Object file extension for compiled fc test sources.
12082 objext=o
12083 objext_FC=$objext
12084
12085 # No sense in running all these tests if we already determined that
12086 # the FC compiler isn't working. Some variables (like enable_shared)
12087 # are currently assumed to apply to all compilers on this platform,
12088 # and will be corrupted by setting them based on a non-working compiler.
12089 if test "$_lt_disable_FC" != yes; then
12090 # Code to be used in simple compile tests
12091 lt_simple_compile_test_code="\
12092 subroutine t
12093 return
12094 end
12095 "
12096
12097 # Code to be used in simple link tests
12098 lt_simple_link_test_code="\
12099 program t
12100 end
12101 "
12102
12103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12104
12105
12106
12107
12108
12109
12110 # If no C compiler was specified, use CC.
12111 LTCC=${LTCC-"$CC"}
12112
12113 # If no C compiler flags were specified, use CFLAGS.
12114 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12115
12116 # Allow CC to be a program name with arguments.
12117 compiler=$CC
12118
12119
12120 # save warnings/boilerplate of simple test code
12121 ac_outfile=conftest.$ac_objext
12122 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12124 _lt_compiler_boilerplate=`cat conftest.err`
12125 $RM conftest*
12126
12127 ac_outfile=conftest.$ac_objext
12128 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12130 _lt_linker_boilerplate=`cat conftest.err`
12131 $RM -r conftest*
12132
12133
12134 # Allow CC to be a program name with arguments.
12135 lt_save_CC="$CC"
12136 lt_save_GCC=$GCC
12137 CC=${FC-"f95"}
12138 compiler=$CC
12139 GCC=$ac_cv_fc_compiler_gnu
12140
12141 compiler_FC=$CC
12142 for cc_temp in $compiler""; do
12143 case $cc_temp in
12144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12146 \-*) ;;
12147 *) break;;
12148 esac
12149 done
12150 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12151
12152
12153 if test -n "$compiler"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12155 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12157 $as_echo "$can_build_shared" >&6; }
12158
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12160 $as_echo_n "checking whether to build shared libraries... " >&6; }
12161 test "$can_build_shared" = "no" && enable_shared=no
12162
12163 # On AIX, shared libraries and static libraries use the same namespace, and
12164 # are all built from PIC.
12165 case $host_os in
12166 aix3*)
12167 test "$enable_shared" = yes && enable_static=no
12168 if test -n "$RANLIB"; then
12169 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12170 postinstall_cmds='$RANLIB $lib'
12171 fi
12172 ;;
12173 aix[4-9]*)
12174 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12175 test "$enable_shared" = yes && enable_static=no
12176 fi
12177 ;;
12178 esac
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12180 $as_echo "$enable_shared" >&6; }
12181
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12183 $as_echo_n "checking whether to build static libraries... " >&6; }
12184 # Make sure either enable_shared or enable_static is yes.
12185 test "$enable_shared" = yes || enable_static=yes
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12187 $as_echo "$enable_static" >&6; }
12188
12189 GCC_FC="$ac_cv_fc_compiler_gnu"
12190 LD_FC="$LD"
12191
12192 ## CAVEAT EMPTOR:
12193 ## There is no encapsulation within the following macros, do not change
12194 ## the running order or otherwise move them around unless you know exactly
12195 ## what you are doing...
12196 # Dependencies to place before and after the object being linked:
12197 predep_objects_FC=
12198 postdep_objects_FC=
12199 predeps_FC=
12200 postdeps_FC=
12201 compiler_lib_search_path_FC=
12202
12203 cat > conftest.$ac_ext <<_LT_EOF
12204 subroutine foo
12205 implicit none
12206 integer a
12207 a=0
12208 return
12209 end
12210 _LT_EOF
12211
12212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12213 (eval $ac_compile) 2>&5
12214 ac_status=$?
12215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12216 test $ac_status = 0; }; then
12217 # Parse the compiler output and extract the necessary
12218 # objects, libraries and library flags.
12219
12220 # Sentinel used to keep track of whether or not we are before
12221 # the conftest object file.
12222 pre_test_object_deps_done=no
12223
12224 for p in `eval "$output_verbose_link_cmd"`; do
12225 case $p in
12226
12227 -L* | -R* | -l*)
12228 # Some compilers place space between "-{L,R}" and the path.
12229 # Remove the space.
12230 if test $p = "-L" ||
12231 test $p = "-R"; then
12232 prev=$p
12233 continue
12234 else
12235 prev=
12236 fi
12237
12238 if test "$pre_test_object_deps_done" = no; then
12239 case $p in
12240 -L* | -R*)
12241 # Internal compiler library paths should come after those
12242 # provided the user. The postdeps already come after the
12243 # user supplied libs so there is no need to process them.
12244 if test -z "$compiler_lib_search_path_FC"; then
12245 compiler_lib_search_path_FC="${prev}${p}"
12246 else
12247 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12248 fi
12249 ;;
12250 # The "-l" case would never come before the object being
12251 # linked, so don't bother handling this case.
12252 esac
12253 else
12254 if test -z "$postdeps_FC"; then
12255 postdeps_FC="${prev}${p}"
12256 else
12257 postdeps_FC="${postdeps_FC} ${prev}${p}"
12258 fi
12259 fi
12260 ;;
12261
12262 *.$objext)
12263 # This assumes that the test object file only shows up
12264 # once in the compiler output.
12265 if test "$p" = "conftest.$objext"; then
12266 pre_test_object_deps_done=yes
12267 continue
12268 fi
12269
12270 if test "$pre_test_object_deps_done" = no; then
12271 if test -z "$predep_objects_FC"; then
12272 predep_objects_FC="$p"
12273 else
12274 predep_objects_FC="$predep_objects_FC $p"
12275 fi
12276 else
12277 if test -z "$postdep_objects_FC"; then
12278 postdep_objects_FC="$p"
12279 else
12280 postdep_objects_FC="$postdep_objects_FC $p"
12281 fi
12282 fi
12283 ;;
12284
12285 *) ;; # Ignore the rest.
12286
12287 esac
12288 done
12289
12290 # Clean up.
12291 rm -f a.out a.exe
12292 else
12293 echo "libtool.m4: error: problem compiling FC test program"
12294 fi
12295
12296 $RM -f confest.$objext
12297
12298 # PORTME: override above test on systems where it is broken
12299
12300
12301 case " $postdeps_FC " in
12302 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12303 esac
12304 compiler_lib_search_dirs_FC=
12305 if test -n "${compiler_lib_search_path_FC}"; then
12306 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12307 fi
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339 lt_prog_compiler_wl_FC=
12340 lt_prog_compiler_pic_FC=
12341 lt_prog_compiler_static_FC=
12342
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12344 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12345
12346 if test "$GCC" = yes; then
12347 lt_prog_compiler_wl_FC='-Wl,'
12348 lt_prog_compiler_static_FC='-static'
12349
12350 case $host_os in
12351 aix*)
12352 # All AIX code is PIC.
12353 if test "$host_cpu" = ia64; then
12354 # AIX 5 now supports IA64 processor
12355 lt_prog_compiler_static_FC='-Bstatic'
12356 fi
12357 lt_prog_compiler_pic_FC='-fPIC'
12358 ;;
12359
12360 amigaos*)
12361 case $host_cpu in
12362 powerpc)
12363 # see comment about AmigaOS4 .so support
12364 lt_prog_compiler_pic_FC='-fPIC'
12365 ;;
12366 m68k)
12367 # FIXME: we need at least 68020 code to build shared libraries, but
12368 # adding the `-m68020' flag to GCC prevents building anything better,
12369 # like `-m68040'.
12370 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12371 ;;
12372 esac
12373 ;;
12374
12375 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12376 # PIC is the default for these OSes.
12377 ;;
12378
12379 mingw* | cygwin* | pw32* | os2* | cegcc*)
12380 # This hack is so that the source file can tell whether it is being
12381 # built for inclusion in a dll (and should export symbols for example).
12382 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12383 # (--disable-auto-import) libraries
12384 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12385 ;;
12386
12387 darwin* | rhapsody*)
12388 # PIC is the default on this platform
12389 # Common symbols not allowed in MH_DYLIB files
12390 lt_prog_compiler_pic_FC='-fno-common'
12391 ;;
12392
12393 haiku*)
12394 # PIC is the default for Haiku.
12395 # The "-static" flag exists, but is broken.
12396 lt_prog_compiler_static_FC=
12397 ;;
12398
12399 hpux*)
12400 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12401 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12402 # sets the default TLS model and affects inlining.
12403 case $host_cpu in
12404 hppa*64*)
12405 # +Z the default
12406 ;;
12407 *)
12408 lt_prog_compiler_pic_FC='-fPIC'
12409 ;;
12410 esac
12411 ;;
12412
12413 interix[3-9]*)
12414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12415 # Instead, we relocate shared libraries at runtime.
12416 ;;
12417
12418 msdosdjgpp*)
12419 # Just because we use GCC doesn't mean we suddenly get shared libraries
12420 # on systems that don't support them.
12421 lt_prog_compiler_can_build_shared_FC=no
12422 enable_shared=no
12423 ;;
12424
12425 *nto* | *qnx*)
12426 # QNX uses GNU C++, but need to define -shared option too, otherwise
12427 # it will coredump.
12428 lt_prog_compiler_pic_FC='-fPIC -shared'
12429 ;;
12430
12431 sysv4*MP*)
12432 if test -d /usr/nec; then
12433 lt_prog_compiler_pic_FC=-Kconform_pic
12434 fi
12435 ;;
12436
12437 *)
12438 lt_prog_compiler_pic_FC='-fPIC'
12439 ;;
12440 esac
12441
12442 case $cc_basename in
12443 nvcc*) # Cuda Compiler Driver 2.2
12444 lt_prog_compiler_wl_FC='-Xlinker '
12445 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12446 ;;
12447 esac
12448 else
12449 # PORTME Check for flag to pass linker flags through the system compiler.
12450 case $host_os in
12451 aix*)
12452 lt_prog_compiler_wl_FC='-Wl,'
12453 if test "$host_cpu" = ia64; then
12454 # AIX 5 now supports IA64 processor
12455 lt_prog_compiler_static_FC='-Bstatic'
12456 else
12457 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12458 fi
12459 ;;
12460
12461 mingw* | cygwin* | pw32* | os2* | cegcc*)
12462 # This hack is so that the source file can tell whether it is being
12463 # built for inclusion in a dll (and should export symbols for example).
12464 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12465 ;;
12466
12467 hpux9* | hpux10* | hpux11*)
12468 lt_prog_compiler_wl_FC='-Wl,'
12469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12470 # not for PA HP-UX.
12471 case $host_cpu in
12472 hppa*64*|ia64*)
12473 # +Z the default
12474 ;;
12475 *)
12476 lt_prog_compiler_pic_FC='+Z'
12477 ;;
12478 esac
12479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12480 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12481 ;;
12482
12483 irix5* | irix6* | nonstopux*)
12484 lt_prog_compiler_wl_FC='-Wl,'
12485 # PIC (with -KPIC) is the default.
12486 lt_prog_compiler_static_FC='-non_shared'
12487 ;;
12488
12489 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12490 case $cc_basename in
12491 # old Intel for x86_64 which still supported -KPIC.
12492 ecc*)
12493 lt_prog_compiler_wl_FC='-Wl,'
12494 lt_prog_compiler_pic_FC='-KPIC'
12495 lt_prog_compiler_static_FC='-static'
12496 ;;
12497 # icc used to be incompatible with GCC.
12498 # ICC 10 doesn't accept -KPIC any more.
12499 icc* | ifort*)
12500 lt_prog_compiler_wl_FC='-Wl,'
12501 lt_prog_compiler_pic_FC='-fPIC'
12502 lt_prog_compiler_static_FC='-static'
12503 ;;
12504 # Lahey Fortran 8.1.
12505 lf95*)
12506 lt_prog_compiler_wl_FC='-Wl,'
12507 lt_prog_compiler_pic_FC='--shared'
12508 lt_prog_compiler_static_FC='--static'
12509 ;;
12510 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12511 # Portland Group compilers (*not* the Pentium gcc compiler,
12512 # which looks to be a dead project)
12513 lt_prog_compiler_wl_FC='-Wl,'
12514 lt_prog_compiler_pic_FC='-fpic'
12515 lt_prog_compiler_static_FC='-Bstatic'
12516 ;;
12517 ccc*)
12518 lt_prog_compiler_wl_FC='-Wl,'
12519 # All Alpha code is PIC.
12520 lt_prog_compiler_static_FC='-non_shared'
12521 ;;
12522 xl* | bgxl* | bgf* | mpixl*)
12523 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12524 lt_prog_compiler_wl_FC='-Wl,'
12525 lt_prog_compiler_pic_FC='-qpic'
12526 lt_prog_compiler_static_FC='-qstaticlink'
12527 ;;
12528 *)
12529 case `$CC -V 2>&1 | sed 5q` in
12530 *Sun\ F* | *Sun*Fortran*)
12531 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12532 lt_prog_compiler_pic_FC='-KPIC'
12533 lt_prog_compiler_static_FC='-Bstatic'
12534 lt_prog_compiler_wl_FC=''
12535 ;;
12536 *Sun\ C*)
12537 # Sun C 5.9
12538 lt_prog_compiler_pic_FC='-KPIC'
12539 lt_prog_compiler_static_FC='-Bstatic'
12540 lt_prog_compiler_wl_FC='-Wl,'
12541 ;;
12542 esac
12543 ;;
12544 esac
12545 ;;
12546
12547 newsos6)
12548 lt_prog_compiler_pic_FC='-KPIC'
12549 lt_prog_compiler_static_FC='-Bstatic'
12550 ;;
12551
12552 *nto* | *qnx*)
12553 # QNX uses GNU C++, but need to define -shared option too, otherwise
12554 # it will coredump.
12555 lt_prog_compiler_pic_FC='-fPIC -shared'
12556 ;;
12557
12558 osf3* | osf4* | osf5*)
12559 lt_prog_compiler_wl_FC='-Wl,'
12560 # All OSF/1 code is PIC.
12561 lt_prog_compiler_static_FC='-non_shared'
12562 ;;
12563
12564 rdos*)
12565 lt_prog_compiler_static_FC='-non_shared'
12566 ;;
12567
12568 solaris*)
12569 lt_prog_compiler_pic_FC='-KPIC'
12570 lt_prog_compiler_static_FC='-Bstatic'
12571 case $cc_basename in
12572 f77* | f90* | f95*)
12573 lt_prog_compiler_wl_FC='-Qoption ld ';;
12574 *)
12575 lt_prog_compiler_wl_FC='-Wl,';;
12576 esac
12577 ;;
12578
12579 sunos4*)
12580 lt_prog_compiler_wl_FC='-Qoption ld '
12581 lt_prog_compiler_pic_FC='-PIC'
12582 lt_prog_compiler_static_FC='-Bstatic'
12583 ;;
12584
12585 sysv4 | sysv4.2uw2* | sysv4.3*)
12586 lt_prog_compiler_wl_FC='-Wl,'
12587 lt_prog_compiler_pic_FC='-KPIC'
12588 lt_prog_compiler_static_FC='-Bstatic'
12589 ;;
12590
12591 sysv4*MP*)
12592 if test -d /usr/nec ;then
12593 lt_prog_compiler_pic_FC='-Kconform_pic'
12594 lt_prog_compiler_static_FC='-Bstatic'
12595 fi
12596 ;;
12597
12598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12599 lt_prog_compiler_wl_FC='-Wl,'
12600 lt_prog_compiler_pic_FC='-KPIC'
12601 lt_prog_compiler_static_FC='-Bstatic'
12602 ;;
12603
12604 unicos*)
12605 lt_prog_compiler_wl_FC='-Wl,'
12606 lt_prog_compiler_can_build_shared_FC=no
12607 ;;
12608
12609 uts4*)
12610 lt_prog_compiler_pic_FC='-pic'
12611 lt_prog_compiler_static_FC='-Bstatic'
12612 ;;
12613
12614 *)
12615 lt_prog_compiler_can_build_shared_FC=no
12616 ;;
12617 esac
12618 fi
12619
12620 case $host_os in
12621 # For platforms which do not support PIC, -DPIC is meaningless:
12622 *djgpp*)
12623 lt_prog_compiler_pic_FC=
12624 ;;
12625 *)
12626 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12627 ;;
12628 esac
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12630 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12631
12632
12633
12634 #
12635 # Check to make sure the PIC flag actually works.
12636 #
12637 if test -n "$lt_prog_compiler_pic_FC"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12639 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12640 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 lt_cv_prog_compiler_pic_works_FC=no
12644 ac_outfile=conftest.$ac_objext
12645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12646 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12647 # Insert the option either (1) after the last *FLAGS variable, or
12648 # (2) before a word containing "conftest.", or (3) at the end.
12649 # Note that $ac_compile itself does not contain backslashes and begins
12650 # with a dollar sign (not a hyphen), so the echo should work correctly.
12651 # The option is referenced via a variable to avoid confusing sed.
12652 lt_compile=`echo "$ac_compile" | $SED \
12653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12655 -e 's:$: $lt_compiler_flag:'`
12656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12657 (eval "$lt_compile" 2>conftest.err)
12658 ac_status=$?
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 if (exit $ac_status) && test -s "$ac_outfile"; then
12662 # The compiler can only warn and ignore the option if not recognized
12663 # So say no if there are warnings other than the usual output.
12664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12667 lt_cv_prog_compiler_pic_works_FC=yes
12668 fi
12669 fi
12670 $RM conftest*
12671
12672 fi
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12674 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12675
12676 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12677 case $lt_prog_compiler_pic_FC in
12678 "" | " "*) ;;
12679 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12680 esac
12681 else
12682 lt_prog_compiler_pic_FC=
12683 lt_prog_compiler_can_build_shared_FC=no
12684 fi
12685
12686 fi
12687
12688
12689
12690 #
12691 # Check to make sure the static flag actually works.
12692 #
12693 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12695 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12696 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 lt_cv_prog_compiler_static_works_FC=no
12700 save_LDFLAGS="$LDFLAGS"
12701 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12702 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12704 # The linker can only warn and ignore the option if not recognized
12705 # So say no if there are warnings
12706 if test -s conftest.err; then
12707 # Append any errors to the config.log.
12708 cat conftest.err 1>&5
12709 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12711 if diff conftest.exp conftest.er2 >/dev/null; then
12712 lt_cv_prog_compiler_static_works_FC=yes
12713 fi
12714 else
12715 lt_cv_prog_compiler_static_works_FC=yes
12716 fi
12717 fi
12718 $RM -r conftest*
12719 LDFLAGS="$save_LDFLAGS"
12720
12721 fi
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12723 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12724
12725 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12726 :
12727 else
12728 lt_prog_compiler_static_FC=
12729 fi
12730
12731
12732
12733
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12735 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12736 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 lt_cv_prog_compiler_c_o_FC=no
12740 $RM -r conftest 2>/dev/null
12741 mkdir conftest
12742 cd conftest
12743 mkdir out
12744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12745
12746 lt_compiler_flag="-o out/conftest2.$ac_objext"
12747 # Insert the option either (1) after the last *FLAGS variable, or
12748 # (2) before a word containing "conftest.", or (3) at the end.
12749 # Note that $ac_compile itself does not contain backslashes and begins
12750 # with a dollar sign (not a hyphen), so the echo should work correctly.
12751 lt_compile=`echo "$ac_compile" | $SED \
12752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12754 -e 's:$: $lt_compiler_flag:'`
12755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12756 (eval "$lt_compile" 2>out/conftest.err)
12757 ac_status=$?
12758 cat out/conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12761 then
12762 # The compiler can only warn and ignore the option if not recognized
12763 # So say no if there are warnings
12764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12767 lt_cv_prog_compiler_c_o_FC=yes
12768 fi
12769 fi
12770 chmod u+w . 2>&5
12771 $RM conftest*
12772 # SGI C++ compiler will create directory out/ii_files/ for
12773 # template instantiation
12774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12775 $RM out/* && rmdir out
12776 cd ..
12777 $RM -r conftest
12778 $RM conftest*
12779
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12782 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12783
12784
12785
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12788 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 lt_cv_prog_compiler_c_o_FC=no
12792 $RM -r conftest 2>/dev/null
12793 mkdir conftest
12794 cd conftest
12795 mkdir out
12796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12797
12798 lt_compiler_flag="-o out/conftest2.$ac_objext"
12799 # Insert the option either (1) after the last *FLAGS variable, or
12800 # (2) before a word containing "conftest.", or (3) at the end.
12801 # Note that $ac_compile itself does not contain backslashes and begins
12802 # with a dollar sign (not a hyphen), so the echo should work correctly.
12803 lt_compile=`echo "$ac_compile" | $SED \
12804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12806 -e 's:$: $lt_compiler_flag:'`
12807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12808 (eval "$lt_compile" 2>out/conftest.err)
12809 ac_status=$?
12810 cat out/conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12813 then
12814 # The compiler can only warn and ignore the option if not recognized
12815 # So say no if there are warnings
12816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12819 lt_cv_prog_compiler_c_o_FC=yes
12820 fi
12821 fi
12822 chmod u+w . 2>&5
12823 $RM conftest*
12824 # SGI C++ compiler will create directory out/ii_files/ for
12825 # template instantiation
12826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12827 $RM out/* && rmdir out
12828 cd ..
12829 $RM -r conftest
12830 $RM conftest*
12831
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12834 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12835
12836
12837
12838
12839 hard_links="nottested"
12840 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12841 # do not overwrite the value of need_locks provided by the user
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12843 $as_echo_n "checking if we can lock with hard links... " >&6; }
12844 hard_links=yes
12845 $RM conftest*
12846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12847 touch conftest.a
12848 ln conftest.a conftest.b 2>&5 || hard_links=no
12849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12851 $as_echo "$hard_links" >&6; }
12852 if test "$hard_links" = no; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12854 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12855 need_locks=warn
12856 fi
12857 else
12858 need_locks=no
12859 fi
12860
12861
12862
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12864 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12865
12866 runpath_var=
12867 allow_undefined_flag_FC=
12868 always_export_symbols_FC=no
12869 archive_cmds_FC=
12870 archive_expsym_cmds_FC=
12871 compiler_needs_object_FC=no
12872 enable_shared_with_static_runtimes_FC=no
12873 export_dynamic_flag_spec_FC=
12874 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12875 hardcode_automatic_FC=no
12876 hardcode_direct_FC=no
12877 hardcode_direct_absolute_FC=no
12878 hardcode_libdir_flag_spec_FC=
12879 hardcode_libdir_flag_spec_ld_FC=
12880 hardcode_libdir_separator_FC=
12881 hardcode_minus_L_FC=no
12882 hardcode_shlibpath_var_FC=unsupported
12883 inherit_rpath_FC=no
12884 link_all_deplibs_FC=unknown
12885 module_cmds_FC=
12886 module_expsym_cmds_FC=
12887 old_archive_from_new_cmds_FC=
12888 old_archive_from_expsyms_cmds_FC=
12889 thread_safe_flag_spec_FC=
12890 whole_archive_flag_spec_FC=
12891 # include_expsyms should be a list of space-separated symbols to be *always*
12892 # included in the symbol list
12893 include_expsyms_FC=
12894 # exclude_expsyms can be an extended regexp of symbols to exclude
12895 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12896 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12897 # as well as any symbol that contains `d'.
12898 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12899 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12900 # platforms (ab)use it in PIC code, but their linkers get confused if
12901 # the symbol is explicitly referenced. Since portable code cannot
12902 # rely on this symbol name, it's probably fine to never include it in
12903 # preloaded symbol tables.
12904 # Exclude shared library initialization/finalization symbols.
12905 extract_expsyms_cmds=
12906
12907 case $host_os in
12908 cygwin* | mingw* | pw32* | cegcc*)
12909 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12910 # When not using gcc, we currently assume that we are using
12911 # Microsoft Visual C++.
12912 if test "$GCC" != yes; then
12913 with_gnu_ld=no
12914 fi
12915 ;;
12916 interix*)
12917 # we just hope/assume this is gcc and not c89 (= MSVC++)
12918 with_gnu_ld=yes
12919 ;;
12920 openbsd*)
12921 with_gnu_ld=no
12922 ;;
12923 esac
12924
12925 ld_shlibs_FC=yes
12926
12927 # On some targets, GNU ld is compatible enough with the native linker
12928 # that we're better off using the native interface for both.
12929 lt_use_gnu_ld_interface=no
12930 if test "$with_gnu_ld" = yes; then
12931 case $host_os in
12932 aix*)
12933 # The AIX port of GNU ld has always aspired to compatibility
12934 # with the native linker. However, as the warning in the GNU ld
12935 # block says, versions before 2.19.5* couldn't really create working
12936 # shared libraries, regardless of the interface used.
12937 case `$LD -v 2>&1` in
12938 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12939 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12940 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12941 *)
12942 lt_use_gnu_ld_interface=yes
12943 ;;
12944 esac
12945 ;;
12946 *)
12947 lt_use_gnu_ld_interface=yes
12948 ;;
12949 esac
12950 fi
12951
12952 if test "$lt_use_gnu_ld_interface" = yes; then
12953 # If archive_cmds runs LD, not CC, wlarc should be empty
12954 wlarc='${wl}'
12955
12956 # Set some defaults for GNU ld with shared library support. These
12957 # are reset later if shared libraries are not supported. Putting them
12958 # here allows them to be overridden if necessary.
12959 runpath_var=LD_RUN_PATH
12960 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12961 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12962 # ancient GNU ld didn't support --whole-archive et. al.
12963 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12964 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12965 else
12966 whole_archive_flag_spec_FC=
12967 fi
12968 supports_anon_versioning=no
12969 case `$LD -v 2>&1` in
12970 *GNU\ gold*) supports_anon_versioning=yes ;;
12971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12974 *\ 2.11.*) ;; # other 2.11 versions
12975 *) supports_anon_versioning=yes ;;
12976 esac
12977
12978 # See if GNU ld supports shared libraries.
12979 case $host_os in
12980 aix[3-9]*)
12981 # On AIX/PPC, the GNU linker is very broken
12982 if test "$host_cpu" != ia64; then
12983 ld_shlibs_FC=no
12984 cat <<_LT_EOF 1>&2
12985
12986 *** Warning: the GNU linker, at least up to release 2.19, is reported
12987 *** to be unable to reliably create shared libraries on AIX.
12988 *** Therefore, libtool is disabling shared libraries support. If you
12989 *** really care for shared libraries, you may want to install binutils
12990 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12991 *** You will then need to restart the configuration process.
12992
12993 _LT_EOF
12994 fi
12995 ;;
12996
12997 amigaos*)
12998 case $host_cpu in
12999 powerpc)
13000 # see comment about AmigaOS4 .so support
13001 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13002 archive_expsym_cmds_FC=''
13003 ;;
13004 m68k)
13005 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13006 hardcode_libdir_flag_spec_FC='-L$libdir'
13007 hardcode_minus_L_FC=yes
13008 ;;
13009 esac
13010 ;;
13011
13012 beos*)
13013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13014 allow_undefined_flag_FC=unsupported
13015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13016 # support --undefined. This deserves some investigation. FIXME
13017 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13018 else
13019 ld_shlibs_FC=no
13020 fi
13021 ;;
13022
13023 cygwin* | mingw* | pw32* | cegcc*)
13024 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13025 # as there is no search path for DLLs.
13026 hardcode_libdir_flag_spec_FC='-L$libdir'
13027 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13028 allow_undefined_flag_FC=unsupported
13029 always_export_symbols_FC=no
13030 enable_shared_with_static_runtimes_FC=yes
13031 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13032
13033 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13034 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13035 # If the export-symbols file already is a .def file (1st line
13036 # is EXPORTS), use it as is; otherwise, prepend...
13037 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13038 cp $export_symbols $output_objdir/$soname.def;
13039 else
13040 echo EXPORTS > $output_objdir/$soname.def;
13041 cat $export_symbols >> $output_objdir/$soname.def;
13042 fi~
13043 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13044 else
13045 ld_shlibs_FC=no
13046 fi
13047 ;;
13048
13049 haiku*)
13050 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13051 link_all_deplibs_FC=yes
13052 ;;
13053
13054 interix[3-9]*)
13055 hardcode_direct_FC=no
13056 hardcode_shlibpath_var_FC=no
13057 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13058 export_dynamic_flag_spec_FC='${wl}-E'
13059 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13060 # Instead, shared libraries are loaded at an image base (0x10000000 by
13061 # default) and relocated if they conflict, which is a slow very memory
13062 # consuming and fragmenting process. To avoid this, we pick a random,
13063 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13064 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13065 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13066 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13067 ;;
13068
13069 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13070 tmp_diet=no
13071 if test "$host_os" = linux-dietlibc; then
13072 case $cc_basename in
13073 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13074 esac
13075 fi
13076 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13077 && test "$tmp_diet" = no
13078 then
13079 tmp_addflag=' $pic_flag'
13080 tmp_sharedflag='-shared'
13081 case $cc_basename,$host_cpu in
13082 pgcc*) # Portland Group C compiler
13083 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13084 tmp_addflag=' $pic_flag'
13085 ;;
13086 pgf77* | pgf90* | pgf95* | pgfortran*)
13087 # Portland Group f77 and f90 compilers
13088 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13089 tmp_addflag=' $pic_flag -Mnomain' ;;
13090 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13091 tmp_addflag=' -i_dynamic' ;;
13092 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13093 tmp_addflag=' -i_dynamic -nofor_main' ;;
13094 ifc* | ifort*) # Intel Fortran compiler
13095 tmp_addflag=' -nofor_main' ;;
13096 lf95*) # Lahey Fortran 8.1
13097 whole_archive_flag_spec_FC=
13098 tmp_sharedflag='--shared' ;;
13099 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13100 tmp_sharedflag='-qmkshrobj'
13101 tmp_addflag= ;;
13102 nvcc*) # Cuda Compiler Driver 2.2
13103 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13104 compiler_needs_object_FC=yes
13105 ;;
13106 esac
13107 case `$CC -V 2>&1 | sed 5q` in
13108 *Sun\ C*) # Sun C 5.9
13109 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13110 compiler_needs_object_FC=yes
13111 tmp_sharedflag='-G' ;;
13112 *Sun\ F*) # Sun Fortran 8.3
13113 tmp_sharedflag='-G' ;;
13114 esac
13115 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13116
13117 if test "x$supports_anon_versioning" = xyes; then
13118 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13120 echo "local: *; };" >> $output_objdir/$libname.ver~
13121 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13122 fi
13123
13124 case $cc_basename in
13125 xlf* | bgf* | bgxlf* | mpixlf*)
13126 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13127 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13128 hardcode_libdir_flag_spec_FC=
13129 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13130 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13131 if test "x$supports_anon_versioning" = xyes; then
13132 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13134 echo "local: *; };" >> $output_objdir/$libname.ver~
13135 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13136 fi
13137 ;;
13138 esac
13139 else
13140 ld_shlibs_FC=no
13141 fi
13142 ;;
13143
13144 netbsd*)
13145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13146 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13147 wlarc=
13148 else
13149 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13150 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13151 fi
13152 ;;
13153
13154 solaris*)
13155 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13156 ld_shlibs_FC=no
13157 cat <<_LT_EOF 1>&2
13158
13159 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13160 *** create shared libraries on Solaris systems. Therefore, libtool
13161 *** is disabling shared libraries support. We urge you to upgrade GNU
13162 *** binutils to release 2.9.1 or newer. Another option is to modify
13163 *** your PATH or compiler configuration so that the native linker is
13164 *** used, and then restart.
13165
13166 _LT_EOF
13167 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13168 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13170 else
13171 ld_shlibs_FC=no
13172 fi
13173 ;;
13174
13175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13176 case `$LD -v 2>&1` in
13177 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13178 ld_shlibs_FC=no
13179 cat <<_LT_EOF 1>&2
13180
13181 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13182 *** reliably create shared libraries on SCO systems. Therefore, libtool
13183 *** is disabling shared libraries support. We urge you to upgrade GNU
13184 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13185 *** your PATH or compiler configuration so that the native linker is
13186 *** used, and then restart.
13187
13188 _LT_EOF
13189 ;;
13190 *)
13191 # For security reasons, it is highly recommended that you always
13192 # use absolute paths for naming shared libraries, and exclude the
13193 # DT_RUNPATH tag from executables and libraries. But doing so
13194 # requires that you compile everything twice, which is a pain.
13195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13196 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13197 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13199 else
13200 ld_shlibs_FC=no
13201 fi
13202 ;;
13203 esac
13204 ;;
13205
13206 sunos4*)
13207 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13208 wlarc=
13209 hardcode_direct_FC=yes
13210 hardcode_shlibpath_var_FC=no
13211 ;;
13212
13213 *)
13214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13215 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13216 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13217 else
13218 ld_shlibs_FC=no
13219 fi
13220 ;;
13221 esac
13222
13223 if test "$ld_shlibs_FC" = no; then
13224 runpath_var=
13225 hardcode_libdir_flag_spec_FC=
13226 export_dynamic_flag_spec_FC=
13227 whole_archive_flag_spec_FC=
13228 fi
13229 else
13230 # PORTME fill in a description of your system's linker (not GNU ld)
13231 case $host_os in
13232 aix3*)
13233 allow_undefined_flag_FC=unsupported
13234 always_export_symbols_FC=yes
13235 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13236 # Note: this linker hardcodes the directories in LIBPATH if there
13237 # are no directories specified by -L.
13238 hardcode_minus_L_FC=yes
13239 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13240 # Neither direct hardcoding nor static linking is supported with a
13241 # broken collect2.
13242 hardcode_direct_FC=unsupported
13243 fi
13244 ;;
13245
13246 aix[4-9]*)
13247 if test "$host_cpu" = ia64; then
13248 # On IA64, the linker does run time linking by default, so we don't
13249 # have to do anything special.
13250 aix_use_runtimelinking=no
13251 exp_sym_flag='-Bexport'
13252 no_entry_flag=""
13253 else
13254 # If we're using GNU nm, then we don't want the "-C" option.
13255 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13256 # Also, AIX nm treats weak defined symbols like other global
13257 # defined symbols, whereas GNU nm marks them as "W".
13258 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13259 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13260 else
13261 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13262 fi
13263 aix_use_runtimelinking=no
13264
13265 # Test if we are trying to use run time linking or normal
13266 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13267 # need to do runtime linking.
13268 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13269 for ld_flag in $LDFLAGS; do
13270 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13271 aix_use_runtimelinking=yes
13272 break
13273 fi
13274 done
13275 ;;
13276 esac
13277
13278 exp_sym_flag='-bexport'
13279 no_entry_flag='-bnoentry'
13280 fi
13281
13282 # When large executables or shared objects are built, AIX ld can
13283 # have problems creating the table of contents. If linking a library
13284 # or program results in "error TOC overflow" add -mminimal-toc to
13285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13287
13288 archive_cmds_FC=''
13289 hardcode_direct_FC=yes
13290 hardcode_direct_absolute_FC=yes
13291 hardcode_libdir_separator_FC=':'
13292 link_all_deplibs_FC=yes
13293 file_list_spec_FC='${wl}-f,'
13294
13295 if test "$GCC" = yes; then
13296 case $host_os in aix4.[012]|aix4.[012].*)
13297 # We only want to do this on AIX 4.2 and lower, the check
13298 # below for broken collect2 doesn't work under 4.3+
13299 collect2name=`${CC} -print-prog-name=collect2`
13300 if test -f "$collect2name" &&
13301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13302 then
13303 # We have reworked collect2
13304 :
13305 else
13306 # We have old collect2
13307 hardcode_direct_FC=unsupported
13308 # It fails to find uninstalled libraries when the uninstalled
13309 # path is not listed in the libpath. Setting hardcode_minus_L
13310 # to unsupported forces relinking
13311 hardcode_minus_L_FC=yes
13312 hardcode_libdir_flag_spec_FC='-L$libdir'
13313 hardcode_libdir_separator_FC=
13314 fi
13315 ;;
13316 esac
13317 shared_flag='-shared'
13318 if test "$aix_use_runtimelinking" = yes; then
13319 shared_flag="$shared_flag "'${wl}-G'
13320 fi
13321 else
13322 # not using gcc
13323 if test "$host_cpu" = ia64; then
13324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13325 # chokes on -Wl,-G. The following line is correct:
13326 shared_flag='-G'
13327 else
13328 if test "$aix_use_runtimelinking" = yes; then
13329 shared_flag='${wl}-G'
13330 else
13331 shared_flag='${wl}-bM:SRE'
13332 fi
13333 fi
13334 fi
13335
13336 export_dynamic_flag_spec_FC='${wl}-bexpall'
13337 # It seems that -bexpall does not export symbols beginning with
13338 # underscore (_), so it is better to generate a list of symbols to export.
13339 always_export_symbols_FC=yes
13340 if test "$aix_use_runtimelinking" = yes; then
13341 # Warning - without using the other runtime loading flags (-brtl),
13342 # -berok will link without error, but may produce a broken library.
13343 allow_undefined_flag_FC='-berok'
13344 # Determine the default libpath from the value encoded in an
13345 # empty executable.
13346 cat > conftest.$ac_ext <<_ACEOF
13347 program main
13348
13349 end
13350 _ACEOF
13351 if ac_fn_fc_try_link "$LINENO"; then :
13352
13353 lt_aix_libpath_sed='
13354 /Import File Strings/,/^$/ {
13355 /^0/ {
13356 s/^0 *\(.*\)$/\1/
13357 p
13358 }
13359 }'
13360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13361 # Check for a 64-bit object if we didn't find anything.
13362 if test -z "$aix_libpath"; then
13363 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13364 fi
13365 fi
13366 rm -f core conftest.err conftest.$ac_objext \
13367 conftest$ac_exeext conftest.$ac_ext
13368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13369
13370 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13371 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13372 else
13373 if test "$host_cpu" = ia64; then
13374 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13375 allow_undefined_flag_FC="-z nodefs"
13376 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13377 else
13378 # Determine the default libpath from the value encoded in an
13379 # empty executable.
13380 cat > conftest.$ac_ext <<_ACEOF
13381 program main
13382
13383 end
13384 _ACEOF
13385 if ac_fn_fc_try_link "$LINENO"; then :
13386
13387 lt_aix_libpath_sed='
13388 /Import File Strings/,/^$/ {
13389 /^0/ {
13390 s/^0 *\(.*\)$/\1/
13391 p
13392 }
13393 }'
13394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13395 # Check for a 64-bit object if we didn't find anything.
13396 if test -z "$aix_libpath"; then
13397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13398 fi
13399 fi
13400 rm -f core conftest.err conftest.$ac_objext \
13401 conftest$ac_exeext conftest.$ac_ext
13402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13403
13404 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13405 # Warning - without using the other run time loading flags,
13406 # -berok will link without error, but may produce a broken library.
13407 no_undefined_flag_FC=' ${wl}-bernotok'
13408 allow_undefined_flag_FC=' ${wl}-berok'
13409 if test "$with_gnu_ld" = yes; then
13410 # We only use this code for GNU lds that support --whole-archive.
13411 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13412 else
13413 # Exported symbols can be pulled into shared objects from archives
13414 whole_archive_flag_spec_FC='$convenience'
13415 fi
13416 archive_cmds_need_lc_FC=yes
13417 # This is similar to how AIX traditionally builds its shared libraries.
13418 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13419 fi
13420 fi
13421 ;;
13422
13423 amigaos*)
13424 case $host_cpu in
13425 powerpc)
13426 # see comment about AmigaOS4 .so support
13427 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13428 archive_expsym_cmds_FC=''
13429 ;;
13430 m68k)
13431 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13432 hardcode_libdir_flag_spec_FC='-L$libdir'
13433 hardcode_minus_L_FC=yes
13434 ;;
13435 esac
13436 ;;
13437
13438 bsdi[45]*)
13439 export_dynamic_flag_spec_FC=-rdynamic
13440 ;;
13441
13442 cygwin* | mingw* | pw32* | cegcc*)
13443 # When not using gcc, we currently assume that we are using
13444 # Microsoft Visual C++.
13445 # hardcode_libdir_flag_spec is actually meaningless, as there is
13446 # no search path for DLLs.
13447 hardcode_libdir_flag_spec_FC=' '
13448 allow_undefined_flag_FC=unsupported
13449 # Tell ltmain to make .lib files, not .a files.
13450 libext=lib
13451 # Tell ltmain to make .dll files, not .so files.
13452 shrext_cmds=".dll"
13453 # FIXME: Setting linknames here is a bad hack.
13454 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13455 # The linker will automatically build a .lib file if we build a DLL.
13456 old_archive_from_new_cmds_FC='true'
13457 # FIXME: Should let the user specify the lib program.
13458 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13459 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13460 enable_shared_with_static_runtimes_FC=yes
13461 ;;
13462
13463 darwin* | rhapsody*)
13464
13465
13466 archive_cmds_need_lc_FC=no
13467 hardcode_direct_FC=no
13468 hardcode_automatic_FC=yes
13469 hardcode_shlibpath_var_FC=unsupported
13470 if test "$lt_cv_ld_force_load" = "yes"; then
13471 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13472 else
13473 whole_archive_flag_spec_FC=''
13474 fi
13475 link_all_deplibs_FC=yes
13476 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13477 case $cc_basename in
13478 ifort*) _lt_dar_can_shared=yes ;;
13479 *) _lt_dar_can_shared=$GCC ;;
13480 esac
13481 if test "$_lt_dar_can_shared" = "yes"; then
13482 output_verbose_link_cmd=func_echo_all
13483 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13484 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13485 archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13486 module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13487
13488 else
13489 ld_shlibs_FC=no
13490 fi
13491
13492 ;;
13493
13494 dgux*)
13495 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496 hardcode_libdir_flag_spec_FC='-L$libdir'
13497 hardcode_shlibpath_var_FC=no
13498 ;;
13499
13500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13501 # support. Future versions do this automatically, but an explicit c++rt0.o
13502 # does not break anything, and helps significantly (at the cost of a little
13503 # extra space).
13504 freebsd2.2*)
13505 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13506 hardcode_libdir_flag_spec_FC='-R$libdir'
13507 hardcode_direct_FC=yes
13508 hardcode_shlibpath_var_FC=no
13509 ;;
13510
13511 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13512 freebsd2.*)
13513 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_direct_FC=yes
13515 hardcode_minus_L_FC=yes
13516 hardcode_shlibpath_var_FC=no
13517 ;;
13518
13519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13520 freebsd* | dragonfly*)
13521 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13522 hardcode_libdir_flag_spec_FC='-R$libdir'
13523 hardcode_direct_FC=yes
13524 hardcode_shlibpath_var_FC=no
13525 ;;
13526
13527 hpux9*)
13528 if test "$GCC" = yes; then
13529 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13530 else
13531 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13532 fi
13533 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13534 hardcode_libdir_separator_FC=:
13535 hardcode_direct_FC=yes
13536
13537 # hardcode_minus_L: Not really in the search PATH,
13538 # but as the default location of the library.
13539 hardcode_minus_L_FC=yes
13540 export_dynamic_flag_spec_FC='${wl}-E'
13541 ;;
13542
13543 hpux10*)
13544 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13545 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13546 else
13547 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13548 fi
13549 if test "$with_gnu_ld" = no; then
13550 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13551 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13552 hardcode_libdir_separator_FC=:
13553 hardcode_direct_FC=yes
13554 hardcode_direct_absolute_FC=yes
13555 export_dynamic_flag_spec_FC='${wl}-E'
13556 # hardcode_minus_L: Not really in the search PATH,
13557 # but as the default location of the library.
13558 hardcode_minus_L_FC=yes
13559 fi
13560 ;;
13561
13562 hpux11*)
13563 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13564 case $host_cpu in
13565 hppa*64*)
13566 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13567 ;;
13568 ia64*)
13569 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13570 ;;
13571 *)
13572 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13573 ;;
13574 esac
13575 else
13576 case $host_cpu in
13577 hppa*64*)
13578 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13579 ;;
13580 ia64*)
13581 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13582 ;;
13583 *)
13584 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13585 ;;
13586 esac
13587 fi
13588 if test "$with_gnu_ld" = no; then
13589 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13590 hardcode_libdir_separator_FC=:
13591
13592 case $host_cpu in
13593 hppa*64*|ia64*)
13594 hardcode_direct_FC=no
13595 hardcode_shlibpath_var_FC=no
13596 ;;
13597 *)
13598 hardcode_direct_FC=yes
13599 hardcode_direct_absolute_FC=yes
13600 export_dynamic_flag_spec_FC='${wl}-E'
13601
13602 # hardcode_minus_L: Not really in the search PATH,
13603 # but as the default location of the library.
13604 hardcode_minus_L_FC=yes
13605 ;;
13606 esac
13607 fi
13608 ;;
13609
13610 irix5* | irix6* | nonstopux*)
13611 if test "$GCC" = yes; then
13612 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13613 # Try to use the -exported_symbol ld option, if it does not
13614 # work, assume that -exports_file does not work either and
13615 # implicitly export all symbols.
13616 save_LDFLAGS="$LDFLAGS"
13617 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13618 cat > conftest.$ac_ext <<_ACEOF
13619 int foo(void) {}
13620 _ACEOF
13621 if ac_fn_fc_try_link "$LINENO"; then :
13622 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13623
13624 fi
13625 rm -f core conftest.err conftest.$ac_objext \
13626 conftest$ac_exeext conftest.$ac_ext
13627 LDFLAGS="$save_LDFLAGS"
13628 else
13629 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13630 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13631 fi
13632 archive_cmds_need_lc_FC='no'
13633 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13634 hardcode_libdir_separator_FC=:
13635 inherit_rpath_FC=yes
13636 link_all_deplibs_FC=yes
13637 ;;
13638
13639 netbsd*)
13640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13641 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13642 else
13643 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13644 fi
13645 hardcode_libdir_flag_spec_FC='-R$libdir'
13646 hardcode_direct_FC=yes
13647 hardcode_shlibpath_var_FC=no
13648 ;;
13649
13650 newsos6)
13651 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13652 hardcode_direct_FC=yes
13653 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13654 hardcode_libdir_separator_FC=:
13655 hardcode_shlibpath_var_FC=no
13656 ;;
13657
13658 *nto* | *qnx*)
13659 ;;
13660
13661 openbsd*)
13662 if test -f /usr/libexec/ld.so; then
13663 hardcode_direct_FC=yes
13664 hardcode_shlibpath_var_FC=no
13665 hardcode_direct_absolute_FC=yes
13666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13667 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13669 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13670 export_dynamic_flag_spec_FC='${wl}-E'
13671 else
13672 case $host_os in
13673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13674 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13675 hardcode_libdir_flag_spec_FC='-R$libdir'
13676 ;;
13677 *)
13678 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13679 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13680 ;;
13681 esac
13682 fi
13683 else
13684 ld_shlibs_FC=no
13685 fi
13686 ;;
13687
13688 os2*)
13689 hardcode_libdir_flag_spec_FC='-L$libdir'
13690 hardcode_minus_L_FC=yes
13691 allow_undefined_flag_FC=unsupported
13692 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13693 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13694 ;;
13695
13696 osf3*)
13697 if test "$GCC" = yes; then
13698 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13699 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13700 else
13701 allow_undefined_flag_FC=' -expect_unresolved \*'
13702 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13703 fi
13704 archive_cmds_need_lc_FC='no'
13705 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13706 hardcode_libdir_separator_FC=:
13707 ;;
13708
13709 osf4* | osf5*) # as osf3* with the addition of -msym flag
13710 if test "$GCC" = yes; then
13711 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13712 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13713 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13714 else
13715 allow_undefined_flag_FC=' -expect_unresolved \*'
13716 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13717 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13718 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13719
13720 # Both c and cxx compiler support -rpath directly
13721 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13722 fi
13723 archive_cmds_need_lc_FC='no'
13724 hardcode_libdir_separator_FC=:
13725 ;;
13726
13727 solaris*)
13728 no_undefined_flag_FC=' -z defs'
13729 if test "$GCC" = yes; then
13730 wlarc='${wl}'
13731 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13732 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13733 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13734 else
13735 case `$CC -V 2>&1` in
13736 *"Compilers 5.0"*)
13737 wlarc=''
13738 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13739 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13741 ;;
13742 *)
13743 wlarc='${wl}'
13744 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13745 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13746 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13747 ;;
13748 esac
13749 fi
13750 hardcode_libdir_flag_spec_FC='-R$libdir'
13751 hardcode_shlibpath_var_FC=no
13752 case $host_os in
13753 solaris2.[0-5] | solaris2.[0-5].*) ;;
13754 *)
13755 # The compiler driver will combine and reorder linker options,
13756 # but understands `-z linker_flag'. GCC discards it without `$wl',
13757 # but is careful enough not to reorder.
13758 # Supported since Solaris 2.6 (maybe 2.5.1?)
13759 if test "$GCC" = yes; then
13760 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13761 else
13762 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13763 fi
13764 ;;
13765 esac
13766 link_all_deplibs_FC=yes
13767 ;;
13768
13769 sunos4*)
13770 if test "x$host_vendor" = xsequent; then
13771 # Use $CC to link under sequent, because it throws in some extra .o
13772 # files that make .init and .fini sections work.
13773 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13774 else
13775 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13776 fi
13777 hardcode_libdir_flag_spec_FC='-L$libdir'
13778 hardcode_direct_FC=yes
13779 hardcode_minus_L_FC=yes
13780 hardcode_shlibpath_var_FC=no
13781 ;;
13782
13783 sysv4)
13784 case $host_vendor in
13785 sni)
13786 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_direct_FC=yes # is this really true???
13788 ;;
13789 siemens)
13790 ## LD is ld it makes a PLAMLIB
13791 ## CC just makes a GrossModule.
13792 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13793 reload_cmds_FC='$CC -r -o $output$reload_objs'
13794 hardcode_direct_FC=no
13795 ;;
13796 motorola)
13797 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13799 ;;
13800 esac
13801 runpath_var='LD_RUN_PATH'
13802 hardcode_shlibpath_var_FC=no
13803 ;;
13804
13805 sysv4.3*)
13806 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807 hardcode_shlibpath_var_FC=no
13808 export_dynamic_flag_spec_FC='-Bexport'
13809 ;;
13810
13811 sysv4*MP*)
13812 if test -d /usr/nec; then
13813 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13814 hardcode_shlibpath_var_FC=no
13815 runpath_var=LD_RUN_PATH
13816 hardcode_runpath_var=yes
13817 ld_shlibs_FC=yes
13818 fi
13819 ;;
13820
13821 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13822 no_undefined_flag_FC='${wl}-z,text'
13823 archive_cmds_need_lc_FC=no
13824 hardcode_shlibpath_var_FC=no
13825 runpath_var='LD_RUN_PATH'
13826
13827 if test "$GCC" = yes; then
13828 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 else
13831 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 fi
13834 ;;
13835
13836 sysv5* | sco3.2v5* | sco5v6*)
13837 # Note: We can NOT use -z defs as we might desire, because we do not
13838 # link with -lc, and that would cause any symbols used from libc to
13839 # always be unresolved, which means just about no library would
13840 # ever link correctly. If we're not using GNU ld we use -z text
13841 # though, which does catch some bad symbols but isn't as heavy-handed
13842 # as -z defs.
13843 no_undefined_flag_FC='${wl}-z,text'
13844 allow_undefined_flag_FC='${wl}-z,nodefs'
13845 archive_cmds_need_lc_FC=no
13846 hardcode_shlibpath_var_FC=no
13847 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13848 hardcode_libdir_separator_FC=':'
13849 link_all_deplibs_FC=yes
13850 export_dynamic_flag_spec_FC='${wl}-Bexport'
13851 runpath_var='LD_RUN_PATH'
13852
13853 if test "$GCC" = yes; then
13854 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13855 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13856 else
13857 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13859 fi
13860 ;;
13861
13862 uts4*)
13863 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13864 hardcode_libdir_flag_spec_FC='-L$libdir'
13865 hardcode_shlibpath_var_FC=no
13866 ;;
13867
13868 *)
13869 ld_shlibs_FC=no
13870 ;;
13871 esac
13872
13873 if test x$host_vendor = xsni; then
13874 case $host in
13875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13876 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13877 ;;
13878 esac
13879 fi
13880 fi
13881
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13883 $as_echo "$ld_shlibs_FC" >&6; }
13884 test "$ld_shlibs_FC" = no && can_build_shared=no
13885
13886 with_gnu_ld_FC=$with_gnu_ld
13887
13888
13889
13890
13891
13892
13893 #
13894 # Do we need to explicitly link libc?
13895 #
13896 case "x$archive_cmds_need_lc_FC" in
13897 x|xyes)
13898 # Assume -lc should be added
13899 archive_cmds_need_lc_FC=yes
13900
13901 if test "$enable_shared" = yes && test "$GCC" = yes; then
13902 case $archive_cmds_FC in
13903 *'~'*)
13904 # FIXME: we may have to deal with multi-command sequences.
13905 ;;
13906 '$CC '*)
13907 # Test whether the compiler implicitly links with -lc since on some
13908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13909 # to ld, don't add -lc before -lgcc.
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13911 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13912 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 $RM conftest*
13916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13917
13918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13919 (eval $ac_compile) 2>&5
13920 ac_status=$?
13921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13922 test $ac_status = 0; } 2>conftest.err; then
13923 soname=conftest
13924 lib=conftest
13925 libobjs=conftest.$ac_objext
13926 deplibs=
13927 wl=$lt_prog_compiler_wl_FC
13928 pic_flag=$lt_prog_compiler_pic_FC
13929 compiler_flags=-v
13930 linker_flags=-v
13931 verstring=
13932 output_objdir=.
13933 libname=conftest
13934 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13935 allow_undefined_flag_FC=
13936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13937 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13938 ac_status=$?
13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13940 test $ac_status = 0; }
13941 then
13942 lt_cv_archive_cmds_need_lc_FC=no
13943 else
13944 lt_cv_archive_cmds_need_lc_FC=yes
13945 fi
13946 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13947 else
13948 cat conftest.err 1>&5
13949 fi
13950 $RM conftest*
13951
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13954 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13955 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13956 ;;
13957 esac
13958 fi
13959 ;;
13960 esac
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14026 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14027
14028 library_names_spec=
14029 libname_spec='lib$name'
14030 soname_spec=
14031 shrext_cmds=".so"
14032 postinstall_cmds=
14033 postuninstall_cmds=
14034 finish_cmds=
14035 finish_eval=
14036 shlibpath_var=
14037 shlibpath_overrides_runpath=unknown
14038 version_type=none
14039 dynamic_linker="$host_os ld.so"
14040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14041 need_lib_prefix=unknown
14042 hardcode_into_libs=no
14043
14044 # when you set need_version to no, make sure it does not cause -set_version
14045 # flags to be left without arguments
14046 need_version=unknown
14047
14048 case $host_os in
14049 aix3*)
14050 version_type=linux
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14052 shlibpath_var=LIBPATH
14053
14054 # AIX 3 has no versioning support, so we append a major version to the name.
14055 soname_spec='${libname}${release}${shared_ext}$major'
14056 ;;
14057
14058 aix[4-9]*)
14059 version_type=linux
14060 need_lib_prefix=no
14061 need_version=no
14062 hardcode_into_libs=yes
14063 if test "$host_cpu" = ia64; then
14064 # AIX 5 supports IA64
14065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14066 shlibpath_var=LD_LIBRARY_PATH
14067 else
14068 # With GCC up to 2.95.x, collect2 would create an import file
14069 # for dependence libraries. The import file would start with
14070 # the line `#! .'. This would cause the generated library to
14071 # depend on `.', always an invalid library. This was fixed in
14072 # development snapshots of GCC prior to 3.0.
14073 case $host_os in
14074 aix4 | aix4.[01] | aix4.[01].*)
14075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14076 echo ' yes '
14077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14078 :
14079 else
14080 can_build_shared=no
14081 fi
14082 ;;
14083 esac
14084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14085 # soname into executable. Probably we can add versioning support to
14086 # collect2, so additional links can be useful in future.
14087 if test "$aix_use_runtimelinking" = yes; then
14088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14089 # instead of lib<name>.a to let people know that these are not
14090 # typical AIX shared libraries.
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14092 else
14093 # We preserve .a as extension for shared libraries through AIX4.2
14094 # and later when we are not doing run time linking.
14095 library_names_spec='${libname}${release}.a $libname.a'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 fi
14098 shlibpath_var=LIBPATH
14099 fi
14100 ;;
14101
14102 amigaos*)
14103 case $host_cpu in
14104 powerpc)
14105 # Since July 2007 AmigaOS4 officially supports .so libraries.
14106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108 ;;
14109 m68k)
14110 library_names_spec='$libname.ixlibrary $libname.a'
14111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14112 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14113 ;;
14114 esac
14115 ;;
14116
14117 beos*)
14118 library_names_spec='${libname}${shared_ext}'
14119 dynamic_linker="$host_os ld.so"
14120 shlibpath_var=LIBRARY_PATH
14121 ;;
14122
14123 bsdi[45]*)
14124 version_type=linux
14125 need_version=no
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14132 # the default ld.so.conf also contains /usr/contrib/lib and
14133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14134 # libtool to hard-code these into programs
14135 ;;
14136
14137 cygwin* | mingw* | pw32* | cegcc*)
14138 version_type=windows
14139 shrext_cmds=".dll"
14140 need_version=no
14141 need_lib_prefix=no
14142
14143 case $GCC,$host_os in
14144 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14145 library_names_spec='$libname.dll.a'
14146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14147 postinstall_cmds='base_file=`basename \${file}`~
14148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14149 dldir=$destdir/`dirname \$dlpath`~
14150 test -d \$dldir || mkdir -p \$dldir~
14151 $install_prog $dir/$dlname \$dldir/$dlname~
14152 chmod a+x \$dldir/$dlname~
14153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14155 fi'
14156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14157 dlpath=$dir/\$dldll~
14158 $RM \$dlpath'
14159 shlibpath_overrides_runpath=yes
14160
14161 case $host_os in
14162 cygwin*)
14163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14165
14166 ;;
14167 mingw* | cegcc*)
14168 # MinGW DLLs use traditional 'lib' prefix
14169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14170 ;;
14171 pw32*)
14172 # pw32 DLLs use 'pw' prefix rather than 'lib'
14173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14174 ;;
14175 esac
14176 ;;
14177
14178 *)
14179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14180 ;;
14181 esac
14182 dynamic_linker='Win32 ld.exe'
14183 # FIXME: first we should search . and the directory the executable is in
14184 shlibpath_var=PATH
14185 ;;
14186
14187 darwin* | rhapsody*)
14188 dynamic_linker="$host_os dyld"
14189 version_type=darwin
14190 need_lib_prefix=no
14191 need_version=no
14192 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14193 soname_spec='${libname}${release}${major}$shared_ext'
14194 shlibpath_overrides_runpath=yes
14195 shlibpath_var=DYLD_LIBRARY_PATH
14196 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14197
14198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14199 ;;
14200
14201 dgux*)
14202 version_type=linux
14203 need_lib_prefix=no
14204 need_version=no
14205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14206 soname_spec='${libname}${release}${shared_ext}$major'
14207 shlibpath_var=LD_LIBRARY_PATH
14208 ;;
14209
14210 freebsd* | dragonfly*)
14211 # DragonFly does not have aout. When/if they implement a new
14212 # versioning mechanism, adjust this.
14213 if test -x /usr/bin/objformat; then
14214 objformat=`/usr/bin/objformat`
14215 else
14216 case $host_os in
14217 freebsd[23].*) objformat=aout ;;
14218 *) objformat=elf ;;
14219 esac
14220 fi
14221 version_type=freebsd-$objformat
14222 case $version_type in
14223 freebsd-elf*)
14224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14225 need_version=no
14226 need_lib_prefix=no
14227 ;;
14228 freebsd-*)
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14230 need_version=yes
14231 ;;
14232 esac
14233 shlibpath_var=LD_LIBRARY_PATH
14234 case $host_os in
14235 freebsd2.*)
14236 shlibpath_overrides_runpath=yes
14237 ;;
14238 freebsd3.[01]* | freebsdelf3.[01]*)
14239 shlibpath_overrides_runpath=yes
14240 hardcode_into_libs=yes
14241 ;;
14242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14244 shlibpath_overrides_runpath=no
14245 hardcode_into_libs=yes
14246 ;;
14247 *) # from 4.6 on, and DragonFly
14248 shlibpath_overrides_runpath=yes
14249 hardcode_into_libs=yes
14250 ;;
14251 esac
14252 ;;
14253
14254 haiku*)
14255 version_type=linux
14256 need_lib_prefix=no
14257 need_version=no
14258 dynamic_linker="$host_os runtime_loader"
14259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14260 soname_spec='${libname}${release}${shared_ext}$major'
14261 shlibpath_var=LIBRARY_PATH
14262 shlibpath_overrides_runpath=yes
14263 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14264 hardcode_into_libs=yes
14265 ;;
14266
14267 hpux9* | hpux10* | hpux11*)
14268 # Give a soname corresponding to the major version so that dld.sl refuses to
14269 # link against other versions.
14270 version_type=sunos
14271 need_lib_prefix=no
14272 need_version=no
14273 case $host_cpu in
14274 ia64*)
14275 shrext_cmds='.so'
14276 hardcode_into_libs=yes
14277 dynamic_linker="$host_os dld.so"
14278 shlibpath_var=LD_LIBRARY_PATH
14279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14281 soname_spec='${libname}${release}${shared_ext}$major'
14282 if test "X$HPUX_IA64_MODE" = X32; then
14283 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14284 else
14285 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14286 fi
14287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14288 ;;
14289 hppa*64*)
14290 shrext_cmds='.sl'
14291 hardcode_into_libs=yes
14292 dynamic_linker="$host_os dld.sl"
14293 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14296 soname_spec='${libname}${release}${shared_ext}$major'
14297 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14299 ;;
14300 *)
14301 shrext_cmds='.sl'
14302 dynamic_linker="$host_os dld.sl"
14303 shlibpath_var=SHLIB_PATH
14304 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306 soname_spec='${libname}${release}${shared_ext}$major'
14307 ;;
14308 esac
14309 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14310 postinstall_cmds='chmod 555 $lib'
14311 # or fails outright, so override atomically:
14312 install_override_mode=555
14313 ;;
14314
14315 interix[3-9]*)
14316 version_type=linux
14317 need_lib_prefix=no
14318 need_version=no
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14320 soname_spec='${libname}${release}${shared_ext}$major'
14321 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14322 shlibpath_var=LD_LIBRARY_PATH
14323 shlibpath_overrides_runpath=no
14324 hardcode_into_libs=yes
14325 ;;
14326
14327 irix5* | irix6* | nonstopux*)
14328 case $host_os in
14329 nonstopux*) version_type=nonstopux ;;
14330 *)
14331 if test "$lt_cv_prog_gnu_ld" = yes; then
14332 version_type=linux
14333 else
14334 version_type=irix
14335 fi ;;
14336 esac
14337 need_lib_prefix=no
14338 need_version=no
14339 soname_spec='${libname}${release}${shared_ext}$major'
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14341 case $host_os in
14342 irix5* | nonstopux*)
14343 libsuff= shlibsuff=
14344 ;;
14345 *)
14346 case $LD in # libtool.m4 will add one of these switches to LD
14347 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14348 libsuff= shlibsuff= libmagic=32-bit;;
14349 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14350 libsuff=32 shlibsuff=N32 libmagic=N32;;
14351 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14352 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14353 *) libsuff= shlibsuff= libmagic=never-match;;
14354 esac
14355 ;;
14356 esac
14357 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14358 shlibpath_overrides_runpath=no
14359 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14360 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14361 hardcode_into_libs=yes
14362 ;;
14363
14364 # No shared lib support for Linux oldld, aout, or coff.
14365 linux*oldld* | linux*aout* | linux*coff*)
14366 dynamic_linker=no
14367 ;;
14368
14369 # This must be Linux ELF.
14370
14371 # uclinux* changes (here and below) have been submitted to the libtool
14372 # project, but have not yet been accepted: they are GCC-local changes
14373 # for the time being. (See
14374 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14375 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14376 version_type=linux
14377 need_lib_prefix=no
14378 need_version=no
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380 soname_spec='${libname}${release}${shared_ext}$major'
14381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14382 shlibpath_var=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath=no
14384
14385 # Some binutils ld are patched to set DT_RUNPATH
14386 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 lt_cv_shlibpath_overrides_runpath=no
14390 save_LDFLAGS=$LDFLAGS
14391 save_libdir=$libdir
14392 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14393 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14394 cat > conftest.$ac_ext <<_ACEOF
14395 program main
14396
14397 end
14398 _ACEOF
14399 if ac_fn_fc_try_link "$LINENO"; then :
14400 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14401 lt_cv_shlibpath_overrides_runpath=yes
14402 fi
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LDFLAGS=$save_LDFLAGS
14407 libdir=$save_libdir
14408
14409 fi
14410
14411 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14412
14413 # This implies no fast_install, which is unacceptable.
14414 # Some rework will be needed to allow for fast_install
14415 # before this can be enabled.
14416 hardcode_into_libs=yes
14417
14418 # Append ld.so.conf contents to the search path
14419 if test -f /etc/ld.so.conf; then
14420 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14422 fi
14423
14424 # We used to test for /lib/ld.so.1 and disable shared libraries on
14425 # powerpc, because MkLinux only supported shared libraries with the
14426 # GNU dynamic linker. Since this was broken with cross compilers,
14427 # most powerpc-linux boxes support dynamic linking these days and
14428 # people can always --disable-shared, the test was removed, and we
14429 # assume the GNU/Linux dynamic linker is in use.
14430 dynamic_linker='GNU/Linux ld.so'
14431 ;;
14432
14433 netbsd*)
14434 version_type=sunos
14435 need_lib_prefix=no
14436 need_version=no
14437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14440 dynamic_linker='NetBSD (a.out) ld.so'
14441 else
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 dynamic_linker='NetBSD ld.elf_so'
14445 fi
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=yes
14448 hardcode_into_libs=yes
14449 ;;
14450
14451 newsos6)
14452 version_type=linux
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 shlibpath_overrides_runpath=yes
14456 ;;
14457
14458 *nto* | *qnx*)
14459 version_type=qnx
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath=no
14466 hardcode_into_libs=yes
14467 dynamic_linker='ldqnx.so'
14468 ;;
14469
14470 openbsd*)
14471 version_type=sunos
14472 sys_lib_dlsearch_path_spec="/usr/lib"
14473 need_lib_prefix=no
14474 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14475 case $host_os in
14476 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14477 *) need_version=no ;;
14478 esac
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14483 case $host_os in
14484 openbsd2.[89] | openbsd2.[89].*)
14485 shlibpath_overrides_runpath=no
14486 ;;
14487 *)
14488 shlibpath_overrides_runpath=yes
14489 ;;
14490 esac
14491 else
14492 shlibpath_overrides_runpath=yes
14493 fi
14494 ;;
14495
14496 os2*)
14497 libname_spec='$name'
14498 shrext_cmds=".dll"
14499 need_lib_prefix=no
14500 library_names_spec='$libname${shared_ext} $libname.a'
14501 dynamic_linker='OS/2 ld.exe'
14502 shlibpath_var=LIBPATH
14503 ;;
14504
14505 osf3* | osf4* | osf5*)
14506 version_type=osf
14507 need_lib_prefix=no
14508 need_version=no
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14513 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14514 ;;
14515
14516 rdos*)
14517 dynamic_linker=no
14518 ;;
14519
14520 solaris*)
14521 version_type=linux
14522 need_lib_prefix=no
14523 need_version=no
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 shlibpath_var=LD_LIBRARY_PATH
14527 shlibpath_overrides_runpath=yes
14528 hardcode_into_libs=yes
14529 # ldd complains unless libraries are executable
14530 postinstall_cmds='chmod +x $lib'
14531 ;;
14532
14533 sunos4*)
14534 version_type=sunos
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14536 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14537 shlibpath_var=LD_LIBRARY_PATH
14538 shlibpath_overrides_runpath=yes
14539 if test "$with_gnu_ld" = yes; then
14540 need_lib_prefix=no
14541 fi
14542 need_version=yes
14543 ;;
14544
14545 sysv4 | sysv4.3*)
14546 version_type=linux
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 case $host_vendor in
14551 sni)
14552 shlibpath_overrides_runpath=no
14553 need_lib_prefix=no
14554 runpath_var=LD_RUN_PATH
14555 ;;
14556 siemens)
14557 need_lib_prefix=no
14558 ;;
14559 motorola)
14560 need_lib_prefix=no
14561 need_version=no
14562 shlibpath_overrides_runpath=no
14563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14564 ;;
14565 esac
14566 ;;
14567
14568 sysv4*MP*)
14569 if test -d /usr/nec ;then
14570 version_type=linux
14571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14572 soname_spec='$libname${shared_ext}.$major'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 fi
14575 ;;
14576
14577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14578 version_type=freebsd-elf
14579 need_lib_prefix=no
14580 need_version=no
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath=yes
14585 hardcode_into_libs=yes
14586 if test "$with_gnu_ld" = yes; then
14587 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14588 else
14589 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14590 case $host_os in
14591 sco3.2v5*)
14592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14593 ;;
14594 esac
14595 fi
14596 sys_lib_dlsearch_path_spec='/usr/lib'
14597 ;;
14598
14599 tpf*)
14600 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14601 version_type=linux
14602 need_lib_prefix=no
14603 need_version=no
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=no
14607 hardcode_into_libs=yes
14608 ;;
14609
14610 uts4*)
14611 version_type=linux
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613 soname_spec='${libname}${release}${shared_ext}$major'
14614 shlibpath_var=LD_LIBRARY_PATH
14615 ;;
14616
14617 # Shared libraries for VwWorks, >= 7 only at this stage
14618 # and (fpic) still incompatible with "large" code models
14619 # in a few configurations. Only for RTP mode in any case,
14620 # and upon explicit request at configure time.
14621 vxworks7*)
14622 dynamic_linker=no
14623 case ${with_multisubdir}-${enable_shared} in
14624 *large*)
14625 ;;
14626 *mrtp*-yes)
14627 version_type=linux
14628 need_lib_prefix=no
14629 need_version=no
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 dynamic_linker="$host_os module_loader"
14633 ;;
14634 esac
14635 ;;
14636 *)
14637 dynamic_linker=no
14638 ;;
14639 esac
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14641 $as_echo "$dynamic_linker" >&6; }
14642 test "$dynamic_linker" = no && can_build_shared=no
14643
14644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14645 if test "$GCC" = yes; then
14646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14647 fi
14648
14649 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14650 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14651 fi
14652 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14653 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14654 fi
14655
14656
14657
14658
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14695 hardcode_action_FC=
14696 if test -n "$hardcode_libdir_flag_spec_FC" ||
14697 test -n "$runpath_var_FC" ||
14698 test "X$hardcode_automatic_FC" = "Xyes" ; then
14699
14700 # We can hardcode non-existent directories.
14701 if test "$hardcode_direct_FC" != no &&
14702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14703 # have to relink, otherwise we might link with an installed library
14704 # when we should be linking with a yet-to-be-installed one
14705 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14706 test "$hardcode_minus_L_FC" != no; then
14707 # Linking always hardcodes the temporary library directory.
14708 hardcode_action_FC=relink
14709 else
14710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14711 hardcode_action_FC=immediate
14712 fi
14713 else
14714 # We cannot hardcode anything, or else we can only hardcode existing
14715 # directories.
14716 hardcode_action_FC=unsupported
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14719 $as_echo "$hardcode_action_FC" >&6; }
14720
14721 if test "$hardcode_action_FC" = relink ||
14722 test "$inherit_rpath_FC" = yes; then
14723 # Fast installation is not supported
14724 enable_fast_install=no
14725 elif test "$shlibpath_overrides_runpath" = yes ||
14726 test "$enable_shared" = no; then
14727 # Fast installation is not necessary
14728 enable_fast_install=needless
14729 fi
14730
14731
14732
14733
14734
14735
14736
14737 fi # test -n "$compiler"
14738
14739 GCC=$lt_save_GCC
14740 CC="$lt_save_CC"
14741 fi # test "$_lt_disable_FC" != yes
14742
14743 ac_ext=c
14744 ac_cpp='$CPP $CPPFLAGS'
14745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14748
14749
14750 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14751
14752 # For libtool versioning info, format is CURRENT:REVISION:AGE
14753 libtool_VERSION=1:0:0
14754
14755
14756 # Check header files.
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14758 $as_echo_n "checking for ANSI C header files... " >&6; }
14759 if ${ac_cv_header_stdc+:} false; then :
14760 $as_echo_n "(cached) " >&6
14761 else
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 #include <stdlib.h>
14765 #include <stdarg.h>
14766 #include <string.h>
14767 #include <float.h>
14768
14769 int
14770 main ()
14771 {
14772
14773 ;
14774 return 0;
14775 }
14776 _ACEOF
14777 if ac_fn_c_try_compile "$LINENO"; then :
14778 ac_cv_header_stdc=yes
14779 else
14780 ac_cv_header_stdc=no
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783
14784 if test $ac_cv_header_stdc = yes; then
14785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 #include <string.h>
14789
14790 _ACEOF
14791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14792 $EGREP "memchr" >/dev/null 2>&1; then :
14793
14794 else
14795 ac_cv_header_stdc=no
14796 fi
14797 rm -f conftest*
14798
14799 fi
14800
14801 if test $ac_cv_header_stdc = yes; then
14802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <stdlib.h>
14806
14807 _ACEOF
14808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14809 $EGREP "free" >/dev/null 2>&1; then :
14810
14811 else
14812 ac_cv_header_stdc=no
14813 fi
14814 rm -f conftest*
14815
14816 fi
14817
14818 if test $ac_cv_header_stdc = yes; then
14819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14820 if test "$cross_compiling" = yes; then :
14821 :
14822 else
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 #include <ctype.h>
14826 #include <stdlib.h>
14827 #if ((' ' & 0x0FF) == 0x020)
14828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14830 #else
14831 # define ISLOWER(c) \
14832 (('a' <= (c) && (c) <= 'i') \
14833 || ('j' <= (c) && (c) <= 'r') \
14834 || ('s' <= (c) && (c) <= 'z'))
14835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14836 #endif
14837
14838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14839 int
14840 main ()
14841 {
14842 int i;
14843 for (i = 0; i < 256; i++)
14844 if (XOR (islower (i), ISLOWER (i))
14845 || toupper (i) != TOUPPER (i))
14846 return 2;
14847 return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_c_try_run "$LINENO"; then :
14851
14852 else
14853 ac_cv_header_stdc=no
14854 fi
14855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14856 conftest.$ac_objext conftest.beam conftest.$ac_ext
14857 fi
14858
14859 fi
14860 fi
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14862 $as_echo "$ac_cv_header_stdc" >&6; }
14863 if test $ac_cv_header_stdc = yes; then
14864
14865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14866
14867 fi
14868
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14870 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14871 if ${ac_cv_header_time+:} false; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876 #include <sys/types.h>
14877 #include <sys/time.h>
14878 #include <time.h>
14879
14880 int
14881 main ()
14882 {
14883 if ((struct tm *) 0)
14884 return 0;
14885 ;
14886 return 0;
14887 }
14888 _ACEOF
14889 if ac_fn_c_try_compile "$LINENO"; then :
14890 ac_cv_header_time=yes
14891 else
14892 ac_cv_header_time=no
14893 fi
14894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14895 fi
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14897 $as_echo "$ac_cv_header_time" >&6; }
14898 if test $ac_cv_header_time = yes; then
14899
14900 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14901
14902 fi
14903
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14905 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14906 if ${gcc_cv_header_string+:} false; then :
14907 $as_echo_n "(cached) " >&6
14908 else
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911 #include <string.h>
14912 #include <strings.h>
14913 int
14914 main ()
14915 {
14916
14917 ;
14918 return 0;
14919 }
14920 _ACEOF
14921 if ac_fn_c_try_compile "$LINENO"; then :
14922 gcc_cv_header_string=yes
14923 else
14924 gcc_cv_header_string=no
14925 fi
14926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927 fi
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14929 $as_echo "$gcc_cv_header_string" >&6; }
14930 if test $gcc_cv_header_string = yes; then
14931
14932 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14933
14934 fi
14935
14936 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14937 do :
14938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14941 cat >>confdefs.h <<_ACEOF
14942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14943 _ACEOF
14944
14945 fi
14946
14947 done
14948
14949
14950 XPCFLAGS=""
14951 case "$host" in
14952 *-*-rtems*)
14953 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14954 ;;
14955 nvptx*-*-* | amdgcn*-*-*)
14956 # NVPTX does not support Pthreads, has its own code replacement.
14957 libgomp_use_pthreads=no
14958 # NVPTX is an accelerator-only target
14959 libgomp_offloaded_only=yes
14960 ;;
14961 *)
14962 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14963 # In case the pthread.h system header is not found, this test will fail.
14964 CFLAGS="$CFLAGS -pthread"
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 #include <pthread.h>
14968 void *g(void *d) { return NULL; }
14969 int
14970 main ()
14971 {
14972 pthread_t t; pthread_create(&t,NULL,g,NULL);
14973 ;
14974 return 0;
14975 }
14976 _ACEOF
14977 if ac_fn_c_try_link "$LINENO"; then :
14978 XPCFLAGS=" -Wc,-pthread"
14979 else
14980 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982 /* end confdefs.h. */
14983 #include <pthread.h>
14984 void *g(void *d) { return NULL; }
14985 int
14986 main ()
14987 {
14988 pthread_t t; pthread_create(&t,NULL,g,NULL);
14989 ;
14990 return 0;
14991 }
14992 _ACEOF
14993 if ac_fn_c_try_link "$LINENO"; then :
14994
14995 else
14996 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext \
14999 conftest$ac_exeext conftest.$ac_ext
15000 fi
15001 rm -f core conftest.err conftest.$ac_objext \
15002 conftest$ac_exeext conftest.$ac_ext
15003 esac
15004
15005 if test x$libgomp_use_pthreads != xno; then
15006
15007 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15008
15009 fi
15010
15011 if test x$libgomp_offloaded_only = xyes; then
15012
15013 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15014
15015 fi
15016
15017 if test "x$enable_offload_defaulted" = xyes; then
15018
15019 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
15020
15021 fi
15022
15023 # The cast to long int works around a bug in the HP C Compiler
15024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15026 # This bug is HP SR number 8606223364.
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15028 $as_echo_n "checking size of void *... " >&6; }
15029 if ${ac_cv_sizeof_void_p+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15033
15034 else
15035 if test "$ac_cv_type_void_p" = yes; then
15036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15038 as_fn_error 77 "cannot compute sizeof (void *)
15039 See \`config.log' for more details" "$LINENO" 5; }
15040 else
15041 ac_cv_sizeof_void_p=0
15042 fi
15043 fi
15044
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15047 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15048
15049
15050
15051 cat >>confdefs.h <<_ACEOF
15052 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15053 _ACEOF
15054
15055
15056
15057 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15058 #
15059 # Copyright (C) 2014-2023 Free Software Foundation, Inc.
15060 #
15061 # Contributed by Mentor Embedded.
15062 #
15063 # This file is part of the GNU Offloading and Multi Processing Library
15064 # (libgomp).
15065 #
15066 # Libgomp is free software; you can redistribute it and/or modify it
15067 # under the terms of the GNU General Public License as published by
15068 # the Free Software Foundation; either version 3, or (at your option)
15069 # any later version.
15070 #
15071 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15072 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15073 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15074 # more details.
15075 #
15076 # Under Section 7 of GPL version 3, you are granted additional
15077 # permissions described in the GCC Runtime Library Exception, version
15078 # 3.1, as published by the Free Software Foundation.
15079 #
15080 # You should have received a copy of the GNU General Public License and
15081 # a copy of the GCC Runtime Library Exception along with this program;
15082 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15083 # <http://www.gnu.org/licenses/>.
15084
15085 plugin_support=yes
15086 DL_LIBS=
15087
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15089 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15090 if ${ac_cv_lib_dl_dlsym+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 ac_check_lib_save_LIBS=$LIBS
15094 LIBS="-ldl $LIBS"
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096 /* end confdefs.h. */
15097
15098 /* Override any GCC internal prototype to avoid an error.
15099 Use char because int might match the return type of a GCC
15100 builtin and then its argument prototype would still apply. */
15101 #ifdef __cplusplus
15102 extern "C"
15103 #endif
15104 char dlsym ();
15105 int
15106 main ()
15107 {
15108 return dlsym ();
15109 ;
15110 return 0;
15111 }
15112 _ACEOF
15113 if ac_fn_c_try_link "$LINENO"; then :
15114 ac_cv_lib_dl_dlsym=yes
15115 else
15116 ac_cv_lib_dl_dlsym=no
15117 fi
15118 rm -f core conftest.err conftest.$ac_objext \
15119 conftest$ac_exeext conftest.$ac_ext
15120 LIBS=$ac_check_lib_save_LIBS
15121 fi
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15123 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15124 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15125 DL_LIBS=-ldl
15126 else
15127 plugin_support=no
15128 fi
15129
15130 if test x"$plugin_support" = xyes; then
15131
15132 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15133
15134 elif test "x${enable_offload_targets-no}" != xno; then
15135 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15136 fi
15137
15138
15139
15140 for ac_header in $ac_header_list
15141 do :
15142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15143 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15144 "
15145 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15146 cat >>confdefs.h <<_ACEOF
15147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15148 _ACEOF
15149
15150 fi
15151
15152 done
15153
15154
15155
15156
15157
15158
15159
15160 for ac_func in $ac_func_list
15161 do :
15162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15164 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15165 cat >>confdefs.h <<_ACEOF
15166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15167 _ACEOF
15168
15169 fi
15170 done
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187 PLUGIN_NVPTX=0
15188 PLUGIN_GCN=0
15189 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15190 # plugins, and configure to find the corresponding offload compilers.
15191 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15192 offload_plugins=
15193 offload_targets=
15194
15195
15196 offload_additional_options=
15197 offload_additional_lib_paths=
15198
15199
15200 if test x"$enable_offload_targets" != x; then
15201 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15202 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15203 tgt=`echo $tgt | sed 's/=.*//'`
15204 tgt_plugin=
15205 case $tgt in
15206 nvptx*)
15207 case "${target}" in
15208 aarch64*-*-* | powerpc64le-*-* | x86_64-*-*)
15209 case "$ac_cv_sizeof_void_p" in
15210 4)
15211 # PR libgomp/65099: Currently, we only support offloading in
15212 # 64-bit configurations.
15213 PLUGIN_NVPTX=0
15214 ;;
15215 *)
15216 tgt_plugin=nvptx
15217 PLUGIN_NVPTX=1
15218 ;;
15219 esac
15220 ;;
15221 *-*-*)
15222 # Target architecture not supported.
15223 PLUGIN_NVPTX=0
15224 ;;
15225 esac
15226 ;;
15227 amdgcn*)
15228 case "${target}" in
15229 x86_64-*-*)
15230 case "$ac_cv_sizeof_void_p" in
15231 4)
15232 PLUGIN_GCN=0
15233 ;;
15234 *)
15235 tgt_plugin=gcn
15236 PLUGIN_GCN=1
15237 ;;
15238 esac
15239 ;;
15240 *-*-*)
15241 PLUGIN_GCN=0
15242 ;;
15243 esac
15244 ;;
15245 *)
15246 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15247 ;;
15248 esac
15249 if test x"$tgt_plugin" = x; then
15250 # Not configuring libgomp for this offload target if we're not building
15251 # the corresponding offload plugin.
15252 continue
15253 elif test x"$offload_plugins" = x; then
15254 offload_plugins=$tgt_plugin
15255 offload_targets=$tgt
15256 else
15257 offload_plugins=$offload_plugins,$tgt_plugin
15258 offload_targets=$offload_targets,$tgt
15259 fi
15260 # Configure additional search paths.
15261 if test x"$tgt_dir" != x; then
15262 offload_additional_options="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15263 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15264 else
15265 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15266 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15267 fi
15268 done
15269 fi
15270
15271 cat >>confdefs.h <<_ACEOF
15272 #define OFFLOAD_PLUGINS "$offload_plugins"
15273 _ACEOF
15274
15275 if test $PLUGIN_NVPTX = 1; then
15276 PLUGIN_NVPTX_TRUE=
15277 PLUGIN_NVPTX_FALSE='#'
15278 else
15279 PLUGIN_NVPTX_TRUE='#'
15280 PLUGIN_NVPTX_FALSE=
15281 fi
15282
15283 if test $PLUGIN_GCN = 1; then
15284 PLUGIN_GCN_TRUE=
15285 PLUGIN_GCN_FALSE='#'
15286 else
15287 PLUGIN_GCN_TRUE='#'
15288 PLUGIN_GCN_FALSE=
15289 fi
15290
15291
15292
15293 # Check for functions needed.
15294 for ac_func in getloadavg clock_gettime strtoull
15295 do :
15296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15297 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15298 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15299 cat >>confdefs.h <<_ACEOF
15300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15301 _ACEOF
15302
15303 fi
15304 done
15305
15306 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15307 do :
15308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15309 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15310 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15311 cat >>confdefs.h <<_ACEOF
15312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15313 _ACEOF
15314
15315 fi
15316 done
15317
15318
15319 # Check for broken semaphore implementation on darwin.
15320 # sem_init returns: sem_init error: Function not implemented.
15321 case "$host" in
15322 *-darwin*)
15323
15324 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15325
15326 ;;
15327 esac
15328
15329 # RTEMS specific checks
15330 case "$host" in
15331 *-*-rtems*)
15332 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15333 "
15334 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15335
15336 cat >>confdefs.h <<_ACEOF
15337 #define HAVE_STRUCT__MUTEX_CONTROL 1
15338 _ACEOF
15339
15340
15341 fi
15342
15343 ;;
15344 esac
15345
15346 # Check whether --enable-linux-futex was given.
15347 if test "${enable_linux_futex+set}" = set; then :
15348 enableval=$enable_linux_futex;
15349 case "$enableval" in
15350 yes|no|default) ;;
15351 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15352 esac
15353
15354 else
15355 enable_linux_futex=default
15356 fi
15357
15358
15359 case "$target" in
15360 *-linux* | *-uclinux*)
15361 case "$enable_linux_futex" in
15362 default)
15363 # If headers don't have gettid/futex syscalls definition, then
15364 # default to no, otherwise there will be compile time failures.
15365 # Otherwise, default to yes. If we don't detect we are
15366 # compiled/linked against NPTL and not cross-compiling, check
15367 # if programs are run by default against NPTL and if not, issue
15368 # a warning.
15369 enable_linux_futex=no
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 #include <sys/syscall.h>
15373 #include <unistd.h>
15374 int lk;
15375 int
15376 main ()
15377 {
15378 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15379 ;
15380 return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_c_try_link "$LINENO"; then :
15384 save_LIBS="$LIBS"
15385 LIBS="-lpthread $LIBS"
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388 #ifndef _GNU_SOURCE
15389 #define _GNU_SOURCE 1
15390 #endif
15391 #include <pthread.h>
15392 pthread_t th; void *status;
15393 int
15394 main ()
15395 {
15396 pthread_tryjoin_np (th, &status);
15397 ;
15398 return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"; then :
15402 enable_linux_futex=yes
15403 else
15404 if test x$cross_compiling = xno; then
15405 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15406 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15408 If so, please configure with --disable-linux-futex" >&5
15409 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15410 If so, please configure with --disable-linux-futex" >&2;}
15411 fi
15412 fi
15413 enable_linux_futex=yes
15414 fi
15415 rm -f core conftest.err conftest.$ac_objext \
15416 conftest$ac_exeext conftest.$ac_ext
15417 LIBS="$save_LIBS"
15418 fi
15419 rm -f core conftest.err conftest.$ac_objext \
15420 conftest$ac_exeext conftest.$ac_ext
15421 ;;
15422 yes)
15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h. */
15425 #include <sys/syscall.h>
15426 #include <unistd.h>
15427 int lk;
15428 int
15429 main ()
15430 {
15431 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15432 ;
15433 return 0;
15434 }
15435 _ACEOF
15436 if ac_fn_c_try_link "$LINENO"; then :
15437
15438 else
15439 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15440 fi
15441 rm -f core conftest.err conftest.$ac_objext \
15442 conftest$ac_exeext conftest.$ac_ext
15443 ;;
15444 esac
15445 ;;
15446 *)
15447 enable_linux_futex=no
15448 ;;
15449 esac
15450 if test x$enable_linux_futex = xyes; then
15451 :
15452 fi
15453
15454
15455 # Check for pthread_{,attr_}[sg]etaffinity_np.
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 #define _GNU_SOURCE
15459 #include <pthread.h>
15460 int
15461 main ()
15462 {
15463 cpu_set_t cpuset;
15464 pthread_attr_t attr;
15465 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15466 if (CPU_ISSET (0, &cpuset))
15467 CPU_SET (1, &cpuset);
15468 else
15469 CPU_ZERO (&cpuset);
15470 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15471 pthread_attr_init (&attr);
15472 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15473 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15474 ;
15475 return 0;
15476 }
15477 _ACEOF
15478 if ac_fn_c_try_link "$LINENO"; then :
15479
15480 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15481
15482 fi
15483 rm -f core conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485
15486 # At least for glibc, clock_gettime is in librt. But don't pull that
15487 # in if it still doesn't give us the function we want.
15488 if test $ac_cv_func_clock_gettime = no; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15490 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15491 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 ac_check_lib_save_LIBS=$LIBS
15495 LIBS="-lrt $LIBS"
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498
15499 /* Override any GCC internal prototype to avoid an error.
15500 Use char because int might match the return type of a GCC
15501 builtin and then its argument prototype would still apply. */
15502 #ifdef __cplusplus
15503 extern "C"
15504 #endif
15505 char clock_gettime ();
15506 int
15507 main ()
15508 {
15509 return clock_gettime ();
15510 ;
15511 return 0;
15512 }
15513 _ACEOF
15514 if ac_fn_c_try_link "$LINENO"; then :
15515 ac_cv_lib_rt_clock_gettime=yes
15516 else
15517 ac_cv_lib_rt_clock_gettime=no
15518 fi
15519 rm -f core conftest.err conftest.$ac_objext \
15520 conftest$ac_exeext conftest.$ac_ext
15521 LIBS=$ac_check_lib_save_LIBS
15522 fi
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15524 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15525 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15526 LIBS="-lrt $LIBS"
15527
15528 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15529
15530 fi
15531
15532 fi
15533
15534 # Check for uname.
15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15537 #include <string.h>
15538 #include <stdlib.h>
15539 #include <sys/utsname.h>
15540 int
15541 main ()
15542 {
15543 struct utsname buf;
15544 volatile size_t len = 0;
15545 if (!uname (buf))
15546 len = strlen (buf.nodename);
15547 ;
15548 return 0;
15549 }
15550 _ACEOF
15551 if ac_fn_c_try_compile "$LINENO"; then :
15552
15553 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15554
15555 fi
15556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557
15558 # Check for gethostname.
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15561 #include <unistd.h>
15562 int
15563 main ()
15564 {
15565
15566 char buf[256];
15567 if (gethostname (buf, sizeof (buf) - 1) == 0)
15568 buf[255] = '\0';
15569
15570 ;
15571 return 0;
15572 }
15573 _ACEOF
15574 if ac_fn_c_try_compile "$LINENO"; then :
15575
15576 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15577
15578 fi
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580
15581 # Check for getpid.
15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h. */
15584 #include <unistd.h>
15585 int
15586 main ()
15587 {
15588 int pid = getpid ();
15589 ;
15590 return 0;
15591 }
15592 _ACEOF
15593 if ac_fn_c_try_compile "$LINENO"; then :
15594
15595 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15596
15597 fi
15598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15599
15600 # See if we support thread-local storage.
15601
15602
15603 # Check whether --enable-tls was given.
15604 if test "${enable_tls+set}" = set; then :
15605 enableval=$enable_tls;
15606 case "$enableval" in
15607 yes|no) ;;
15608 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15609 esac
15610
15611 else
15612 enable_tls=yes
15613 fi
15614
15615
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15617 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15618 if ${gcc_cv_have_tls+:} false; then :
15619 $as_echo_n "(cached) " >&6
15620 else
15621
15622 if test "$cross_compiling" = yes; then :
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 __thread int a; int b; int main() { return a = b; }
15626 _ACEOF
15627 if ac_fn_c_try_link "$LINENO"; then :
15628 chktls_save_LDFLAGS="$LDFLAGS"
15629 case $host in
15630 *-*-linux* | -*-uclinuxfdpic*)
15631 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15632 ;;
15633 esac
15634 chktls_save_CFLAGS="$CFLAGS"
15635 CFLAGS="-fPIC $CFLAGS"
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 int f() { return 0; }
15639 _ACEOF
15640 if ac_fn_c_try_link "$LINENO"; then :
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 __thread int a; int b; int f() { return a = b; }
15644 _ACEOF
15645 if ac_fn_c_try_link "$LINENO"; then :
15646 gcc_cv_have_tls=yes
15647 else
15648 gcc_cv_have_tls=no
15649 fi
15650 rm -f core conftest.err conftest.$ac_objext \
15651 conftest$ac_exeext conftest.$ac_ext
15652 else
15653 gcc_cv_have_tls=yes
15654 fi
15655 rm -f core conftest.err conftest.$ac_objext \
15656 conftest$ac_exeext conftest.$ac_ext
15657 CFLAGS="$chktls_save_CFLAGS"
15658 LDFLAGS="$chktls_save_LDFLAGS"
15659 else
15660 gcc_cv_have_tls=no
15661 fi
15662 rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664
15665
15666 else
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15669 __thread int a; int b; int main() { return a = b; }
15670 _ACEOF
15671 if ac_fn_c_try_run "$LINENO"; then :
15672 chktls_save_LDFLAGS="$LDFLAGS"
15673 LDFLAGS="-static $LDFLAGS"
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 int main() { return 0; }
15677 _ACEOF
15678 if ac_fn_c_try_link "$LINENO"; then :
15679 if test "$cross_compiling" = yes; then :
15680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15682 as_fn_error $? "cannot run test program while cross compiling
15683 See \`config.log' for more details" "$LINENO" 5; }
15684 else
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 __thread int a; int b; int main() { return a = b; }
15688 _ACEOF
15689 if ac_fn_c_try_run "$LINENO"; then :
15690 gcc_cv_have_tls=yes
15691 else
15692 gcc_cv_have_tls=no
15693 fi
15694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15695 conftest.$ac_objext conftest.beam conftest.$ac_ext
15696 fi
15697
15698 else
15699 gcc_cv_have_tls=yes
15700 fi
15701 rm -f core conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15703 LDFLAGS="$chktls_save_LDFLAGS"
15704 if test $gcc_cv_have_tls = yes; then
15705 chktls_save_CFLAGS="$CFLAGS"
15706 thread_CFLAGS=failed
15707 for flag in '' '-pthread' '-lpthread'; do
15708 CFLAGS="$flag $chktls_save_CFLAGS"
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711 #include <pthread.h>
15712 void *g(void *d) { return NULL; }
15713 int
15714 main ()
15715 {
15716 pthread_t t; pthread_create(&t,NULL,g,NULL);
15717 ;
15718 return 0;
15719 }
15720 _ACEOF
15721 if ac_fn_c_try_link "$LINENO"; then :
15722 thread_CFLAGS="$flag"
15723 fi
15724 rm -f core conftest.err conftest.$ac_objext \
15725 conftest$ac_exeext conftest.$ac_ext
15726 if test "X$thread_CFLAGS" != Xfailed; then
15727 break
15728 fi
15729 done
15730 CFLAGS="$chktls_save_CFLAGS"
15731 if test "X$thread_CFLAGS" != Xfailed; then
15732 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15733 if test "$cross_compiling" = yes; then :
15734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15736 as_fn_error $? "cannot run test program while cross compiling
15737 See \`config.log' for more details" "$LINENO" 5; }
15738 else
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 #include <pthread.h>
15742 __thread int a;
15743 static int *volatile a_in_other_thread;
15744 static void *
15745 thread_func (void *arg)
15746 {
15747 a_in_other_thread = &a;
15748 return (void *)0;
15749 }
15750 int
15751 main ()
15752 {
15753 pthread_t thread;
15754 void *thread_retval;
15755 int *volatile a_in_main_thread;
15756 a_in_main_thread = &a;
15757 if (pthread_create (&thread, (pthread_attr_t *)0,
15758 thread_func, (void *)0))
15759 return 0;
15760 if (pthread_join (thread, &thread_retval))
15761 return 0;
15762 return (a_in_other_thread == a_in_main_thread);
15763 ;
15764 return 0;
15765 }
15766 _ACEOF
15767 if ac_fn_c_try_run "$LINENO"; then :
15768 gcc_cv_have_tls=yes
15769 else
15770 gcc_cv_have_tls=no
15771 fi
15772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15773 conftest.$ac_objext conftest.beam conftest.$ac_ext
15774 fi
15775
15776 CFLAGS="$chktls_save_CFLAGS"
15777 fi
15778 fi
15779 else
15780 gcc_cv_have_tls=no
15781 fi
15782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15783 conftest.$ac_objext conftest.beam conftest.$ac_ext
15784 fi
15785
15786 fi
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15788 $as_echo "$gcc_cv_have_tls" >&6; }
15789 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15790
15791 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15792
15793 fi
15794
15795 # See if we have emulated thread-local storage.
15796
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15798 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15799 if ${gcc_cv_use_emutls+:} false; then :
15800 $as_echo_n "(cached) " >&6
15801 else
15802
15803 gcc_cv_use_emutls=no
15804 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15805 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15810 test $ac_status = 0; }; }; then
15811 if grep __emutls_get_address conftest.s > /dev/null; then
15812 gcc_cv_use_emutls=yes
15813 fi
15814 fi
15815 rm -f conftest.*
15816
15817 fi
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15819 $as_echo "$gcc_cv_use_emutls" >&6; }
15820 if test "$gcc_cv_use_emutls" = "yes" ; then
15821
15822 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15823
15824 fi
15825
15826 # See what sort of export controls are available.
15827
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15829 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15830 if ${libgomp_cv_have_attribute_visibility+:} false; then :
15831 $as_echo_n "(cached) " >&6
15832 else
15833
15834 save_CFLAGS="$CFLAGS"
15835 CFLAGS="$CFLAGS -Werror"
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15838 void __attribute__((visibility("hidden"))) foo(void) { }
15839 int
15840 main ()
15841 {
15842
15843 ;
15844 return 0;
15845 }
15846 _ACEOF
15847 if ac_fn_c_try_compile "$LINENO"; then :
15848 libgomp_cv_have_attribute_visibility=yes
15849 else
15850 libgomp_cv_have_attribute_visibility=no
15851 fi
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853 CFLAGS="$save_CFLAGS"
15854 fi
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15856 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15857 if test $libgomp_cv_have_attribute_visibility = yes; then
15858
15859 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15860
15861 fi
15862
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15864 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15865 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868
15869 save_CFLAGS="$CFLAGS"
15870 CFLAGS="$CFLAGS -Werror"
15871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15873 void __attribute__((dllexport)) foo(void) { }
15874 int
15875 main ()
15876 {
15877
15878 ;
15879 return 0;
15880 }
15881 _ACEOF
15882 if ac_fn_c_try_compile "$LINENO"; then :
15883 libgomp_cv_have_attribute_dllexport=yes
15884 else
15885 libgomp_cv_have_attribute_dllexport=no
15886 fi
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888 CFLAGS="$save_CFLAGS"
15889 fi
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15891 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15892 if test $libgomp_cv_have_attribute_dllexport = yes; then
15893
15894 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15895
15896 fi
15897
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15899 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15900 if ${libgomp_cv_have_attribute_alias+:} false; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906
15907 void foo(void) { }
15908 extern void bar(void) __attribute__((alias("foo")));
15909 int
15910 main ()
15911 {
15912 bar();
15913 ;
15914 return 0;
15915 }
15916 _ACEOF
15917 if ac_fn_c_try_link "$LINENO"; then :
15918 libgomp_cv_have_attribute_alias=yes
15919 else
15920 libgomp_cv_have_attribute_alias=no
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext \
15923 conftest$ac_exeext conftest.$ac_ext
15924 fi
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15926 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15927 if test $libgomp_cv_have_attribute_alias = yes; then
15928
15929 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15930
15931 fi
15932
15933
15934 # Check whether --with-gnu-ld was given.
15935 if test "${with_gnu_ld+set}" = set; then :
15936 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15937 else
15938 with_gnu_ld=no
15939 fi
15940
15941 ac_prog=ld
15942 if test "$GCC" = yes; then
15943 # Check if gcc -print-prog-name=ld gives a path.
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15945 $as_echo_n "checking for ld used by $CC... " >&6; }
15946 case $host in
15947 *-*-mingw*)
15948 # gcc leaves a trailing carriage return which upsets mingw
15949 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15950 *)
15951 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15952 esac
15953 case $ac_prog in
15954 # Accept absolute paths.
15955 [\\/]* | ?:[\\/]*)
15956 re_direlt='/[^/][^/]*/\.\./'
15957 # Canonicalize the pathname of ld
15958 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15959 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15960 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15961 done
15962 test -z "$LD" && LD="$ac_prog"
15963 ;;
15964 "")
15965 # If it fails, then pretend we aren't using GCC.
15966 ac_prog=ld
15967 ;;
15968 *)
15969 # If it is relative, then search for the first ld in PATH.
15970 with_gnu_ld=unknown
15971 ;;
15972 esac
15973 elif test "$with_gnu_ld" = yes; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15975 $as_echo_n "checking for GNU ld... " >&6; }
15976 else
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15978 $as_echo_n "checking for non-GNU ld... " >&6; }
15979 fi
15980 if ${lt_cv_path_LD+:} false; then :
15981 $as_echo_n "(cached) " >&6
15982 else
15983 if test -z "$LD"; then
15984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15985 for ac_dir in $PATH; do
15986 IFS="$lt_save_ifs"
15987 test -z "$ac_dir" && ac_dir=.
15988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15989 lt_cv_path_LD="$ac_dir/$ac_prog"
15990 # Check to see if the program is GNU ld. I'd rather use --version,
15991 # but apparently some variants of GNU ld only accept -v.
15992 # Break only if it was the GNU/non-GNU ld that we prefer.
15993 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15994 *GNU* | *'with BFD'*)
15995 test "$with_gnu_ld" != no && break
15996 ;;
15997 *)
15998 test "$with_gnu_ld" != yes && break
15999 ;;
16000 esac
16001 fi
16002 done
16003 IFS="$lt_save_ifs"
16004 else
16005 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16006 fi
16007 fi
16008
16009 LD="$lt_cv_path_LD"
16010 if test -n "$LD"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16012 $as_echo "$LD" >&6; }
16013 else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016 fi
16017 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16019 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16020 if ${lt_cv_prog_gnu_ld+:} false; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16023 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16024 case `$LD -v 2>&1 </dev/null` in
16025 *GNU* | *'with BFD'*)
16026 lt_cv_prog_gnu_ld=yes
16027 ;;
16028 *)
16029 lt_cv_prog_gnu_ld=no
16030 ;;
16031 esac
16032 fi
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16034 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16035 with_gnu_ld=$lt_cv_prog_gnu_ld
16036
16037
16038
16039
16040
16041
16042
16043 # If we're not using GNU ld, then there's no point in even trying these
16044 # tests. Check for that first. We should have already tested for gld
16045 # by now (in libtool), but require it now just to be safe...
16046 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16047 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16048
16049
16050
16051 # The name set by libtool depends on the version of libtool. Shame on us
16052 # for depending on an impl detail, but c'est la vie. Older versions used
16053 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16054 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16055 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16056 # set (hence we're using an older libtool), then set it.
16057 if test x${with_gnu_ld+set} != xset; then
16058 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16059 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16060 with_gnu_ld=no
16061 else
16062 with_gnu_ld=$ac_cv_prog_gnu_ld
16063 fi
16064 fi
16065
16066 # Start by getting the version number. I think the libtool test already
16067 # does some of this, but throws away the result.
16068 libgomp_ld_is_gold=no
16069 libgomp_ld_is_mold=no
16070 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16071 libgomp_ld_is_gold=yes
16072 elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
16073 libgomp_ld_is_mold=yes
16074 fi
16075
16076 ldver=`$LD --version 2>/dev/null |
16077 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16078
16079 libgomp_gnu_ld_version=`echo $ldver | \
16080 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16081
16082 # Set --gc-sections.
16083 if test "$with_gnu_ld" = "notbroken"; then
16084 # GNU ld it is! Joy and bunny rabbits!
16085
16086 # All these tests are for C++; save the language and the compiler flags.
16087 # Need to do this so that g++ won't try to link in libstdc++
16088 ac_test_CFLAGS="${CFLAGS+set}"
16089 ac_save_CFLAGS="$CFLAGS"
16090 CFLAGS='-x c++ -Wl,--gc-sections'
16091
16092 # Check for -Wl,--gc-sections
16093 # XXX This test is broken at the moment, as symbols required for linking
16094 # are now in libsupc++ (not built yet). In addition, this test has
16095 # cored on solaris in the past. In addition, --gc-sections doesn't
16096 # really work at the moment (keeps on discarding used sections, first
16097 # .eh_frame and now some of the glibc sections for iconv).
16098 # Bzzzzt. Thanks for playing, maybe next time.
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16100 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16101 if test "$cross_compiling" = yes; then :
16102 ac_sectionLDflags=yes
16103 else
16104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h. */
16106
16107 int main(void)
16108 {
16109 try { throw 1; }
16110 catch (...) { };
16111 return 0;
16112 }
16113
16114 _ACEOF
16115 if ac_fn_c_try_run "$LINENO"; then :
16116 ac_sectionLDflags=yes
16117 else
16118 ac_sectionLDflags=no
16119 fi
16120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16121 conftest.$ac_objext conftest.beam conftest.$ac_ext
16122 fi
16123
16124 if test "$ac_test_CFLAGS" = set; then
16125 CFLAGS="$ac_save_CFLAGS"
16126 else
16127 # this is the suspicious part
16128 CFLAGS=''
16129 fi
16130 if test "$ac_sectionLDflags" = "yes"; then
16131 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16132 fi
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16134 $as_echo "$ac_sectionLDflags" >&6; }
16135 fi
16136
16137 # Set linker optimization flags.
16138 if test x"$with_gnu_ld" = x"yes"; then
16139 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16140 fi
16141
16142
16143
16144
16145
16146
16147 # Check whether --enable-symvers was given.
16148 if test "${enable_symvers+set}" = set; then :
16149 enableval=$enable_symvers;
16150 case "$enableval" in
16151 yes|no|gnu*|sun) ;;
16152 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16153 esac
16154
16155 else
16156 enable_symvers=yes
16157 fi
16158
16159
16160
16161 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16162 # don't know enough about $LD to do tricks...
16163
16164
16165 # Turn a 'yes' into a suitable default.
16166 if test x$enable_symvers = xyes ; then
16167 # FIXME The following test is too strict, in theory.
16168 if test $enable_shared = no || test "x$LD" = x; then
16169 enable_symvers=no
16170 else
16171 if test $with_gnu_ld = yes ; then
16172 enable_symvers=gnu
16173 else
16174 case ${target_os} in
16175 # Sun symbol versioning exists since Solaris 2.5.
16176 solaris2.[5-9]* | solaris2.1[0-9]*)
16177 enable_symvers=sun ;;
16178 *)
16179 enable_symvers=no ;;
16180 esac
16181 fi
16182 fi
16183 fi
16184
16185 # Check if 'sun' was requested on non-Solaris 2 platforms.
16186 if test x$enable_symvers = xsun ; then
16187 case ${target_os} in
16188 solaris2*)
16189 # All fine.
16190 ;;
16191 *)
16192 # Unlikely to work.
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16194 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16196 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16198 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16199 enable_symvers=no
16200 ;;
16201 esac
16202 fi
16203
16204 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16205 if test $enable_symvers != no; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16207 $as_echo_n "checking for shared libgcc... " >&6; }
16208 ac_save_CFLAGS="$CFLAGS"
16209 CFLAGS=' -lgcc_s'
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212
16213 int
16214 main ()
16215 {
16216 return 0;
16217 ;
16218 return 0;
16219 }
16220 _ACEOF
16221 if ac_fn_c_try_link "$LINENO"; then :
16222 libgomp_shared_libgcc=yes
16223 else
16224 libgomp_shared_libgcc=no
16225 fi
16226 rm -f core conftest.err conftest.$ac_objext \
16227 conftest$ac_exeext conftest.$ac_ext
16228 CFLAGS="$ac_save_CFLAGS"
16229 if test $libgomp_shared_libgcc = no; then
16230 cat > conftest.c <<EOF
16231 int main (void) { return 0; }
16232 EOF
16233 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16234 -shared -shared-libgcc -o conftest.so \
16235 conftest.c -v 2>&1 >/dev/null \
16236 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16237 rm -f conftest.c conftest.so
16238 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16239 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16242
16243 int
16244 main ()
16245 {
16246 return 0;
16247 ;
16248 return 0;
16249 }
16250 _ACEOF
16251 if ac_fn_c_try_link "$LINENO"; then :
16252 libgomp_shared_libgcc=yes
16253 fi
16254 rm -f core conftest.err conftest.$ac_objext \
16255 conftest$ac_exeext conftest.$ac_ext
16256 CFLAGS="$ac_save_CFLAGS"
16257 fi
16258 fi
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16260 $as_echo "$libgomp_shared_libgcc" >&6; }
16261 fi
16262
16263 # For GNU ld, we need at least this version. The format is described in
16264 # LIBGOMP_CHECK_LINKER_FEATURES above.
16265 libgomp_min_gnu_ld_version=21400
16266 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16267
16268 # Check to see if unspecified "yes" value can win, given results above.
16269 # Change "yes" into either "no" or a style name.
16270 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16271 if test $with_gnu_ld = yes; then
16272 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16273 enable_symvers=gnu
16274 elif test $libgomp_ld_is_gold = yes ; then
16275 enable_symvers=gnu
16276 elif test $libgomp_ld_is_mold = yes ; then
16277 enable_symvers=gnu
16278 else
16279 # The right tools, the right setup, but too old. Fallbacks?
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16281 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16283 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16285 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16287 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16288 if test $libgomp_gnu_ld_version -ge 21200 ; then
16289 # Globbing fix is present, proper block support is not.
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16291 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16292 enable_symvers=no
16293 else
16294 # 2.11 or older.
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16296 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16297 enable_symvers=no
16298 fi
16299 fi
16300 elif test $enable_symvers = sun; then
16301 : All interesting versions of Sun ld support sun style symbol versioning.
16302 else
16303 # just fail for now
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16305 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16307 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16309 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16311 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16312 enable_symvers=no
16313 fi
16314 fi
16315
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16317 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16318 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16319 $as_echo_n "(cached) " >&6
16320 else
16321
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16324 void foo (void); __asm (".symver foo, bar@SYMVER");
16325 int
16326 main ()
16327 {
16328
16329 ;
16330 return 0;
16331 }
16332 _ACEOF
16333 if ac_fn_c_try_compile "$LINENO"; then :
16334 libgomp_cv_have_as_symver_directive=yes
16335 else
16336 libgomp_cv_have_as_symver_directive=no
16337 fi
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 fi
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16341 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16342 if test $libgomp_cv_have_as_symver_directive = yes; then
16343
16344 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16345
16346 fi
16347
16348 if test $enable_symvers != no; then
16349 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16350 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16351 else
16352 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16353 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16354 fi
16355
16356 if test $enable_symvers = gnu; then
16357 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16358 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16359 else
16360 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16361 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16362 fi
16363
16364 if test $enable_symvers = sun; then
16365 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16366 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16367 else
16368 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16369 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16370 fi
16371
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16373 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16374
16375 if test $enable_symvers != no ; then
16376 case ${target_os} in
16377 # The Solaris 2 runtime linker doesn't support the GNU extension of
16378 # binding the same symbol to different versions
16379 solaris2*)
16380 ;;
16381 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16382 *)
16383
16384 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16385
16386 ;;
16387 esac
16388 fi
16389
16390
16391 if test $enable_symvers = gnu; then
16392
16393 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16394
16395 fi
16396
16397 # Determine cpu count to limit testsuite parallelism.
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16399 $as_echo_n "checking the number of available CPUs... " >&6; }
16400 CPU_COUNT="0"
16401
16402 # Try generic methods
16403
16404 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16405 # 'NPROCESSORS_ONLN' are platform-specific
16406 command -v getconf >/dev/null 2>&1 && \
16407 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16408 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16409 : # empty
16410 else
16411 # 'nproc' is part of GNU Coreutils and is widely available
16412 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16413
16414 fi
16415 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16416 : # empty
16417 else
16418 # Try platform-specific preferred methods
16419 case $host_os in #(
16420 *linux*) :
16421 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16422 *darwin*) :
16423 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16424 freebsd*) :
16425 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16426 netbsd*) :
16427 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16428 solaris*) :
16429 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" ;; #(
16430 mingw*) :
16431 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16432 msys*) :
16433 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16434 cygwin*) :
16435 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16436 *) :
16437 ;;
16438 esac
16439 fi
16440 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16441 : # empty
16442 else
16443 # Try less preferred generic method
16444 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16445 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16446
16447 fi
16448 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16449 : # empty
16450 else
16451 # Try platform-specific fallback methods
16452 # They can be less accurate and slower then preferred methods
16453 case $host_os in #(
16454 *linux*) :
16455 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16456 *darwin*) :
16457 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16458 freebsd*) :
16459 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16460 netbsd*) :
16461 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16462 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16463 solaris*) :
16464 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16465 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16466 mingw*) :
16467 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16468 : # empty
16469 else
16470 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16471 fi ;; #(
16472 msys*) :
16473 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16474 cygwin*) :
16475 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16476 *) :
16477 ;;
16478 esac
16479 fi
16480 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16482 $as_echo "$CPU_COUNT" >&6; }
16483
16484 else
16485 CPU_COUNT="1"
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16487 $as_echo "unable to detect (assuming 1)" >&6; }
16488
16489 fi
16490
16491
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock implementation" >&5
16493 $as_echo "$as_me: checking for flock implementation" >&6;}
16494 for ac_prog in flock
16495 do
16496 # Extract the first word of "$ac_prog", so it can be a program name with args.
16497 set dummy $ac_prog; ac_word=$2
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16499 $as_echo_n "checking for $ac_word... " >&6; }
16500 if ${ac_cv_prog_FLOCK+:} false; then :
16501 $as_echo_n "(cached) " >&6
16502 else
16503 if test -n "$FLOCK"; then
16504 ac_cv_prog_FLOCK="$FLOCK" # Let the user override the test.
16505 else
16506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16507 for as_dir in $PATH
16508 do
16509 IFS=$as_save_IFS
16510 test -z "$as_dir" && as_dir=.
16511 for ac_exec_ext in '' $ac_executable_extensions; do
16512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16513 ac_cv_prog_FLOCK="$ac_prog"
16514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16515 break 2
16516 fi
16517 done
16518 done
16519 IFS=$as_save_IFS
16520
16521 fi
16522 fi
16523 FLOCK=$ac_cv_prog_FLOCK
16524 if test -n "$FLOCK"; then
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16526 $as_echo "$FLOCK" >&6; }
16527 else
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16529 $as_echo "no" >&6; }
16530 fi
16531
16532
16533 test -n "$FLOCK" && break
16534 done
16535
16536 # Fallback if 'perl' is available.
16537 if test -z "$FLOCK"; then
16538 # Extract the first word of "perl", so it can be a program name with args.
16539 set dummy perl; ac_word=$2
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16541 $as_echo_n "checking for $ac_word... " >&6; }
16542 if ${ac_cv_prog_FLOCK+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545 if test -n "$FLOCK"; then
16546 ac_cv_prog_FLOCK="$FLOCK" # Let the user override the test.
16547 else
16548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549 for as_dir in $PATH
16550 do
16551 IFS=$as_save_IFS
16552 test -z "$as_dir" && as_dir=.
16553 for ac_exec_ext in '' $ac_executable_extensions; do
16554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16555 ac_cv_prog_FLOCK="$srcdir/testsuite/flock"
16556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16557 break 2
16558 fi
16559 done
16560 done
16561 IFS=$as_save_IFS
16562
16563 fi
16564 fi
16565 FLOCK=$ac_cv_prog_FLOCK
16566 if test -n "$FLOCK"; then
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16568 $as_echo "$FLOCK" >&6; }
16569 else
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16571 $as_echo "no" >&6; }
16572 fi
16573
16574
16575 fi
16576
16577 # Get target configury.
16578 . ${srcdir}/configure.tgt
16579 CFLAGS="$save_CFLAGS $XCFLAGS"
16580
16581 # Check for __sync_val_compare_and_swap, but only after the target has
16582 # had a chance to set XCFLAGS.
16583
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16585 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16586 if ${libgomp_cv_have_sync_builtins+:} false; then :
16587 $as_echo_n "(cached) " >&6
16588 else
16589
16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592
16593 int
16594 main ()
16595 {
16596 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16597 ;
16598 return 0;
16599 }
16600 _ACEOF
16601 if ac_fn_c_try_link "$LINENO"; then :
16602 libgomp_cv_have_sync_builtins=yes
16603 else
16604 libgomp_cv_have_sync_builtins=no
16605 fi
16606 rm -f core conftest.err conftest.$ac_objext \
16607 conftest$ac_exeext conftest.$ac_ext
16608 fi
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16610 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16611 if test $libgomp_cv_have_sync_builtins = yes; then
16612
16613 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16614
16615 fi
16616
16617 XCFLAGS="$XCFLAGS$XPCFLAGS"
16618
16619 # Add CET specific flags if CET is enabled
16620 # Check whether --enable-cet was given.
16621 if test "${enable_cet+set}" = set; then :
16622 enableval=$enable_cet;
16623 case "$enableval" in
16624 yes|no|auto) ;;
16625 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16626 esac
16627
16628 else
16629 enable_cet=auto
16630 fi
16631
16632
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16634 $as_echo_n "checking for CET support... " >&6; }
16635
16636 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16637 case "$host" in
16638 i[34567]86-*-linux* | x86_64-*-linux*)
16639 case "$enable_cet" in
16640 auto)
16641 # Check if target supports multi-byte NOPs
16642 # and if compiler and assembler support CET insn.
16643 cet_save_CFLAGS="$CFLAGS"
16644 CFLAGS="$CFLAGS -fcf-protection"
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647
16648 int
16649 main ()
16650 {
16651
16652 #if !defined(__SSE2__)
16653 #error target does not support multi-byte NOPs
16654 #else
16655 asm ("setssbsy");
16656 #endif
16657
16658 ;
16659 return 0;
16660 }
16661 _ACEOF
16662 if ac_fn_c_try_compile "$LINENO"; then :
16663 enable_cet=yes
16664 else
16665 enable_cet=no
16666 fi
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 CFLAGS="$cet_save_CFLAGS"
16669 ;;
16670 yes)
16671 # Check if assembler supports CET.
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674
16675 int
16676 main ()
16677 {
16678 asm ("setssbsy");
16679 ;
16680 return 0;
16681 }
16682 _ACEOF
16683 if ac_fn_c_try_compile "$LINENO"; then :
16684
16685 else
16686 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16687 fi
16688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 ;;
16690 esac
16691 ;;
16692 *)
16693 enable_cet=no
16694 ;;
16695 esac
16696 if test x$enable_cet = xyes; then
16697 CET_FLAGS="-fcf-protection -mshstk"
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16699 $as_echo "yes" >&6; }
16700 else
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16702 $as_echo "no" >&6; }
16703 fi
16704
16705 XCFLAGS="$XCFLAGS $CET_FLAGS"
16706 FCFLAGS="$FCFLAGS $CET_FLAGS"
16707
16708
16709
16710
16711
16712 # Conditionalize the makefile for this target machine.
16713 tmake_file_=
16714 for f in ${tmake_file}
16715 do
16716 if test -f ${srcdir}/config/$f
16717 then
16718 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
16719 fi
16720 done
16721 tmake_file="${tmake_file_}"
16722
16723
16724 # Cleanup and exit.
16725 CFLAGS="$save_CFLAGS"
16726 cat >confcache <<\_ACEOF
16727 # This file is a shell script that caches the results of configure
16728 # tests run on this system so they can be shared between configure
16729 # scripts and configure runs, see configure's option --config-cache.
16730 # It is not useful on other systems. If it contains results you don't
16731 # want to keep, you may remove or edit it.
16732 #
16733 # config.status only pays attention to the cache file if you give it
16734 # the --recheck option to rerun configure.
16735 #
16736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16738 # following values.
16739
16740 _ACEOF
16741
16742 # The following way of writing the cache mishandles newlines in values,
16743 # but we know of no workaround that is simple, portable, and efficient.
16744 # So, we kill variables containing newlines.
16745 # Ultrix sh set writes to stderr and can't be redirected directly,
16746 # and sets the high bit in the cache file unless we assign to the vars.
16747 (
16748 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16749 eval ac_val=\$$ac_var
16750 case $ac_val in #(
16751 *${as_nl}*)
16752 case $ac_var in #(
16753 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16754 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16755 esac
16756 case $ac_var in #(
16757 _ | IFS | as_nl) ;; #(
16758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16759 *) { eval $ac_var=; unset $ac_var;} ;;
16760 esac ;;
16761 esac
16762 done
16763
16764 (set) 2>&1 |
16765 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16766 *${as_nl}ac_space=\ *)
16767 # `set' does not quote correctly, so add quotes: double-quote
16768 # substitution turns \\\\ into \\, and sed turns \\ into \.
16769 sed -n \
16770 "s/'/'\\\\''/g;
16771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16772 ;; #(
16773 *)
16774 # `set' quotes correctly as required by POSIX, so do not add quotes.
16775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16776 ;;
16777 esac |
16778 sort
16779 ) |
16780 sed '
16781 /^ac_cv_env_/b end
16782 t clear
16783 :clear
16784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16785 t end
16786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16787 :end' >>confcache
16788 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16789 if test -w "$cache_file"; then
16790 if test "x$cache_file" != "x/dev/null"; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16792 $as_echo "$as_me: updating cache $cache_file" >&6;}
16793 if test ! -f "$cache_file" || test -h "$cache_file"; then
16794 cat confcache >"$cache_file"
16795 else
16796 case $cache_file in #(
16797 */* | ?:*)
16798 mv -f confcache "$cache_file"$$ &&
16799 mv -f "$cache_file"$$ "$cache_file" ;; #(
16800 *)
16801 mv -f confcache "$cache_file" ;;
16802 esac
16803 fi
16804 fi
16805 else
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16807 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16808 fi
16809 fi
16810 rm -f confcache
16811
16812 if test ${multilib} = yes; then
16813 multilib_arg="--enable-multilib"
16814 else
16815 multilib_arg=
16816 fi
16817
16818 # Set up the set of libraries that we need to link against for libgomp.
16819 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16820 # which will force linkage against -lpthread (or equivalent for the system).
16821 # That's not 100% ideal, but about the best we can do easily.
16822 if test $enable_shared = yes; then
16823 link_gomp="-lgomp %{static: $LIBS${DL_LIBS:+ $DL_LIBS}}"
16824 else
16825 link_gomp="-lgomp $LIBS${DL_LIBS:+ $DL_LIBS}"
16826 fi
16827
16828
16829 if test "$ac_cv_fc_compiler_gnu" = yes; then
16830 USE_FORTRAN_TRUE=
16831 USE_FORTRAN_FALSE='#'
16832 else
16833 USE_FORTRAN_TRUE='#'
16834 USE_FORTRAN_FALSE=
16835 fi
16836
16837
16838 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16839 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16840 # the underscore here and update the PREREQ. If it doesn't, then we'll
16841 # need to copy this macro to our acinclude.m4.
16842 save_CFLAGS="$CFLAGS"
16843 for i in $config_path; do
16844 if test -f $srcdir/config/$i/omp-lock.h; then
16845 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16846 break
16847 fi
16848 done
16849
16850 if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16851
16852 fi
16853
16854
16855 if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16856
16857 else
16858 OMP_INT128_SIZE=0
16859 fi
16860
16861
16862 if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16863
16864 else
16865 OMP_DEPEND_KIND=0
16866 fi
16867
16868
16869 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16870
16871 else
16872 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16873 fi
16874
16875
16876 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16877
16878 fi
16879
16880
16881 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16882
16883 fi
16884
16885
16886 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16887
16888 fi
16889
16890
16891 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16892
16893 else
16894 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16895 fi
16896
16897
16898 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16899
16900 fi
16901
16902
16903 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16904
16905 fi
16906
16907
16908 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16909
16910 fi
16911
16912
16913
16914 # If the lock fits in an integer, then arrange for Fortran to use that
16915 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16916 # Except that we don't have a way at present to multi-lib the installed
16917 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16918 # actual target.
16919 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16920 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16921 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16922 OMP_LOCK_KIND=8
16923 fi
16924 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16925 OMP_NEST_LOCK_KIND=8
16926 fi
16927 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16928 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16929 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16930 OMP_LOCK_25_KIND=8
16931 fi
16932 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16933 OMP_NEST_LOCK_25_KIND=8
16934 fi
16935 if test "$ac_cv_fc_compiler_gnu" = yes; then
16936 if test $OMP_DEPEND_KIND -eq 16; then
16937 if test $OMP_INT128_SIZE -ne 16; then
16938 as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16939 fi
16940 else
16941 if test $OMP_DEPEND_KIND -ne 8; then
16942 as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16943 fi
16944 fi
16945 fi
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961 CFLAGS="$save_CFLAGS"
16962
16963 # Determine what GCC version number to use in filesystem paths.
16964
16965 get_gcc_base_ver="cat"
16966
16967 # Check whether --with-gcc-major-version-only was given.
16968 if test "${with_gcc_major_version_only+set}" = set; then :
16969 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16970 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16971 fi
16972
16973 fi
16974
16975
16976
16977
16978 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16979
16980 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16981
16982 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16983
16984 ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
16985
16986 cat >confcache <<\_ACEOF
16987 # This file is a shell script that caches the results of configure
16988 # tests run on this system so they can be shared between configure
16989 # scripts and configure runs, see configure's option --config-cache.
16990 # It is not useful on other systems. If it contains results you don't
16991 # want to keep, you may remove or edit it.
16992 #
16993 # config.status only pays attention to the cache file if you give it
16994 # the --recheck option to rerun configure.
16995 #
16996 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16997 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16998 # following values.
16999
17000 _ACEOF
17001
17002 # The following way of writing the cache mishandles newlines in values,
17003 # but we know of no workaround that is simple, portable, and efficient.
17004 # So, we kill variables containing newlines.
17005 # Ultrix sh set writes to stderr and can't be redirected directly,
17006 # and sets the high bit in the cache file unless we assign to the vars.
17007 (
17008 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17009 eval ac_val=\$$ac_var
17010 case $ac_val in #(
17011 *${as_nl}*)
17012 case $ac_var in #(
17013 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17014 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17015 esac
17016 case $ac_var in #(
17017 _ | IFS | as_nl) ;; #(
17018 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17019 *) { eval $ac_var=; unset $ac_var;} ;;
17020 esac ;;
17021 esac
17022 done
17023
17024 (set) 2>&1 |
17025 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17026 *${as_nl}ac_space=\ *)
17027 # `set' does not quote correctly, so add quotes: double-quote
17028 # substitution turns \\\\ into \\, and sed turns \\ into \.
17029 sed -n \
17030 "s/'/'\\\\''/g;
17031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17032 ;; #(
17033 *)
17034 # `set' quotes correctly as required by POSIX, so do not add quotes.
17035 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17036 ;;
17037 esac |
17038 sort
17039 ) |
17040 sed '
17041 /^ac_cv_env_/b end
17042 t clear
17043 :clear
17044 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17045 t end
17046 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17047 :end' >>confcache
17048 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17049 if test -w "$cache_file"; then
17050 if test "x$cache_file" != "x/dev/null"; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17052 $as_echo "$as_me: updating cache $cache_file" >&6;}
17053 if test ! -f "$cache_file" || test -h "$cache_file"; then
17054 cat confcache >"$cache_file"
17055 else
17056 case $cache_file in #(
17057 */* | ?:*)
17058 mv -f confcache "$cache_file"$$ &&
17059 mv -f "$cache_file"$$ "$cache_file" ;; #(
17060 *)
17061 mv -f confcache "$cache_file" ;;
17062 esac
17063 fi
17064 fi
17065 else
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17067 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17068 fi
17069 fi
17070 rm -f confcache
17071
17072 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17073 # Let make expand exec_prefix.
17074 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17075
17076 DEFS=-DHAVE_CONFIG_H
17077
17078 ac_libobjs=
17079 ac_ltlibobjs=
17080 U=
17081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17082 # 1. Remove the extension, and $U if already installed.
17083 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17084 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17085 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17086 # will be set to the directory where LIBOBJS objects are built.
17087 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17088 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17089 done
17090 LIBOBJS=$ac_libobjs
17091
17092 LTLIBOBJS=$ac_ltlibobjs
17093
17094
17095 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17096 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17098 fi
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17100 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17101 if test -n "$am_sleep_pid"; then
17102 # Hide warnings about reused PIDs.
17103 wait $am_sleep_pid 2>/dev/null
17104 fi
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17106 $as_echo "done" >&6; }
17107 if test -n "$EXEEXT"; then
17108 am__EXEEXT_TRUE=
17109 am__EXEEXT_FALSE='#'
17110 else
17111 am__EXEEXT_TRUE='#'
17112 am__EXEEXT_FALSE=
17113 fi
17114
17115 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17116 as_fn_error $? "conditional \"AMDEP\" was never defined.
17117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17118 fi
17119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17120 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17122 fi
17123 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17124 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17126 fi
17127 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17128 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17130 fi
17131 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17132 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17134 fi
17135 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17136 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17138 fi
17139 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17140 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17142 fi
17143 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17144 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17146 fi
17147 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17148 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17150 fi
17151 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17152 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17154 fi
17155
17156 : "${CONFIG_STATUS=./config.status}"
17157 ac_write_fail=0
17158 ac_clean_files_save=$ac_clean_files
17159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17162 as_write_fail=0
17163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17164 #! $SHELL
17165 # Generated by $as_me.
17166 # Run this file to recreate the current configuration.
17167 # Compiler output produced by configure, useful for debugging
17168 # configure, is in config.log if it exists.
17169
17170 debug=false
17171 ac_cs_recheck=false
17172 ac_cs_silent=false
17173
17174 SHELL=\${CONFIG_SHELL-$SHELL}
17175 export SHELL
17176 _ASEOF
17177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17178 ## -------------------- ##
17179 ## M4sh Initialization. ##
17180 ## -------------------- ##
17181
17182 # Be more Bourne compatible
17183 DUALCASE=1; export DUALCASE # for MKS sh
17184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17185 emulate sh
17186 NULLCMD=:
17187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17188 # is contrary to our usage. Disable this feature.
17189 alias -g '${1+"$@"}'='"$@"'
17190 setopt NO_GLOB_SUBST
17191 else
17192 case `(set -o) 2>/dev/null` in #(
17193 *posix*) :
17194 set -o posix ;; #(
17195 *) :
17196 ;;
17197 esac
17198 fi
17199
17200
17201 as_nl='
17202 '
17203 export as_nl
17204 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17205 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17208 # Prefer a ksh shell builtin over an external printf program on Solaris,
17209 # but without wasting forks for bash or zsh.
17210 if test -z "$BASH_VERSION$ZSH_VERSION" \
17211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17212 as_echo='print -r --'
17213 as_echo_n='print -rn --'
17214 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17215 as_echo='printf %s\n'
17216 as_echo_n='printf %s'
17217 else
17218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17219 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17220 as_echo_n='/usr/ucb/echo -n'
17221 else
17222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17223 as_echo_n_body='eval
17224 arg=$1;
17225 case $arg in #(
17226 *"$as_nl"*)
17227 expr "X$arg" : "X\\(.*\\)$as_nl";
17228 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17229 esac;
17230 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17231 '
17232 export as_echo_n_body
17233 as_echo_n='sh -c $as_echo_n_body as_echo'
17234 fi
17235 export as_echo_body
17236 as_echo='sh -c $as_echo_body as_echo'
17237 fi
17238
17239 # The user is always right.
17240 if test "${PATH_SEPARATOR+set}" != set; then
17241 PATH_SEPARATOR=:
17242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17244 PATH_SEPARATOR=';'
17245 }
17246 fi
17247
17248
17249 # IFS
17250 # We need space, tab and new line, in precisely that order. Quoting is
17251 # there to prevent editors from complaining about space-tab.
17252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17253 # splitting by setting IFS to empty value.)
17254 IFS=" "" $as_nl"
17255
17256 # Find who we are. Look in the path if we contain no directory separator.
17257 as_myself=
17258 case $0 in #((
17259 *[\\/]* ) as_myself=$0 ;;
17260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17262 do
17263 IFS=$as_save_IFS
17264 test -z "$as_dir" && as_dir=.
17265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17266 done
17267 IFS=$as_save_IFS
17268
17269 ;;
17270 esac
17271 # We did not find ourselves, most probably we were run as `sh COMMAND'
17272 # in which case we are not to be found in the path.
17273 if test "x$as_myself" = x; then
17274 as_myself=$0
17275 fi
17276 if test ! -f "$as_myself"; then
17277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17278 exit 1
17279 fi
17280
17281 # Unset variables that we do not need and which cause bugs (e.g. in
17282 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17283 # suppresses any "Segmentation fault" message there. '((' could
17284 # trigger a bug in pdksh 5.2.14.
17285 for as_var in BASH_ENV ENV MAIL MAILPATH
17286 do eval test x\${$as_var+set} = xset \
17287 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17288 done
17289 PS1='$ '
17290 PS2='> '
17291 PS4='+ '
17292
17293 # NLS nuisances.
17294 LC_ALL=C
17295 export LC_ALL
17296 LANGUAGE=C
17297 export LANGUAGE
17298
17299 # CDPATH.
17300 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17301
17302
17303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17304 # ----------------------------------------
17305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17307 # script with STATUS, using 1 if that was 0.
17308 as_fn_error ()
17309 {
17310 as_status=$1; test $as_status -eq 0 && as_status=1
17311 if test "$4"; then
17312 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17314 fi
17315 $as_echo "$as_me: error: $2" >&2
17316 as_fn_exit $as_status
17317 } # as_fn_error
17318
17319
17320 # as_fn_set_status STATUS
17321 # -----------------------
17322 # Set $? to STATUS, without forking.
17323 as_fn_set_status ()
17324 {
17325 return $1
17326 } # as_fn_set_status
17327
17328 # as_fn_exit STATUS
17329 # -----------------
17330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17331 as_fn_exit ()
17332 {
17333 set +e
17334 as_fn_set_status $1
17335 exit $1
17336 } # as_fn_exit
17337
17338 # as_fn_unset VAR
17339 # ---------------
17340 # Portably unset VAR.
17341 as_fn_unset ()
17342 {
17343 { eval $1=; unset $1;}
17344 }
17345 as_unset=as_fn_unset
17346 # as_fn_append VAR VALUE
17347 # ----------------------
17348 # Append the text in VALUE to the end of the definition contained in VAR. Take
17349 # advantage of any shell optimizations that allow amortized linear growth over
17350 # repeated appends, instead of the typical quadratic growth present in naive
17351 # implementations.
17352 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17353 eval 'as_fn_append ()
17354 {
17355 eval $1+=\$2
17356 }'
17357 else
17358 as_fn_append ()
17359 {
17360 eval $1=\$$1\$2
17361 }
17362 fi # as_fn_append
17363
17364 # as_fn_arith ARG...
17365 # ------------------
17366 # Perform arithmetic evaluation on the ARGs, and store the result in the
17367 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17368 # must be portable across $(()) and expr.
17369 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17370 eval 'as_fn_arith ()
17371 {
17372 as_val=$(( $* ))
17373 }'
17374 else
17375 as_fn_arith ()
17376 {
17377 as_val=`expr "$@" || test $? -eq 1`
17378 }
17379 fi # as_fn_arith
17380
17381
17382 if expr a : '\(a\)' >/dev/null 2>&1 &&
17383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17384 as_expr=expr
17385 else
17386 as_expr=false
17387 fi
17388
17389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17390 as_basename=basename
17391 else
17392 as_basename=false
17393 fi
17394
17395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17396 as_dirname=dirname
17397 else
17398 as_dirname=false
17399 fi
17400
17401 as_me=`$as_basename -- "$0" ||
17402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17403 X"$0" : 'X\(//\)$' \| \
17404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17405 $as_echo X/"$0" |
17406 sed '/^.*\/\([^/][^/]*\)\/*$/{
17407 s//\1/
17408 q
17409 }
17410 /^X\/\(\/\/\)$/{
17411 s//\1/
17412 q
17413 }
17414 /^X\/\(\/\).*/{
17415 s//\1/
17416 q
17417 }
17418 s/.*/./; q'`
17419
17420 # Avoid depending upon Character Ranges.
17421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17424 as_cr_digits='0123456789'
17425 as_cr_alnum=$as_cr_Letters$as_cr_digits
17426
17427 ECHO_C= ECHO_N= ECHO_T=
17428 case `echo -n x` in #(((((
17429 -n*)
17430 case `echo 'xy\c'` in
17431 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17432 xy) ECHO_C='\c';;
17433 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17434 ECHO_T=' ';;
17435 esac;;
17436 *)
17437 ECHO_N='-n';;
17438 esac
17439
17440 rm -f conf$$ conf$$.exe conf$$.file
17441 if test -d conf$$.dir; then
17442 rm -f conf$$.dir/conf$$.file
17443 else
17444 rm -f conf$$.dir
17445 mkdir conf$$.dir 2>/dev/null
17446 fi
17447 if (echo >conf$$.file) 2>/dev/null; then
17448 if ln -s conf$$.file conf$$ 2>/dev/null; then
17449 as_ln_s='ln -s'
17450 # ... but there are two gotchas:
17451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17453 # In both cases, we have to default to `cp -pR'.
17454 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17455 as_ln_s='cp -pR'
17456 elif ln conf$$.file conf$$ 2>/dev/null; then
17457 as_ln_s=ln
17458 else
17459 as_ln_s='cp -pR'
17460 fi
17461 else
17462 as_ln_s='cp -pR'
17463 fi
17464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17465 rmdir conf$$.dir 2>/dev/null
17466
17467
17468 # as_fn_mkdir_p
17469 # -------------
17470 # Create "$as_dir" as a directory, including parents if necessary.
17471 as_fn_mkdir_p ()
17472 {
17473
17474 case $as_dir in #(
17475 -*) as_dir=./$as_dir;;
17476 esac
17477 test -d "$as_dir" || eval $as_mkdir_p || {
17478 as_dirs=
17479 while :; do
17480 case $as_dir in #(
17481 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17482 *) as_qdir=$as_dir;;
17483 esac
17484 as_dirs="'$as_qdir' $as_dirs"
17485 as_dir=`$as_dirname -- "$as_dir" ||
17486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17487 X"$as_dir" : 'X\(//\)[^/]' \| \
17488 X"$as_dir" : 'X\(//\)$' \| \
17489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17490 $as_echo X"$as_dir" |
17491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17492 s//\1/
17493 q
17494 }
17495 /^X\(\/\/\)[^/].*/{
17496 s//\1/
17497 q
17498 }
17499 /^X\(\/\/\)$/{
17500 s//\1/
17501 q
17502 }
17503 /^X\(\/\).*/{
17504 s//\1/
17505 q
17506 }
17507 s/.*/./; q'`
17508 test -d "$as_dir" && break
17509 done
17510 test -z "$as_dirs" || eval "mkdir $as_dirs"
17511 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17512
17513
17514 } # as_fn_mkdir_p
17515 if mkdir -p . 2>/dev/null; then
17516 as_mkdir_p='mkdir -p "$as_dir"'
17517 else
17518 test -d ./-p && rmdir ./-p
17519 as_mkdir_p=false
17520 fi
17521
17522
17523 # as_fn_executable_p FILE
17524 # -----------------------
17525 # Test if FILE is an executable regular file.
17526 as_fn_executable_p ()
17527 {
17528 test -f "$1" && test -x "$1"
17529 } # as_fn_executable_p
17530 as_test_x='test -x'
17531 as_executable_p=as_fn_executable_p
17532
17533 # Sed expression to map a string onto a valid CPP name.
17534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17535
17536 # Sed expression to map a string onto a valid variable name.
17537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17538
17539
17540 exec 6>&1
17541 ## ----------------------------------- ##
17542 ## Main body of $CONFIG_STATUS script. ##
17543 ## ----------------------------------- ##
17544 _ASEOF
17545 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17546
17547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17548 # Save the log message, to keep $0 and so on meaningful, and to
17549 # report actual input values of CONFIG_FILES etc. instead of their
17550 # values after options handling.
17551 ac_log="
17552 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17553 generated by GNU Autoconf 2.69. Invocation command line was
17554
17555 CONFIG_FILES = $CONFIG_FILES
17556 CONFIG_HEADERS = $CONFIG_HEADERS
17557 CONFIG_LINKS = $CONFIG_LINKS
17558 CONFIG_COMMANDS = $CONFIG_COMMANDS
17559 $ $0 $@
17560
17561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17562 "
17563
17564 _ACEOF
17565
17566 case $ac_config_files in *"
17567 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17568 esac
17569
17570 case $ac_config_headers in *"
17571 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17572 esac
17573
17574
17575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17576 # Files that config.status was made for.
17577 config_files="$ac_config_files"
17578 config_headers="$ac_config_headers"
17579 config_commands="$ac_config_commands"
17580
17581 _ACEOF
17582
17583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17584 ac_cs_usage="\
17585 \`$as_me' instantiates files and other configuration actions
17586 from templates according to the current configuration. Unless the files
17587 and actions are specified as TAGs, all are instantiated by default.
17588
17589 Usage: $0 [OPTION]... [TAG]...
17590
17591 -h, --help print this help, then exit
17592 -V, --version print version number and configuration settings, then exit
17593 --config print configuration, then exit
17594 -q, --quiet, --silent
17595 do not print progress messages
17596 -d, --debug don't remove temporary files
17597 --recheck update $as_me by reconfiguring in the same conditions
17598 --file=FILE[:TEMPLATE]
17599 instantiate the configuration file FILE
17600 --header=FILE[:TEMPLATE]
17601 instantiate the configuration header FILE
17602
17603 Configuration files:
17604 $config_files
17605
17606 Configuration headers:
17607 $config_headers
17608
17609 Configuration commands:
17610 $config_commands
17611
17612 Report bugs to the package provider.
17613 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17614 General help using GNU software: <http://www.gnu.org/gethelp/>."
17615
17616 _ACEOF
17617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17618 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17619 ac_cs_version="\\
17620 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17621 configured by $0, generated by GNU Autoconf 2.69,
17622 with options \\"\$ac_cs_config\\"
17623
17624 Copyright (C) 2012 Free Software Foundation, Inc.
17625 This config.status script is free software; the Free Software Foundation
17626 gives unlimited permission to copy, distribute and modify it."
17627
17628 ac_pwd='$ac_pwd'
17629 srcdir='$srcdir'
17630 INSTALL='$INSTALL'
17631 MKDIR_P='$MKDIR_P'
17632 AWK='$AWK'
17633 test -n "\$AWK" || AWK=awk
17634 _ACEOF
17635
17636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17637 # The default lists apply if the user does not specify any file.
17638 ac_need_defaults=:
17639 while test $# != 0
17640 do
17641 case $1 in
17642 --*=?*)
17643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17644 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17645 ac_shift=:
17646 ;;
17647 --*=)
17648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17649 ac_optarg=
17650 ac_shift=:
17651 ;;
17652 *)
17653 ac_option=$1
17654 ac_optarg=$2
17655 ac_shift=shift
17656 ;;
17657 esac
17658
17659 case $ac_option in
17660 # Handling of the options.
17661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17662 ac_cs_recheck=: ;;
17663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17664 $as_echo "$ac_cs_version"; exit ;;
17665 --config | --confi | --conf | --con | --co | --c )
17666 $as_echo "$ac_cs_config"; exit ;;
17667 --debug | --debu | --deb | --de | --d | -d )
17668 debug=: ;;
17669 --file | --fil | --fi | --f )
17670 $ac_shift
17671 case $ac_optarg in
17672 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17673 '') as_fn_error $? "missing file argument" ;;
17674 esac
17675 as_fn_append CONFIG_FILES " '$ac_optarg'"
17676 ac_need_defaults=false;;
17677 --header | --heade | --head | --hea )
17678 $ac_shift
17679 case $ac_optarg in
17680 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17681 esac
17682 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17683 ac_need_defaults=false;;
17684 --he | --h)
17685 # Conflict between --help and --header
17686 as_fn_error $? "ambiguous option: \`$1'
17687 Try \`$0 --help' for more information.";;
17688 --help | --hel | -h )
17689 $as_echo "$ac_cs_usage"; exit ;;
17690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17691 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17692 ac_cs_silent=: ;;
17693
17694 # This is an error.
17695 -*) as_fn_error $? "unrecognized option: \`$1'
17696 Try \`$0 --help' for more information." ;;
17697
17698 *) as_fn_append ac_config_targets " $1"
17699 ac_need_defaults=false ;;
17700
17701 esac
17702 shift
17703 done
17704
17705 ac_configure_extra_args=
17706
17707 if $ac_cs_silent; then
17708 exec 6>/dev/null
17709 ac_configure_extra_args="$ac_configure_extra_args --silent"
17710 fi
17711
17712 _ACEOF
17713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714 if \$ac_cs_recheck; then
17715 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17716 shift
17717 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17718 CONFIG_SHELL='$SHELL'
17719 export CONFIG_SHELL
17720 exec "\$@"
17721 fi
17722
17723 _ACEOF
17724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17725 exec 5>>config.log
17726 {
17727 echo
17728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17729 ## Running $as_me. ##
17730 _ASBOX
17731 $as_echo "$ac_log"
17732 } >&5
17733
17734 _ACEOF
17735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17736 #
17737 # INIT-COMMANDS
17738 #
17739
17740 srcdir="$srcdir"
17741 host="$host"
17742 target="$target"
17743 with_multisubdir="$with_multisubdir"
17744 with_multisrctop="$with_multisrctop"
17745 with_target_subdir="$with_target_subdir"
17746 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17747 multi_basedir="$multi_basedir"
17748 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17749 CC="$CC"
17750 CXX="$CXX"
17751 GFORTRAN="$GFORTRAN"
17752 GDC="$GDC"
17753 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17754
17755
17756 # The HP-UX ksh and POSIX shell print the target directory to stdout
17757 # if CDPATH is set.
17758 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17759
17760 sed_quote_subst='$sed_quote_subst'
17761 double_quote_subst='$double_quote_subst'
17762 delay_variable_subst='$delay_variable_subst'
17763 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17764 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17765 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17766 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17767 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17768 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17769 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17770 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17771 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17772 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17773 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17774 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17775 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17776 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17777 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17778 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17779 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17780 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17781 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17782 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17783 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17784 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17785 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17786 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17787 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17788 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17789 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17790 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17791 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17792 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17793 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17794 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17795 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17796 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17797 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17798 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17799 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17800 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17801 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17802 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17803 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17804 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17805 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17806 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17807 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17808 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17809 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17810 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17811 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"`'
17812 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17813 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17814 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17815 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17816 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17817 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17818 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17819 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17820 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17821 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17822 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17823 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17824 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17825 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17826 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17827 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17828 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17829 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17830 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17831 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17832 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17833 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17834 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17835 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17836 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17837 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17838 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17839 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17840 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17841 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17842 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17843 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17844 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17845 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17846 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17847 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17848 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17849 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17850 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17851 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17852 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17853 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17854 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17855 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17856 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17857 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17858 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17859 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17860 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17861 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17862 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17863 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17864 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17865 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17866 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17867 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17868 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17869 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17870 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17871 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17872 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17873 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17874 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17875 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17876 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17877 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17878 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17879 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17880 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17881 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17882 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17883 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17884 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17885 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17886 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17887 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17888 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17889 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17890 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17891 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17892 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17893 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17894 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17895 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17896 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17897 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17898 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17899 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17900 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17901 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17902 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17903 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17904 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17905 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17906 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17907 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17908 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17909 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17910 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17911 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17912 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17913 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17914 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17915 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17916 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17917 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17918 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17919 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17920 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17921 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17922 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17923 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17924 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17925 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17926 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17927 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17928 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17929 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17930 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17931 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17932 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17933 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17934 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17935 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17936 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17937 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17938
17939 LTCC='$LTCC'
17940 LTCFLAGS='$LTCFLAGS'
17941 compiler='$compiler_DEFAULT'
17942
17943 # A function that is used when there is no print builtin or printf.
17944 func_fallback_echo ()
17945 {
17946 eval 'cat <<_LTECHO_EOF
17947 \$1
17948 _LTECHO_EOF'
17949 }
17950
17951 # Quote evaled strings.
17952 for var in SHELL \
17953 ECHO \
17954 SED \
17955 GREP \
17956 EGREP \
17957 FGREP \
17958 LD \
17959 NM \
17960 LN_S \
17961 lt_SP2NL \
17962 lt_NL2SP \
17963 reload_flag \
17964 OBJDUMP \
17965 deplibs_check_method \
17966 file_magic_cmd \
17967 AR \
17968 AR_FLAGS \
17969 STRIP \
17970 RANLIB \
17971 CC \
17972 CFLAGS \
17973 compiler \
17974 lt_cv_sys_global_symbol_pipe \
17975 lt_cv_sys_global_symbol_to_cdecl \
17976 lt_cv_sys_global_symbol_to_c_name_address \
17977 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17978 lt_prog_compiler_no_builtin_flag \
17979 lt_prog_compiler_wl \
17980 lt_prog_compiler_pic \
17981 lt_prog_compiler_static \
17982 lt_cv_prog_compiler_c_o \
17983 need_locks \
17984 DSYMUTIL \
17985 NMEDIT \
17986 LIPO \
17987 OTOOL \
17988 OTOOL64 \
17989 shrext_cmds \
17990 export_dynamic_flag_spec \
17991 whole_archive_flag_spec \
17992 compiler_needs_object \
17993 with_gnu_ld \
17994 allow_undefined_flag \
17995 no_undefined_flag \
17996 hardcode_libdir_flag_spec \
17997 hardcode_libdir_flag_spec_ld \
17998 hardcode_libdir_separator \
17999 fix_srcfile_path \
18000 exclude_expsyms \
18001 include_expsyms \
18002 file_list_spec \
18003 variables_saved_for_relink \
18004 libname_spec \
18005 library_names_spec \
18006 soname_spec \
18007 install_override_mode \
18008 finish_eval \
18009 old_striplib \
18010 striplib \
18011 compiler_lib_search_dirs \
18012 predep_objects \
18013 postdep_objects \
18014 predeps \
18015 postdeps \
18016 compiler_lib_search_path \
18017 LD_FC \
18018 reload_flag_FC \
18019 compiler_FC \
18020 lt_prog_compiler_no_builtin_flag_FC \
18021 lt_prog_compiler_wl_FC \
18022 lt_prog_compiler_pic_FC \
18023 lt_prog_compiler_static_FC \
18024 lt_cv_prog_compiler_c_o_FC \
18025 export_dynamic_flag_spec_FC \
18026 whole_archive_flag_spec_FC \
18027 compiler_needs_object_FC \
18028 with_gnu_ld_FC \
18029 allow_undefined_flag_FC \
18030 no_undefined_flag_FC \
18031 hardcode_libdir_flag_spec_FC \
18032 hardcode_libdir_flag_spec_ld_FC \
18033 hardcode_libdir_separator_FC \
18034 fix_srcfile_path_FC \
18035 exclude_expsyms_FC \
18036 include_expsyms_FC \
18037 file_list_spec_FC \
18038 compiler_lib_search_dirs_FC \
18039 predep_objects_FC \
18040 postdep_objects_FC \
18041 predeps_FC \
18042 postdeps_FC \
18043 compiler_lib_search_path_FC; do
18044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18045 *[\\\\\\\`\\"\\\$]*)
18046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18047 ;;
18048 *)
18049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18050 ;;
18051 esac
18052 done
18053
18054 # Double-quote double-evaled strings.
18055 for var in reload_cmds \
18056 old_postinstall_cmds \
18057 old_postuninstall_cmds \
18058 old_archive_cmds \
18059 extract_expsyms_cmds \
18060 old_archive_from_new_cmds \
18061 old_archive_from_expsyms_cmds \
18062 archive_cmds \
18063 archive_expsym_cmds \
18064 module_cmds \
18065 module_expsym_cmds \
18066 export_symbols_cmds \
18067 prelink_cmds \
18068 postinstall_cmds \
18069 postuninstall_cmds \
18070 finish_cmds \
18071 sys_lib_search_path_spec \
18072 sys_lib_dlsearch_path_spec \
18073 reload_cmds_FC \
18074 old_archive_cmds_FC \
18075 old_archive_from_new_cmds_FC \
18076 old_archive_from_expsyms_cmds_FC \
18077 archive_cmds_FC \
18078 archive_expsym_cmds_FC \
18079 module_cmds_FC \
18080 module_expsym_cmds_FC \
18081 export_symbols_cmds_FC \
18082 prelink_cmds_FC; do
18083 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18084 *[\\\\\\\`\\"\\\$]*)
18085 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18086 ;;
18087 *)
18088 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18089 ;;
18090 esac
18091 done
18092
18093 ac_aux_dir='$ac_aux_dir'
18094 xsi_shell='$xsi_shell'
18095 lt_shell_append='$lt_shell_append'
18096
18097 # See if we are running on zsh, and set the options which allow our
18098 # commands through without removal of \ escapes INIT.
18099 if test -n "\${ZSH_VERSION+set}" ; then
18100 setopt NO_GLOB_SUBST
18101 fi
18102
18103
18104 PACKAGE='$PACKAGE'
18105 VERSION='$VERSION'
18106 TIMESTAMP='$TIMESTAMP'
18107 RM='$RM'
18108 ofile='$ofile'
18109
18110
18111
18112
18113
18114
18115 _ACEOF
18116
18117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18118
18119 # Handling of arguments.
18120 for ac_config_target in $ac_config_targets
18121 do
18122 case $ac_config_target in
18123 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18124 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18125 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18126 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18127 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18128 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18129 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18130 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18131 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18132 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18133 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18134 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18135 "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18136
18137 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18138 esac
18139 done
18140
18141
18142 # If the user did not use the arguments to specify the items to instantiate,
18143 # then the envvar interface is used. Set only those that are not.
18144 # We use the long form for the default assignment because of an extremely
18145 # bizarre bug on SunOS 4.1.3.
18146 if $ac_need_defaults; then
18147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18150 fi
18151
18152 # Have a temporary directory for convenience. Make it in the build tree
18153 # simply because there is no reason against having it here, and in addition,
18154 # creating and moving files from /tmp can sometimes cause problems.
18155 # Hook for its removal unless debugging.
18156 # Note that there is a small window in which the directory will not be cleaned:
18157 # after its creation but before its name has been assigned to `$tmp'.
18158 $debug ||
18159 {
18160 tmp= ac_tmp=
18161 trap 'exit_status=$?
18162 : "${ac_tmp:=$tmp}"
18163 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18164 ' 0
18165 trap 'as_fn_exit 1' 1 2 13 15
18166 }
18167 # Create a (secure) tmp directory for tmp files.
18168
18169 {
18170 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18171 test -d "$tmp"
18172 } ||
18173 {
18174 tmp=./conf$$-$RANDOM
18175 (umask 077 && mkdir "$tmp")
18176 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18177 ac_tmp=$tmp
18178
18179 # Set up the scripts for CONFIG_FILES section.
18180 # No need to generate them if there are no CONFIG_FILES.
18181 # This happens for instance with `./config.status config.h'.
18182 if test -n "$CONFIG_FILES"; then
18183
18184
18185 ac_cr=`echo X | tr X '\015'`
18186 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18187 # But we know of no other shell where ac_cr would be empty at this
18188 # point, so we can use a bashism as a fallback.
18189 if test "x$ac_cr" = x; then
18190 eval ac_cr=\$\'\\r\'
18191 fi
18192 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18193 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18194 ac_cs_awk_cr='\\r'
18195 else
18196 ac_cs_awk_cr=$ac_cr
18197 fi
18198
18199 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18200 _ACEOF
18201
18202
18203 {
18204 echo "cat >conf$$subs.awk <<_ACEOF" &&
18205 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18206 echo "_ACEOF"
18207 } >conf$$subs.sh ||
18208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18209 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18210 ac_delim='%!_!# '
18211 for ac_last_try in false false false false false :; do
18212 . ./conf$$subs.sh ||
18213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18214
18215 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18216 if test $ac_delim_n = $ac_delim_num; then
18217 break
18218 elif $ac_last_try; then
18219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18220 else
18221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18222 fi
18223 done
18224 rm -f conf$$subs.sh
18225
18226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18227 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18228 _ACEOF
18229 sed -n '
18230 h
18231 s/^/S["/; s/!.*/"]=/
18232 p
18233 g
18234 s/^[^!]*!//
18235 :repl
18236 t repl
18237 s/'"$ac_delim"'$//
18238 t delim
18239 :nl
18240 h
18241 s/\(.\{148\}\)..*/\1/
18242 t more1
18243 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18244 p
18245 n
18246 b repl
18247 :more1
18248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18249 p
18250 g
18251 s/.\{148\}//
18252 t nl
18253 :delim
18254 h
18255 s/\(.\{148\}\)..*/\1/
18256 t more2
18257 s/["\\]/\\&/g; s/^/"/; s/$/"/
18258 p
18259 b
18260 :more2
18261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18262 p
18263 g
18264 s/.\{148\}//
18265 t delim
18266 ' <conf$$subs.awk | sed '
18267 /^[^""]/{
18268 N
18269 s/\n//
18270 }
18271 ' >>$CONFIG_STATUS || ac_write_fail=1
18272 rm -f conf$$subs.awk
18273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18274 _ACAWK
18275 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18276 for (key in S) S_is_set[key] = 1
18277 FS = "\a"
18278
18279 }
18280 {
18281 line = $ 0
18282 nfields = split(line, field, "@")
18283 substed = 0
18284 len = length(field[1])
18285 for (i = 2; i < nfields; i++) {
18286 key = field[i]
18287 keylen = length(key)
18288 if (S_is_set[key]) {
18289 value = S[key]
18290 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18291 len += length(value) + length(field[++i])
18292 substed = 1
18293 } else
18294 len += 1 + keylen
18295 }
18296
18297 print line
18298 }
18299
18300 _ACAWK
18301 _ACEOF
18302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18303 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18304 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18305 else
18306 cat
18307 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18308 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18309 _ACEOF
18310
18311 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18312 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18313 # trailing colons and then remove the whole line if VPATH becomes empty
18314 # (actually we leave an empty line to preserve line numbers).
18315 if test "x$srcdir" = x.; then
18316 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18317 h
18318 s///
18319 s/^/:/
18320 s/[ ]*$/:/
18321 s/:\$(srcdir):/:/g
18322 s/:\${srcdir}:/:/g
18323 s/:@srcdir@:/:/g
18324 s/^:*//
18325 s/:*$//
18326 x
18327 s/\(=[ ]*\).*/\1/
18328 G
18329 s/\n//
18330 s/^[^=]*=[ ]*$//
18331 }'
18332 fi
18333
18334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18335 fi # test -n "$CONFIG_FILES"
18336
18337 # Set up the scripts for CONFIG_HEADERS section.
18338 # No need to generate them if there are no CONFIG_HEADERS.
18339 # This happens for instance with `./config.status Makefile'.
18340 if test -n "$CONFIG_HEADERS"; then
18341 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18342 BEGIN {
18343 _ACEOF
18344
18345 # Transform confdefs.h into an awk script `defines.awk', embedded as
18346 # here-document in config.status, that substitutes the proper values into
18347 # config.h.in to produce config.h.
18348
18349 # Create a delimiter string that does not exist in confdefs.h, to ease
18350 # handling of long lines.
18351 ac_delim='%!_!# '
18352 for ac_last_try in false false :; do
18353 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18354 if test -z "$ac_tt"; then
18355 break
18356 elif $ac_last_try; then
18357 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18358 else
18359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18360 fi
18361 done
18362
18363 # For the awk script, D is an array of macro values keyed by name,
18364 # likewise P contains macro parameters if any. Preserve backslash
18365 # newline sequences.
18366
18367 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18368 sed -n '
18369 s/.\{148\}/&'"$ac_delim"'/g
18370 t rset
18371 :rset
18372 s/^[ ]*#[ ]*define[ ][ ]*/ /
18373 t def
18374 d
18375 :def
18376 s/\\$//
18377 t bsnl
18378 s/["\\]/\\&/g
18379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18380 D["\1"]=" \3"/p
18381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18382 d
18383 :bsnl
18384 s/["\\]/\\&/g
18385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18386 D["\1"]=" \3\\\\\\n"\\/p
18387 t cont
18388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18389 t cont
18390 d
18391 :cont
18392 n
18393 s/.\{148\}/&'"$ac_delim"'/g
18394 t clear
18395 :clear
18396 s/\\$//
18397 t bsnlc
18398 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18399 d
18400 :bsnlc
18401 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18402 b cont
18403 ' <confdefs.h | sed '
18404 s/'"$ac_delim"'/"\\\
18405 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18406
18407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18408 for (key in D) D_is_set[key] = 1
18409 FS = "\a"
18410 }
18411 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18412 line = \$ 0
18413 split(line, arg, " ")
18414 if (arg[1] == "#") {
18415 defundef = arg[2]
18416 mac1 = arg[3]
18417 } else {
18418 defundef = substr(arg[1], 2)
18419 mac1 = arg[2]
18420 }
18421 split(mac1, mac2, "(") #)
18422 macro = mac2[1]
18423 prefix = substr(line, 1, index(line, defundef) - 1)
18424 if (D_is_set[macro]) {
18425 # Preserve the white space surrounding the "#".
18426 print prefix "define", macro P[macro] D[macro]
18427 next
18428 } else {
18429 # Replace #undef with comments. This is necessary, for example,
18430 # in the case of _POSIX_SOURCE, which is predefined and required
18431 # on some systems where configure will not decide to define it.
18432 if (defundef == "undef") {
18433 print "/*", prefix defundef, macro, "*/"
18434 next
18435 }
18436 }
18437 }
18438 { print }
18439 _ACAWK
18440 _ACEOF
18441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18442 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18443 fi # test -n "$CONFIG_HEADERS"
18444
18445
18446 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18447 shift
18448 for ac_tag
18449 do
18450 case $ac_tag in
18451 :[FHLC]) ac_mode=$ac_tag; continue;;
18452 esac
18453 case $ac_mode$ac_tag in
18454 :[FHL]*:*);;
18455 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18456 :[FH]-) ac_tag=-:-;;
18457 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18458 esac
18459 ac_save_IFS=$IFS
18460 IFS=:
18461 set x $ac_tag
18462 IFS=$ac_save_IFS
18463 shift
18464 ac_file=$1
18465 shift
18466
18467 case $ac_mode in
18468 :L) ac_source=$1;;
18469 :[FH])
18470 ac_file_inputs=
18471 for ac_f
18472 do
18473 case $ac_f in
18474 -) ac_f="$ac_tmp/stdin";;
18475 *) # Look for the file first in the build tree, then in the source tree
18476 # (if the path is not absolute). The absolute path cannot be DOS-style,
18477 # because $ac_f cannot contain `:'.
18478 test -f "$ac_f" ||
18479 case $ac_f in
18480 [\\/$]*) false;;
18481 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18482 esac ||
18483 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18484 esac
18485 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18486 as_fn_append ac_file_inputs " '$ac_f'"
18487 done
18488
18489 # Let's still pretend it is `configure' which instantiates (i.e., don't
18490 # use $as_me), people would be surprised to read:
18491 # /* config.h. Generated by config.status. */
18492 configure_input='Generated from '`
18493 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18494 `' by configure.'
18495 if test x"$ac_file" != x-; then
18496 configure_input="$ac_file. $configure_input"
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18498 $as_echo "$as_me: creating $ac_file" >&6;}
18499 fi
18500 # Neutralize special characters interpreted by sed in replacement strings.
18501 case $configure_input in #(
18502 *\&* | *\|* | *\\* )
18503 ac_sed_conf_input=`$as_echo "$configure_input" |
18504 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18505 *) ac_sed_conf_input=$configure_input;;
18506 esac
18507
18508 case $ac_tag in
18509 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18511 esac
18512 ;;
18513 esac
18514
18515 ac_dir=`$as_dirname -- "$ac_file" ||
18516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18517 X"$ac_file" : 'X\(//\)[^/]' \| \
18518 X"$ac_file" : 'X\(//\)$' \| \
18519 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18520 $as_echo X"$ac_file" |
18521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18522 s//\1/
18523 q
18524 }
18525 /^X\(\/\/\)[^/].*/{
18526 s//\1/
18527 q
18528 }
18529 /^X\(\/\/\)$/{
18530 s//\1/
18531 q
18532 }
18533 /^X\(\/\).*/{
18534 s//\1/
18535 q
18536 }
18537 s/.*/./; q'`
18538 as_dir="$ac_dir"; as_fn_mkdir_p
18539 ac_builddir=.
18540
18541 case "$ac_dir" in
18542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18543 *)
18544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18545 # A ".." for each directory in $ac_dir_suffix.
18546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18547 case $ac_top_builddir_sub in
18548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18550 esac ;;
18551 esac
18552 ac_abs_top_builddir=$ac_pwd
18553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18554 # for backward compatibility:
18555 ac_top_builddir=$ac_top_build_prefix
18556
18557 case $srcdir in
18558 .) # We are building in place.
18559 ac_srcdir=.
18560 ac_top_srcdir=$ac_top_builddir_sub
18561 ac_abs_top_srcdir=$ac_pwd ;;
18562 [\\/]* | ?:[\\/]* ) # Absolute name.
18563 ac_srcdir=$srcdir$ac_dir_suffix;
18564 ac_top_srcdir=$srcdir
18565 ac_abs_top_srcdir=$srcdir ;;
18566 *) # Relative name.
18567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18568 ac_top_srcdir=$ac_top_build_prefix$srcdir
18569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18570 esac
18571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18572
18573
18574 case $ac_mode in
18575 :F)
18576 #
18577 # CONFIG_FILE
18578 #
18579
18580 case $INSTALL in
18581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18582 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18583 esac
18584 ac_MKDIR_P=$MKDIR_P
18585 case $MKDIR_P in
18586 [\\/$]* | ?:[\\/]* ) ;;
18587 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18588 esac
18589 _ACEOF
18590
18591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18592 # If the template does not know about datarootdir, expand it.
18593 # FIXME: This hack should be removed a few years after 2.60.
18594 ac_datarootdir_hack=; ac_datarootdir_seen=
18595 ac_sed_dataroot='
18596 /datarootdir/ {
18597 p
18598 q
18599 }
18600 /@datadir@/p
18601 /@docdir@/p
18602 /@infodir@/p
18603 /@localedir@/p
18604 /@mandir@/p'
18605 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18606 *datarootdir*) ac_datarootdir_seen=yes;;
18607 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18609 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18610 _ACEOF
18611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18612 ac_datarootdir_hack='
18613 s&@datadir@&$datadir&g
18614 s&@docdir@&$docdir&g
18615 s&@infodir@&$infodir&g
18616 s&@localedir@&$localedir&g
18617 s&@mandir@&$mandir&g
18618 s&\\\${datarootdir}&$datarootdir&g' ;;
18619 esac
18620 _ACEOF
18621
18622 # Neutralize VPATH when `$srcdir' = `.'.
18623 # Shell code in configure.ac might set extrasub.
18624 # FIXME: do we really want to maintain this feature?
18625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18626 ac_sed_extra="$ac_vpsub
18627 $extrasub
18628 _ACEOF
18629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18630 :t
18631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18632 s|@configure_input@|$ac_sed_conf_input|;t t
18633 s&@top_builddir@&$ac_top_builddir_sub&;t t
18634 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18635 s&@srcdir@&$ac_srcdir&;t t
18636 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18637 s&@top_srcdir@&$ac_top_srcdir&;t t
18638 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18639 s&@builddir@&$ac_builddir&;t t
18640 s&@abs_builddir@&$ac_abs_builddir&;t t
18641 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18642 s&@INSTALL@&$ac_INSTALL&;t t
18643 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18644 $ac_datarootdir_hack
18645 "
18646 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18647 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18648
18649 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18650 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18651 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18652 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18654 which seems to be undefined. Please make sure it is defined" >&5
18655 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18656 which seems to be undefined. Please make sure it is defined" >&2;}
18657
18658 rm -f "$ac_tmp/stdin"
18659 case $ac_file in
18660 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18661 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18662 esac \
18663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18664 ;;
18665 :H)
18666 #
18667 # CONFIG_HEADER
18668 #
18669 if test x"$ac_file" != x-; then
18670 {
18671 $as_echo "/* $configure_input */" \
18672 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18673 } >"$ac_tmp/config.h" \
18674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18675 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18677 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18678 else
18679 rm -f "$ac_file"
18680 mv "$ac_tmp/config.h" "$ac_file" \
18681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18682 fi
18683 else
18684 $as_echo "/* $configure_input */" \
18685 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18686 || as_fn_error $? "could not create -" "$LINENO" 5
18687 fi
18688 # Compute "$ac_file"'s index in $config_headers.
18689 _am_arg="$ac_file"
18690 _am_stamp_count=1
18691 for _am_header in $config_headers :; do
18692 case $_am_header in
18693 $_am_arg | $_am_arg:* )
18694 break ;;
18695 * )
18696 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18697 esac
18698 done
18699 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18700 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18701 X"$_am_arg" : 'X\(//\)[^/]' \| \
18702 X"$_am_arg" : 'X\(//\)$' \| \
18703 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18704 $as_echo X"$_am_arg" |
18705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18706 s//\1/
18707 q
18708 }
18709 /^X\(\/\/\)[^/].*/{
18710 s//\1/
18711 q
18712 }
18713 /^X\(\/\/\)$/{
18714 s//\1/
18715 q
18716 }
18717 /^X\(\/\).*/{
18718 s//\1/
18719 q
18720 }
18721 s/.*/./; q'`/stamp-h$_am_stamp_count
18722 ;;
18723
18724 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18725 $as_echo "$as_me: executing $ac_file commands" >&6;}
18726 ;;
18727 esac
18728
18729
18730 case $ac_file$ac_mode in
18731 "default-1":C)
18732 # Only add multilib support code if we just rebuilt the top-level
18733 # Makefile.
18734 case " $CONFIG_FILES " in
18735 *" Makefile "*)
18736 ac_file=Makefile . ${multi_basedir}/config-ml.in
18737 ;;
18738 esac ;;
18739 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18740 # Older Autoconf quotes --file arguments for eval, but not when files
18741 # are listed without --file. Let's play safe and only enable the eval
18742 # if we detect the quoting.
18743 case $CONFIG_FILES in
18744 *\'*) eval set x "$CONFIG_FILES" ;;
18745 *) set x $CONFIG_FILES ;;
18746 esac
18747 shift
18748 for mf
18749 do
18750 # Strip MF so we end up with the name of the file.
18751 mf=`echo "$mf" | sed -e 's/:.*$//'`
18752 # Check whether this is an Automake generated Makefile or not.
18753 # We used to match only the files named 'Makefile.in', but
18754 # some people rename them; so instead we look at the file content.
18755 # Grep'ing the first line is not enough: some people post-process
18756 # each Makefile.in and add a new line on top of each file to say so.
18757 # Grep'ing the whole file is not good either: AIX grep has a line
18758 # limit of 2048, but all sed's we know have understand at least 4000.
18759 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18760 dirpart=`$as_dirname -- "$mf" ||
18761 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18762 X"$mf" : 'X\(//\)[^/]' \| \
18763 X"$mf" : 'X\(//\)$' \| \
18764 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18765 $as_echo X"$mf" |
18766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18767 s//\1/
18768 q
18769 }
18770 /^X\(\/\/\)[^/].*/{
18771 s//\1/
18772 q
18773 }
18774 /^X\(\/\/\)$/{
18775 s//\1/
18776 q
18777 }
18778 /^X\(\/\).*/{
18779 s//\1/
18780 q
18781 }
18782 s/.*/./; q'`
18783 else
18784 continue
18785 fi
18786 # Extract the definition of DEPDIR, am__include, and am__quote
18787 # from the Makefile without running 'make'.
18788 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18789 test -z "$DEPDIR" && continue
18790 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18791 test -z "$am__include" && continue
18792 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18793 # Find all dependency output files, they are included files with
18794 # $(DEPDIR) in their names. We invoke sed twice because it is the
18795 # simplest approach to changing $(DEPDIR) to its actual value in the
18796 # expansion.
18797 for file in `sed -n "
18798 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18799 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18800 # Make sure the directory exists.
18801 test -f "$dirpart/$file" && continue
18802 fdir=`$as_dirname -- "$file" ||
18803 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18804 X"$file" : 'X\(//\)[^/]' \| \
18805 X"$file" : 'X\(//\)$' \| \
18806 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18807 $as_echo X"$file" |
18808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18809 s//\1/
18810 q
18811 }
18812 /^X\(\/\/\)[^/].*/{
18813 s//\1/
18814 q
18815 }
18816 /^X\(\/\/\)$/{
18817 s//\1/
18818 q
18819 }
18820 /^X\(\/\).*/{
18821 s//\1/
18822 q
18823 }
18824 s/.*/./; q'`
18825 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18826 # echo "creating $dirpart/$file"
18827 echo '# dummy' > "$dirpart/$file"
18828 done
18829 done
18830 }
18831 ;;
18832 "libtool":C)
18833
18834 # See if we are running on zsh, and set the options which allow our
18835 # commands through without removal of \ escapes.
18836 if test -n "${ZSH_VERSION+set}" ; then
18837 setopt NO_GLOB_SUBST
18838 fi
18839
18840 cfgfile="${ofile}T"
18841 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18842 $RM "$cfgfile"
18843
18844 cat <<_LT_EOF >> "$cfgfile"
18845 #! $SHELL
18846
18847 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18848 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18850 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18851 #
18852 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18853 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18854 # Written by Gordon Matzigkeit, 1996
18855 #
18856 # This file is part of GNU Libtool.
18857 #
18858 # GNU Libtool is free software; you can redistribute it and/or
18859 # modify it under the terms of the GNU General Public License as
18860 # published by the Free Software Foundation; either version 2 of
18861 # the License, or (at your option) any later version.
18862 #
18863 # As a special exception to the GNU General Public License,
18864 # if you distribute this file as part of a program or library that
18865 # is built using GNU Libtool, you may include this file under the
18866 # same distribution terms that you use for the rest of that program.
18867 #
18868 # GNU Libtool is distributed in the hope that it will be useful,
18869 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18870 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18871 # GNU General Public License for more details.
18872 #
18873 # You should have received a copy of the GNU General Public License
18874 # along with GNU Libtool; see the file COPYING. If not, a copy
18875 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18876 # obtained by writing to the Free Software Foundation, Inc.,
18877 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18878
18879
18880 # The names of the tagged configurations supported by this script.
18881 available_tags="FC "
18882
18883 # ### BEGIN LIBTOOL CONFIG
18884
18885 # Which release of libtool.m4 was used?
18886 macro_version=$macro_version
18887 macro_revision=$macro_revision
18888
18889 # Whether or not to build shared libraries.
18890 build_libtool_libs=$enable_shared
18891
18892 # Whether or not to build static libraries.
18893 build_old_libs=$enable_static
18894
18895 # What type of objects to build.
18896 pic_mode=$pic_mode
18897
18898 # Whether or not to optimize for fast installation.
18899 fast_install=$enable_fast_install
18900
18901 # Shell to use when invoking shell scripts.
18902 SHELL=$lt_SHELL
18903
18904 # An echo program that protects backslashes.
18905 ECHO=$lt_ECHO
18906
18907 # The host system.
18908 host_alias=$host_alias
18909 host=$host
18910 host_os=$host_os
18911
18912 # The build system.
18913 build_alias=$build_alias
18914 build=$build
18915 build_os=$build_os
18916
18917 # A sed program that does not truncate output.
18918 SED=$lt_SED
18919
18920 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18921 Xsed="\$SED -e 1s/^X//"
18922
18923 # A grep program that handles long lines.
18924 GREP=$lt_GREP
18925
18926 # An ERE matcher.
18927 EGREP=$lt_EGREP
18928
18929 # A literal string matcher.
18930 FGREP=$lt_FGREP
18931
18932 # A BSD- or MS-compatible name lister.
18933 NM=$lt_NM
18934
18935 # Whether we need soft or hard links.
18936 LN_S=$lt_LN_S
18937
18938 # What is the maximum length of a command?
18939 max_cmd_len=$max_cmd_len
18940
18941 # Object file suffix (normally "o").
18942 objext=$ac_objext
18943
18944 # Executable file suffix (normally "").
18945 exeext=$exeext
18946
18947 # whether the shell understands "unset".
18948 lt_unset=$lt_unset
18949
18950 # turn spaces into newlines.
18951 SP2NL=$lt_lt_SP2NL
18952
18953 # turn newlines into spaces.
18954 NL2SP=$lt_lt_NL2SP
18955
18956 # An object symbol dumper.
18957 OBJDUMP=$lt_OBJDUMP
18958
18959 # Method to check whether dependent libraries are shared objects.
18960 deplibs_check_method=$lt_deplibs_check_method
18961
18962 # Command to use when deplibs_check_method == "file_magic".
18963 file_magic_cmd=$lt_file_magic_cmd
18964
18965 # The archiver.
18966 AR=$lt_AR
18967 AR_FLAGS=$lt_AR_FLAGS
18968
18969 # A symbol stripping program.
18970 STRIP=$lt_STRIP
18971
18972 # Commands used to install an old-style archive.
18973 RANLIB=$lt_RANLIB
18974 old_postinstall_cmds=$lt_old_postinstall_cmds
18975 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18976
18977 # Whether to use a lock for old archive extraction.
18978 lock_old_archive_extraction=$lock_old_archive_extraction
18979
18980 # A C compiler.
18981 LTCC=$lt_CC
18982
18983 # LTCC compiler flags.
18984 LTCFLAGS=$lt_CFLAGS
18985
18986 # Take the output of nm and produce a listing of raw symbols and C names.
18987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18988
18989 # Transform the output of nm in a proper C declaration.
18990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18991
18992 # Transform the output of nm in a C name address pair.
18993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18994
18995 # Transform the output of nm in a C name address pair when lib prefix is needed.
18996 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18997
18998 # The name of the directory that contains temporary libtool files.
18999 objdir=$objdir
19000
19001 # Used to examine libraries when file_magic_cmd begins with "file".
19002 MAGIC_CMD=$MAGIC_CMD
19003
19004 # Must we lock files when doing compilation?
19005 need_locks=$lt_need_locks
19006
19007 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19008 DSYMUTIL=$lt_DSYMUTIL
19009
19010 # Tool to change global to local symbols on Mac OS X.
19011 NMEDIT=$lt_NMEDIT
19012
19013 # Tool to manipulate fat objects and archives on Mac OS X.
19014 LIPO=$lt_LIPO
19015
19016 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19017 OTOOL=$lt_OTOOL
19018
19019 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19020 OTOOL64=$lt_OTOOL64
19021
19022 # Old archive suffix (normally "a").
19023 libext=$libext
19024
19025 # Shared library suffix (normally ".so").
19026 shrext_cmds=$lt_shrext_cmds
19027
19028 # The commands to extract the exported symbol list from a shared archive.
19029 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19030
19031 # Variables whose values should be saved in libtool wrapper scripts and
19032 # restored at link time.
19033 variables_saved_for_relink=$lt_variables_saved_for_relink
19034
19035 # Do we need the "lib" prefix for modules?
19036 need_lib_prefix=$need_lib_prefix
19037
19038 # Do we need a version for libraries?
19039 need_version=$need_version
19040
19041 # Library versioning type.
19042 version_type=$version_type
19043
19044 # Shared library runtime path variable.
19045 runpath_var=$runpath_var
19046
19047 # Shared library path variable.
19048 shlibpath_var=$shlibpath_var
19049
19050 # Is shlibpath searched before the hard-coded library search path?
19051 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19052
19053 # Format of library name prefix.
19054 libname_spec=$lt_libname_spec
19055
19056 # List of archive names. First name is the real one, the rest are links.
19057 # The last name is the one that the linker finds with -lNAME
19058 library_names_spec=$lt_library_names_spec
19059
19060 # The coded name of the library, if different from the real name.
19061 soname_spec=$lt_soname_spec
19062
19063 # Permission mode override for installation of shared libraries.
19064 install_override_mode=$lt_install_override_mode
19065
19066 # Command to use after installation of a shared archive.
19067 postinstall_cmds=$lt_postinstall_cmds
19068
19069 # Command to use after uninstallation of a shared archive.
19070 postuninstall_cmds=$lt_postuninstall_cmds
19071
19072 # Commands used to finish a libtool library installation in a directory.
19073 finish_cmds=$lt_finish_cmds
19074
19075 # As "finish_cmds", except a single script fragment to be evaled but
19076 # not shown.
19077 finish_eval=$lt_finish_eval
19078
19079 # Whether we should hardcode library paths into libraries.
19080 hardcode_into_libs=$hardcode_into_libs
19081
19082 # Compile-time system search path for libraries.
19083 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19084
19085 # Run-time system search path for libraries.
19086 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19087
19088 # Whether dlopen is supported.
19089 dlopen_support=$enable_dlopen
19090
19091 # Whether dlopen of programs is supported.
19092 dlopen_self=$enable_dlopen_self
19093
19094 # Whether dlopen of statically linked programs is supported.
19095 dlopen_self_static=$enable_dlopen_self_static
19096
19097 # Commands to strip libraries.
19098 old_striplib=$lt_old_striplib
19099 striplib=$lt_striplib
19100
19101
19102 # The linker used to build libraries.
19103 LD=$lt_LD
19104
19105 # How to create reloadable object files.
19106 reload_flag=$lt_reload_flag
19107 reload_cmds=$lt_reload_cmds
19108
19109 # Commands used to build an old-style archive.
19110 old_archive_cmds=$lt_old_archive_cmds
19111
19112 # A language specific compiler.
19113 CC=$lt_compiler
19114
19115 # Is the compiler the GNU compiler?
19116 with_gcc=$GCC
19117
19118 # Compiler flag to turn off builtin functions.
19119 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19120
19121 # How to pass a linker flag through the compiler.
19122 wl=$lt_lt_prog_compiler_wl
19123
19124 # Additional compiler flags for building library objects.
19125 pic_flag=$lt_lt_prog_compiler_pic
19126
19127 # Compiler flag to prevent dynamic linking.
19128 link_static_flag=$lt_lt_prog_compiler_static
19129
19130 # Does compiler simultaneously support -c and -o options?
19131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19132
19133 # Whether or not to add -lc for building shared libraries.
19134 build_libtool_need_lc=$archive_cmds_need_lc
19135
19136 # Whether or not to disallow shared libs when runtime libs are static.
19137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19138
19139 # Compiler flag to allow reflexive dlopens.
19140 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19141
19142 # Compiler flag to generate shared objects directly from archives.
19143 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19144
19145 # Whether the compiler copes with passing no objects directly.
19146 compiler_needs_object=$lt_compiler_needs_object
19147
19148 # Create an old-style archive from a shared archive.
19149 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19150
19151 # Create a temporary old-style archive to link instead of a shared archive.
19152 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19153
19154 # Commands used to build a shared archive.
19155 archive_cmds=$lt_archive_cmds
19156 archive_expsym_cmds=$lt_archive_expsym_cmds
19157
19158 # Commands used to build a loadable module if different from building
19159 # a shared archive.
19160 module_cmds=$lt_module_cmds
19161 module_expsym_cmds=$lt_module_expsym_cmds
19162
19163 # Whether we are building with GNU ld or not.
19164 with_gnu_ld=$lt_with_gnu_ld
19165
19166 # Flag that allows shared libraries with undefined symbols to be built.
19167 allow_undefined_flag=$lt_allow_undefined_flag
19168
19169 # Flag that enforces no undefined symbols.
19170 no_undefined_flag=$lt_no_undefined_flag
19171
19172 # Flag to hardcode \$libdir into a binary during linking.
19173 # This must work even if \$libdir does not exist
19174 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19175
19176 # If ld is used when linking, flag to hardcode \$libdir into a binary
19177 # during linking. This must work even if \$libdir does not exist.
19178 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19179
19180 # Whether we need a single "-rpath" flag with a separated argument.
19181 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19182
19183 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19184 # DIR into the resulting binary.
19185 hardcode_direct=$hardcode_direct
19186
19187 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19188 # DIR into the resulting binary and the resulting library dependency is
19189 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19190 # library is relocated.
19191 hardcode_direct_absolute=$hardcode_direct_absolute
19192
19193 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19194 # into the resulting binary.
19195 hardcode_minus_L=$hardcode_minus_L
19196
19197 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19198 # into the resulting binary.
19199 hardcode_shlibpath_var=$hardcode_shlibpath_var
19200
19201 # Set to "yes" if building a shared library automatically hardcodes DIR
19202 # into the library and all subsequent libraries and executables linked
19203 # against it.
19204 hardcode_automatic=$hardcode_automatic
19205
19206 # Set to yes if linker adds runtime paths of dependent libraries
19207 # to runtime path list.
19208 inherit_rpath=$inherit_rpath
19209
19210 # Whether libtool must link a program against all its dependency libraries.
19211 link_all_deplibs=$link_all_deplibs
19212
19213 # Fix the shell variable \$srcfile for the compiler.
19214 fix_srcfile_path=$lt_fix_srcfile_path
19215
19216 # Set to "yes" if exported symbols are required.
19217 always_export_symbols=$always_export_symbols
19218
19219 # The commands to list exported symbols.
19220 export_symbols_cmds=$lt_export_symbols_cmds
19221
19222 # Symbols that should not be listed in the preloaded symbols.
19223 exclude_expsyms=$lt_exclude_expsyms
19224
19225 # Symbols that must always be exported.
19226 include_expsyms=$lt_include_expsyms
19227
19228 # Commands necessary for linking programs (against libraries) with templates.
19229 prelink_cmds=$lt_prelink_cmds
19230
19231 # Specify filename containing input files.
19232 file_list_spec=$lt_file_list_spec
19233
19234 # How to hardcode a shared library path into an executable.
19235 hardcode_action=$hardcode_action
19236
19237 # The directories searched by this compiler when creating a shared library.
19238 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19239
19240 # Dependencies to place before and after the objects being linked to
19241 # create a shared library.
19242 predep_objects=$lt_predep_objects
19243 postdep_objects=$lt_postdep_objects
19244 predeps=$lt_predeps
19245 postdeps=$lt_postdeps
19246
19247 # The library search path used internally by the compiler when linking
19248 # a shared library.
19249 compiler_lib_search_path=$lt_compiler_lib_search_path
19250
19251 # ### END LIBTOOL CONFIG
19252
19253 _LT_EOF
19254
19255 case $host_os in
19256 aix3*)
19257 cat <<\_LT_EOF >> "$cfgfile"
19258 # AIX sometimes has problems with the GCC collect2 program. For some
19259 # reason, if we set the COLLECT_NAMES environment variable, the problems
19260 # vanish in a puff of smoke.
19261 if test "X${COLLECT_NAMES+set}" != Xset; then
19262 COLLECT_NAMES=
19263 export COLLECT_NAMES
19264 fi
19265 _LT_EOF
19266 ;;
19267 esac
19268
19269
19270 ltmain="$ac_aux_dir/ltmain.sh"
19271
19272
19273 # We use sed instead of cat because bash on DJGPP gets confused if
19274 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19275 # text mode, it properly converts lines to CR/LF. This bash problem
19276 # is reportedly fixed, but why not run on old versions too?
19277 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19278 || (rm -f "$cfgfile"; exit 1)
19279
19280 case $xsi_shell in
19281 yes)
19282 cat << \_LT_EOF >> "$cfgfile"
19283
19284 # func_dirname file append nondir_replacement
19285 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19286 # otherwise set result to NONDIR_REPLACEMENT.
19287 func_dirname ()
19288 {
19289 case ${1} in
19290 */*) func_dirname_result="${1%/*}${2}" ;;
19291 * ) func_dirname_result="${3}" ;;
19292 esac
19293 }
19294
19295 # func_basename file
19296 func_basename ()
19297 {
19298 func_basename_result="${1##*/}"
19299 }
19300
19301 # func_dirname_and_basename file append nondir_replacement
19302 # perform func_basename and func_dirname in a single function
19303 # call:
19304 # dirname: Compute the dirname of FILE. If nonempty,
19305 # add APPEND to the result, otherwise set result
19306 # to NONDIR_REPLACEMENT.
19307 # value returned in "$func_dirname_result"
19308 # basename: Compute filename of FILE.
19309 # value retuned in "$func_basename_result"
19310 # Implementation must be kept synchronized with func_dirname
19311 # and func_basename. For efficiency, we do not delegate to
19312 # those functions but instead duplicate the functionality here.
19313 func_dirname_and_basename ()
19314 {
19315 case ${1} in
19316 */*) func_dirname_result="${1%/*}${2}" ;;
19317 * ) func_dirname_result="${3}" ;;
19318 esac
19319 func_basename_result="${1##*/}"
19320 }
19321
19322 # func_stripname prefix suffix name
19323 # strip PREFIX and SUFFIX off of NAME.
19324 # PREFIX and SUFFIX must not contain globbing or regex special
19325 # characters, hashes, percent signs, but SUFFIX may contain a leading
19326 # dot (in which case that matches only a dot).
19327 func_stripname ()
19328 {
19329 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19330 # positional parameters, so assign one to ordinary parameter first.
19331 func_stripname_result=${3}
19332 func_stripname_result=${func_stripname_result#"${1}"}
19333 func_stripname_result=${func_stripname_result%"${2}"}
19334 }
19335
19336 # func_opt_split
19337 func_opt_split ()
19338 {
19339 func_opt_split_opt=${1%%=*}
19340 func_opt_split_arg=${1#*=}
19341 }
19342
19343 # func_lo2o object
19344 func_lo2o ()
19345 {
19346 case ${1} in
19347 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19348 *) func_lo2o_result=${1} ;;
19349 esac
19350 }
19351
19352 # func_xform libobj-or-source
19353 func_xform ()
19354 {
19355 func_xform_result=${1%.*}.lo
19356 }
19357
19358 # func_arith arithmetic-term...
19359 func_arith ()
19360 {
19361 func_arith_result=$(( $* ))
19362 }
19363
19364 # func_len string
19365 # STRING may not start with a hyphen.
19366 func_len ()
19367 {
19368 func_len_result=${#1}
19369 }
19370
19371 _LT_EOF
19372 ;;
19373 *) # Bourne compatible functions.
19374 cat << \_LT_EOF >> "$cfgfile"
19375
19376 # func_dirname file append nondir_replacement
19377 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19378 # otherwise set result to NONDIR_REPLACEMENT.
19379 func_dirname ()
19380 {
19381 # Extract subdirectory from the argument.
19382 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19383 if test "X$func_dirname_result" = "X${1}"; then
19384 func_dirname_result="${3}"
19385 else
19386 func_dirname_result="$func_dirname_result${2}"
19387 fi
19388 }
19389
19390 # func_basename file
19391 func_basename ()
19392 {
19393 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19394 }
19395
19396
19397 # func_stripname prefix suffix name
19398 # strip PREFIX and SUFFIX off of NAME.
19399 # PREFIX and SUFFIX must not contain globbing or regex special
19400 # characters, hashes, percent signs, but SUFFIX may contain a leading
19401 # dot (in which case that matches only a dot).
19402 # func_strip_suffix prefix name
19403 func_stripname ()
19404 {
19405 case ${2} in
19406 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19407 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19408 esac
19409 }
19410
19411 # sed scripts:
19412 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19413 my_sed_long_arg='1s/^-[^=]*=//'
19414
19415 # func_opt_split
19416 func_opt_split ()
19417 {
19418 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19419 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19420 }
19421
19422 # func_lo2o object
19423 func_lo2o ()
19424 {
19425 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19426 }
19427
19428 # func_xform libobj-or-source
19429 func_xform ()
19430 {
19431 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19432 }
19433
19434 # func_arith arithmetic-term...
19435 func_arith ()
19436 {
19437 func_arith_result=`expr "$@"`
19438 }
19439
19440 # func_len string
19441 # STRING may not start with a hyphen.
19442 func_len ()
19443 {
19444 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19445 }
19446
19447 _LT_EOF
19448 esac
19449
19450 case $lt_shell_append in
19451 yes)
19452 cat << \_LT_EOF >> "$cfgfile"
19453
19454 # func_append var value
19455 # Append VALUE to the end of shell variable VAR.
19456 func_append ()
19457 {
19458 eval "$1+=\$2"
19459 }
19460 _LT_EOF
19461 ;;
19462 *)
19463 cat << \_LT_EOF >> "$cfgfile"
19464
19465 # func_append var value
19466 # Append VALUE to the end of shell variable VAR.
19467 func_append ()
19468 {
19469 eval "$1=\$$1\$2"
19470 }
19471
19472 _LT_EOF
19473 ;;
19474 esac
19475
19476
19477 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19478 || (rm -f "$cfgfile"; exit 1)
19479
19480 mv -f "$cfgfile" "$ofile" ||
19481 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19482 chmod +x "$ofile"
19483
19484
19485 cat <<_LT_EOF >> "$ofile"
19486
19487 # ### BEGIN LIBTOOL TAG CONFIG: FC
19488
19489 # The linker used to build libraries.
19490 LD=$lt_LD_FC
19491
19492 # How to create reloadable object files.
19493 reload_flag=$lt_reload_flag_FC
19494 reload_cmds=$lt_reload_cmds_FC
19495
19496 # Commands used to build an old-style archive.
19497 old_archive_cmds=$lt_old_archive_cmds_FC
19498
19499 # A language specific compiler.
19500 CC=$lt_compiler_FC
19501
19502 # Is the compiler the GNU compiler?
19503 with_gcc=$GCC_FC
19504
19505 # Compiler flag to turn off builtin functions.
19506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19507
19508 # How to pass a linker flag through the compiler.
19509 wl=$lt_lt_prog_compiler_wl_FC
19510
19511 # Additional compiler flags for building library objects.
19512 pic_flag=$lt_lt_prog_compiler_pic_FC
19513
19514 # Compiler flag to prevent dynamic linking.
19515 link_static_flag=$lt_lt_prog_compiler_static_FC
19516
19517 # Does compiler simultaneously support -c and -o options?
19518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19519
19520 # Whether or not to add -lc for building shared libraries.
19521 build_libtool_need_lc=$archive_cmds_need_lc_FC
19522
19523 # Whether or not to disallow shared libs when runtime libs are static.
19524 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19525
19526 # Compiler flag to allow reflexive dlopens.
19527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19528
19529 # Compiler flag to generate shared objects directly from archives.
19530 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19531
19532 # Whether the compiler copes with passing no objects directly.
19533 compiler_needs_object=$lt_compiler_needs_object_FC
19534
19535 # Create an old-style archive from a shared archive.
19536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19537
19538 # Create a temporary old-style archive to link instead of a shared archive.
19539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19540
19541 # Commands used to build a shared archive.
19542 archive_cmds=$lt_archive_cmds_FC
19543 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19544
19545 # Commands used to build a loadable module if different from building
19546 # a shared archive.
19547 module_cmds=$lt_module_cmds_FC
19548 module_expsym_cmds=$lt_module_expsym_cmds_FC
19549
19550 # Whether we are building with GNU ld or not.
19551 with_gnu_ld=$lt_with_gnu_ld_FC
19552
19553 # Flag that allows shared libraries with undefined symbols to be built.
19554 allow_undefined_flag=$lt_allow_undefined_flag_FC
19555
19556 # Flag that enforces no undefined symbols.
19557 no_undefined_flag=$lt_no_undefined_flag_FC
19558
19559 # Flag to hardcode \$libdir into a binary during linking.
19560 # This must work even if \$libdir does not exist
19561 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19562
19563 # If ld is used when linking, flag to hardcode \$libdir into a binary
19564 # during linking. This must work even if \$libdir does not exist.
19565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19566
19567 # Whether we need a single "-rpath" flag with a separated argument.
19568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19569
19570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19571 # DIR into the resulting binary.
19572 hardcode_direct=$hardcode_direct_FC
19573
19574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19575 # DIR into the resulting binary and the resulting library dependency is
19576 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19577 # library is relocated.
19578 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19579
19580 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19581 # into the resulting binary.
19582 hardcode_minus_L=$hardcode_minus_L_FC
19583
19584 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19585 # into the resulting binary.
19586 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19587
19588 # Set to "yes" if building a shared library automatically hardcodes DIR
19589 # into the library and all subsequent libraries and executables linked
19590 # against it.
19591 hardcode_automatic=$hardcode_automatic_FC
19592
19593 # Set to yes if linker adds runtime paths of dependent libraries
19594 # to runtime path list.
19595 inherit_rpath=$inherit_rpath_FC
19596
19597 # Whether libtool must link a program against all its dependency libraries.
19598 link_all_deplibs=$link_all_deplibs_FC
19599
19600 # Fix the shell variable \$srcfile for the compiler.
19601 fix_srcfile_path=$lt_fix_srcfile_path_FC
19602
19603 # Set to "yes" if exported symbols are required.
19604 always_export_symbols=$always_export_symbols_FC
19605
19606 # The commands to list exported symbols.
19607 export_symbols_cmds=$lt_export_symbols_cmds_FC
19608
19609 # Symbols that should not be listed in the preloaded symbols.
19610 exclude_expsyms=$lt_exclude_expsyms_FC
19611
19612 # Symbols that must always be exported.
19613 include_expsyms=$lt_include_expsyms_FC
19614
19615 # Commands necessary for linking programs (against libraries) with templates.
19616 prelink_cmds=$lt_prelink_cmds_FC
19617
19618 # Specify filename containing input files.
19619 file_list_spec=$lt_file_list_spec_FC
19620
19621 # How to hardcode a shared library path into an executable.
19622 hardcode_action=$hardcode_action_FC
19623
19624 # The directories searched by this compiler when creating a shared library.
19625 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19626
19627 # Dependencies to place before and after the objects being linked to
19628 # create a shared library.
19629 predep_objects=$lt_predep_objects_FC
19630 postdep_objects=$lt_postdep_objects_FC
19631 predeps=$lt_predeps_FC
19632 postdeps=$lt_postdeps_FC
19633
19634 # The library search path used internally by the compiler when linking
19635 # a shared library.
19636 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19637
19638 # ### END LIBTOOL TAG CONFIG: FC
19639 _LT_EOF
19640
19641 ;;
19642
19643 esac
19644 done # for ac_tag
19645
19646
19647 as_fn_exit 0
19648 _ACEOF
19649 ac_clean_files=$ac_clean_files_save
19650
19651 test $ac_write_fail = 0 ||
19652 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19653
19654
19655 # configure is writing to config.log, and then calls config.status.
19656 # config.status does its own redirection, appending to config.log.
19657 # Unfortunately, on DOS this fails, as config.log is still kept open
19658 # by configure, so config.status won't be able to write to it; its
19659 # output is simply discarded. So we exec the FD to /dev/null,
19660 # effectively closing config.log, so it can be properly (re)opened and
19661 # appended to by config.status. When coming back to configure, we
19662 # need to make the FD available again.
19663 if test "$no_create" != yes; then
19664 ac_cs_success=:
19665 ac_config_status_args=
19666 test "$silent" = yes &&
19667 ac_config_status_args="$ac_config_status_args --quiet"
19668 exec 5>/dev/null
19669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19670 exec 5>>config.log
19671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19672 # would make configure fail if this is the last instruction.
19673 $ac_cs_success || as_fn_exit 1
19674 fi
19675 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19677 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19678 fi
19679