]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/configure
regenerate configure files
[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 CPU_COUNT
660 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
666 OPT_LDFLAGS
667 SECTION_LDFLAGS
668 PLUGIN_GCN_FALSE
669 PLUGIN_GCN_TRUE
670 PLUGIN_NVPTX_FALSE
671 PLUGIN_NVPTX_TRUE
672 offload_additional_lib_paths
673 offload_additional_options
674 offload_targets
675 offload_plugins
676 DL_LIBS
677 libtool_VERSION
678 ac_ct_FC
679 FCFLAGS
680 FC
681 MAINT
682 MAINTAINER_MODE_FALSE
683 MAINTAINER_MODE_TRUE
684 enable_static
685 enable_shared
686 lt_host_flags
687 CPP
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 OBJDUMP
694 LN_S
695 NM
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 EGREP
701 GREP
702 SED
703 LIBTOOL
704 BUILD_INFO_FALSE
705 BUILD_INFO_TRUE
706 PERL
707 RANLIB
708 AR
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 toolexeclibdir
727 toolexecdir
728 multi_basedir
729 AM_BACKSLASH
730 AM_DEFAULT_VERBOSITY
731 AM_DEFAULT_V
732 AM_V
733 am__untar
734 am__tar
735 AMTAR
736 am__leading_dot
737 SET_MAKE
738 AWK
739 mkdir_p
740 MKDIR_P
741 INSTALL_STRIP_PROGRAM
742 STRIP
743 install_sh
744 MAKEINFO
745 AUTOHEADER
746 AUTOMAKE
747 AUTOCONF
748 ACLOCAL
749 VERSION
750 PACKAGE
751 CYGPATH_W
752 am__isrc
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 target_os
757 target_vendor
758 target_cpu
759 target
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 GENINSRC_FALSE
769 GENINSRC_TRUE
770 target_alias
771 host_alias
772 build_alias
773 LIBS
774 ECHO_T
775 ECHO_N
776 ECHO_C
777 DEFS
778 mandir
779 localedir
780 libdir
781 psdir
782 pdfdir
783 dvidir
784 htmldir
785 infodir
786 docdir
787 oldincludedir
788 includedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_version_specific_runtime_libs
812 enable_generated_files_in_srcdir
813 enable_silent_rules
814 enable_multilib
815 with_toolexeclibdir
816 enable_dependency_tracking
817 enable_werror
818 enable_shared
819 enable_static
820 with_pic
821 enable_fast_install
822 with_gnu_ld
823 enable_libtool_lock
824 enable_maintainer_mode
825 enable_linux_futex
826 enable_tls
827 enable_symvers
828 enable_cet
829 with_gcc_major_version_only
830 '
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CPP
835 CPPFLAGS
836 FC
837 FCFLAGS
838 LDFLAGS
839 LIBS'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
906
907 # Accept the important Cygnus configure options, so we can diagnose typos.
908
909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
912
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
917
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
932
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
937
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
960
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
965
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
970
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
986
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1006
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1011
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1017
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1034
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1041
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1058
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1062
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1066
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1070
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1079
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1084
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1091
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1098
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1115
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1120
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1125
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1135
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1146
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1151
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1156
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1163
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1168
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1171
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1174
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1190
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1206
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1210
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1217
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1224
1225 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1227 ;;
1228
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1238
1239 *)
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245 ;;
1246
1247 esac
1248 done
1249
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error $? "missing argument to $ac_option"
1253 fi
1254
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1261 fi
1262
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1268 do
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1283
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1290
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1297 fi
1298 fi
1299
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303 test "$silent" = yes && exec 6>/dev/null
1304
1305
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error $? "pwd does not report name of working directory"
1312
1313
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\).*/{
1337 s//\1/
1338 q
1339 }
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1344 fi
1345 else
1346 ac_srcdir_defaulted=no
1347 fi
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1372
1373 #
1374 # Report the --help message.
1375 #
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1379 cat <<_ACEOF
1380 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1381
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1386
1387 Defaults for the options are specified in brackets.
1388
1389 Configuration:
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking ...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 [PREFIX]
1405
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1410
1411 For better control, use the options below.
1412
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1433 _ACEOF
1434
1435 cat <<\_ACEOF
1436
1437 Program names:
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 --target=TARGET configure for building compilers for TARGET [HOST]
1446 _ACEOF
1447 fi
1448
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1452 esac
1453 cat <<\_ACEOF
1454
1455 Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --enable-version-specific-runtime-libs
1460 Specify that runtime libraries should be installed
1461 in a compiler-specific directory [default=no]
1462 --enable-generated-files-in-srcdir
1463 put copies of generated files in source dir intended
1464 for creating source tarballs for users without
1465 texinfo bison or flex. [default=no]
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --enable-multilib build many library versions (default)
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
1473 --disable-werror disable building with -Werror
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-linux-futex use the Linux futex system call [default=default]
1483 --enable-tls Use thread-local storage [default=yes]
1484 --enable-symvers=STYLE enables symbol versioning of the shared library
1485 [default=yes]
1486 --enable-cet enable Intel CET in target libraries [default=auto]
1487
1488 Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-toolexeclibdir=DIR
1492 install libraries built with a cross compiler within
1493 DIR
1494 --with-pic try to use only PIC/non-PIC objects [default=use
1495 both]
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-gcc-major-version-only
1498 use only GCC major number in filesystem paths
1499
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CPP C preprocessor
1509 FC Fortran compiler command
1510 FCFLAGS Fortran compiler flags
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to the package provider.
1516 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1517 General help using GNU software: <http://www.gnu.org/gethelp/>.
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 GNU Offloading and Multi Processing Runtime Library configure 1.0
1581 generated by GNU Autoconf 2.69
1582
1583 Copyright (C) 2012 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_compile
1631
1632 # ac_fn_c_try_link LINENO
1633 # -----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_link ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext conftest$ac_exeext
1639 if { { ac_try="$ac_link"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
1659 test -x conftest$ac_exeext
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_link
1677
1678 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists and can be compiled using the include files in
1681 # INCLUDES, setting the cache variable VAR accordingly.
1682 ac_fn_c_check_header_compile ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1689 else
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 $4
1693 #include <$2>
1694 _ACEOF
1695 if ac_fn_c_try_compile "$LINENO"; then :
1696 eval "$3=yes"
1697 else
1698 eval "$3=no"
1699 fi
1700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_header_compile
1708
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_cpp ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i && {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740 fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_cpp
1745
1746 # ac_fn_c_try_run LINENO
1747 # ----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749 # that executables *can* be run.
1750 ac_fn_c_try_run ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_link"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=$ac_status
1781 fi
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_run
1787
1788 # ac_fn_c_check_func LINENO FUNC VAR
1789 # ----------------------------------
1790 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1791 ac_fn_c_check_func ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1804
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below.
1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808 <limits.h> exists even on freestanding compilers. */
1809
1810 #ifdef __STDC__
1811 # include <limits.h>
1812 #else
1813 # include <assert.h>
1814 #endif
1815
1816 #undef $2
1817
1818 /* Override any GCC internal prototype to avoid an error.
1819 Use char because int might match the return type of a GCC
1820 builtin and then its argument prototype would still apply. */
1821 #ifdef __cplusplus
1822 extern "C"
1823 #endif
1824 char $2 ();
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined __stub_$2 || defined __stub___$2
1829 choke me
1830 #endif
1831
1832 int
1833 main ()
1834 {
1835 return $2 ();
1836 ;
1837 return 0;
1838 }
1839 _ACEOF
1840 if ac_fn_c_try_link "$LINENO"; then :
1841 eval "$3=yes"
1842 else
1843 eval "$3=no"
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext \
1846 conftest$ac_exeext conftest.$ac_ext
1847 fi
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853 } # ac_fn_c_check_func
1854
1855 # ac_fn_fc_try_compile LINENO
1856 # ---------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_fc_try_compile ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext
1862 if { { ac_try="$ac_compile"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_fc_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885
1886 ac_retval=1
1887 fi
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891 } # ac_fn_fc_try_compile
1892
1893 # ac_fn_fc_try_link LINENO
1894 # ------------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_fc_try_link ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_fc_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928 fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936
1937 } # ac_fn_fc_try_link
1938
1939 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942 # the include files in INCLUDES and setting the cache variable VAR
1943 # accordingly.
1944 ac_fn_c_check_header_mongrel ()
1945 {
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if eval \${$3+:} false; then :
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952 fi
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 else
1957 # Is the header compilable?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959 $as_echo_n "checking $2 usability... " >&6; }
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1962 $4
1963 #include <$2>
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 ac_header_compiler=yes
1967 else
1968 ac_header_compiler=no
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972 $as_echo "$ac_header_compiler" >&6; }
1973
1974 # Is the header present?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976 $as_echo_n "checking $2 presence... " >&6; }
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_cpp "$LINENO"; then :
1982 ac_header_preproc=yes
1983 else
1984 ac_header_preproc=no
1985 fi
1986 rm -f conftest.err conftest.i conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988 $as_echo "$ac_header_preproc" >&6; }
1989
1990 # So? What about this header?
1991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1992 yes:no: )
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 ;;
1998 no:yes:* )
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2002 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2006 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 ;;
2010 esac
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 eval "$3=\$ac_header_compiler"
2017 fi
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 fi
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024 } # ac_fn_c_check_header_mongrel
2025
2026 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2027 # --------------------------------------------
2028 # Tries to find the compile-time value of EXPR in a program that includes
2029 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2030 # computed
2031 ac_fn_c_compute_int ()
2032 {
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 if test "$cross_compiling" = yes; then
2035 # Depending upon the size, compute the lo and hi bounds.
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2038 $4
2039 int
2040 main ()
2041 {
2042 static int test_array [1 - 2 * !(($2) >= 0)];
2043 test_array [0] = 0;
2044 return test_array [0];
2045
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 ac_lo=0 ac_mid=0
2052 while :; do
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 int
2057 main ()
2058 {
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060 test_array [0] = 0;
2061 return test_array [0];
2062
2063 ;
2064 return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_hi=$ac_mid; break
2069 else
2070 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2071 if test $ac_lo -le $ac_mid; then
2072 ac_lo= ac_hi=
2073 break
2074 fi
2075 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 done
2079 else
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 int
2084 main ()
2085 {
2086 static int test_array [1 - 2 * !(($2) < 0)];
2087 test_array [0] = 0;
2088 return test_array [0];
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=-1 ac_mid=-1
2096 while :; do
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $4
2100 int
2101 main ()
2102 {
2103 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2104 test_array [0] = 0;
2105 return test_array [0];
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_lo=$ac_mid; break
2113 else
2114 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2115 if test $ac_mid -le $ac_hi; then
2116 ac_lo= ac_hi=
2117 break
2118 fi
2119 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123 else
2124 ac_lo= ac_hi=
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 # Binary search between lo and hi bounds.
2130 while test "x$ac_lo" != "x$ac_hi"; do
2131 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2134 $4
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139 test_array [0] = 0;
2140 return test_array [0];
2141
2142 ;
2143 return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid
2148 else
2149 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 case $ac_lo in #((
2154 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2155 '') ac_retval=1 ;;
2156 esac
2157 else
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2160 $4
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2163 #include <stdio.h>
2164 #include <stdlib.h>
2165 int
2166 main ()
2167 {
2168
2169 FILE *f = fopen ("conftest.val", "w");
2170 if (! f)
2171 return 1;
2172 if (($2) < 0)
2173 {
2174 long int i = longval ();
2175 if (i != ($2))
2176 return 1;
2177 fprintf (f, "%ld", i);
2178 }
2179 else
2180 {
2181 unsigned long int i = ulongval ();
2182 if (i != ($2))
2183 return 1;
2184 fprintf (f, "%lu", i);
2185 }
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2189
2190 ;
2191 return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_run "$LINENO"; then :
2195 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2196 else
2197 ac_retval=1
2198 fi
2199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2200 conftest.$ac_objext conftest.beam conftest.$ac_ext
2201 rm -f conftest.val
2202
2203 fi
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status $ac_retval
2206
2207 } # ac_fn_c_compute_int
2208
2209 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2210 # -------------------------------------------
2211 # Tests whether TYPE exists after having included INCLUDES, setting cache
2212 # variable VAR accordingly.
2213 ac_fn_c_check_type ()
2214 {
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if eval \${$3+:} false; then :
2219 $as_echo_n "(cached) " >&6
2220 else
2221 eval "$3=no"
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 $4
2225 int
2226 main ()
2227 {
2228 if (sizeof ($2))
2229 return 0;
2230 ;
2231 return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2237 $4
2238 int
2239 main ()
2240 {
2241 if (sizeof (($2)))
2242 return 0;
2243 ;
2244 return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248
2249 else
2250 eval "$3=yes"
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260
2261 } # ac_fn_c_check_type
2262 cat >config.log <<_ACEOF
2263 This file contains any messages produced by compilers while
2264 running configure, to aid debugging if configure makes a mistake.
2265
2266 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2267 generated by GNU Autoconf 2.69. Invocation command line was
2268
2269 $ $0 $@
2270
2271 _ACEOF
2272 exec 5>>config.log
2273 {
2274 cat <<_ASUNAME
2275 ## --------- ##
2276 ## Platform. ##
2277 ## --------- ##
2278
2279 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2284
2285 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2287
2288 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2292 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2295
2296 _ASUNAME
2297
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 $as_echo "PATH: $as_dir"
2304 done
2305 IFS=$as_save_IFS
2306
2307 } >&5
2308
2309 cat >&5 <<_ACEOF
2310
2311
2312 ## ----------- ##
2313 ## Core tests. ##
2314 ## ----------- ##
2315
2316 _ACEOF
2317
2318
2319 # Keep a trace of the command line.
2320 # Strip out --no-create and --no-recursion so they do not pile up.
2321 # Strip out --silent because we don't want to record it for future runs.
2322 # Also quote any args containing shell meta-characters.
2323 # Make two passes to allow for proper duplicate-argument suppression.
2324 ac_configure_args=
2325 ac_configure_args0=
2326 ac_configure_args1=
2327 ac_must_keep_next=false
2328 for ac_pass in 1 2
2329 do
2330 for ac_arg
2331 do
2332 case $ac_arg in
2333 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2335 | -silent | --silent | --silen | --sile | --sil)
2336 continue ;;
2337 *\'*)
2338 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 esac
2340 case $ac_pass in
2341 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2342 2)
2343 as_fn_append ac_configure_args1 " '$ac_arg'"
2344 if test $ac_must_keep_next = true; then
2345 ac_must_keep_next=false # Got value, back to normal.
2346 else
2347 case $ac_arg in
2348 *=* | --config-cache | -C | -disable-* | --disable-* \
2349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2351 | -with-* | --with-* | -without-* | --without-* | --x)
2352 case "$ac_configure_args0 " in
2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354 esac
2355 ;;
2356 -* ) ac_must_keep_next=true ;;
2357 esac
2358 fi
2359 as_fn_append ac_configure_args " '$ac_arg'"
2360 ;;
2361 esac
2362 done
2363 done
2364 { ac_configure_args0=; unset ac_configure_args0;}
2365 { ac_configure_args1=; unset ac_configure_args1;}
2366
2367 # When interrupted or exit'd, cleanup temporary files, and complete
2368 # config.log. We remove comments because anyway the quotes in there
2369 # would cause problems or look ugly.
2370 # WARNING: Use '\'' to represent an apostrophe within the trap.
2371 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372 trap 'exit_status=$?
2373 # Save into config.log some information that might help in debugging.
2374 {
2375 echo
2376
2377 $as_echo "## ---------------- ##
2378 ## Cache variables. ##
2379 ## ---------------- ##"
2380 echo
2381 # The following way of writing the cache mishandles newlines in values,
2382 (
2383 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2384 eval ac_val=\$$ac_var
2385 case $ac_val in #(
2386 *${as_nl}*)
2387 case $ac_var in #(
2388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2389 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2390 esac
2391 case $ac_var in #(
2392 _ | IFS | as_nl) ;; #(
2393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2394 *) { eval $ac_var=; unset $ac_var;} ;;
2395 esac ;;
2396 esac
2397 done
2398 (set) 2>&1 |
2399 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2400 *${as_nl}ac_space=\ *)
2401 sed -n \
2402 "s/'\''/'\''\\\\'\'''\''/g;
2403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2404 ;; #(
2405 *)
2406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2407 ;;
2408 esac |
2409 sort
2410 )
2411 echo
2412
2413 $as_echo "## ----------------- ##
2414 ## Output variables. ##
2415 ## ----------------- ##"
2416 echo
2417 for ac_var in $ac_subst_vars
2418 do
2419 eval ac_val=\$$ac_var
2420 case $ac_val in
2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 esac
2423 $as_echo "$ac_var='\''$ac_val'\''"
2424 done | sort
2425 echo
2426
2427 if test -n "$ac_subst_files"; then
2428 $as_echo "## ------------------- ##
2429 ## File substitutions. ##
2430 ## ------------------- ##"
2431 echo
2432 for ac_var in $ac_subst_files
2433 do
2434 eval ac_val=\$$ac_var
2435 case $ac_val in
2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 esac
2438 $as_echo "$ac_var='\''$ac_val'\''"
2439 done | sort
2440 echo
2441 fi
2442
2443 if test -s confdefs.h; then
2444 $as_echo "## ----------- ##
2445 ## confdefs.h. ##
2446 ## ----------- ##"
2447 echo
2448 cat confdefs.h
2449 echo
2450 fi
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2454 } >&5
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457 exit $exit_status
2458 ' 0
2459 for ac_signal in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2461 done
2462 ac_signal=0
2463
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest* confdefs.h
2466
2467 $as_echo "/* confdefs.h */" > confdefs.h
2468
2469 # Predefined preprocessor variables.
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2473 _ACEOF
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477 _ACEOF
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2493 _ACEOF
2494
2495
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2498 ac_site_file1=NONE
2499 ac_site_file2=NONE
2500 if test -n "$CONFIG_SITE"; then
2501 # We do not want a PATH search for config.site.
2502 case $CONFIG_SITE in #((
2503 -*) ac_site_file1=./$CONFIG_SITE;;
2504 */*) ac_site_file1=$CONFIG_SITE;;
2505 *) ac_site_file1=./$CONFIG_SITE;;
2506 esac
2507 elif test "x$prefix" != xNONE; then
2508 ac_site_file1=$prefix/share/config.site
2509 ac_site_file2=$prefix/etc/config.site
2510 else
2511 ac_site_file1=$ac_default_prefix/share/config.site
2512 ac_site_file2=$ac_default_prefix/etc/config.site
2513 fi
2514 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2515 do
2516 test "x$ac_site_file" = xNONE && continue
2517 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2519 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2520 sed 's/^/| /' "$ac_site_file" >&5
2521 . "$ac_site_file" \
2522 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 as_fn_error $? "failed to load site script $ac_site_file
2525 See \`config.log' for more details" "$LINENO" 5; }
2526 fi
2527 done
2528
2529 if test -r "$cache_file"; then
2530 # Some versions of bash will fail to source /dev/null (special files
2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2532 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2534 $as_echo "$as_me: loading cache $cache_file" >&6;}
2535 case $cache_file in
2536 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2537 *) . "./$cache_file";;
2538 esac
2539 fi
2540 else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2542 $as_echo "$as_me: creating cache $cache_file" >&6;}
2543 >$cache_file
2544 fi
2545
2546 as_fn_append ac_header_list " unistd.h"
2547 as_fn_append ac_func_list " secure_getenv"
2548 as_fn_append ac_func_list " __secure_getenv"
2549 as_fn_append ac_func_list " getuid"
2550 as_fn_append ac_func_list " geteuid"
2551 as_fn_append ac_func_list " getgid"
2552 as_fn_append ac_func_list " getegid"
2553 # Check that the precious variables saved in the cache have kept the same
2554 # value.
2555 ac_cache_corrupted=false
2556 for ac_var in $ac_precious_vars; do
2557 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2558 eval ac_new_set=\$ac_env_${ac_var}_set
2559 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2560 eval ac_new_val=\$ac_env_${ac_var}_value
2561 case $ac_old_set,$ac_new_set in
2562 set,)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2566 ,set)
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2569 ac_cache_corrupted=: ;;
2570 ,);;
2571 *)
2572 if test "x$ac_old_val" != "x$ac_new_val"; then
2573 # differences in whitespace do not lead to failure.
2574 ac_old_val_w=`echo x $ac_old_val`
2575 ac_new_val_w=`echo x $ac_new_val`
2576 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2578 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2579 ac_cache_corrupted=:
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2582 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2583 eval $ac_var=\$ac_old_val
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2586 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2588 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2589 fi;;
2590 esac
2591 # Pass precious variables to config.status.
2592 if test "$ac_new_set" = set; then
2593 case $ac_new_val in
2594 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2595 *) ac_arg=$ac_var=$ac_new_val ;;
2596 esac
2597 case " $ac_configure_args " in
2598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2599 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2600 esac
2601 fi
2602 done
2603 if $ac_cache_corrupted; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2607 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2608 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2609 fi
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2613
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619
2620
2621
2622
2623
2624 ac_config_headers="$ac_config_headers config.h"
2625
2626
2627 # -------
2628 # Options
2629 # -------
2630
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2632 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2633 # Check whether --enable-version-specific-runtime-libs was given.
2634 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2635 enableval=$enable_version_specific_runtime_libs;
2636 case "$enableval" in
2637 yes|no) ;;
2638 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2639 esac
2640
2641 else
2642 enable_version_specific_runtime_libs=no
2643 fi
2644
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2647 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2648
2649 # We would like our source tree to be readonly. However when releases or
2650 # pre-releases are generated, the flex/bison generated files as well as the
2651 # various formats of manuals need to be included along with the rest of the
2652 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2653 # just that.
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2655 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2656 # Check whether --enable-generated-files-in-srcdir was given.
2657 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2658 enableval=$enable_generated_files_in_srcdir;
2659 case "$enableval" in
2660 yes|no) ;;
2661 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2662 esac
2663
2664 else
2665 enable_generated_files_in_srcdir=no
2666 fi
2667
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2670 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2671 if test "$enable_generated_files_in_srcdir" = yes; then
2672 GENINSRC_TRUE=
2673 GENINSRC_FALSE='#'
2674 else
2675 GENINSRC_TRUE='#'
2676 GENINSRC_FALSE=
2677 fi
2678
2679
2680
2681 # -------
2682 # -------
2683
2684 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2685 #
2686 # You will slowly go insane if you do not grok the following fact: when
2687 # building this library, the top-level /target/ becomes the library's /host/.
2688 #
2689 # configure then causes --target to default to --host, exactly like any
2690 # other package using autoconf. Therefore, 'target' and 'host' will
2691 # always be the same. This makes sense both for native and cross compilers
2692 # just think about it for a little while. :-)
2693 #
2694 # Also, if this library is being configured as part of a cross compiler, the
2695 # top-level configure script will pass the "real" host as $with_cross_host.
2696 #
2697 # Do not delete or change the following two lines. For why, see
2698 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2699 ac_aux_dir=
2700 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2701 if test -f "$ac_dir/install-sh"; then
2702 ac_aux_dir=$ac_dir
2703 ac_install_sh="$ac_aux_dir/install-sh -c"
2704 break
2705 elif test -f "$ac_dir/install.sh"; then
2706 ac_aux_dir=$ac_dir
2707 ac_install_sh="$ac_aux_dir/install.sh -c"
2708 break
2709 elif test -f "$ac_dir/shtool"; then
2710 ac_aux_dir=$ac_dir
2711 ac_install_sh="$ac_aux_dir/shtool install -c"
2712 break
2713 fi
2714 done
2715 if test -z "$ac_aux_dir"; then
2716 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2717 fi
2718
2719 # These three variables are undocumented and unsupported,
2720 # and are intended to be withdrawn in a future Autoconf release.
2721 # They can cause serious problems if a builder's source tree is in a directory
2722 # whose full name contains unusual characters.
2723 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2724 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2725 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2726
2727
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if ${ac_cv_build+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 ac_build_alias=$build_alias
2738 test "x$ac_build_alias" = x &&
2739 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x &&
2741 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744
2745 fi
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2749 *-*-*) ;;
2750 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2751 esac
2752 build=$ac_cv_build
2753 ac_save_IFS=$IFS; IFS='-'
2754 set x $ac_cv_build
2755 shift
2756 build_cpu=$1
2757 build_vendor=$2
2758 shift; shift
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2761 build_os=$*
2762 IFS=$ac_save_IFS
2763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if ${ac_cv_host+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test "x$host_alias" = x; then
2772 ac_cv_host=$ac_cv_build
2773 else
2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776 fi
2777
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2781 case $ac_cv_host in
2782 *-*-*) ;;
2783 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2784 esac
2785 host=$ac_cv_host
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_host
2788 shift
2789 host_cpu=$1
2790 host_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 host_os=$*
2795 IFS=$ac_save_IFS
2796 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2797
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800 $as_echo_n "checking target system type... " >&6; }
2801 if ${ac_cv_target+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 if test "x$target_alias" = x; then
2805 ac_cv_target=$ac_cv_host
2806 else
2807 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2809 fi
2810
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813 $as_echo "$ac_cv_target" >&6; }
2814 case $ac_cv_target in
2815 *-*-*) ;;
2816 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2817 esac
2818 target=$ac_cv_target
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_target
2821 shift
2822 target_cpu=$1
2823 target_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 target_os=$*
2828 IFS=$ac_save_IFS
2829 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2830
2831
2832 # The aliases save the names the user supplied, while $host etc.
2833 # will get canonicalized.
2834 test -n "$target_alias" &&
2835 test "$program_prefix$program_suffix$program_transform_name" = \
2836 NONENONEs,x,x, &&
2837 program_prefix=${target_alias}-
2838
2839 target_alias=${target_alias-$host_alias}
2840
2841 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2842 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2843 # 1.9.0: minimum required version
2844 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2845 # of other PACKAGE_* variables will, however, and there's nothing
2846 # we can do about that; they come from AC_INIT).
2847 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2848 # file in the top srcdir, etc, etc), so stop complaining.
2849 # no-dist: we don't want 'dist' and related rules.
2850 # -Wall: turns on all automake warnings...
2851 # -Wno-portability: ...except this one, since GNU make is required.
2852 # -Wno-override: ... and this one, since we do want this in testsuite.
2853 am__api_version='1.15'
2854
2855 # Find a good install program. We prefer a C program (faster),
2856 # so one script is as good as another. But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2861 # AIX /bin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if ${ac_cv_path_install+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882 ./ | .// | /[cC]/* | \
2883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2885 /usr/ucb/* ) ;;
2886 *)
2887 # OSF1 and SCO ODT 3.0 have their own names for install.
2888 # Don't use installbsd from OSF since it installs stuff as root
2889 # by default.
2890 for ac_prog in ginstall scoinst install; do
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2893 if test $ac_prog = install &&
2894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895 # AIX install. It has an incompatible calling convention.
2896 :
2897 elif test $ac_prog = install &&
2898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # program-specific install script used by HP pwplus--don't use.
2900 :
2901 else
2902 rm -rf conftest.one conftest.two conftest.dir
2903 echo one > conftest.one
2904 echo two > conftest.two
2905 mkdir conftest.dir
2906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2907 test -s conftest.one && test -s conftest.two &&
2908 test -s conftest.dir/conftest.one &&
2909 test -s conftest.dir/conftest.two
2910 then
2911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2912 break 3
2913 fi
2914 fi
2915 fi
2916 done
2917 done
2918 ;;
2919 esac
2920
2921 done
2922 IFS=$as_save_IFS
2923
2924 rm -rf conftest.one conftest.two conftest.dir
2925
2926 fi
2927 if test "${ac_cv_path_install+set}" = set; then
2928 INSTALL=$ac_cv_path_install
2929 else
2930 # As a last resort, use the slow shell script. Don't cache a
2931 # value for INSTALL within a source directory, because that will
2932 # break other packages using the cache if that directory is
2933 # removed, or if the value is a relative name.
2934 INSTALL=$ac_install_sh
2935 fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2939
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2943
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2945
2946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2950 # Reject unsafe characters in $srcdir or the absolute working directory
2951 # name. Accept space and tab only in the latter.
2952 am_lf='
2953 '
2954 case `pwd` in
2955 *[\\\"\#\$\&\'\`$am_lf]*)
2956 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2957 esac
2958 case $srcdir in
2959 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2960 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2961 esac
2962
2963 # Do 'set' in a subshell so we don't clobber the current shell's
2964 # arguments. Must try -L first in case configure is actually a
2965 # symlink; some systems play weird games with the mod time of symlinks
2966 # (eg FreeBSD returns the mod time of the symlink's containing
2967 # directory).
2968 if (
2969 am_has_slept=no
2970 for am_try in 1 2; do
2971 echo "timestamp, slept: $am_has_slept" > conftest.file
2972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973 if test "$*" = "X"; then
2974 # -L didn't work.
2975 set X `ls -t "$srcdir/configure" conftest.file`
2976 fi
2977 if test "$*" != "X $srcdir/configure conftest.file" \
2978 && test "$*" != "X conftest.file $srcdir/configure"; then
2979
2980 # If neither matched, then we have a broken ls. This can happen
2981 # if, for instance, CONFIG_SHELL is bash and it inherits a
2982 # broken ls alias from the environment. This has actually
2983 # happened. Such a system could not be considered "sane".
2984 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2985 alias in your environment" "$LINENO" 5
2986 fi
2987 if test "$2" = conftest.file || test $am_try -eq 2; then
2988 break
2989 fi
2990 # Just in case.
2991 sleep 1
2992 am_has_slept=yes
2993 done
2994 test "$2" = conftest.file
2995 )
2996 then
2997 # Ok.
2998 :
2999 else
3000 as_fn_error $? "newly created file is older than distributed files!
3001 Check your system clock" "$LINENO" 5
3002 fi
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3004 $as_echo "yes" >&6; }
3005 # If we didn't sleep, we still need to ensure time stamps of config.status and
3006 # generated files are strictly newer.
3007 am_sleep_pid=
3008 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3009 ( sleep 1 ) &
3010 am_sleep_pid=$!
3011 fi
3012
3013 rm -f conftest.file
3014
3015 test "$program_prefix" != NONE &&
3016 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3017 # Use a double $ so make ignores it.
3018 test "$program_suffix" != NONE &&
3019 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3020 # Double any \ or $.
3021 # By default was `s,x,x', remove it if useless.
3022 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3023 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3024
3025 # Expand $ac_aux_dir to an absolute path.
3026 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3027
3028 if test x"${MISSING+set}" != xset; then
3029 case $am_aux_dir in
3030 *\ * | *\ *)
3031 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3032 *)
3033 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3034 esac
3035 fi
3036 # Use eval to expand $SHELL
3037 if eval "$MISSING --is-lightweight"; then
3038 am_missing_run="$MISSING "
3039 else
3040 am_missing_run=
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3042 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3043 fi
3044
3045 if test x"${install_sh+set}" != xset; then
3046 case $am_aux_dir in
3047 *\ * | *\ *)
3048 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3049 *)
3050 install_sh="\${SHELL} $am_aux_dir/install-sh"
3051 esac
3052 fi
3053
3054 # Installed binaries are usually stripped using 'strip' when the user
3055 # run "make install-strip". However 'strip' might not be the right
3056 # tool to use in cross-compilation environments, therefore Automake
3057 # will honor the 'STRIP' environment variable to overrule this program.
3058 if test "$cross_compiling" != no; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}strip; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_STRIP+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$STRIP"; then
3068 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 STRIP=$ac_cv_prog_STRIP
3088 if test -n "$STRIP"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3090 $as_echo "$STRIP" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097 fi
3098 if test -z "$ac_cv_prog_STRIP"; then
3099 ac_ct_STRIP=$STRIP
3100 # Extract the first word of "strip", so it can be a program name with args.
3101 set dummy strip; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$ac_ct_STRIP"; then
3108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_STRIP="strip"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3128 if test -n "$ac_ct_STRIP"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3130 $as_echo "$ac_ct_STRIP" >&6; }
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136 if test "x$ac_ct_STRIP" = x; then
3137 STRIP=":"
3138 else
3139 case $cross_compiling:$ac_tool_warned in
3140 yes:)
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 ac_tool_warned=yes ;;
3144 esac
3145 STRIP=$ac_ct_STRIP
3146 fi
3147 else
3148 STRIP="$ac_cv_prog_STRIP"
3149 fi
3150
3151 fi
3152 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3153
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3155 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3156 if test -z "$MKDIR_P"; then
3157 if ${ac_cv_path_mkdir+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3162 do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_prog in mkdir gmkdir; do
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3168 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3169 'mkdir (GNU coreutils) '* | \
3170 'mkdir (coreutils) '* | \
3171 'mkdir (fileutils) '4.1*)
3172 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3173 break 3;;
3174 esac
3175 done
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 fi
3181
3182 test -d ./--version && rmdir ./--version
3183 if test "${ac_cv_path_mkdir+set}" = set; then
3184 MKDIR_P="$ac_cv_path_mkdir -p"
3185 else
3186 # As a last resort, use the slow shell script. Don't cache a
3187 # value for MKDIR_P within a source directory, because that will
3188 # break other packages using the cache if that directory is
3189 # removed, or if the value is a relative name.
3190 MKDIR_P="$ac_install_sh -d"
3191 fi
3192 fi
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3194 $as_echo "$MKDIR_P" >&6; }
3195
3196 for ac_prog in gawk mawk nawk awk
3197 do
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_AWK+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$AWK"; then
3206 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_AWK="$ac_prog"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219 done
3220 done
3221 IFS=$as_save_IFS
3222
3223 fi
3224 fi
3225 AWK=$ac_cv_prog_AWK
3226 if test -n "$AWK"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3228 $as_echo "$AWK" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234
3235 test -n "$AWK" && break
3236 done
3237
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3239 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3240 set x ${MAKE-make}
3241 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3242 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 cat >conftest.make <<\_ACEOF
3246 SHELL = /bin/sh
3247 all:
3248 @echo '@@@%%%=$(MAKE)=@@@%%%'
3249 _ACEOF
3250 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3251 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3252 *@@@%%%=?*=@@@%%%*)
3253 eval ac_cv_prog_make_${ac_make}_set=yes;;
3254 *)
3255 eval ac_cv_prog_make_${ac_make}_set=no;;
3256 esac
3257 rm -f conftest.make
3258 fi
3259 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3262 SET_MAKE=
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 SET_MAKE="MAKE=${MAKE-make}"
3267 fi
3268
3269 rm -rf .tst 2>/dev/null
3270 mkdir .tst 2>/dev/null
3271 if test -d .tst; then
3272 am__leading_dot=.
3273 else
3274 am__leading_dot=_
3275 fi
3276 rmdir .tst 2>/dev/null
3277
3278 # Check whether --enable-silent-rules was given.
3279 if test "${enable_silent_rules+set}" = set; then :
3280 enableval=$enable_silent_rules;
3281 fi
3282
3283 case $enable_silent_rules in # (((
3284 yes) AM_DEFAULT_VERBOSITY=0;;
3285 no) AM_DEFAULT_VERBOSITY=1;;
3286 *) AM_DEFAULT_VERBOSITY=1;;
3287 esac
3288 am_make=${MAKE-make}
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3290 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3291 if ${am_cv_make_support_nested_variables+:} false; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if $as_echo 'TRUE=$(BAR$(V))
3295 BAR0=false
3296 BAR1=true
3297 V=1
3298 am__doit:
3299 @$(TRUE)
3300 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3301 am_cv_make_support_nested_variables=yes
3302 else
3303 am_cv_make_support_nested_variables=no
3304 fi
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3307 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3308 if test $am_cv_make_support_nested_variables = yes; then
3309 AM_V='$(V)'
3310 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3311 else
3312 AM_V=$AM_DEFAULT_VERBOSITY
3313 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3314 fi
3315 AM_BACKSLASH='\'
3316
3317 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3318 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3319 # is not polluted with repeated "-I."
3320 am__isrc=' -I$(srcdir)'
3321 # test to see if srcdir already configured
3322 if test -f $srcdir/config.status; then
3323 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3324 fi
3325 fi
3326
3327 # test whether we have cygpath
3328 if test -z "$CYGPATH_W"; then
3329 if (cygpath --version) >/dev/null 2>/dev/null; then
3330 CYGPATH_W='cygpath -w'
3331 else
3332 CYGPATH_W=echo
3333 fi
3334 fi
3335
3336
3337 # Define the identity of the package.
3338 PACKAGE='libgomp'
3339 VERSION='1.0'
3340
3341
3342 cat >>confdefs.h <<_ACEOF
3343 #define PACKAGE "$PACKAGE"
3344 _ACEOF
3345
3346
3347 cat >>confdefs.h <<_ACEOF
3348 #define VERSION "$VERSION"
3349 _ACEOF
3350
3351 # Some tools Automake needs.
3352
3353 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3354
3355
3356 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3357
3358
3359 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3360
3361
3362 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3363
3364
3365 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3366
3367 # For better backward compatibility. To be removed once Automake 1.9.x
3368 # dies out for good. For more background, see:
3369 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3370 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3371 mkdir_p='$(MKDIR_P)'
3372
3373 # We need awk for the "check" target (and possibly the TAP driver). The
3374 # system "awk" is bad on some platforms.
3375 # Always define AMTAR for backward compatibility. Yes, it's still used
3376 # in the wild :-( We should find a proper way to deprecate it ...
3377 AMTAR='$${TAR-tar}'
3378
3379
3380 # We'll loop over all known methods to create a tar archive until one works.
3381 _am_tools='gnutar pax cpio none'
3382
3383 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3384
3385
3386
3387
3388
3389
3390 # POSIX will say in a future version that running "rm -f" with no argument
3391 # is OK; and we want to be able to make that assumption in our Makefile
3392 # recipes. So use an aggressive probe to check that the usage we want is
3393 # actually supported "in the wild" to an acceptable degree.
3394 # See automake bug#10828.
3395 # To make any issue more visible, cause the running configure to be aborted
3396 # by default if the 'rm' program in use doesn't match our expectations; the
3397 # user can still override this though.
3398 if rm -f && rm -fr && rm -rf; then : OK; else
3399 cat >&2 <<'END'
3400 Oops!
3401
3402 Your 'rm' program seems unable to run without file operands specified
3403 on the command line, even when the '-f' option is present. This is contrary
3404 to the behaviour of most rm programs out there, and not conforming with
3405 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3406
3407 Please tell bug-automake@gnu.org about your system, including the value
3408 of your $PATH and any error possibly output before this message. This
3409 can help us improve future automake versions.
3410
3411 END
3412 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3413 echo 'Configuration will proceed anyway, since you have set the' >&2
3414 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3415 echo >&2
3416 else
3417 cat >&2 <<'END'
3418 Aborting the configuration process, to ensure you take notice of the issue.
3419
3420 You can download and install GNU coreutils to get an 'rm' implementation
3421 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3422
3423 If you want to complete the configuration process using your problematic
3424 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3425 to "yes", and re-run configure.
3426
3427 END
3428 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3429 fi
3430 fi
3431
3432 # Default to --enable-multilib
3433 # Check whether --enable-multilib was given.
3434 if test "${enable_multilib+set}" = set; then :
3435 enableval=$enable_multilib; case "$enableval" in
3436 yes) multilib=yes ;;
3437 no) multilib=no ;;
3438 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3439 esac
3440 else
3441 multilib=yes
3442 fi
3443
3444
3445 # We may get other options which we leave undocumented:
3446 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3447 # See config-ml.in if you want the gory details.
3448
3449 if test "$srcdir" = "."; then
3450 if test "$with_target_subdir" != "."; then
3451 multi_basedir="$srcdir/$with_multisrctop../.."
3452 else
3453 multi_basedir="$srcdir/$with_multisrctop.."
3454 fi
3455 else
3456 multi_basedir="$srcdir/.."
3457 fi
3458
3459
3460 # Even if the default multilib is not a cross compilation,
3461 # it may be that some of the other multilibs are.
3462 if test $cross_compiling = no && test $multilib = yes \
3463 && test "x${with_multisubdir}" != x ; then
3464 cross_compiling=maybe
3465 fi
3466
3467 ac_config_commands="$ac_config_commands default-1"
3468
3469
3470
3471 # Check whether --with-toolexeclibdir was given.
3472 if test "${with_toolexeclibdir+set}" = set; then :
3473 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3474 /)
3475 ;;
3476 */)
3477 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3478 ;;
3479 esac
3480 else
3481 with_toolexeclibdir=no
3482 fi
3483
3484
3485
3486 # Calculate toolexeclibdir
3487 # Also toolexecdir, though it's only used in toolexeclibdir
3488 case ${enable_version_specific_runtime_libs} in
3489 yes)
3490 # Need the gcc compiler version to know where to install libraries
3491 # and header files if --enable-version-specific-runtime-libs option
3492 # is selected.
3493 toolexecdir='$(libdir)/gcc/$(target_alias)'
3494 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3495 ;;
3496 no)
3497 if test -n "$with_cross_host" &&
3498 test x"$with_cross_host" != x"no"; then
3499 # Install a library built with a cross compiler in tooldir, not libdir.
3500 toolexecdir='$(exec_prefix)/$(target_alias)'
3501 case ${with_toolexeclibdir} in
3502 no)
3503 toolexeclibdir='$(toolexecdir)/lib'
3504 ;;
3505 *)
3506 toolexeclibdir=${with_toolexeclibdir}
3507 ;;
3508 esac
3509 else
3510 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3511 toolexeclibdir='$(libdir)'
3512 fi
3513 multi_os_directory=`$CC -print-multi-os-directory`
3514 case $multi_os_directory in
3515 .) ;; # Avoid trailing /.
3516 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3517 esac
3518 ;;
3519 esac
3520
3521
3522
3523 # Check the compiler.
3524 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3525 # We must force CC to /not/ be precious variables; otherwise
3526 # the wrong, non-multilib-adjusted value will be used in multilibs.
3527 # As a side effect, we have to subst CFLAGS ourselves.
3528
3529
3530
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_CC+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3557 fi
3558 done
3559 done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3571 fi
3572
3573
3574 fi
3575 if test -z "$ac_cv_prog_CC"; then
3576 ac_ct_CC=$CC
3577 # Extract the first word of "gcc", so it can be a program name with args.
3578 set dummy gcc; ac_word=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -n "$ac_ct_CC"; then
3585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_ac_ct_CC="gcc"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 fi
3603 fi
3604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3605 if test -n "$ac_ct_CC"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3607 $as_echo "$ac_ct_CC" >&6; }
3608 else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3611 fi
3612
3613 if test "x$ac_ct_CC" = x; then
3614 CC=""
3615 else
3616 case $cross_compiling:$ac_tool_warned in
3617 yes:)
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620 ac_tool_warned=yes ;;
3621 esac
3622 CC=$ac_ct_CC
3623 fi
3624 else
3625 CC="$ac_cv_prog_CC"
3626 fi
3627
3628 if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3631 set dummy ${ac_tool_prefix}cc; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if ${ac_cv_prog_CC+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 else
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_prog_CC="${ac_tool_prefix}cc"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3650 fi
3651 done
3652 done
3653 IFS=$as_save_IFS
3654
3655 fi
3656 fi
3657 CC=$ac_cv_prog_CC
3658 if test -n "$CC"; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660 $as_echo "$CC" >&6; }
3661 else
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 fi
3665
3666
3667 fi
3668 fi
3669 if test -z "$CC"; then
3670 # Extract the first word of "cc", so it can be a program name with args.
3671 set dummy cc; ac_word=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if ${ac_cv_prog_CC+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 if test -n "$CC"; then
3678 ac_cv_prog_CC="$CC" # Let the user override the test.
3679 else
3680 ac_prog_rejected=no
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3689 ac_prog_rejected=yes
3690 continue
3691 fi
3692 ac_cv_prog_CC="cc"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3695 fi
3696 done
3697 done
3698 IFS=$as_save_IFS
3699
3700 if test $ac_prog_rejected = yes; then
3701 # We found a bogon in the path, so make sure we never use it.
3702 set dummy $ac_cv_prog_CC
3703 shift
3704 if test $# != 0; then
3705 # We chose a different compiler from the bogus one.
3706 # However, it has the same basename, so the bogon will be chosen
3707 # first if we set CC to just the basename; use the full file name.
3708 shift
3709 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3710 fi
3711 fi
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723
3724 fi
3725 if test -z "$CC"; then
3726 if test -n "$ac_tool_prefix"; then
3727 for ac_prog in cl.exe
3728 do
3729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if ${ac_cv_prog_CC+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC="$CC" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 CC=$ac_cv_prog_CC
3757 if test -n "$CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3759 $as_echo "$CC" >&6; }
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3763 fi
3764
3765
3766 test -n "$CC" && break
3767 done
3768 fi
3769 if test -z "$CC"; then
3770 ac_ct_CC=$CC
3771 for ac_prog in cl.exe
3772 do
3773 # Extract the first word of "$ac_prog", so it can be a program name with args.
3774 set dummy $ac_prog; ac_word=$2
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776 $as_echo_n "checking for $ac_word... " >&6; }
3777 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 if test -n "$ac_ct_CC"; then
3781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3782 else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3785 do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_ac_ct_CC="$ac_prog"
3791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 break 2
3793 fi
3794 done
3795 done
3796 IFS=$as_save_IFS
3797
3798 fi
3799 fi
3800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3801 if test -n "$ac_ct_CC"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3803 $as_echo "$ac_ct_CC" >&6; }
3804 else
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 $as_echo "no" >&6; }
3807 fi
3808
3809
3810 test -n "$ac_ct_CC" && break
3811 done
3812
3813 if test "x$ac_ct_CC" = x; then
3814 CC=""
3815 else
3816 case $cross_compiling:$ac_tool_warned in
3817 yes:)
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3820 ac_tool_warned=yes ;;
3821 esac
3822 CC=$ac_ct_CC
3823 fi
3824 fi
3825
3826 fi
3827
3828
3829 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 as_fn_error $? "no acceptable C compiler found in \$PATH
3832 See \`config.log' for more details" "$LINENO" 5; }
3833
3834 # Provide some information about the compiler.
3835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3836 set X $ac_compile
3837 ac_compiler=$2
3838 for ac_option in --version -v -V -qversion; do
3839 { { ac_try="$ac_compiler $ac_option >&5"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3847 ac_status=$?
3848 if test -s conftest.err; then
3849 sed '10a\
3850 ... rest of stderr output deleted ...
3851 10q' conftest.err >conftest.er1
3852 cat conftest.er1 >&5
3853 fi
3854 rm -f conftest.er1 conftest.err
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }
3857 done
3858
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861
3862 int
3863 main ()
3864 {
3865
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 ac_clean_files_save=$ac_clean_files
3871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3872 # Try to create an executable without -o first, disregard a.out.
3873 # It will help us diagnose broken compilers, and finding out an intuition
3874 # of exeext.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3878
3879 # The possible output files:
3880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3881
3882 ac_rmfiles=
3883 for ac_file in $ac_files
3884 do
3885 case $ac_file in
3886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3888 esac
3889 done
3890 rm -f $ac_rmfiles
3891
3892 if { { ac_try="$ac_link_default"
3893 case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896 esac
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_link_default") 2>&5
3900 ac_status=$?
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; then :
3903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3906 # so that the user can short-circuit this test for compilers unknown to
3907 # Autoconf.
3908 for ac_file in $ac_files ''
3909 do
3910 test -f "$ac_file" || continue
3911 case $ac_file in
3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3913 ;;
3914 [ab].out )
3915 # We found the default executable, but exeext='' is most
3916 # certainly right.
3917 break;;
3918 *.* )
3919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3920 then :; else
3921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 fi
3923 # We set ac_cv_exeext here because the later test for it is not
3924 # safe: cross compilers may not add the suffix if given an `-o'
3925 # argument, so we may need to know it at that point already.
3926 # Even if this section looks crufty: it has the advantage of
3927 # actually working.
3928 break;;
3929 * )
3930 break;;
3931 esac
3932 done
3933 test "$ac_cv_exeext" = no && ac_cv_exeext=
3934
3935 else
3936 ac_file=''
3937 fi
3938 if test -z "$ac_file"; then :
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 $as_echo "no" >&6; }
3941 $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error 77 "C compiler cannot create executables
3947 See \`config.log' for more details" "$LINENO" 5; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3953 $as_echo_n "checking for C compiler default output file name... " >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3955 $as_echo "$ac_file" >&6; }
3956 ac_exeext=$ac_cv_exeext
3957
3958 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3959 ac_clean_files=$ac_clean_files_save
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 # `rm'.
3977 for ac_file in conftest.exe conftest conftest.*; do
3978 test -f "$ac_file" || continue
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 break;;
3983 * ) break;;
3984 esac
3985 done
3986 else
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details" "$LINENO" 5; }
3991 fi
3992 rm -f conftest conftest$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3995
3996 rm -f conftest.$ac_ext
3997 EXEEXT=$ac_cv_exeext
3998 ac_exeext=$EXEEXT
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #include <stdio.h>
4002 int
4003 main ()
4004 {
4005 FILE *f = fopen ("conftest.out", "w");
4006 return ferror (f) || fclose (f) != 0;
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 ac_clean_files="$ac_clean_files conftest.out"
4013 # Check that the compiler produces executables we can run. If not, either
4014 # the compiler is broken, or we cross compile.
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4016 $as_echo_n "checking whether we are cross compiling... " >&6; }
4017 if test "$cross_compiling" != yes; then
4018 { { ac_try="$ac_link"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 $as_echo "$ac_try_echo"; } >&5
4025 (eval "$ac_link") 2>&5
4026 ac_status=$?
4027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }
4029 if { ac_try='./conftest$ac_cv_exeext'
4030 { { case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_try") 2>&5
4037 ac_status=$?
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; }; then
4040 cross_compiling=no
4041 else
4042 if test "$cross_compiling" = maybe; then
4043 cross_compiling=yes
4044 else
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error $? "cannot run C compiled programs.
4048 If you meant to cross compile, use \`--host'.
4049 See \`config.log' for more details" "$LINENO" 5; }
4050 fi
4051 fi
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4054 $as_echo "$cross_compiling" >&6; }
4055
4056 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4057 ac_clean_files=$ac_clean_files_save
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4059 $as_echo_n "checking for suffix of object files... " >&6; }
4060 if ${ac_cv_objext+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065
4066 int
4067 main ()
4068 {
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 rm -f conftest.o conftest.obj
4075 if { { ac_try="$ac_compile"
4076 case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081 $as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_compile") 2>&5
4083 ac_status=$?
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }; then :
4086 for ac_file in conftest.o conftest.obj conftest.*; do
4087 test -f "$ac_file" || continue;
4088 case $ac_file in
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4091 break;;
4092 esac
4093 done
4094 else
4095 $as_echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100 as_fn_error $? "cannot compute suffix of object files: cannot compile
4101 See \`config.log' for more details" "$LINENO" 5; }
4102 fi
4103 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4106 $as_echo "$ac_cv_objext" >&6; }
4107 OBJEXT=$ac_cv_objext
4108 ac_objext=$OBJEXT
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4110 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4111 if ${ac_cv_c_compiler_gnu+:} false; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116
4117 int
4118 main ()
4119 {
4120 #ifndef __GNUC__
4121 choke me
4122 #endif
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_compiler_gnu=yes
4130 else
4131 ac_compiler_gnu=no
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4135
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4138 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4139 if test $ac_compiler_gnu = yes; then
4140 GCC=yes
4141 else
4142 GCC=
4143 fi
4144 ac_test_CFLAGS=${CFLAGS+set}
4145 ac_save_CFLAGS=$CFLAGS
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4147 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4148 if ${ac_cv_prog_cc_g+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_save_c_werror_flag=$ac_c_werror_flag
4152 ac_c_werror_flag=yes
4153 ac_cv_prog_cc_g=no
4154 CFLAGS="-g"
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157
4158 int
4159 main ()
4160 {
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_cv_prog_cc_g=yes
4168 else
4169 CFLAGS=""
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172
4173 int
4174 main ()
4175 {
4176
4177 ;
4178 return 0;
4179 }
4180 _ACEOF
4181 if ac_fn_c_try_compile "$LINENO"; then :
4182
4183 else
4184 ac_c_werror_flag=$ac_save_c_werror_flag
4185 CFLAGS="-g"
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188
4189 int
4190 main ()
4191 {
4192
4193 ;
4194 return 0;
4195 }
4196 _ACEOF
4197 if ac_fn_c_try_compile "$LINENO"; then :
4198 ac_cv_prog_cc_g=yes
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 fi
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 ac_c_werror_flag=$ac_save_c_werror_flag
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4208 $as_echo "$ac_cv_prog_cc_g" >&6; }
4209 if test "$ac_test_CFLAGS" = set; then
4210 CFLAGS=$ac_save_CFLAGS
4211 elif test $ac_cv_prog_cc_g = yes; then
4212 if test "$GCC" = yes; then
4213 CFLAGS="-g -O2"
4214 else
4215 CFLAGS="-g"
4216 fi
4217 else
4218 if test "$GCC" = yes; then
4219 CFLAGS="-O2"
4220 else
4221 CFLAGS=
4222 fi
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4225 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4226 if ${ac_cv_prog_cc_c89+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 ac_cv_prog_cc_c89=no
4230 ac_save_CC=$CC
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #include <stdarg.h>
4234 #include <stdio.h>
4235 struct stat;
4236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4237 struct buf { int x; };
4238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4239 static char *e (p, i)
4240 char **p;
4241 int i;
4242 {
4243 return p[i];
4244 }
4245 static char *f (char * (*g) (char **, int), char **p, ...)
4246 {
4247 char *s;
4248 va_list v;
4249 va_start (v,p);
4250 s = g (p, va_arg (v,int));
4251 va_end (v);
4252 return s;
4253 }
4254
4255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4256 function prototypes and stuff, but not '\xHH' hex character constants.
4257 These don't provoke an error unfortunately, instead are silently treated
4258 as 'x'. The following induces an error, until -std is added to get
4259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4260 array size at least. It's necessary to write '\x00'==0 to get something
4261 that's true only with -std. */
4262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4263
4264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4265 inside strings and character constants. */
4266 #define FOO(x) 'x'
4267 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4268
4269 int test (int i, double x);
4270 struct s1 {int (*f) (int a);};
4271 struct s2 {int (*f) (double a);};
4272 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4273 int argc;
4274 char **argv;
4275 int
4276 main ()
4277 {
4278 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4285 do
4286 CC="$ac_save_CC $ac_arg"
4287 if ac_fn_c_try_compile "$LINENO"; then :
4288 ac_cv_prog_cc_c89=$ac_arg
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext
4291 test "x$ac_cv_prog_cc_c89" != "xno" && break
4292 done
4293 rm -f conftest.$ac_ext
4294 CC=$ac_save_CC
4295
4296 fi
4297 # AC_CACHE_VAL
4298 case "x$ac_cv_prog_cc_c89" in
4299 x)
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4301 $as_echo "none needed" >&6; } ;;
4302 xno)
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4304 $as_echo "unsupported" >&6; } ;;
4305 *)
4306 CC="$CC $ac_cv_prog_cc_c89"
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4308 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4309 esac
4310 if test "x$ac_cv_prog_cc_c89" != xno; then :
4311
4312 fi
4313
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4326 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4327 if ${am_cv_prog_cc_c_o+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332
4333 int
4334 main ()
4335 {
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 # Make sure it works both with $CC and with simple cc.
4342 # Following AC_PROG_CC_C_O, we do the test twice because some
4343 # compilers refuse to overwrite an existing .o file with -o,
4344 # though they will create one.
4345 am_cv_prog_cc_c_o=yes
4346 for am_i in 1 2; do
4347 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4348 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } \
4352 && test -f conftest2.$ac_objext; then
4353 : OK
4354 else
4355 am_cv_prog_cc_c_o=no
4356 break
4357 fi
4358 done
4359 rm -f core conftest*
4360 unset am_i
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4363 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4364 if test "$am_cv_prog_cc_c_o" != yes; then
4365 # Losing compiler, so override with the script.
4366 # FIXME: It is wrong to rewrite CC.
4367 # But if we don't then we get into trouble of one sort or another.
4368 # A longer-term fix would be to have automake use am__CC in this case,
4369 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4370 CC="$am_aux_dir/compile $CC"
4371 fi
4372 ac_ext=c
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378 DEPDIR="${am__leading_dot}deps"
4379
4380 ac_config_commands="$ac_config_commands depfiles"
4381
4382
4383 am_make=${MAKE-make}
4384 cat > confinc << 'END'
4385 am__doit:
4386 @echo this is the am__doit target
4387 .PHONY: am__doit
4388 END
4389 # If we don't find an include directive, just comment out the code.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4391 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4392 am__include="#"
4393 am__quote=
4394 _am_result=none
4395 # First try GNU make style include.
4396 echo "include confinc" > confmf
4397 # Ignore all kinds of additional output from 'make'.
4398 case `$am_make -s -f confmf 2> /dev/null` in #(
4399 *the\ am__doit\ target*)
4400 am__include=include
4401 am__quote=
4402 _am_result=GNU
4403 ;;
4404 esac
4405 # Now try BSD make style include.
4406 if test "$am__include" = "#"; then
4407 echo '.include "confinc"' > confmf
4408 case `$am_make -s -f confmf 2> /dev/null` in #(
4409 *the\ am__doit\ target*)
4410 am__include=.include
4411 am__quote="\""
4412 _am_result=BSD
4413 ;;
4414 esac
4415 fi
4416
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4419 $as_echo "$_am_result" >&6; }
4420 rm -f confinc confmf
4421
4422 # Check whether --enable-dependency-tracking was given.
4423 if test "${enable_dependency_tracking+set}" = set; then :
4424 enableval=$enable_dependency_tracking;
4425 fi
4426
4427 if test "x$enable_dependency_tracking" != xno; then
4428 am_depcomp="$ac_aux_dir/depcomp"
4429 AMDEPBACKSLASH='\'
4430 am__nodep='_no'
4431 fi
4432 if test "x$enable_dependency_tracking" != xno; then
4433 AMDEP_TRUE=
4434 AMDEP_FALSE='#'
4435 else
4436 AMDEP_TRUE='#'
4437 AMDEP_FALSE=
4438 fi
4439
4440
4441
4442 depcc="$CC" am_compiler_list=
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4445 $as_echo_n "checking dependency style of $depcc... " >&6; }
4446 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4450 # We make a subdir and do the tests there. Otherwise we can end up
4451 # making bogus files that we don't know about and never remove. For
4452 # instance it was reported that on HP-UX the gcc test will end up
4453 # making a dummy file named 'D' -- because '-MD' means "put the output
4454 # in D".
4455 rm -rf conftest.dir
4456 mkdir conftest.dir
4457 # Copy depcomp to subdir because otherwise we won't find it if we're
4458 # using a relative directory.
4459 cp "$am_depcomp" conftest.dir
4460 cd conftest.dir
4461 # We will build objects and dependencies in a subdirectory because
4462 # it helps to detect inapplicable dependency modes. For instance
4463 # both Tru64's cc and ICC support -MD to output dependencies as a
4464 # side effect of compilation, but ICC will put the dependencies in
4465 # the current directory while Tru64 will put them in the object
4466 # directory.
4467 mkdir sub
4468
4469 am_cv_CC_dependencies_compiler_type=none
4470 if test "$am_compiler_list" = ""; then
4471 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4472 fi
4473 am__universal=false
4474 case " $depcc " in #(
4475 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4476 esac
4477
4478 for depmode in $am_compiler_list; do
4479 # Setup a source with many dependencies, because some compilers
4480 # like to wrap large dependency lists on column 80 (with \), and
4481 # we should not choose a depcomp mode which is confused by this.
4482 #
4483 # We need to recreate these files for each test, as the compiler may
4484 # overwrite some of them when testing with obscure command lines.
4485 # This happens at least with the AIX C compiler.
4486 : > sub/conftest.c
4487 for i in 1 2 3 4 5 6; do
4488 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4489 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4490 # Solaris 10 /bin/sh.
4491 echo '/* dummy */' > sub/conftst$i.h
4492 done
4493 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4494
4495 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4496 # mode. It turns out that the SunPro C++ compiler does not properly
4497 # handle '-M -o', and we need to detect this. Also, some Intel
4498 # versions had trouble with output in subdirs.
4499 am__obj=sub/conftest.${OBJEXT-o}
4500 am__minus_obj="-o $am__obj"
4501 case $depmode in
4502 gcc)
4503 # This depmode causes a compiler race in universal mode.
4504 test "$am__universal" = false || continue
4505 ;;
4506 nosideeffect)
4507 # After this tag, mechanisms are not by side-effect, so they'll
4508 # only be used when explicitly requested.
4509 if test "x$enable_dependency_tracking" = xyes; then
4510 continue
4511 else
4512 break
4513 fi
4514 ;;
4515 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4516 # This compiler won't grok '-c -o', but also, the minuso test has
4517 # not run yet. These depmodes are late enough in the game, and
4518 # so weak that their functioning should not be impacted.
4519 am__obj=conftest.${OBJEXT-o}
4520 am__minus_obj=
4521 ;;
4522 none) break ;;
4523 esac
4524 if depmode=$depmode \
4525 source=sub/conftest.c object=$am__obj \
4526 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4527 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4528 >/dev/null 2>conftest.err &&
4529 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4530 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4532 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4533 # icc doesn't choke on unknown options, it will just issue warnings
4534 # or remarks (even with -Werror). So we grep stderr for any message
4535 # that says an option was ignored or not supported.
4536 # When given -MP, icc 7.0 and 7.1 complain thusly:
4537 # icc: Command line warning: ignoring option '-M'; no argument required
4538 # The diagnosis changed in icc 8.0:
4539 # icc: Command line remark: option '-MP' not supported
4540 if (grep 'ignoring option' conftest.err ||
4541 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4542 am_cv_CC_dependencies_compiler_type=$depmode
4543 break
4544 fi
4545 fi
4546 done
4547
4548 cd ..
4549 rm -rf conftest.dir
4550 else
4551 am_cv_CC_dependencies_compiler_type=none
4552 fi
4553
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4556 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4557 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4558
4559 if
4560 test "x$enable_dependency_tracking" != xno \
4561 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4562 am__fastdepCC_TRUE=
4563 am__fastdepCC_FALSE='#'
4564 else
4565 am__fastdepCC_TRUE='#'
4566 am__fastdepCC_FALSE=
4567 fi
4568
4569
4570
4571
4572
4573
4574 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4575 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4576 # in both places for now and restore CFLAGS at the end of config.
4577 save_CFLAGS="$CFLAGS"
4578
4579 # Check whether --enable-werror was given.
4580 if test "${enable_werror+set}" = set; then :
4581 enableval=$enable_werror;
4582 fi
4583
4584 # Add -Wall -Werror if we are using GCC.
4585 if test "x$GCC" = "xyes"; then :
4586 XCFLAGS="$XCFLAGS -Wall"
4587 fi
4588 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4589 XCFLAGS="$XCFLAGS -Werror"
4590 fi
4591
4592 # Find other programs we need.
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}ar; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_AR+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$AR"; then
4602 ac_cv_prog_AR="$AR" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_AR="${ac_tool_prefix}ar"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 AR=$ac_cv_prog_AR
4622 if test -n "$AR"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4624 $as_echo "$AR" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 fi
4629
4630
4631 fi
4632 if test -z "$ac_cv_prog_AR"; then
4633 ac_ct_AR=$AR
4634 # Extract the first word of "ar", so it can be a program name with args.
4635 set dummy ar; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$ac_ct_AR"; then
4642 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_AR="ar"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4662 if test -n "$ac_ct_AR"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4664 $as_echo "$ac_ct_AR" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670 if test "x$ac_ct_AR" = x; then
4671 AR=""
4672 else
4673 case $cross_compiling:$ac_tool_warned in
4674 yes:)
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4678 esac
4679 AR=$ac_ct_AR
4680 fi
4681 else
4682 AR="$ac_cv_prog_AR"
4683 fi
4684
4685 if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4687 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_RANLIB+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$RANLIB"; then
4694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 RANLIB=$ac_cv_prog_RANLIB
4714 if test -n "$RANLIB"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4716 $as_echo "$RANLIB" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723 fi
4724 if test -z "$ac_cv_prog_RANLIB"; then
4725 ac_ct_RANLIB=$RANLIB
4726 # Extract the first word of "ranlib", so it can be a program name with args.
4727 set dummy ranlib; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$ac_ct_RANLIB"; then
4734 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_ac_ct_RANLIB="ranlib"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 fi
4752 fi
4753 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4754 if test -n "$ac_ct_RANLIB"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4756 $as_echo "$ac_ct_RANLIB" >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4760 fi
4761
4762 if test "x$ac_ct_RANLIB" = x; then
4763 RANLIB="ranlib-not-found-in-path-error"
4764 else
4765 case $cross_compiling:$ac_tool_warned in
4766 yes:)
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4769 ac_tool_warned=yes ;;
4770 esac
4771 RANLIB=$ac_ct_RANLIB
4772 fi
4773 else
4774 RANLIB="$ac_cv_prog_RANLIB"
4775 fi
4776
4777 # Extract the first word of "perl", so it can be a program name with args.
4778 set dummy perl; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_path_PERL+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 case $PERL in
4785 [\\/]* | ?:[\\/]*)
4786 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4787 ;;
4788 *)
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800 done
4801 done
4802 IFS=$as_save_IFS
4803
4804 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4805 ;;
4806 esac
4807 fi
4808 PERL=$ac_cv_path_PERL
4809 if test -n "$PERL"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4811 $as_echo "$PERL" >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4815 fi
4816
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4819 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4820 set x ${MAKE-make}
4821 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4822 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 cat >conftest.make <<\_ACEOF
4826 SHELL = /bin/sh
4827 all:
4828 @echo '@@@%%%=$(MAKE)=@@@%%%'
4829 _ACEOF
4830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4831 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4832 *@@@%%%=?*=@@@%%%*)
4833 eval ac_cv_prog_make_${ac_make}_set=yes;;
4834 *)
4835 eval ac_cv_prog_make_${ac_make}_set=no;;
4836 esac
4837 rm -f conftest.make
4838 fi
4839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841 $as_echo "yes" >&6; }
4842 SET_MAKE=
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 SET_MAKE="MAKE=${MAKE-make}"
4847 fi
4848
4849
4850
4851 # See if makeinfo has been installed and is modern enough
4852 # that we can use it.
4853
4854 # Extract the first word of "makeinfo", so it can be a program name with args.
4855 set dummy makeinfo; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_MAKEINFO+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$MAKEINFO"; then
4862 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_MAKEINFO="makeinfo"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 MAKEINFO=$ac_cv_prog_MAKEINFO
4882 if test -n "$MAKEINFO"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4884 $as_echo "$MAKEINFO" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890
4891 if test -n "$MAKEINFO"; then
4892 # Found it, now check the version.
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4894 $as_echo_n "checking for modern makeinfo... " >&6; }
4895 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4899 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4900
4901 case $ac_prog_version in
4902 '') gcc_cv_prog_makeinfo_modern=no;;
4903 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4904 *) gcc_cv_prog_makeinfo_modern=no;;
4905 esac
4906
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4909 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4910 else
4911 gcc_cv_prog_makeinfo_modern=no
4912 fi
4913 if test $gcc_cv_prog_makeinfo_modern = no; then
4914 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4915 fi
4916
4917 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4918 BUILD_INFO_TRUE=
4919 BUILD_INFO_FALSE='#'
4920 else
4921 BUILD_INFO_TRUE='#'
4922 BUILD_INFO_FALSE=
4923 fi
4924
4925
4926
4927 # Configure libtool
4928 case `pwd` in
4929 *\ * | *\ *)
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4931 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4932 esac
4933
4934
4935
4936 macro_version='2.2.7a'
4937 macro_revision='1.3134'
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951 ltmain="$ac_aux_dir/ltmain.sh"
4952
4953 # Backslashify metacharacters that are still active within
4954 # double-quoted strings.
4955 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4956
4957 # Same as above, but do not quote variable references.
4958 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4959
4960 # Sed substitution to delay expansion of an escaped shell variable in a
4961 # double_quote_subst'ed string.
4962 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4963
4964 # Sed substitution to delay expansion of an escaped single quote.
4965 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4966
4967 # Sed substitution to avoid accidental globbing in evaled expressions
4968 no_glob_subst='s/\*/\\\*/g'
4969
4970 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4971 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4972 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4975 $as_echo_n "checking how to print strings... " >&6; }
4976 # Test print first, because it will be a builtin if present.
4977 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4978 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4979 ECHO='print -r --'
4980 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4981 ECHO='printf %s\n'
4982 else
4983 # Use this function as a fallback that always works.
4984 func_fallback_echo ()
4985 {
4986 eval 'cat <<_LTECHO_EOF
4987 $1
4988 _LTECHO_EOF'
4989 }
4990 ECHO='func_fallback_echo'
4991 fi
4992
4993 # func_echo_all arg...
4994 # Invoke $ECHO with all args, space-separated.
4995 func_echo_all ()
4996 {
4997 $ECHO ""
4998 }
4999
5000 case "$ECHO" in
5001 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5002 $as_echo "printf" >&6; } ;;
5003 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5004 $as_echo "print -r" >&6; } ;;
5005 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5006 $as_echo "cat" >&6; } ;;
5007 esac
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5023 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5024 if ${ac_cv_path_SED+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5028 for ac_i in 1 2 3 4 5 6 7; do
5029 ac_script="$ac_script$as_nl$ac_script"
5030 done
5031 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5032 { ac_script=; unset ac_script;}
5033 if test -z "$SED"; then
5034 ac_path_SED_found=false
5035 # Loop through the user's path and test for each of PROGNAME-LIST
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_prog in sed gsed; do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5044 as_fn_executable_p "$ac_path_SED" || continue
5045 # Check for GNU ac_path_SED and select it if it is found.
5046 # Check for GNU $ac_path_SED
5047 case `"$ac_path_SED" --version 2>&1` in
5048 *GNU*)
5049 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5050 *)
5051 ac_count=0
5052 $as_echo_n 0123456789 >"conftest.in"
5053 while :
5054 do
5055 cat "conftest.in" "conftest.in" >"conftest.tmp"
5056 mv "conftest.tmp" "conftest.in"
5057 cp "conftest.in" "conftest.nl"
5058 $as_echo '' >> "conftest.nl"
5059 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5061 as_fn_arith $ac_count + 1 && ac_count=$as_val
5062 if test $ac_count -gt ${ac_path_SED_max-0}; then
5063 # Best one so far, save it but keep looking for a better one
5064 ac_cv_path_SED="$ac_path_SED"
5065 ac_path_SED_max=$ac_count
5066 fi
5067 # 10*(2^10) chars as input seems more than enough
5068 test $ac_count -gt 10 && break
5069 done
5070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5071 esac
5072
5073 $ac_path_SED_found && break 3
5074 done
5075 done
5076 done
5077 IFS=$as_save_IFS
5078 if test -z "$ac_cv_path_SED"; then
5079 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5080 fi
5081 else
5082 ac_cv_path_SED=$SED
5083 fi
5084
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5087 $as_echo "$ac_cv_path_SED" >&6; }
5088 SED="$ac_cv_path_SED"
5089 rm -f conftest.sed
5090
5091 test -z "$SED" && SED=sed
5092 Xsed="$SED -e 1s/^X//"
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5105 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5106 if ${ac_cv_path_GREP+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -z "$GREP"; then
5110 ac_path_GREP_found=false
5111 # Loop through the user's path and test for each of PROGNAME-LIST
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_prog in grep ggrep; do
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5120 as_fn_executable_p "$ac_path_GREP" || continue
5121 # Check for GNU ac_path_GREP and select it if it is found.
5122 # Check for GNU $ac_path_GREP
5123 case `"$ac_path_GREP" --version 2>&1` in
5124 *GNU*)
5125 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5126 *)
5127 ac_count=0
5128 $as_echo_n 0123456789 >"conftest.in"
5129 while :
5130 do
5131 cat "conftest.in" "conftest.in" >"conftest.tmp"
5132 mv "conftest.tmp" "conftest.in"
5133 cp "conftest.in" "conftest.nl"
5134 $as_echo 'GREP' >> "conftest.nl"
5135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5137 as_fn_arith $ac_count + 1 && ac_count=$as_val
5138 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5139 # Best one so far, save it but keep looking for a better one
5140 ac_cv_path_GREP="$ac_path_GREP"
5141 ac_path_GREP_max=$ac_count
5142 fi
5143 # 10*(2^10) chars as input seems more than enough
5144 test $ac_count -gt 10 && break
5145 done
5146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5147 esac
5148
5149 $ac_path_GREP_found && break 3
5150 done
5151 done
5152 done
5153 IFS=$as_save_IFS
5154 if test -z "$ac_cv_path_GREP"; then
5155 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5156 fi
5157 else
5158 ac_cv_path_GREP=$GREP
5159 fi
5160
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5163 $as_echo "$ac_cv_path_GREP" >&6; }
5164 GREP="$ac_cv_path_GREP"
5165
5166
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5168 $as_echo_n "checking for egrep... " >&6; }
5169 if ${ac_cv_path_EGREP+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5173 then ac_cv_path_EGREP="$GREP -E"
5174 else
5175 if test -z "$EGREP"; then
5176 ac_path_EGREP_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_prog in egrep; do
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5186 as_fn_executable_p "$ac_path_EGREP" || continue
5187 # Check for GNU ac_path_EGREP and select it if it is found.
5188 # Check for GNU $ac_path_EGREP
5189 case `"$ac_path_EGREP" --version 2>&1` in
5190 *GNU*)
5191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5192 *)
5193 ac_count=0
5194 $as_echo_n 0123456789 >"conftest.in"
5195 while :
5196 do
5197 cat "conftest.in" "conftest.in" >"conftest.tmp"
5198 mv "conftest.tmp" "conftest.in"
5199 cp "conftest.in" "conftest.nl"
5200 $as_echo 'EGREP' >> "conftest.nl"
5201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_EGREP="$ac_path_EGREP"
5207 ac_path_EGREP_max=$ac_count
5208 fi
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5211 done
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5213 esac
5214
5215 $ac_path_EGREP_found && break 3
5216 done
5217 done
5218 done
5219 IFS=$as_save_IFS
5220 if test -z "$ac_cv_path_EGREP"; then
5221 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5222 fi
5223 else
5224 ac_cv_path_EGREP=$EGREP
5225 fi
5226
5227 fi
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5230 $as_echo "$ac_cv_path_EGREP" >&6; }
5231 EGREP="$ac_cv_path_EGREP"
5232
5233
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5235 $as_echo_n "checking for fgrep... " >&6; }
5236 if ${ac_cv_path_FGREP+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5240 then ac_cv_path_FGREP="$GREP -F"
5241 else
5242 if test -z "$FGREP"; then
5243 ac_path_FGREP_found=false
5244 # Loop through the user's path and test for each of PROGNAME-LIST
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5247 do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_prog in fgrep; do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5253 as_fn_executable_p "$ac_path_FGREP" || continue
5254 # Check for GNU ac_path_FGREP and select it if it is found.
5255 # Check for GNU $ac_path_FGREP
5256 case `"$ac_path_FGREP" --version 2>&1` in
5257 *GNU*)
5258 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5259 *)
5260 ac_count=0
5261 $as_echo_n 0123456789 >"conftest.in"
5262 while :
5263 do
5264 cat "conftest.in" "conftest.in" >"conftest.tmp"
5265 mv "conftest.tmp" "conftest.in"
5266 cp "conftest.in" "conftest.nl"
5267 $as_echo 'FGREP' >> "conftest.nl"
5268 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5270 as_fn_arith $ac_count + 1 && ac_count=$as_val
5271 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5272 # Best one so far, save it but keep looking for a better one
5273 ac_cv_path_FGREP="$ac_path_FGREP"
5274 ac_path_FGREP_max=$ac_count
5275 fi
5276 # 10*(2^10) chars as input seems more than enough
5277 test $ac_count -gt 10 && break
5278 done
5279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5280 esac
5281
5282 $ac_path_FGREP_found && break 3
5283 done
5284 done
5285 done
5286 IFS=$as_save_IFS
5287 if test -z "$ac_cv_path_FGREP"; then
5288 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5289 fi
5290 else
5291 ac_cv_path_FGREP=$FGREP
5292 fi
5293
5294 fi
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5297 $as_echo "$ac_cv_path_FGREP" >&6; }
5298 FGREP="$ac_cv_path_FGREP"
5299
5300
5301 test -z "$GREP" && GREP=grep
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321 # Check whether --with-gnu-ld was given.
5322 if test "${with_gnu_ld+set}" = set; then :
5323 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5324 else
5325 with_gnu_ld=no
5326 fi
5327
5328 ac_prog=ld
5329 if test "$GCC" = yes; then
5330 # Check if gcc -print-prog-name=ld gives a path.
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5332 $as_echo_n "checking for ld used by $CC... " >&6; }
5333 case $host in
5334 *-*-mingw*)
5335 # gcc leaves a trailing carriage return which upsets mingw
5336 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5337 *)
5338 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5339 esac
5340 case $ac_prog in
5341 # Accept absolute paths.
5342 [\\/]* | ?:[\\/]*)
5343 re_direlt='/[^/][^/]*/\.\./'
5344 # Canonicalize the pathname of ld
5345 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5346 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5347 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5348 done
5349 test -z "$LD" && LD="$ac_prog"
5350 ;;
5351 "")
5352 # If it fails, then pretend we aren't using GCC.
5353 ac_prog=ld
5354 ;;
5355 *)
5356 # If it is relative, then search for the first ld in PATH.
5357 with_gnu_ld=unknown
5358 ;;
5359 esac
5360 elif test "$with_gnu_ld" = yes; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5362 $as_echo_n "checking for GNU ld... " >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5365 $as_echo_n "checking for non-GNU ld... " >&6; }
5366 fi
5367 if ${lt_cv_path_LD+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 if test -z "$LD"; then
5371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5372 for ac_dir in $PATH; do
5373 IFS="$lt_save_ifs"
5374 test -z "$ac_dir" && ac_dir=.
5375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5376 lt_cv_path_LD="$ac_dir/$ac_prog"
5377 # Check to see if the program is GNU ld. I'd rather use --version,
5378 # but apparently some variants of GNU ld only accept -v.
5379 # Break only if it was the GNU/non-GNU ld that we prefer.
5380 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5381 *GNU* | *'with BFD'*)
5382 test "$with_gnu_ld" != no && break
5383 ;;
5384 *)
5385 test "$with_gnu_ld" != yes && break
5386 ;;
5387 esac
5388 fi
5389 done
5390 IFS="$lt_save_ifs"
5391 else
5392 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5393 fi
5394 fi
5395
5396 LD="$lt_cv_path_LD"
5397 if test -n "$LD"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5399 $as_echo "$LD" >&6; }
5400 else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5403 fi
5404 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5406 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5407 if ${lt_cv_prog_gnu_ld+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5411 case `$LD -v 2>&1 </dev/null` in
5412 *GNU* | *'with BFD'*)
5413 lt_cv_prog_gnu_ld=yes
5414 ;;
5415 *)
5416 lt_cv_prog_gnu_ld=no
5417 ;;
5418 esac
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5421 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5422 with_gnu_ld=$lt_cv_prog_gnu_ld
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5433 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5434 if ${lt_cv_path_NM+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 if test -n "$NM"; then
5438 # Let the user override the test.
5439 lt_cv_path_NM="$NM"
5440 else
5441 lt_nm_to_check="${ac_tool_prefix}nm"
5442 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5443 lt_nm_to_check="$lt_nm_to_check nm"
5444 fi
5445 for lt_tmp_nm in $lt_nm_to_check; do
5446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5447 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5448 IFS="$lt_save_ifs"
5449 test -z "$ac_dir" && ac_dir=.
5450 tmp_nm="$ac_dir/$lt_tmp_nm"
5451 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5452 # Check to see if the nm accepts a BSD-compat flag.
5453 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5454 # nm: unknown option "B" ignored
5455 # Tru64's nm complains that /dev/null is an invalid object file
5456 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5457 */dev/null* | *'Invalid file or object type'*)
5458 lt_cv_path_NM="$tmp_nm -B"
5459 break
5460 ;;
5461 *)
5462 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5463 */dev/null*)
5464 lt_cv_path_NM="$tmp_nm -p"
5465 break
5466 ;;
5467 *)
5468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5469 continue # so that we can try to find one that supports BSD flags
5470 ;;
5471 esac
5472 ;;
5473 esac
5474 fi
5475 done
5476 IFS="$lt_save_ifs"
5477 done
5478 : ${lt_cv_path_NM=no}
5479 fi
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5482 $as_echo "$lt_cv_path_NM" >&6; }
5483 if test "$lt_cv_path_NM" != "no"; then
5484 NM="$lt_cv_path_NM"
5485 else
5486 # Didn't find any BSD compatible name lister, look for dumpbin.
5487 if test -n "$DUMPBIN"; then :
5488 # Let the user override the test.
5489 else
5490 if test -n "$ac_tool_prefix"; then
5491 for ac_prog in dumpbin "link -dump"
5492 do
5493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_DUMPBIN+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$DUMPBIN"; then
5501 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514 done
5515 done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 DUMPBIN=$ac_cv_prog_DUMPBIN
5521 if test -n "$DUMPBIN"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5523 $as_echo "$DUMPBIN" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 test -n "$DUMPBIN" && break
5531 done
5532 fi
5533 if test -z "$DUMPBIN"; then
5534 ac_ct_DUMPBIN=$DUMPBIN
5535 for ac_prog in dumpbin "link -dump"
5536 do
5537 # Extract the first word of "$ac_prog", so it can be a program name with args.
5538 set dummy $ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$ac_ct_DUMPBIN"; then
5545 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5565 if test -n "$ac_ct_DUMPBIN"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5567 $as_echo "$ac_ct_DUMPBIN" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573
5574 test -n "$ac_ct_DUMPBIN" && break
5575 done
5576
5577 if test "x$ac_ct_DUMPBIN" = x; then
5578 DUMPBIN=":"
5579 else
5580 case $cross_compiling:$ac_tool_warned in
5581 yes:)
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586 DUMPBIN=$ac_ct_DUMPBIN
5587 fi
5588 fi
5589
5590 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5591 *COFF*)
5592 DUMPBIN="$DUMPBIN -symbols"
5593 ;;
5594 *)
5595 DUMPBIN=:
5596 ;;
5597 esac
5598 fi
5599
5600 if test "$DUMPBIN" != ":"; then
5601 NM="$DUMPBIN"
5602 fi
5603 fi
5604 test -z "$NM" && NM=nm
5605
5606
5607
5608
5609
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5612 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5613 if ${lt_cv_nm_interface+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 lt_cv_nm_interface="BSD nm"
5617 echo "int some_variable = 0;" > conftest.$ac_ext
5618 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5619 (eval "$ac_compile" 2>conftest.err)
5620 cat conftest.err >&5
5621 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5622 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5623 cat conftest.err >&5
5624 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5625 cat conftest.out >&5
5626 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5627 lt_cv_nm_interface="MS dumpbin"
5628 fi
5629 rm -f conftest*
5630 fi
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5632 $as_echo "$lt_cv_nm_interface" >&6; }
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5635 $as_echo_n "checking whether ln -s works... " >&6; }
5636 LN_S=$as_ln_s
5637 if test "$LN_S" = "ln -s"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5639 $as_echo "yes" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5642 $as_echo "no, using $LN_S" >&6; }
5643 fi
5644
5645 # find the maximum length of command line arguments
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5647 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5648 if ${lt_cv_sys_max_cmd_len+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 i=0
5652 teststring="ABCD"
5653
5654 case $build_os in
5655 msdosdjgpp*)
5656 # On DJGPP, this test can blow up pretty badly due to problems in libc
5657 # (any single argument exceeding 2000 bytes causes a buffer overrun
5658 # during glob expansion). Even if it were fixed, the result of this
5659 # check would be larger than it should be.
5660 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5661 ;;
5662
5663 gnu*)
5664 # Under GNU Hurd, this test is not required because there is
5665 # no limit to the length of command line arguments.
5666 # Libtool will interpret -1 as no limit whatsoever
5667 lt_cv_sys_max_cmd_len=-1;
5668 ;;
5669
5670 cygwin* | mingw* | cegcc*)
5671 # On Win9x/ME, this test blows up -- it succeeds, but takes
5672 # about 5 minutes as the teststring grows exponentially.
5673 # Worse, since 9x/ME are not pre-emptively multitasking,
5674 # you end up with a "frozen" computer, even though with patience
5675 # the test eventually succeeds (with a max line length of 256k).
5676 # Instead, let's just punt: use the minimum linelength reported by
5677 # all of the supported platforms: 8192 (on NT/2K/XP).
5678 lt_cv_sys_max_cmd_len=8192;
5679 ;;
5680
5681 mint*)
5682 # On MiNT this can take a long time and run out of memory.
5683 lt_cv_sys_max_cmd_len=8192;
5684 ;;
5685
5686 amigaos*)
5687 # On AmigaOS with pdksh, this test takes hours, literally.
5688 # So we just punt and use a minimum line length of 8192.
5689 lt_cv_sys_max_cmd_len=8192;
5690 ;;
5691
5692 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5693 # This has been around since 386BSD, at least. Likely further.
5694 if test -x /sbin/sysctl; then
5695 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5696 elif test -x /usr/sbin/sysctl; then
5697 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5698 else
5699 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5700 fi
5701 # And add a safety zone
5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5704 ;;
5705
5706 interix*)
5707 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5708 lt_cv_sys_max_cmd_len=196608
5709 ;;
5710
5711 osf*)
5712 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5713 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5714 # nice to cause kernel panics so lets avoid the loop below.
5715 # First set a reasonable default.
5716 lt_cv_sys_max_cmd_len=16384
5717 #
5718 if test -x /sbin/sysconfig; then
5719 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5720 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5721 esac
5722 fi
5723 ;;
5724 sco3.2v5*)
5725 lt_cv_sys_max_cmd_len=102400
5726 ;;
5727 sysv5* | sco5v6* | sysv4.2uw2*)
5728 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5729 if test -n "$kargmax"; then
5730 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5731 else
5732 lt_cv_sys_max_cmd_len=32768
5733 fi
5734 ;;
5735 *)
5736 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5737 if test -n "$lt_cv_sys_max_cmd_len"; then
5738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5740 else
5741 # Make teststring a little bigger before we do anything with it.
5742 # a 1K string should be a reasonable start.
5743 for i in 1 2 3 4 5 6 7 8 ; do
5744 teststring=$teststring$teststring
5745 done
5746 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5747 # If test is not a shell built-in, we'll probably end up computing a
5748 # maximum length that is only half of the actual maximum length, but
5749 # we can't tell.
5750 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5751 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5752 test $i != 17 # 1/2 MB should be enough
5753 do
5754 i=`expr $i + 1`
5755 teststring=$teststring$teststring
5756 done
5757 # Only check the string length outside the loop.
5758 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5759 teststring=
5760 # Add a significant safety factor because C++ compilers can tack on
5761 # massive amounts of additional arguments before passing them to the
5762 # linker. It appears as though 1/2 is a usable value.
5763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5764 fi
5765 ;;
5766 esac
5767
5768 fi
5769
5770 if test -n $lt_cv_sys_max_cmd_len ; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5772 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5775 $as_echo "none" >&6; }
5776 fi
5777 max_cmd_len=$lt_cv_sys_max_cmd_len
5778
5779
5780
5781
5782
5783
5784 : ${CP="cp -f"}
5785 : ${MV="mv -f"}
5786 : ${RM="rm -f"}
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5789 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5790 # Try some XSI features
5791 xsi_shell=no
5792 ( _lt_dummy="a/b/c"
5793 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5794 = c,a/b,, \
5795 && eval 'test $(( 1 + 1 )) -eq 2 \
5796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5797 && xsi_shell=yes
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5799 $as_echo "$xsi_shell" >&6; }
5800
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5803 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5804 lt_shell_append=no
5805 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5806 >/dev/null 2>&1 \
5807 && lt_shell_append=yes
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5809 $as_echo "$lt_shell_append" >&6; }
5810
5811
5812 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5813 lt_unset=unset
5814 else
5815 lt_unset=false
5816 fi
5817
5818
5819
5820
5821
5822 # test EBCDIC or ASCII
5823 case `echo X|tr X '\101'` in
5824 A) # ASCII based system
5825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5826 lt_SP2NL='tr \040 \012'
5827 lt_NL2SP='tr \015\012 \040\040'
5828 ;;
5829 *) # EBCDIC based system
5830 lt_SP2NL='tr \100 \n'
5831 lt_NL2SP='tr \r\n \100\100'
5832 ;;
5833 esac
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5844 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5845 if ${lt_cv_ld_reload_flag+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 lt_cv_ld_reload_flag='-r'
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5851 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5852 reload_flag=$lt_cv_ld_reload_flag
5853 case $reload_flag in
5854 "" | " "*) ;;
5855 *) reload_flag=" $reload_flag" ;;
5856 esac
5857 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5858 case $host_os in
5859 darwin*)
5860 if test "$GCC" = yes; then
5861 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5862 else
5863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5864 fi
5865 ;;
5866 esac
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876 if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5878 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_OBJDUMP+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$OBJDUMP"; then
5885 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 OBJDUMP=$ac_cv_prog_OBJDUMP
5905 if test -n "$OBJDUMP"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5907 $as_echo "$OBJDUMP" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913
5914 fi
5915 if test -z "$ac_cv_prog_OBJDUMP"; then
5916 ac_ct_OBJDUMP=$OBJDUMP
5917 # Extract the first word of "objdump", so it can be a program name with args.
5918 set dummy objdump; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if test -n "$ac_ct_OBJDUMP"; then
5925 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5945 if test -n "$ac_ct_OBJDUMP"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5947 $as_echo "$ac_ct_OBJDUMP" >&6; }
5948 else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953 if test "x$ac_ct_OBJDUMP" = x; then
5954 OBJDUMP="false"
5955 else
5956 case $cross_compiling:$ac_tool_warned in
5957 yes:)
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5960 ac_tool_warned=yes ;;
5961 esac
5962 OBJDUMP=$ac_ct_OBJDUMP
5963 fi
5964 else
5965 OBJDUMP="$ac_cv_prog_OBJDUMP"
5966 fi
5967
5968 test -z "$OBJDUMP" && OBJDUMP=objdump
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5979 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5980 if ${lt_cv_deplibs_check_method+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 lt_cv_file_magic_cmd='$MAGIC_CMD'
5984 lt_cv_file_magic_test_file=
5985 lt_cv_deplibs_check_method='unknown'
5986 # Need to set the preceding variable on all platforms that support
5987 # interlibrary dependencies.
5988 # 'none' -- dependencies not supported.
5989 # `unknown' -- same as none, but documents that we really don't know.
5990 # 'pass_all' -- all dependencies passed with no checks.
5991 # 'test_compile' -- check by making test program.
5992 # 'file_magic [[regex]]' -- check by looking for files in library path
5993 # which responds to the $file_magic_cmd with a given extended regex.
5994 # If you have `file' or equivalent on your system and you're not sure
5995 # whether `pass_all' will *always* work, you probably want this one.
5996
5997 case $host_os in
5998 aix[4-9]*)
5999 lt_cv_deplibs_check_method=pass_all
6000 ;;
6001
6002 beos*)
6003 lt_cv_deplibs_check_method=pass_all
6004 ;;
6005
6006 bsdi[45]*)
6007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6008 lt_cv_file_magic_cmd='/usr/bin/file -L'
6009 lt_cv_file_magic_test_file=/shlib/libc.so
6010 ;;
6011
6012 cygwin*)
6013 # func_win32_libid is a shell function defined in ltmain.sh
6014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6015 lt_cv_file_magic_cmd='func_win32_libid'
6016 ;;
6017
6018 mingw* | pw32*)
6019 # Base MSYS/MinGW do not provide the 'file' command needed by
6020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6021 # unless we find 'file', for example because we are cross-compiling.
6022 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6023 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6025 lt_cv_file_magic_cmd='func_win32_libid'
6026 else
6027 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6028 lt_cv_file_magic_cmd='$OBJDUMP -f'
6029 fi
6030 ;;
6031
6032 cegcc*)
6033 # use the weaker test based on 'objdump'. See mingw*.
6034 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6035 lt_cv_file_magic_cmd='$OBJDUMP -f'
6036 ;;
6037
6038 darwin* | rhapsody*)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041
6042 freebsd* | dragonfly*)
6043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6044 case $host_cpu in
6045 i*86 )
6046 # Not sure whether the presence of OpenBSD here was a mistake.
6047 # Let's accept both of them until this is cleared up.
6048 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6049 lt_cv_file_magic_cmd=/usr/bin/file
6050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6051 ;;
6052 esac
6053 else
6054 lt_cv_deplibs_check_method=pass_all
6055 fi
6056 ;;
6057
6058 gnu*)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061
6062 haiku*)
6063 lt_cv_deplibs_check_method=pass_all
6064 ;;
6065
6066 hpux10.20* | hpux11*)
6067 lt_cv_file_magic_cmd=/usr/bin/file
6068 case $host_cpu in
6069 ia64*)
6070 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6071 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6072 ;;
6073 hppa*64*)
6074 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]'
6075 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6076 ;;
6077 *)
6078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6079 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6080 ;;
6081 esac
6082 ;;
6083
6084 interix[3-9]*)
6085 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6087 ;;
6088
6089 irix5* | irix6* | nonstopux*)
6090 case $LD in
6091 *-32|*"-32 ") libmagic=32-bit;;
6092 *-n32|*"-n32 ") libmagic=N32;;
6093 *-64|*"-64 ") libmagic=64-bit;;
6094 *) libmagic=never-match;;
6095 esac
6096 lt_cv_deplibs_check_method=pass_all
6097 ;;
6098
6099 # This must be Linux ELF.
6100 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6101 lt_cv_deplibs_check_method=pass_all
6102 ;;
6103
6104 netbsd*)
6105 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6107 else
6108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6109 fi
6110 ;;
6111
6112 newos6*)
6113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6114 lt_cv_file_magic_cmd=/usr/bin/file
6115 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6116 ;;
6117
6118 *nto* | *qnx*)
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121
6122 openbsd*)
6123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6125 else
6126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6127 fi
6128 ;;
6129
6130 osf3* | osf4* | osf5*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 rdos*)
6135 lt_cv_deplibs_check_method=pass_all
6136 ;;
6137
6138 solaris*)
6139 lt_cv_deplibs_check_method=pass_all
6140 ;;
6141
6142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145
6146 sysv4 | sysv4.3*)
6147 case $host_vendor in
6148 motorola)
6149 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]'
6150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6151 ;;
6152 ncr)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155 sequent)
6156 lt_cv_file_magic_cmd='/bin/file'
6157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6158 ;;
6159 sni)
6160 lt_cv_file_magic_cmd='/bin/file'
6161 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6162 lt_cv_file_magic_test_file=/lib/libc.so
6163 ;;
6164 siemens)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167 pc)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
6170 esac
6171 ;;
6172
6173 tpf*)
6174 lt_cv_deplibs_check_method=pass_all
6175 ;;
6176 vxworks*)
6177 # Assume VxWorks cross toolchains are built on Linux, possibly
6178 # as canadian for Windows hosts.
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
6181 esac
6182
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6185 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6186 file_magic_cmd=$lt_cv_file_magic_cmd
6187 deplibs_check_method=$lt_cv_deplibs_check_method
6188 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201 if test -n "$ac_tool_prefix"; then
6202 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6203 set dummy ${ac_tool_prefix}ar; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_AR+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$AR"; then
6210 ac_cv_prog_AR="$AR" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_AR="${ac_tool_prefix}ar"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 AR=$ac_cv_prog_AR
6230 if test -n "$AR"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6232 $as_echo "$AR" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238
6239 fi
6240 if test -z "$ac_cv_prog_AR"; then
6241 ac_ct_AR=$AR
6242 # Extract the first word of "ar", so it can be a program name with args.
6243 set dummy ar; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 if test -n "$ac_ct_AR"; then
6250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_ac_ct_AR="ar"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263 done
6264 done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6270 if test -n "$ac_ct_AR"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6272 $as_echo "$ac_ct_AR" >&6; }
6273 else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278 if test "x$ac_ct_AR" = x; then
6279 AR="false"
6280 else
6281 case $cross_compiling:$ac_tool_warned in
6282 yes:)
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6285 ac_tool_warned=yes ;;
6286 esac
6287 AR=$ac_ct_AR
6288 fi
6289 else
6290 AR="$ac_cv_prog_AR"
6291 fi
6292
6293 test -z "$AR" && AR=ar
6294 test -z "$AR_FLAGS" && AR_FLAGS=cru
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}strip; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_prog_STRIP+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if test -n "$STRIP"; then
6315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332 fi
6333 fi
6334 STRIP=$ac_cv_prog_STRIP
6335 if test -n "$STRIP"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6337 $as_echo "$STRIP" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6341 fi
6342
6343
6344 fi
6345 if test -z "$ac_cv_prog_STRIP"; then
6346 ac_ct_STRIP=$STRIP
6347 # Extract the first word of "strip", so it can be a program name with args.
6348 set dummy strip; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$ac_ct_STRIP"; then
6355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364 ac_cv_prog_ac_ct_STRIP="strip"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6367 fi
6368 done
6369 done
6370 IFS=$as_save_IFS
6371
6372 fi
6373 fi
6374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6375 if test -n "$ac_ct_STRIP"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6377 $as_echo "$ac_ct_STRIP" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6381 fi
6382
6383 if test "x$ac_ct_STRIP" = x; then
6384 STRIP=":"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned=yes ;;
6391 esac
6392 STRIP=$ac_ct_STRIP
6393 fi
6394 else
6395 STRIP="$ac_cv_prog_STRIP"
6396 fi
6397
6398 test -z "$STRIP" && STRIP=:
6399
6400
6401
6402
6403
6404
6405 if test -n "$ac_tool_prefix"; then
6406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_RANLIB+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 if test -n "$RANLIB"; then
6414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427 done
6428 done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 RANLIB=$ac_cv_prog_RANLIB
6434 if test -n "$RANLIB"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6436 $as_echo "$RANLIB" >&6; }
6437 else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442
6443 fi
6444 if test -z "$ac_cv_prog_RANLIB"; then
6445 ac_ct_RANLIB=$RANLIB
6446 # Extract the first word of "ranlib", so it can be a program name with args.
6447 set dummy ranlib; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 if test -n "$ac_ct_RANLIB"; then
6454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_ac_ct_RANLIB="ranlib"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6474 if test -n "$ac_ct_RANLIB"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6476 $as_echo "$ac_ct_RANLIB" >&6; }
6477 else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482 if test "x$ac_ct_RANLIB" = x; then
6483 RANLIB=":"
6484 else
6485 case $cross_compiling:$ac_tool_warned in
6486 yes:)
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6490 esac
6491 RANLIB=$ac_ct_RANLIB
6492 fi
6493 else
6494 RANLIB="$ac_cv_prog_RANLIB"
6495 fi
6496
6497 test -z "$RANLIB" && RANLIB=:
6498
6499
6500
6501
6502
6503
6504 # Determine commands to create old-style static archives.
6505 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6506 old_postinstall_cmds='chmod 644 $oldlib'
6507 old_postuninstall_cmds=
6508
6509 if test -n "$RANLIB"; then
6510 case $host_os in
6511 openbsd*)
6512 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6513 ;;
6514 *)
6515 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6516 ;;
6517 esac
6518 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6519 fi
6520
6521 case $host_os in
6522 darwin*)
6523 lock_old_archive_extraction=yes ;;
6524 *)
6525 lock_old_archive_extraction=no ;;
6526 esac
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
6559
6560
6561
6562
6563
6564
6565
6566 # If no C compiler was specified, use CC.
6567 LTCC=${LTCC-"$CC"}
6568
6569 # If no C compiler flags were specified, use CFLAGS.
6570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6571
6572 # Allow CC to be a program name with arguments.
6573 compiler=$CC
6574
6575
6576 # Check for command to grab the raw symbol name followed by C symbol from nm.
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6578 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6579 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582
6583 # These are sane defaults that work on at least a few old systems.
6584 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6585
6586 # Character class describing NM global symbol codes.
6587 symcode='[BCDEGRST]'
6588
6589 # Regexp to match symbols that can be accessed directly from C.
6590 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6591
6592 # Define system-specific variables.
6593 case $host_os in
6594 aix*)
6595 symcode='[BCDT]'
6596 ;;
6597 cygwin* | mingw* | pw32* | cegcc*)
6598 symcode='[ABCDGISTW]'
6599 ;;
6600 hpux*)
6601 if test "$host_cpu" = ia64; then
6602 symcode='[ABCDEGRST]'
6603 fi
6604 ;;
6605 irix* | nonstopux*)
6606 symcode='[BCDEGRST]'
6607 ;;
6608 osf*)
6609 symcode='[BCDEGQRST]'
6610 ;;
6611 solaris*)
6612 symcode='[BDRT]'
6613 ;;
6614 sco3.2v5*)
6615 symcode='[DT]'
6616 ;;
6617 sysv4.2uw2*)
6618 symcode='[DT]'
6619 ;;
6620 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6621 symcode='[ABDT]'
6622 ;;
6623 sysv4)
6624 symcode='[DFNSTU]'
6625 ;;
6626 esac
6627
6628 # If we're using GNU nm, then use its standard symbol codes.
6629 case `$NM -V 2>&1` in
6630 *GNU* | *'with BFD'*)
6631 symcode='[ABCDGIRSTW]' ;;
6632 esac
6633
6634 # Transform an extracted symbol line into a proper C declaration.
6635 # Some systems (esp. on ia64) link data and code symbols differently,
6636 # so use this general approach.
6637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6638
6639 # Transform an extracted symbol line into symbol name and symbol address
6640 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6641 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'"
6642
6643 # Handle CRLF in mingw tool chain
6644 opt_cr=
6645 case $build_os in
6646 mingw*)
6647 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6648 ;;
6649 esac
6650
6651 # Try without a prefix underscore, then with it.
6652 for ac_symprfx in "" "_"; do
6653
6654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6655 symxfrm="\\1 $ac_symprfx\\2 \\2"
6656
6657 # Write the raw and C identifiers.
6658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6659 # Fake it for dumpbin and say T for any non-static function
6660 # and D for any global variable.
6661 # Also find C++ and __fastcall symbols from MSVC++,
6662 # which start with @ or ?.
6663 lt_cv_sys_global_symbol_pipe="$AWK '"\
6664 " {last_section=section; section=\$ 3};"\
6665 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6666 " \$ 0!~/External *\|/{next};"\
6667 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6668 " {if(hide[section]) next};"\
6669 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6670 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6671 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6672 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6673 " ' prfx=^$ac_symprfx"
6674 else
6675 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6676 fi
6677
6678 # Check to see that the pipe works correctly.
6679 pipe_works=no
6680
6681 rm -f conftest*
6682 cat > conftest.$ac_ext <<_LT_EOF
6683 #ifdef __cplusplus
6684 extern "C" {
6685 #endif
6686 char nm_test_var;
6687 void nm_test_func(void);
6688 void nm_test_func(void){}
6689 #ifdef __cplusplus
6690 }
6691 #endif
6692 int main(){nm_test_var='a';nm_test_func();return(0);}
6693 _LT_EOF
6694
6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6696 (eval $ac_compile) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; }; then
6700 # Now try to grab the symbols.
6701 nlist=conftest.nm
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6703 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; } && test -s "$nlist"; then
6707 # Try sorting and uniquifying the output.
6708 if sort "$nlist" | uniq > "$nlist"T; then
6709 mv -f "$nlist"T "$nlist"
6710 else
6711 rm -f "$nlist"T
6712 fi
6713
6714 # Make sure that we snagged all the symbols we need.
6715 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6716 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6717 cat <<_LT_EOF > conftest.$ac_ext
6718 #ifdef __cplusplus
6719 extern "C" {
6720 #endif
6721
6722 _LT_EOF
6723 # Now generate the symbol file.
6724 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6725
6726 cat <<_LT_EOF >> conftest.$ac_ext
6727
6728 /* The mapping between symbol names and symbols. */
6729 const struct {
6730 const char *name;
6731 void *address;
6732 }
6733 lt__PROGRAM__LTX_preloaded_symbols[] =
6734 {
6735 { "@PROGRAM@", (void *) 0 },
6736 _LT_EOF
6737 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6738 cat <<\_LT_EOF >> conftest.$ac_ext
6739 {0, (void *) 0}
6740 };
6741
6742 /* This works around a problem in FreeBSD linker */
6743 #ifdef FREEBSD_WORKAROUND
6744 static const void *lt_preloaded_setup() {
6745 return lt__PROGRAM__LTX_preloaded_symbols;
6746 }
6747 #endif
6748
6749 #ifdef __cplusplus
6750 }
6751 #endif
6752 _LT_EOF
6753 # Now try linking the two files.
6754 mv conftest.$ac_objext conftstm.$ac_objext
6755 lt_save_LIBS="$LIBS"
6756 lt_save_CFLAGS="$CFLAGS"
6757 LIBS="conftstm.$ac_objext"
6758 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6760 (eval $ac_link) 2>&5
6761 ac_status=$?
6762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6764 pipe_works=yes
6765 fi
6766 LIBS="$lt_save_LIBS"
6767 CFLAGS="$lt_save_CFLAGS"
6768 else
6769 echo "cannot find nm_test_func in $nlist" >&5
6770 fi
6771 else
6772 echo "cannot find nm_test_var in $nlist" >&5
6773 fi
6774 else
6775 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6776 fi
6777 else
6778 echo "$progname: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6780 fi
6781 rm -rf conftest* conftst*
6782
6783 # Do not use the global_symbol_pipe unless it works.
6784 if test "$pipe_works" = yes; then
6785 break
6786 else
6787 lt_cv_sys_global_symbol_pipe=
6788 fi
6789 done
6790
6791 fi
6792
6793 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6794 lt_cv_sys_global_symbol_to_cdecl=
6795 fi
6796 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6798 $as_echo "failed" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6801 $as_echo "ok" >&6; }
6802 fi
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826 # Check whether --enable-libtool-lock was given.
6827 if test "${enable_libtool_lock+set}" = set; then :
6828 enableval=$enable_libtool_lock;
6829 fi
6830
6831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6832
6833 # Some flags need to be propagated to the compiler or linker for good
6834 # libtool support.
6835 case $host in
6836 ia64-*-hpux*)
6837 # Find out which ABI we are using.
6838 echo 'int i;' > conftest.$ac_ext
6839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840 (eval $ac_compile) 2>&5
6841 ac_status=$?
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }; then
6844 case `/usr/bin/file conftest.$ac_objext` in
6845 *ELF-32*)
6846 HPUX_IA64_MODE="32"
6847 ;;
6848 *ELF-64*)
6849 HPUX_IA64_MODE="64"
6850 ;;
6851 esac
6852 fi
6853 rm -rf conftest*
6854 ;;
6855 *-*-irix6*)
6856 # Find out which ABI we are using.
6857 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6859 (eval $ac_compile) 2>&5
6860 ac_status=$?
6861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862 test $ac_status = 0; }; then
6863 if test "$lt_cv_prog_gnu_ld" = yes; then
6864 case `/usr/bin/file conftest.$ac_objext` in
6865 *32-bit*)
6866 LD="${LD-ld} -melf32bsmip"
6867 ;;
6868 *N32*)
6869 LD="${LD-ld} -melf32bmipn32"
6870 ;;
6871 *64-bit*)
6872 LD="${LD-ld} -melf64bmip"
6873 ;;
6874 esac
6875 else
6876 case `/usr/bin/file conftest.$ac_objext` in
6877 *32-bit*)
6878 LD="${LD-ld} -32"
6879 ;;
6880 *N32*)
6881 LD="${LD-ld} -n32"
6882 ;;
6883 *64-bit*)
6884 LD="${LD-ld} -64"
6885 ;;
6886 esac
6887 fi
6888 fi
6889 rm -rf conftest*
6890 ;;
6891
6892 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6893 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6894 # Find out which ABI we are using.
6895 echo 'int i;' > conftest.$ac_ext
6896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897 (eval $ac_compile) 2>&5
6898 ac_status=$?
6899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900 test $ac_status = 0; }; then
6901 case `/usr/bin/file conftest.o` in
6902 *32-bit*)
6903 case $host in
6904 x86_64-*kfreebsd*-gnu)
6905 LD="${LD-ld} -m elf_i386_fbsd"
6906 ;;
6907 x86_64-*linux*)
6908 case `/usr/bin/file conftest.o` in
6909 *x86-64*)
6910 LD="${LD-ld} -m elf32_x86_64"
6911 ;;
6912 *)
6913 LD="${LD-ld} -m elf_i386"
6914 ;;
6915 esac
6916 ;;
6917 powerpc64le-*linux*)
6918 LD="${LD-ld} -m elf32lppclinux"
6919 ;;
6920 powerpc64-*linux*)
6921 LD="${LD-ld} -m elf32ppclinux"
6922 ;;
6923 s390x-*linux*)
6924 LD="${LD-ld} -m elf_s390"
6925 ;;
6926 sparc64-*linux*)
6927 LD="${LD-ld} -m elf32_sparc"
6928 ;;
6929 esac
6930 ;;
6931 *64-bit*)
6932 case $host in
6933 x86_64-*kfreebsd*-gnu)
6934 LD="${LD-ld} -m elf_x86_64_fbsd"
6935 ;;
6936 x86_64-*linux*)
6937 LD="${LD-ld} -m elf_x86_64"
6938 ;;
6939 powerpcle-*linux*)
6940 LD="${LD-ld} -m elf64lppc"
6941 ;;
6942 powerpc-*linux*)
6943 LD="${LD-ld} -m elf64ppc"
6944 ;;
6945 s390*-*linux*|s390*-*tpf*)
6946 LD="${LD-ld} -m elf64_s390"
6947 ;;
6948 sparc*-*linux*)
6949 LD="${LD-ld} -m elf64_sparc"
6950 ;;
6951 esac
6952 ;;
6953 esac
6954 fi
6955 rm -rf conftest*
6956 ;;
6957
6958 *-*-sco3.2v5*)
6959 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6960 SAVE_CFLAGS="$CFLAGS"
6961 CFLAGS="$CFLAGS -belf"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6963 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6964 if ${lt_cv_cc_needs_belf+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 ac_ext=c
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975
6976 int
6977 main ()
6978 {
6979
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 lt_cv_cc_needs_belf=yes
6986 else
6987 lt_cv_cc_needs_belf=no
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991 ac_ext=c
6992 ac_cpp='$CPP $CPPFLAGS'
6993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6999 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7000 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7001 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7002 CFLAGS="$SAVE_CFLAGS"
7003 fi
7004 ;;
7005 sparc*-*solaris*)
7006 # Find out which ABI we are using.
7007 echo 'int i;' > conftest.$ac_ext
7008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7009 (eval $ac_compile) 2>&5
7010 ac_status=$?
7011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012 test $ac_status = 0; }; then
7013 case `/usr/bin/file conftest.o` in
7014 *64-bit*)
7015 case $lt_cv_prog_gnu_ld in
7016 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7017 *)
7018 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7019 LD="${LD-ld} -64"
7020 fi
7021 ;;
7022 esac
7023 ;;
7024 esac
7025 fi
7026 rm -rf conftest*
7027 ;;
7028 esac
7029
7030 need_locks="$enable_libtool_lock"
7031
7032
7033 case $host_os in
7034 rhapsody* | darwin*)
7035 if test -n "$ac_tool_prefix"; then
7036 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7037 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$DSYMUTIL"; then
7044 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7064 if test -n "$DSYMUTIL"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7066 $as_echo "$DSYMUTIL" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071
7072
7073 fi
7074 if test -z "$ac_cv_prog_DSYMUTIL"; then
7075 ac_ct_DSYMUTIL=$DSYMUTIL
7076 # Extract the first word of "dsymutil", so it can be a program name with args.
7077 set dummy dsymutil; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$ac_ct_DSYMUTIL"; then
7084 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7104 if test -n "$ac_ct_DSYMUTIL"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7106 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112 if test "x$ac_ct_DSYMUTIL" = x; then
7113 DSYMUTIL=":"
7114 else
7115 case $cross_compiling:$ac_tool_warned in
7116 yes:)
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119 ac_tool_warned=yes ;;
7120 esac
7121 DSYMUTIL=$ac_ct_DSYMUTIL
7122 fi
7123 else
7124 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7125 fi
7126
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7129 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_NMEDIT+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$NMEDIT"; then
7136 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153 fi
7154 fi
7155 NMEDIT=$ac_cv_prog_NMEDIT
7156 if test -n "$NMEDIT"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7158 $as_echo "$NMEDIT" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163
7164
7165 fi
7166 if test -z "$ac_cv_prog_NMEDIT"; then
7167 ac_ct_NMEDIT=$NMEDIT
7168 # Extract the first word of "nmedit", so it can be a program name with args.
7169 set dummy nmedit; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$ac_ct_NMEDIT"; then
7176 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7196 if test -n "$ac_ct_NMEDIT"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7198 $as_echo "$ac_ct_NMEDIT" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204 if test "x$ac_ct_NMEDIT" = x; then
7205 NMEDIT=":"
7206 else
7207 case $cross_compiling:$ac_tool_warned in
7208 yes:)
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213 NMEDIT=$ac_ct_NMEDIT
7214 fi
7215 else
7216 NMEDIT="$ac_cv_prog_NMEDIT"
7217 fi
7218
7219 if test -n "$ac_tool_prefix"; then
7220 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7221 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_LIPO+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 if test -n "$LIPO"; then
7228 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241 done
7242 done
7243 IFS=$as_save_IFS
7244
7245 fi
7246 fi
7247 LIPO=$ac_cv_prog_LIPO
7248 if test -n "$LIPO"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7250 $as_echo "$LIPO" >&6; }
7251 else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7254 fi
7255
7256
7257 fi
7258 if test -z "$ac_cv_prog_LIPO"; then
7259 ac_ct_LIPO=$LIPO
7260 # Extract the first word of "lipo", so it can be a program name with args.
7261 set dummy lipo; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$ac_ct_LIPO"; then
7268 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_LIPO="lipo"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7288 if test -n "$ac_ct_LIPO"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7290 $as_echo "$ac_ct_LIPO" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296 if test "x$ac_ct_LIPO" = x; then
7297 LIPO=":"
7298 else
7299 case $cross_compiling:$ac_tool_warned in
7300 yes:)
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303 ac_tool_warned=yes ;;
7304 esac
7305 LIPO=$ac_ct_LIPO
7306 fi
7307 else
7308 LIPO="$ac_cv_prog_LIPO"
7309 fi
7310
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7313 set dummy ${ac_tool_prefix}otool; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_OTOOL+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 if test -n "$OTOOL"; then
7320 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333 done
7334 done
7335 IFS=$as_save_IFS
7336
7337 fi
7338 fi
7339 OTOOL=$ac_cv_prog_OTOOL
7340 if test -n "$OTOOL"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7342 $as_echo "$OTOOL" >&6; }
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 fi
7347
7348
7349 fi
7350 if test -z "$ac_cv_prog_OTOOL"; then
7351 ac_ct_OTOOL=$OTOOL
7352 # Extract the first word of "otool", so it can be a program name with args.
7353 set dummy otool; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 if test -n "$ac_ct_OTOOL"; then
7360 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_ac_ct_OTOOL="otool"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7380 if test -n "$ac_ct_OTOOL"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7382 $as_echo "$ac_ct_OTOOL" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388 if test "x$ac_ct_OTOOL" = x; then
7389 OTOOL=":"
7390 else
7391 case $cross_compiling:$ac_tool_warned in
7392 yes:)
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395 ac_tool_warned=yes ;;
7396 esac
7397 OTOOL=$ac_ct_OTOOL
7398 fi
7399 else
7400 OTOOL="$ac_cv_prog_OTOOL"
7401 fi
7402
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_OTOOL64+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$OTOOL64"; then
7412 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 OTOOL64=$ac_cv_prog_OTOOL64
7432 if test -n "$OTOOL64"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7434 $as_echo "$OTOOL64" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440
7441 fi
7442 if test -z "$ac_cv_prog_OTOOL64"; then
7443 ac_ct_OTOOL64=$OTOOL64
7444 # Extract the first word of "otool64", so it can be a program name with args.
7445 set dummy otool64; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$ac_ct_OTOOL64"; then
7452 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_ac_ct_OTOOL64="otool64"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7472 if test -n "$ac_ct_OTOOL64"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7474 $as_echo "$ac_ct_OTOOL64" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480 if test "x$ac_ct_OTOOL64" = x; then
7481 OTOOL64=":"
7482 else
7483 case $cross_compiling:$ac_tool_warned in
7484 yes:)
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned=yes ;;
7488 esac
7489 OTOOL64=$ac_ct_OTOOL64
7490 fi
7491 else
7492 OTOOL64="$ac_cv_prog_OTOOL64"
7493 fi
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7522 $as_echo_n "checking for -single_module linker flag... " >&6; }
7523 if ${lt_cv_apple_cc_single_mod+:} false; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 lt_cv_apple_cc_single_mod=no
7527 if test -z "${LT_MULTI_MODULE}"; then
7528 # By default we will add the -single_module flag. You can override
7529 # by either setting the environment variable LT_MULTI_MODULE
7530 # non-empty at configure time, or by adding -multi_module to the
7531 # link flags.
7532 rm -rf libconftest.dylib*
7533 echo "int foo(void){return 1;}" > conftest.c
7534 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7535 -dynamiclib -Wl,-single_module conftest.c" >&5
7536 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7537 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7538 _lt_result=$?
7539 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7540 lt_cv_apple_cc_single_mod=yes
7541 else
7542 cat conftest.err >&5
7543 fi
7544 rm -rf libconftest.dylib*
7545 rm -f conftest.*
7546 fi
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7549 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7551 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7552 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 lt_cv_ld_exported_symbols_list=no
7556 save_LDFLAGS=$LDFLAGS
7557 echo "_main" > conftest.sym
7558 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561
7562 int
7563 main ()
7564 {
7565
7566 ;
7567 return 0;
7568 }
7569 _ACEOF
7570 if ac_fn_c_try_link "$LINENO"; then :
7571 lt_cv_ld_exported_symbols_list=yes
7572 else
7573 lt_cv_ld_exported_symbols_list=no
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7577 LDFLAGS="$save_LDFLAGS"
7578
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7581 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7583 $as_echo_n "checking for -force_load linker flag... " >&6; }
7584 if ${lt_cv_ld_force_load+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 lt_cv_ld_force_load=no
7588 cat > conftest.c << _LT_EOF
7589 int forced_loaded() { return 2;}
7590 _LT_EOF
7591 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7592 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7593 echo "$AR cru libconftest.a conftest.o" >&5
7594 $AR cru libconftest.a conftest.o 2>&5
7595 cat > conftest.c << _LT_EOF
7596 int main() { return 0;}
7597 _LT_EOF
7598 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7599 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7600 _lt_result=$?
7601 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7602 lt_cv_ld_force_load=yes
7603 else
7604 cat conftest.err >&5
7605 fi
7606 rm -f conftest.err libconftest.a conftest conftest.c
7607 rm -rf conftest.dSYM
7608
7609 fi
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7611 $as_echo "$lt_cv_ld_force_load" >&6; }
7612 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7613 # build without first building modern cctools / linker.
7614 case $host_cpu-$host_os in
7615 *-rhapsody* | *-darwin1.[012])
7616 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7617 *-darwin1.*)
7618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7619 *-darwin*)
7620 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7621 # deployment target is forced to an earlier version.
7622 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7623 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7624 ;;
7625 10.[012][,.]*)
7626 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7627 ;;
7628 *)
7629 ;;
7630 esac
7631 ;;
7632 esac
7633 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7634 _lt_dar_single_mod='$single_module'
7635 fi
7636 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7637 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7638 else
7639 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7640 fi
7641 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7642 _lt_dsymutil='~$DSYMUTIL $lib || :'
7643 else
7644 _lt_dsymutil=
7645 fi
7646 ;;
7647 esac
7648
7649 ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7655 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7656 # On Suns, sometimes $CPP names a directory.
7657 if test -n "$CPP" && test -d "$CPP"; then
7658 CPP=
7659 fi
7660 if test -z "$CPP"; then
7661 if ${ac_cv_prog_CPP+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 # Double quotes because CPP needs to be expanded
7665 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7666 do
7667 ac_preproc_ok=false
7668 for ac_c_preproc_warn_flag in '' yes
7669 do
7670 # Use a header file that comes with gcc, so configuring glibc
7671 # with a fresh cross-compiler works.
7672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7673 # <limits.h> exists even on freestanding compilers.
7674 # On the NeXT, cc -E runs the code through the compiler's parser,
7675 # not just through cpp. "Syntax error" is here to catch this case.
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678 #ifdef __STDC__
7679 # include <limits.h>
7680 #else
7681 # include <assert.h>
7682 #endif
7683 Syntax error
7684 _ACEOF
7685 if ac_fn_c_try_cpp "$LINENO"; then :
7686
7687 else
7688 # Broken: fails on valid input.
7689 continue
7690 fi
7691 rm -f conftest.err conftest.i conftest.$ac_ext
7692
7693 # OK, works on sane cases. Now check whether nonexistent headers
7694 # can be detected and how.
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 #include <ac_nonexistent.h>
7698 _ACEOF
7699 if ac_fn_c_try_cpp "$LINENO"; then :
7700 # Broken: success on invalid input.
7701 continue
7702 else
7703 # Passes both tests.
7704 ac_preproc_ok=:
7705 break
7706 fi
7707 rm -f conftest.err conftest.i conftest.$ac_ext
7708
7709 done
7710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7711 rm -f conftest.i conftest.err conftest.$ac_ext
7712 if $ac_preproc_ok; then :
7713 break
7714 fi
7715
7716 done
7717 ac_cv_prog_CPP=$CPP
7718
7719 fi
7720 CPP=$ac_cv_prog_CPP
7721 else
7722 ac_cv_prog_CPP=$CPP
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7725 $as_echo "$CPP" >&6; }
7726 ac_preproc_ok=false
7727 for ac_c_preproc_warn_flag in '' yes
7728 do
7729 # Use a header file that comes with gcc, so configuring glibc
7730 # with a fresh cross-compiler works.
7731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7732 # <limits.h> exists even on freestanding compilers.
7733 # On the NeXT, cc -E runs the code through the compiler's parser,
7734 # not just through cpp. "Syntax error" is here to catch this case.
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #ifdef __STDC__
7738 # include <limits.h>
7739 #else
7740 # include <assert.h>
7741 #endif
7742 Syntax error
7743 _ACEOF
7744 if ac_fn_c_try_cpp "$LINENO"; then :
7745
7746 else
7747 # Broken: fails on valid input.
7748 continue
7749 fi
7750 rm -f conftest.err conftest.i conftest.$ac_ext
7751
7752 # OK, works on sane cases. Now check whether nonexistent headers
7753 # can be detected and how.
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 #include <ac_nonexistent.h>
7757 _ACEOF
7758 if ac_fn_c_try_cpp "$LINENO"; then :
7759 # Broken: success on invalid input.
7760 continue
7761 else
7762 # Passes both tests.
7763 ac_preproc_ok=:
7764 break
7765 fi
7766 rm -f conftest.err conftest.i conftest.$ac_ext
7767
7768 done
7769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7770 rm -f conftest.i conftest.err conftest.$ac_ext
7771 if $ac_preproc_ok; then :
7772
7773 else
7774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7776 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7777 See \`config.log' for more details" "$LINENO" 5; }
7778 fi
7779
7780 ac_ext=c
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785
7786
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7788 $as_echo_n "checking for ANSI C header files... " >&6; }
7789 if ${ac_cv_header_stdc+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7794 #include <stdlib.h>
7795 #include <stdarg.h>
7796 #include <string.h>
7797 #include <float.h>
7798
7799 int
7800 main ()
7801 {
7802
7803 ;
7804 return 0;
7805 }
7806 _ACEOF
7807 if ac_fn_c_try_compile "$LINENO"; then :
7808 ac_cv_header_stdc=yes
7809 else
7810 ac_cv_header_stdc=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813
7814 if test $ac_cv_header_stdc = yes; then
7815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 #include <string.h>
7819
7820 _ACEOF
7821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7822 $EGREP "memchr" >/dev/null 2>&1; then :
7823
7824 else
7825 ac_cv_header_stdc=no
7826 fi
7827 rm -f conftest*
7828
7829 fi
7830
7831 if test $ac_cv_header_stdc = yes; then
7832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <stdlib.h>
7836
7837 _ACEOF
7838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7839 $EGREP "free" >/dev/null 2>&1; then :
7840
7841 else
7842 ac_cv_header_stdc=no
7843 fi
7844 rm -f conftest*
7845
7846 fi
7847
7848 if test $ac_cv_header_stdc = yes; then
7849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7850 if test "$cross_compiling" = yes; then :
7851 :
7852 else
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 #include <ctype.h>
7856 #include <stdlib.h>
7857 #if ((' ' & 0x0FF) == 0x020)
7858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7860 #else
7861 # define ISLOWER(c) \
7862 (('a' <= (c) && (c) <= 'i') \
7863 || ('j' <= (c) && (c) <= 'r') \
7864 || ('s' <= (c) && (c) <= 'z'))
7865 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7866 #endif
7867
7868 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7869 int
7870 main ()
7871 {
7872 int i;
7873 for (i = 0; i < 256; i++)
7874 if (XOR (islower (i), ISLOWER (i))
7875 || toupper (i) != TOUPPER (i))
7876 return 2;
7877 return 0;
7878 }
7879 _ACEOF
7880 if ac_fn_c_try_run "$LINENO"; then :
7881
7882 else
7883 ac_cv_header_stdc=no
7884 fi
7885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7886 conftest.$ac_objext conftest.beam conftest.$ac_ext
7887 fi
7888
7889 fi
7890 fi
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7892 $as_echo "$ac_cv_header_stdc" >&6; }
7893 if test $ac_cv_header_stdc = yes; then
7894
7895 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7896
7897 fi
7898
7899 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7900 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7901 inttypes.h stdint.h unistd.h
7902 do :
7903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7904 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7905 "
7906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7907 cat >>confdefs.h <<_ACEOF
7908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7909 _ACEOF
7910
7911 fi
7912
7913 done
7914
7915
7916 for ac_header in dlfcn.h
7917 do :
7918 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7919 "
7920 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7921 cat >>confdefs.h <<_ACEOF
7922 #define HAVE_DLFCN_H 1
7923 _ACEOF
7924
7925 fi
7926
7927 done
7928
7929
7930
7931
7932
7933 # Set options
7934
7935
7936
7937 enable_dlopen=no
7938
7939
7940 enable_win32_dll=no
7941
7942
7943 # Check whether --enable-shared was given.
7944 if test "${enable_shared+set}" = set; then :
7945 enableval=$enable_shared; p=${PACKAGE-default}
7946 case $enableval in
7947 yes) enable_shared=yes ;;
7948 no) enable_shared=no ;;
7949 *)
7950 enable_shared=no
7951 # Look at the argument we got. We use all the common list separators.
7952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7953 for pkg in $enableval; do
7954 IFS="$lt_save_ifs"
7955 if test "X$pkg" = "X$p"; then
7956 enable_shared=yes
7957 fi
7958 done
7959 IFS="$lt_save_ifs"
7960 ;;
7961 esac
7962 else
7963 enable_shared=yes
7964 fi
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974 # Check whether --enable-static was given.
7975 if test "${enable_static+set}" = set; then :
7976 enableval=$enable_static; p=${PACKAGE-default}
7977 case $enableval in
7978 yes) enable_static=yes ;;
7979 no) enable_static=no ;;
7980 *)
7981 enable_static=no
7982 # Look at the argument we got. We use all the common list separators.
7983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7984 for pkg in $enableval; do
7985 IFS="$lt_save_ifs"
7986 if test "X$pkg" = "X$p"; then
7987 enable_static=yes
7988 fi
7989 done
7990 IFS="$lt_save_ifs"
7991 ;;
7992 esac
7993 else
7994 enable_static=yes
7995 fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006 # Check whether --with-pic was given.
8007 if test "${with_pic+set}" = set; then :
8008 withval=$with_pic; pic_mode="$withval"
8009 else
8010 pic_mode=default
8011 fi
8012
8013
8014 test -z "$pic_mode" && pic_mode=default
8015
8016
8017
8018
8019
8020
8021
8022 # Check whether --enable-fast-install was given.
8023 if test "${enable_fast_install+set}" = set; then :
8024 enableval=$enable_fast_install; p=${PACKAGE-default}
8025 case $enableval in
8026 yes) enable_fast_install=yes ;;
8027 no) enable_fast_install=no ;;
8028 *)
8029 enable_fast_install=no
8030 # Look at the argument we got. We use all the common list separators.
8031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8032 for pkg in $enableval; do
8033 IFS="$lt_save_ifs"
8034 if test "X$pkg" = "X$p"; then
8035 enable_fast_install=yes
8036 fi
8037 done
8038 IFS="$lt_save_ifs"
8039 ;;
8040 esac
8041 else
8042 enable_fast_install=yes
8043 fi
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055 # This can be used to rebuild libtool when needed
8056 LIBTOOL_DEPS="$ltmain"
8057
8058 # Always use our own libtool.
8059 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 test -z "$LN_S" && LN_S="ln -s"
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101 if test -n "${ZSH_VERSION+set}" ; then
8102 setopt NO_GLOB_SUBST
8103 fi
8104
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8106 $as_echo_n "checking for objdir... " >&6; }
8107 if ${lt_cv_objdir+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 rm -f .libs 2>/dev/null
8111 mkdir .libs 2>/dev/null
8112 if test -d .libs; then
8113 lt_cv_objdir=.libs
8114 else
8115 # MS-DOS does not allow filenames that begin with a dot.
8116 lt_cv_objdir=_libs
8117 fi
8118 rmdir .libs 2>/dev/null
8119 fi
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8121 $as_echo "$lt_cv_objdir" >&6; }
8122 objdir=$lt_cv_objdir
8123
8124
8125
8126
8127
8128 cat >>confdefs.h <<_ACEOF
8129 #define LT_OBJDIR "$lt_cv_objdir/"
8130 _ACEOF
8131
8132
8133
8134
8135 case $host_os in
8136 aix3*)
8137 # AIX sometimes has problems with the GCC collect2 program. For some
8138 # reason, if we set the COLLECT_NAMES environment variable, the problems
8139 # vanish in a puff of smoke.
8140 if test "X${COLLECT_NAMES+set}" != Xset; then
8141 COLLECT_NAMES=
8142 export COLLECT_NAMES
8143 fi
8144 ;;
8145 esac
8146
8147 # Global variables:
8148 ofile=libtool
8149 can_build_shared=yes
8150
8151 # All known linkers require a `.a' archive for static linking (except MSVC,
8152 # which needs '.lib').
8153 libext=a
8154
8155 with_gnu_ld="$lt_cv_prog_gnu_ld"
8156
8157 old_CC="$CC"
8158 old_CFLAGS="$CFLAGS"
8159
8160 # Set sane defaults for various variables
8161 test -z "$CC" && CC=cc
8162 test -z "$LTCC" && LTCC=$CC
8163 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8164 test -z "$LD" && LD=ld
8165 test -z "$ac_objext" && ac_objext=o
8166
8167 for cc_temp in $compiler""; do
8168 case $cc_temp in
8169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8171 \-*) ;;
8172 *) break;;
8173 esac
8174 done
8175 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8176
8177
8178 # Only perform the check for file, if the check method requires it
8179 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8180 case $deplibs_check_method in
8181 file_magic*)
8182 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8184 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8185 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 case $MAGIC_CMD in
8189 [\\/*] | ?:[\\/]*)
8190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8191 ;;
8192 *)
8193 lt_save_MAGIC_CMD="$MAGIC_CMD"
8194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8196 for ac_dir in $ac_dummy; do
8197 IFS="$lt_save_ifs"
8198 test -z "$ac_dir" && ac_dir=.
8199 if test -f $ac_dir/${ac_tool_prefix}file; then
8200 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8201 if test -n "$file_magic_test_file"; then
8202 case $deplibs_check_method in
8203 "file_magic "*)
8204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8207 $EGREP "$file_magic_regex" > /dev/null; then
8208 :
8209 else
8210 cat <<_LT_EOF 1>&2
8211
8212 *** Warning: the command libtool uses to detect shared libraries,
8213 *** $file_magic_cmd, produces output that libtool cannot recognize.
8214 *** The result is that libtool may fail to recognize shared libraries
8215 *** as such. This will affect the creation of libtool libraries that
8216 *** depend on shared libraries, but programs linked with such libtool
8217 *** libraries will work regardless of this problem. Nevertheless, you
8218 *** may want to report the problem to your system manager and/or to
8219 *** bug-libtool@gnu.org
8220
8221 _LT_EOF
8222 fi ;;
8223 esac
8224 fi
8225 break
8226 fi
8227 done
8228 IFS="$lt_save_ifs"
8229 MAGIC_CMD="$lt_save_MAGIC_CMD"
8230 ;;
8231 esac
8232 fi
8233
8234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8235 if test -n "$MAGIC_CMD"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8237 $as_echo "$MAGIC_CMD" >&6; }
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242
8243
8244
8245
8246
8247 if test -z "$lt_cv_path_MAGIC_CMD"; then
8248 if test -n "$ac_tool_prefix"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8250 $as_echo_n "checking for file... " >&6; }
8251 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 case $MAGIC_CMD in
8255 [\\/*] | ?:[\\/]*)
8256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8257 ;;
8258 *)
8259 lt_save_MAGIC_CMD="$MAGIC_CMD"
8260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8261 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8262 for ac_dir in $ac_dummy; do
8263 IFS="$lt_save_ifs"
8264 test -z "$ac_dir" && ac_dir=.
8265 if test -f $ac_dir/file; then
8266 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8267 if test -n "$file_magic_test_file"; then
8268 case $deplibs_check_method in
8269 "file_magic "*)
8270 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8273 $EGREP "$file_magic_regex" > /dev/null; then
8274 :
8275 else
8276 cat <<_LT_EOF 1>&2
8277
8278 *** Warning: the command libtool uses to detect shared libraries,
8279 *** $file_magic_cmd, produces output that libtool cannot recognize.
8280 *** The result is that libtool may fail to recognize shared libraries
8281 *** as such. This will affect the creation of libtool libraries that
8282 *** depend on shared libraries, but programs linked with such libtool
8283 *** libraries will work regardless of this problem. Nevertheless, you
8284 *** may want to report the problem to your system manager and/or to
8285 *** bug-libtool@gnu.org
8286
8287 _LT_EOF
8288 fi ;;
8289 esac
8290 fi
8291 break
8292 fi
8293 done
8294 IFS="$lt_save_ifs"
8295 MAGIC_CMD="$lt_save_MAGIC_CMD"
8296 ;;
8297 esac
8298 fi
8299
8300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8301 if test -n "$MAGIC_CMD"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8303 $as_echo "$MAGIC_CMD" >&6; }
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 fi
8308
8309
8310 else
8311 MAGIC_CMD=:
8312 fi
8313 fi
8314
8315 fi
8316 ;;
8317 esac
8318
8319 # Use C for the default configuration in the libtool script
8320
8321 lt_save_CC="$CC"
8322 ac_ext=c
8323 ac_cpp='$CPP $CPPFLAGS'
8324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8327
8328
8329 # Source file extension for C test sources.
8330 ac_ext=c
8331
8332 # Object file extension for compiled C test sources.
8333 objext=o
8334 objext=$objext
8335
8336 # Code to be used in simple compile tests
8337 lt_simple_compile_test_code="int some_variable = 0;"
8338
8339 # Code to be used in simple link tests
8340 lt_simple_link_test_code='int main(){return(0);}'
8341
8342
8343
8344
8345
8346
8347
8348 # If no C compiler was specified, use CC.
8349 LTCC=${LTCC-"$CC"}
8350
8351 # If no C compiler flags were specified, use CFLAGS.
8352 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8353
8354 # Allow CC to be a program name with arguments.
8355 compiler=$CC
8356
8357 # Save the default compiler, since it gets overwritten when the other
8358 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8359 compiler_DEFAULT=$CC
8360
8361 # save warnings/boilerplate of simple test code
8362 ac_outfile=conftest.$ac_objext
8363 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8365 _lt_compiler_boilerplate=`cat conftest.err`
8366 $RM conftest*
8367
8368 ac_outfile=conftest.$ac_objext
8369 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8371 _lt_linker_boilerplate=`cat conftest.err`
8372 $RM -r conftest*
8373
8374
8375 ## CAVEAT EMPTOR:
8376 ## There is no encapsulation within the following macros, do not change
8377 ## the running order or otherwise move them around unless you know exactly
8378 ## what you are doing...
8379 if test -n "$compiler"; then
8380
8381 lt_prog_compiler_no_builtin_flag=
8382
8383 if test "$GCC" = yes; then
8384 case $cc_basename in
8385 nvcc*)
8386 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8387 *)
8388 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8389 esac
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8392 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8393 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 lt_cv_prog_compiler_rtti_exceptions=no
8397 ac_outfile=conftest.$ac_objext
8398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8399 lt_compiler_flag="-fno-rtti -fno-exceptions"
8400 # Insert the option either (1) after the last *FLAGS variable, or
8401 # (2) before a word containing "conftest.", or (3) at the end.
8402 # Note that $ac_compile itself does not contain backslashes and begins
8403 # with a dollar sign (not a hyphen), so the echo should work correctly.
8404 # The option is referenced via a variable to avoid confusing sed.
8405 lt_compile=`echo "$ac_compile" | $SED \
8406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8408 -e 's:$: $lt_compiler_flag:'`
8409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8410 (eval "$lt_compile" 2>conftest.err)
8411 ac_status=$?
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 if (exit $ac_status) && test -s "$ac_outfile"; then
8415 # The compiler can only warn and ignore the option if not recognized
8416 # So say no if there are warnings other than the usual output.
8417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8420 lt_cv_prog_compiler_rtti_exceptions=yes
8421 fi
8422 fi
8423 $RM conftest*
8424
8425 fi
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8427 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8428
8429 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8430 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8431 else
8432 :
8433 fi
8434
8435 fi
8436
8437
8438
8439
8440
8441
8442 lt_prog_compiler_wl=
8443 lt_prog_compiler_pic=
8444 lt_prog_compiler_static=
8445
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8447 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8448
8449 if test "$GCC" = yes; then
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_static='-static'
8452
8453 case $host_os in
8454 aix*)
8455 # All AIX code is PIC.
8456 if test "$host_cpu" = ia64; then
8457 # AIX 5 now supports IA64 processor
8458 lt_prog_compiler_static='-Bstatic'
8459 fi
8460 lt_prog_compiler_pic='-fPIC'
8461 ;;
8462
8463 amigaos*)
8464 case $host_cpu in
8465 powerpc)
8466 # see comment about AmigaOS4 .so support
8467 lt_prog_compiler_pic='-fPIC'
8468 ;;
8469 m68k)
8470 # FIXME: we need at least 68020 code to build shared libraries, but
8471 # adding the `-m68020' flag to GCC prevents building anything better,
8472 # like `-m68040'.
8473 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8474 ;;
8475 esac
8476 ;;
8477
8478 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8479 # PIC is the default for these OSes.
8480 ;;
8481
8482 mingw* | cygwin* | pw32* | os2* | cegcc*)
8483 # This hack is so that the source file can tell whether it is being
8484 # built for inclusion in a dll (and should export symbols for example).
8485 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8486 # (--disable-auto-import) libraries
8487 lt_prog_compiler_pic='-DDLL_EXPORT'
8488 ;;
8489
8490 darwin* | rhapsody*)
8491 # PIC is the default on this platform
8492 # Common symbols not allowed in MH_DYLIB files
8493 lt_prog_compiler_pic='-fno-common'
8494 ;;
8495
8496 haiku*)
8497 # PIC is the default for Haiku.
8498 # The "-static" flag exists, but is broken.
8499 lt_prog_compiler_static=
8500 ;;
8501
8502 hpux*)
8503 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8504 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8505 # sets the default TLS model and affects inlining.
8506 case $host_cpu in
8507 hppa*64*)
8508 # +Z the default
8509 ;;
8510 *)
8511 lt_prog_compiler_pic='-fPIC'
8512 ;;
8513 esac
8514 ;;
8515
8516 interix[3-9]*)
8517 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8518 # Instead, we relocate shared libraries at runtime.
8519 ;;
8520
8521 msdosdjgpp*)
8522 # Just because we use GCC doesn't mean we suddenly get shared libraries
8523 # on systems that don't support them.
8524 lt_prog_compiler_can_build_shared=no
8525 enable_shared=no
8526 ;;
8527
8528 *nto* | *qnx*)
8529 # QNX uses GNU C++, but need to define -shared option too, otherwise
8530 # it will coredump.
8531 lt_prog_compiler_pic='-fPIC -shared'
8532 ;;
8533
8534 sysv4*MP*)
8535 if test -d /usr/nec; then
8536 lt_prog_compiler_pic=-Kconform_pic
8537 fi
8538 ;;
8539
8540 *)
8541 lt_prog_compiler_pic='-fPIC'
8542 ;;
8543 esac
8544
8545 case $cc_basename in
8546 nvcc*) # Cuda Compiler Driver 2.2
8547 lt_prog_compiler_wl='-Xlinker '
8548 lt_prog_compiler_pic='-Xcompiler -fPIC'
8549 ;;
8550 esac
8551 else
8552 # PORTME Check for flag to pass linker flags through the system compiler.
8553 case $host_os in
8554 aix*)
8555 lt_prog_compiler_wl='-Wl,'
8556 if test "$host_cpu" = ia64; then
8557 # AIX 5 now supports IA64 processor
8558 lt_prog_compiler_static='-Bstatic'
8559 else
8560 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8561 fi
8562 ;;
8563
8564 mingw* | cygwin* | pw32* | os2* | cegcc*)
8565 # This hack is so that the source file can tell whether it is being
8566 # built for inclusion in a dll (and should export symbols for example).
8567 lt_prog_compiler_pic='-DDLL_EXPORT'
8568 ;;
8569
8570 hpux9* | hpux10* | hpux11*)
8571 lt_prog_compiler_wl='-Wl,'
8572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8573 # not for PA HP-UX.
8574 case $host_cpu in
8575 hppa*64*|ia64*)
8576 # +Z the default
8577 ;;
8578 *)
8579 lt_prog_compiler_pic='+Z'
8580 ;;
8581 esac
8582 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8583 lt_prog_compiler_static='${wl}-a ${wl}archive'
8584 ;;
8585
8586 irix5* | irix6* | nonstopux*)
8587 lt_prog_compiler_wl='-Wl,'
8588 # PIC (with -KPIC) is the default.
8589 lt_prog_compiler_static='-non_shared'
8590 ;;
8591
8592 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8593 case $cc_basename in
8594 # old Intel for x86_64 which still supported -KPIC.
8595 ecc*)
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-KPIC'
8598 lt_prog_compiler_static='-static'
8599 ;;
8600 # icc used to be incompatible with GCC.
8601 # ICC 10 doesn't accept -KPIC any more.
8602 icc* | ifort*)
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_pic='-fPIC'
8605 lt_prog_compiler_static='-static'
8606 ;;
8607 # Lahey Fortran 8.1.
8608 lf95*)
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_pic='--shared'
8611 lt_prog_compiler_static='--static'
8612 ;;
8613 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8614 # Portland Group compilers (*not* the Pentium gcc compiler,
8615 # which looks to be a dead project)
8616 lt_prog_compiler_wl='-Wl,'
8617 lt_prog_compiler_pic='-fpic'
8618 lt_prog_compiler_static='-Bstatic'
8619 ;;
8620 ccc*)
8621 lt_prog_compiler_wl='-Wl,'
8622 # All Alpha code is PIC.
8623 lt_prog_compiler_static='-non_shared'
8624 ;;
8625 xl* | bgxl* | bgf* | mpixl*)
8626 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8627 lt_prog_compiler_wl='-Wl,'
8628 lt_prog_compiler_pic='-qpic'
8629 lt_prog_compiler_static='-qstaticlink'
8630 ;;
8631 *)
8632 case `$CC -V 2>&1 | sed 5q` in
8633 *Sun\ F* | *Sun*Fortran*)
8634 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 lt_prog_compiler_wl=''
8638 ;;
8639 *Sun\ C*)
8640 # Sun C 5.9
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 lt_prog_compiler_wl='-Wl,'
8644 ;;
8645 esac
8646 ;;
8647 esac
8648 ;;
8649
8650 newsos6)
8651 lt_prog_compiler_pic='-KPIC'
8652 lt_prog_compiler_static='-Bstatic'
8653 ;;
8654
8655 *nto* | *qnx*)
8656 # QNX uses GNU C++, but need to define -shared option too, otherwise
8657 # it will coredump.
8658 lt_prog_compiler_pic='-fPIC -shared'
8659 ;;
8660
8661 osf3* | osf4* | osf5*)
8662 lt_prog_compiler_wl='-Wl,'
8663 # All OSF/1 code is PIC.
8664 lt_prog_compiler_static='-non_shared'
8665 ;;
8666
8667 rdos*)
8668 lt_prog_compiler_static='-non_shared'
8669 ;;
8670
8671 solaris*)
8672 lt_prog_compiler_pic='-KPIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 case $cc_basename in
8675 f77* | f90* | f95*)
8676 lt_prog_compiler_wl='-Qoption ld ';;
8677 *)
8678 lt_prog_compiler_wl='-Wl,';;
8679 esac
8680 ;;
8681
8682 sunos4*)
8683 lt_prog_compiler_wl='-Qoption ld '
8684 lt_prog_compiler_pic='-PIC'
8685 lt_prog_compiler_static='-Bstatic'
8686 ;;
8687
8688 sysv4 | sysv4.2uw2* | sysv4.3*)
8689 lt_prog_compiler_wl='-Wl,'
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 ;;
8693
8694 sysv4*MP*)
8695 if test -d /usr/nec ;then
8696 lt_prog_compiler_pic='-Kconform_pic'
8697 lt_prog_compiler_static='-Bstatic'
8698 fi
8699 ;;
8700
8701 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8702 lt_prog_compiler_wl='-Wl,'
8703 lt_prog_compiler_pic='-KPIC'
8704 lt_prog_compiler_static='-Bstatic'
8705 ;;
8706
8707 unicos*)
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_can_build_shared=no
8710 ;;
8711
8712 uts4*)
8713 lt_prog_compiler_pic='-pic'
8714 lt_prog_compiler_static='-Bstatic'
8715 ;;
8716
8717 *)
8718 lt_prog_compiler_can_build_shared=no
8719 ;;
8720 esac
8721 fi
8722
8723 case $host_os in
8724 # For platforms which do not support PIC, -DPIC is meaningless:
8725 *djgpp*)
8726 lt_prog_compiler_pic=
8727 ;;
8728 *)
8729 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8730 ;;
8731 esac
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8733 $as_echo "$lt_prog_compiler_pic" >&6; }
8734
8735
8736
8737
8738
8739
8740 #
8741 # Check to make sure the PIC flag actually works.
8742 #
8743 if test -n "$lt_prog_compiler_pic"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8745 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8746 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 lt_cv_prog_compiler_pic_works=no
8750 ac_outfile=conftest.$ac_objext
8751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8752 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8753 # Insert the option either (1) after the last *FLAGS variable, or
8754 # (2) before a word containing "conftest.", or (3) at the end.
8755 # Note that $ac_compile itself does not contain backslashes and begins
8756 # with a dollar sign (not a hyphen), so the echo should work correctly.
8757 # The option is referenced via a variable to avoid confusing sed.
8758 lt_compile=`echo "$ac_compile" | $SED \
8759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8761 -e 's:$: $lt_compiler_flag:'`
8762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8763 (eval "$lt_compile" 2>conftest.err)
8764 ac_status=$?
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 if (exit $ac_status) && test -s "$ac_outfile"; then
8768 # The compiler can only warn and ignore the option if not recognized
8769 # So say no if there are warnings other than the usual output.
8770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8773 lt_cv_prog_compiler_pic_works=yes
8774 fi
8775 fi
8776 $RM conftest*
8777
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8780 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8781
8782 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8783 case $lt_prog_compiler_pic in
8784 "" | " "*) ;;
8785 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8786 esac
8787 else
8788 lt_prog_compiler_pic=
8789 lt_prog_compiler_can_build_shared=no
8790 fi
8791
8792 fi
8793
8794
8795
8796
8797
8798
8799 #
8800 # Check to make sure the static flag actually works.
8801 #
8802 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8804 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8805 if ${lt_cv_prog_compiler_static_works+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 lt_cv_prog_compiler_static_works=no
8809 save_LDFLAGS="$LDFLAGS"
8810 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8811 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8813 # The linker can only warn and ignore the option if not recognized
8814 # So say no if there are warnings
8815 if test -s conftest.err; then
8816 # Append any errors to the config.log.
8817 cat conftest.err 1>&5
8818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8820 if diff conftest.exp conftest.er2 >/dev/null; then
8821 lt_cv_prog_compiler_static_works=yes
8822 fi
8823 else
8824 lt_cv_prog_compiler_static_works=yes
8825 fi
8826 fi
8827 $RM -r conftest*
8828 LDFLAGS="$save_LDFLAGS"
8829
8830 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8832 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8833
8834 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8835 :
8836 else
8837 lt_prog_compiler_static=
8838 fi
8839
8840
8841
8842
8843
8844
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8847 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8848 if ${lt_cv_prog_compiler_c_o+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 lt_cv_prog_compiler_c_o=no
8852 $RM -r conftest 2>/dev/null
8853 mkdir conftest
8854 cd conftest
8855 mkdir out
8856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8857
8858 lt_compiler_flag="-o out/conftest2.$ac_objext"
8859 # Insert the option either (1) after the last *FLAGS variable, or
8860 # (2) before a word containing "conftest.", or (3) at the end.
8861 # Note that $ac_compile itself does not contain backslashes and begins
8862 # with a dollar sign (not a hyphen), so the echo should work correctly.
8863 lt_compile=`echo "$ac_compile" | $SED \
8864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8866 -e 's:$: $lt_compiler_flag:'`
8867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8868 (eval "$lt_compile" 2>out/conftest.err)
8869 ac_status=$?
8870 cat out/conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8873 then
8874 # The compiler can only warn and ignore the option if not recognized
8875 # So say no if there are warnings
8876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8879 lt_cv_prog_compiler_c_o=yes
8880 fi
8881 fi
8882 chmod u+w . 2>&5
8883 $RM conftest*
8884 # SGI C++ compiler will create directory out/ii_files/ for
8885 # template instantiation
8886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8887 $RM out/* && rmdir out
8888 cd ..
8889 $RM -r conftest
8890 $RM conftest*
8891
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8894 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8895
8896
8897
8898
8899
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8902 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8903 if ${lt_cv_prog_compiler_c_o+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 lt_cv_prog_compiler_c_o=no
8907 $RM -r conftest 2>/dev/null
8908 mkdir conftest
8909 cd conftest
8910 mkdir out
8911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8912
8913 lt_compiler_flag="-o out/conftest2.$ac_objext"
8914 # Insert the option either (1) after the last *FLAGS variable, or
8915 # (2) before a word containing "conftest.", or (3) at the end.
8916 # Note that $ac_compile itself does not contain backslashes and begins
8917 # with a dollar sign (not a hyphen), so the echo should work correctly.
8918 lt_compile=`echo "$ac_compile" | $SED \
8919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8921 -e 's:$: $lt_compiler_flag:'`
8922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8923 (eval "$lt_compile" 2>out/conftest.err)
8924 ac_status=$?
8925 cat out/conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8928 then
8929 # The compiler can only warn and ignore the option if not recognized
8930 # So say no if there are warnings
8931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8934 lt_cv_prog_compiler_c_o=yes
8935 fi
8936 fi
8937 chmod u+w . 2>&5
8938 $RM conftest*
8939 # SGI C++ compiler will create directory out/ii_files/ for
8940 # template instantiation
8941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8942 $RM out/* && rmdir out
8943 cd ..
8944 $RM -r conftest
8945 $RM conftest*
8946
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8949 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8950
8951
8952
8953
8954 hard_links="nottested"
8955 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8956 # do not overwrite the value of need_locks provided by the user
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8958 $as_echo_n "checking if we can lock with hard links... " >&6; }
8959 hard_links=yes
8960 $RM conftest*
8961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8962 touch conftest.a
8963 ln conftest.a conftest.b 2>&5 || hard_links=no
8964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8966 $as_echo "$hard_links" >&6; }
8967 if test "$hard_links" = no; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8969 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8970 need_locks=warn
8971 fi
8972 else
8973 need_locks=no
8974 fi
8975
8976
8977
8978
8979
8980
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8982 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8983
8984 runpath_var=
8985 allow_undefined_flag=
8986 always_export_symbols=no
8987 archive_cmds=
8988 archive_expsym_cmds=
8989 compiler_needs_object=no
8990 enable_shared_with_static_runtimes=no
8991 export_dynamic_flag_spec=
8992 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8993 hardcode_automatic=no
8994 hardcode_direct=no
8995 hardcode_direct_absolute=no
8996 hardcode_libdir_flag_spec=
8997 hardcode_libdir_flag_spec_ld=
8998 hardcode_libdir_separator=
8999 hardcode_minus_L=no
9000 hardcode_shlibpath_var=unsupported
9001 inherit_rpath=no
9002 link_all_deplibs=unknown
9003 module_cmds=
9004 module_expsym_cmds=
9005 old_archive_from_new_cmds=
9006 old_archive_from_expsyms_cmds=
9007 thread_safe_flag_spec=
9008 whole_archive_flag_spec=
9009 # include_expsyms should be a list of space-separated symbols to be *always*
9010 # included in the symbol list
9011 include_expsyms=
9012 # exclude_expsyms can be an extended regexp of symbols to exclude
9013 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9014 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9015 # as well as any symbol that contains `d'.
9016 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9017 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9018 # platforms (ab)use it in PIC code, but their linkers get confused if
9019 # the symbol is explicitly referenced. Since portable code cannot
9020 # rely on this symbol name, it's probably fine to never include it in
9021 # preloaded symbol tables.
9022 # Exclude shared library initialization/finalization symbols.
9023 extract_expsyms_cmds=
9024
9025 case $host_os in
9026 cygwin* | mingw* | pw32* | cegcc*)
9027 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9028 # When not using gcc, we currently assume that we are using
9029 # Microsoft Visual C++.
9030 if test "$GCC" != yes; then
9031 with_gnu_ld=no
9032 fi
9033 ;;
9034 interix*)
9035 # we just hope/assume this is gcc and not c89 (= MSVC++)
9036 with_gnu_ld=yes
9037 ;;
9038 openbsd*)
9039 with_gnu_ld=no
9040 ;;
9041 esac
9042
9043 ld_shlibs=yes
9044
9045 # On some targets, GNU ld is compatible enough with the native linker
9046 # that we're better off using the native interface for both.
9047 lt_use_gnu_ld_interface=no
9048 if test "$with_gnu_ld" = yes; then
9049 case $host_os in
9050 aix*)
9051 # The AIX port of GNU ld has always aspired to compatibility
9052 # with the native linker. However, as the warning in the GNU ld
9053 # block says, versions before 2.19.5* couldn't really create working
9054 # shared libraries, regardless of the interface used.
9055 case `$LD -v 2>&1` in
9056 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9057 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9058 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9059 *)
9060 lt_use_gnu_ld_interface=yes
9061 ;;
9062 esac
9063 ;;
9064 *)
9065 lt_use_gnu_ld_interface=yes
9066 ;;
9067 esac
9068 fi
9069
9070 if test "$lt_use_gnu_ld_interface" = yes; then
9071 # If archive_cmds runs LD, not CC, wlarc should be empty
9072 wlarc='${wl}'
9073
9074 # Set some defaults for GNU ld with shared library support. These
9075 # are reset later if shared libraries are not supported. Putting them
9076 # here allows them to be overridden if necessary.
9077 runpath_var=LD_RUN_PATH
9078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9079 export_dynamic_flag_spec='${wl}--export-dynamic'
9080 # ancient GNU ld didn't support --whole-archive et. al.
9081 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9082 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9083 else
9084 whole_archive_flag_spec=
9085 fi
9086 supports_anon_versioning=no
9087 case `$LD -v 2>&1` in
9088 *GNU\ gold*) supports_anon_versioning=yes ;;
9089 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9090 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9091 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9092 *\ 2.11.*) ;; # other 2.11 versions
9093 *) supports_anon_versioning=yes ;;
9094 esac
9095
9096 # See if GNU ld supports shared libraries.
9097 case $host_os in
9098 aix[3-9]*)
9099 # On AIX/PPC, the GNU linker is very broken
9100 if test "$host_cpu" != ia64; then
9101 ld_shlibs=no
9102 cat <<_LT_EOF 1>&2
9103
9104 *** Warning: the GNU linker, at least up to release 2.19, is reported
9105 *** to be unable to reliably create shared libraries on AIX.
9106 *** Therefore, libtool is disabling shared libraries support. If you
9107 *** really care for shared libraries, you may want to install binutils
9108 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9109 *** You will then need to restart the configuration process.
9110
9111 _LT_EOF
9112 fi
9113 ;;
9114
9115 amigaos*)
9116 case $host_cpu in
9117 powerpc)
9118 # see comment about AmigaOS4 .so support
9119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120 archive_expsym_cmds=''
9121 ;;
9122 m68k)
9123 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)'
9124 hardcode_libdir_flag_spec='-L$libdir'
9125 hardcode_minus_L=yes
9126 ;;
9127 esac
9128 ;;
9129
9130 beos*)
9131 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9132 allow_undefined_flag=unsupported
9133 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9134 # support --undefined. This deserves some investigation. FIXME
9135 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 else
9137 ld_shlibs=no
9138 fi
9139 ;;
9140
9141 cygwin* | mingw* | pw32* | cegcc*)
9142 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9143 # as there is no search path for DLLs.
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 export_dynamic_flag_spec='${wl}--export-all-symbols'
9146 allow_undefined_flag=unsupported
9147 always_export_symbols=no
9148 enable_shared_with_static_runtimes=yes
9149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9150
9151 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9153 # If the export-symbols file already is a .def file (1st line
9154 # is EXPORTS), use it as is; otherwise, prepend...
9155 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9156 cp $export_symbols $output_objdir/$soname.def;
9157 else
9158 echo EXPORTS > $output_objdir/$soname.def;
9159 cat $export_symbols >> $output_objdir/$soname.def;
9160 fi~
9161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9162 else
9163 ld_shlibs=no
9164 fi
9165 ;;
9166
9167 haiku*)
9168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 link_all_deplibs=yes
9170 ;;
9171
9172 interix[3-9]*)
9173 hardcode_direct=no
9174 hardcode_shlibpath_var=no
9175 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9176 export_dynamic_flag_spec='${wl}-E'
9177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9178 # Instead, shared libraries are loaded at an image base (0x10000000 by
9179 # default) and relocated if they conflict, which is a slow very memory
9180 # consuming and fragmenting process. To avoid this, we pick a random,
9181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9182 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9184 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'
9185 ;;
9186
9187 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9188 tmp_diet=no
9189 if test "$host_os" = linux-dietlibc; then
9190 case $cc_basename in
9191 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9192 esac
9193 fi
9194 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9195 && test "$tmp_diet" = no
9196 then
9197 tmp_addflag=' $pic_flag'
9198 tmp_sharedflag='-shared'
9199 case $cc_basename,$host_cpu in
9200 pgcc*) # Portland Group C compiler
9201 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'
9202 tmp_addflag=' $pic_flag'
9203 ;;
9204 pgf77* | pgf90* | pgf95* | pgfortran*)
9205 # Portland Group f77 and f90 compilers
9206 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'
9207 tmp_addflag=' $pic_flag -Mnomain' ;;
9208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9209 tmp_addflag=' -i_dynamic' ;;
9210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9211 tmp_addflag=' -i_dynamic -nofor_main' ;;
9212 ifc* | ifort*) # Intel Fortran compiler
9213 tmp_addflag=' -nofor_main' ;;
9214 lf95*) # Lahey Fortran 8.1
9215 whole_archive_flag_spec=
9216 tmp_sharedflag='--shared' ;;
9217 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9218 tmp_sharedflag='-qmkshrobj'
9219 tmp_addflag= ;;
9220 nvcc*) # Cuda Compiler Driver 2.2
9221 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'
9222 compiler_needs_object=yes
9223 ;;
9224 esac
9225 case `$CC -V 2>&1 | sed 5q` in
9226 *Sun\ C*) # Sun C 5.9
9227 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'
9228 compiler_needs_object=yes
9229 tmp_sharedflag='-G' ;;
9230 *Sun\ F*) # Sun Fortran 8.3
9231 tmp_sharedflag='-G' ;;
9232 esac
9233 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234
9235 if test "x$supports_anon_versioning" = xyes; then
9236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238 echo "local: *; };" >> $output_objdir/$libname.ver~
9239 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9240 fi
9241
9242 case $cc_basename in
9243 xlf* | bgf* | bgxlf* | mpixlf*)
9244 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9245 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9246 hardcode_libdir_flag_spec=
9247 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9248 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9249 if test "x$supports_anon_versioning" = xyes; then
9250 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9252 echo "local: *; };" >> $output_objdir/$libname.ver~
9253 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9254 fi
9255 ;;
9256 esac
9257 else
9258 ld_shlibs=no
9259 fi
9260 ;;
9261
9262 netbsd*)
9263 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9264 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9265 wlarc=
9266 else
9267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9269 fi
9270 ;;
9271
9272 solaris*)
9273 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9274 ld_shlibs=no
9275 cat <<_LT_EOF 1>&2
9276
9277 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9278 *** create shared libraries on Solaris systems. Therefore, libtool
9279 *** is disabling shared libraries support. We urge you to upgrade GNU
9280 *** binutils to release 2.9.1 or newer. Another option is to modify
9281 *** your PATH or compiler configuration so that the native linker is
9282 *** used, and then restart.
9283
9284 _LT_EOF
9285 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9288 else
9289 ld_shlibs=no
9290 fi
9291 ;;
9292
9293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9294 case `$LD -v 2>&1` in
9295 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9296 ld_shlibs=no
9297 cat <<_LT_EOF 1>&2
9298
9299 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9300 *** reliably create shared libraries on SCO systems. Therefore, libtool
9301 *** is disabling shared libraries support. We urge you to upgrade GNU
9302 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9303 *** your PATH or compiler configuration so that the native linker is
9304 *** used, and then restart.
9305
9306 _LT_EOF
9307 ;;
9308 *)
9309 # For security reasons, it is highly recommended that you always
9310 # use absolute paths for naming shared libraries, and exclude the
9311 # DT_RUNPATH tag from executables and libraries. But doing so
9312 # requires that you compile everything twice, which is a pain.
9313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9317 else
9318 ld_shlibs=no
9319 fi
9320 ;;
9321 esac
9322 ;;
9323
9324 sunos4*)
9325 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9326 wlarc=
9327 hardcode_direct=yes
9328 hardcode_shlibpath_var=no
9329 ;;
9330
9331 *)
9332 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9335 else
9336 ld_shlibs=no
9337 fi
9338 ;;
9339 esac
9340
9341 if test "$ld_shlibs" = no; then
9342 runpath_var=
9343 hardcode_libdir_flag_spec=
9344 export_dynamic_flag_spec=
9345 whole_archive_flag_spec=
9346 fi
9347 else
9348 # PORTME fill in a description of your system's linker (not GNU ld)
9349 case $host_os in
9350 aix3*)
9351 allow_undefined_flag=unsupported
9352 always_export_symbols=yes
9353 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'
9354 # Note: this linker hardcodes the directories in LIBPATH if there
9355 # are no directories specified by -L.
9356 hardcode_minus_L=yes
9357 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9358 # Neither direct hardcoding nor static linking is supported with a
9359 # broken collect2.
9360 hardcode_direct=unsupported
9361 fi
9362 ;;
9363
9364 aix[4-9]*)
9365 if test "$host_cpu" = ia64; then
9366 # On IA64, the linker does run time linking by default, so we don't
9367 # have to do anything special.
9368 aix_use_runtimelinking=no
9369 exp_sym_flag='-Bexport'
9370 no_entry_flag=""
9371 else
9372 # If we're using GNU nm, then we don't want the "-C" option.
9373 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9374 # Also, AIX nm treats weak defined symbols like other global
9375 # defined symbols, whereas GNU nm marks them as "W".
9376 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9377 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'
9378 else
9379 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'
9380 fi
9381 aix_use_runtimelinking=no
9382
9383 # Test if we are trying to use run time linking or normal
9384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9385 # need to do runtime linking.
9386 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9387 for ld_flag in $LDFLAGS; do
9388 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9389 aix_use_runtimelinking=yes
9390 break
9391 fi
9392 done
9393 ;;
9394 esac
9395
9396 exp_sym_flag='-bexport'
9397 no_entry_flag='-bnoentry'
9398 fi
9399
9400 # When large executables or shared objects are built, AIX ld can
9401 # have problems creating the table of contents. If linking a library
9402 # or program results in "error TOC overflow" add -mminimal-toc to
9403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9405
9406 archive_cmds=''
9407 hardcode_direct=yes
9408 hardcode_direct_absolute=yes
9409 hardcode_libdir_separator=':'
9410 link_all_deplibs=yes
9411 file_list_spec='${wl}-f,'
9412
9413 if test "$GCC" = yes; then
9414 case $host_os in aix4.[012]|aix4.[012].*)
9415 # We only want to do this on AIX 4.2 and lower, the check
9416 # below for broken collect2 doesn't work under 4.3+
9417 collect2name=`${CC} -print-prog-name=collect2`
9418 if test -f "$collect2name" &&
9419 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9420 then
9421 # We have reworked collect2
9422 :
9423 else
9424 # We have old collect2
9425 hardcode_direct=unsupported
9426 # It fails to find uninstalled libraries when the uninstalled
9427 # path is not listed in the libpath. Setting hardcode_minus_L
9428 # to unsupported forces relinking
9429 hardcode_minus_L=yes
9430 hardcode_libdir_flag_spec='-L$libdir'
9431 hardcode_libdir_separator=
9432 fi
9433 ;;
9434 esac
9435 shared_flag='-shared'
9436 if test "$aix_use_runtimelinking" = yes; then
9437 shared_flag="$shared_flag "'${wl}-G'
9438 fi
9439 else
9440 # not using gcc
9441 if test "$host_cpu" = ia64; then
9442 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9443 # chokes on -Wl,-G. The following line is correct:
9444 shared_flag='-G'
9445 else
9446 if test "$aix_use_runtimelinking" = yes; then
9447 shared_flag='${wl}-G'
9448 else
9449 shared_flag='${wl}-bM:SRE'
9450 fi
9451 fi
9452 fi
9453
9454 export_dynamic_flag_spec='${wl}-bexpall'
9455 # It seems that -bexpall does not export symbols beginning with
9456 # underscore (_), so it is better to generate a list of symbols to export.
9457 always_export_symbols=yes
9458 if test "$aix_use_runtimelinking" = yes; then
9459 # Warning - without using the other runtime loading flags (-brtl),
9460 # -berok will link without error, but may produce a broken library.
9461 allow_undefined_flag='-berok'
9462 # Determine the default libpath from the value encoded in an
9463 # empty executable.
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466
9467 int
9468 main ()
9469 {
9470
9471 ;
9472 return 0;
9473 }
9474 _ACEOF
9475 if ac_fn_c_try_link "$LINENO"; then :
9476
9477 lt_aix_libpath_sed='
9478 /Import File Strings/,/^$/ {
9479 /^0/ {
9480 s/^0 *\(.*\)$/\1/
9481 p
9482 }
9483 }'
9484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485 # Check for a 64-bit object if we didn't find anything.
9486 if test -z "$aix_libpath"; then
9487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9488 fi
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9493
9494 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9495 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"
9496 else
9497 if test "$host_cpu" = ia64; then
9498 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9499 allow_undefined_flag="-z nodefs"
9500 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"
9501 else
9502 # Determine the default libpath from the value encoded in an
9503 # empty executable.
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9506
9507 int
9508 main ()
9509 {
9510
9511 ;
9512 return 0;
9513 }
9514 _ACEOF
9515 if ac_fn_c_try_link "$LINENO"; then :
9516
9517 lt_aix_libpath_sed='
9518 /Import File Strings/,/^$/ {
9519 /^0/ {
9520 s/^0 *\(.*\)$/\1/
9521 p
9522 }
9523 }'
9524 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9525 # Check for a 64-bit object if we didn't find anything.
9526 if test -z "$aix_libpath"; then
9527 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9528 fi
9529 fi
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9533
9534 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9535 # Warning - without using the other run time loading flags,
9536 # -berok will link without error, but may produce a broken library.
9537 no_undefined_flag=' ${wl}-bernotok'
9538 allow_undefined_flag=' ${wl}-berok'
9539 if test "$with_gnu_ld" = yes; then
9540 # We only use this code for GNU lds that support --whole-archive.
9541 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9542 else
9543 # Exported symbols can be pulled into shared objects from archives
9544 whole_archive_flag_spec='$convenience'
9545 fi
9546 archive_cmds_need_lc=yes
9547 # This is similar to how AIX traditionally builds its shared libraries.
9548 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'
9549 fi
9550 fi
9551 ;;
9552
9553 amigaos*)
9554 case $host_cpu in
9555 powerpc)
9556 # see comment about AmigaOS4 .so support
9557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558 archive_expsym_cmds=''
9559 ;;
9560 m68k)
9561 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)'
9562 hardcode_libdir_flag_spec='-L$libdir'
9563 hardcode_minus_L=yes
9564 ;;
9565 esac
9566 ;;
9567
9568 bsdi[45]*)
9569 export_dynamic_flag_spec=-rdynamic
9570 ;;
9571
9572 cygwin* | mingw* | pw32* | cegcc*)
9573 # When not using gcc, we currently assume that we are using
9574 # Microsoft Visual C++.
9575 # hardcode_libdir_flag_spec is actually meaningless, as there is
9576 # no search path for DLLs.
9577 hardcode_libdir_flag_spec=' '
9578 allow_undefined_flag=unsupported
9579 # Tell ltmain to make .lib files, not .a files.
9580 libext=lib
9581 # Tell ltmain to make .dll files, not .so files.
9582 shrext_cmds=".dll"
9583 # FIXME: Setting linknames here is a bad hack.
9584 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9585 # The linker will automatically build a .lib file if we build a DLL.
9586 old_archive_from_new_cmds='true'
9587 # FIXME: Should let the user specify the lib program.
9588 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9589 fix_srcfile_path='`cygpath -w "$srcfile"`'
9590 enable_shared_with_static_runtimes=yes
9591 ;;
9592
9593 darwin* | rhapsody*)
9594
9595
9596 archive_cmds_need_lc=no
9597 hardcode_direct=no
9598 hardcode_automatic=yes
9599 hardcode_shlibpath_var=unsupported
9600 if test "$lt_cv_ld_force_load" = "yes"; then
9601 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\"`'
9602 else
9603 whole_archive_flag_spec=''
9604 fi
9605 link_all_deplibs=yes
9606 allow_undefined_flag="$_lt_dar_allow_undefined"
9607 case $cc_basename in
9608 ifort*) _lt_dar_can_shared=yes ;;
9609 *) _lt_dar_can_shared=$GCC ;;
9610 esac
9611 if test "$_lt_dar_can_shared" = "yes"; then
9612 output_verbose_link_cmd=func_echo_all
9613 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9614 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9615 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}"
9616 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}"
9617
9618 else
9619 ld_shlibs=no
9620 fi
9621
9622 ;;
9623
9624 dgux*)
9625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626 hardcode_libdir_flag_spec='-L$libdir'
9627 hardcode_shlibpath_var=no
9628 ;;
9629
9630 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9631 # support. Future versions do this automatically, but an explicit c++rt0.o
9632 # does not break anything, and helps significantly (at the cost of a little
9633 # extra space).
9634 freebsd2.2*)
9635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9636 hardcode_libdir_flag_spec='-R$libdir'
9637 hardcode_direct=yes
9638 hardcode_shlibpath_var=no
9639 ;;
9640
9641 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9642 freebsd2.*)
9643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_direct=yes
9645 hardcode_minus_L=yes
9646 hardcode_shlibpath_var=no
9647 ;;
9648
9649 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9650 freebsd* | dragonfly*)
9651 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9652 hardcode_libdir_flag_spec='-R$libdir'
9653 hardcode_direct=yes
9654 hardcode_shlibpath_var=no
9655 ;;
9656
9657 hpux9*)
9658 if test "$GCC" = yes; then
9659 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'
9660 else
9661 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'
9662 fi
9663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9664 hardcode_libdir_separator=:
9665 hardcode_direct=yes
9666
9667 # hardcode_minus_L: Not really in the search PATH,
9668 # but as the default location of the library.
9669 hardcode_minus_L=yes
9670 export_dynamic_flag_spec='${wl}-E'
9671 ;;
9672
9673 hpux10*)
9674 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9675 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9676 else
9677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9678 fi
9679 if test "$with_gnu_ld" = no; then
9680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9681 hardcode_libdir_flag_spec_ld='+b $libdir'
9682 hardcode_libdir_separator=:
9683 hardcode_direct=yes
9684 hardcode_direct_absolute=yes
9685 export_dynamic_flag_spec='${wl}-E'
9686 # hardcode_minus_L: Not really in the search PATH,
9687 # but as the default location of the library.
9688 hardcode_minus_L=yes
9689 fi
9690 ;;
9691
9692 hpux11*)
9693 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9694 case $host_cpu in
9695 hppa*64*)
9696 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 ia64*)
9699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9700 ;;
9701 *)
9702 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9703 ;;
9704 esac
9705 else
9706 case $host_cpu in
9707 hppa*64*)
9708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9709 ;;
9710 ia64*)
9711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9712 ;;
9713 *)
9714
9715 # Older versions of the 11.00 compiler do not understand -b yet
9716 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9718 $as_echo_n "checking if $CC understands -b... " >&6; }
9719 if ${lt_cv_prog_compiler__b+:} false; then :
9720 $as_echo_n "(cached) " >&6
9721 else
9722 lt_cv_prog_compiler__b=no
9723 save_LDFLAGS="$LDFLAGS"
9724 LDFLAGS="$LDFLAGS -b"
9725 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9726 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9727 # The linker can only warn and ignore the option if not recognized
9728 # So say no if there are warnings
9729 if test -s conftest.err; then
9730 # Append any errors to the config.log.
9731 cat conftest.err 1>&5
9732 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9734 if diff conftest.exp conftest.er2 >/dev/null; then
9735 lt_cv_prog_compiler__b=yes
9736 fi
9737 else
9738 lt_cv_prog_compiler__b=yes
9739 fi
9740 fi
9741 $RM -r conftest*
9742 LDFLAGS="$save_LDFLAGS"
9743
9744 fi
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9746 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9747
9748 if test x"$lt_cv_prog_compiler__b" = xyes; then
9749 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9750 else
9751 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9752 fi
9753
9754 ;;
9755 esac
9756 fi
9757 if test "$with_gnu_ld" = no; then
9758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9759 hardcode_libdir_separator=:
9760
9761 case $host_cpu in
9762 hppa*64*|ia64*)
9763 hardcode_direct=no
9764 hardcode_shlibpath_var=no
9765 ;;
9766 *)
9767 hardcode_direct=yes
9768 hardcode_direct_absolute=yes
9769 export_dynamic_flag_spec='${wl}-E'
9770
9771 # hardcode_minus_L: Not really in the search PATH,
9772 # but as the default location of the library.
9773 hardcode_minus_L=yes
9774 ;;
9775 esac
9776 fi
9777 ;;
9778
9779 irix5* | irix6* | nonstopux*)
9780 if test "$GCC" = yes; then
9781 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'
9782 # Try to use the -exported_symbol ld option, if it does not
9783 # work, assume that -exports_file does not work either and
9784 # implicitly export all symbols.
9785 save_LDFLAGS="$LDFLAGS"
9786 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h. */
9789 int foo(void) {}
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9792 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'
9793
9794 fi
9795 rm -f core conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9797 LDFLAGS="$save_LDFLAGS"
9798 else
9799 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'
9800 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'
9801 fi
9802 archive_cmds_need_lc='no'
9803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9804 hardcode_libdir_separator=:
9805 inherit_rpath=yes
9806 link_all_deplibs=yes
9807 ;;
9808
9809 netbsd*)
9810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9812 else
9813 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9814 fi
9815 hardcode_libdir_flag_spec='-R$libdir'
9816 hardcode_direct=yes
9817 hardcode_shlibpath_var=no
9818 ;;
9819
9820 newsos6)
9821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_direct=yes
9823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9824 hardcode_libdir_separator=:
9825 hardcode_shlibpath_var=no
9826 ;;
9827
9828 *nto* | *qnx*)
9829 ;;
9830
9831 openbsd*)
9832 if test -f /usr/libexec/ld.so; then
9833 hardcode_direct=yes
9834 hardcode_shlibpath_var=no
9835 hardcode_direct_absolute=yes
9836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9840 export_dynamic_flag_spec='${wl}-E'
9841 else
9842 case $host_os in
9843 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_libdir_flag_spec='-R$libdir'
9846 ;;
9847 *)
9848 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9850 ;;
9851 esac
9852 fi
9853 else
9854 ld_shlibs=no
9855 fi
9856 ;;
9857
9858 os2*)
9859 hardcode_libdir_flag_spec='-L$libdir'
9860 hardcode_minus_L=yes
9861 allow_undefined_flag=unsupported
9862 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'
9863 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9864 ;;
9865
9866 osf3*)
9867 if test "$GCC" = yes; then
9868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9869 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'
9870 else
9871 allow_undefined_flag=' -expect_unresolved \*'
9872 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'
9873 fi
9874 archive_cmds_need_lc='no'
9875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9876 hardcode_libdir_separator=:
9877 ;;
9878
9879 osf4* | osf5*) # as osf3* with the addition of -msym flag
9880 if test "$GCC" = yes; then
9881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9882 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'
9883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9884 else
9885 allow_undefined_flag=' -expect_unresolved \*'
9886 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'
9887 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~
9888 $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'
9889
9890 # Both c and cxx compiler support -rpath directly
9891 hardcode_libdir_flag_spec='-rpath $libdir'
9892 fi
9893 archive_cmds_need_lc='no'
9894 hardcode_libdir_separator=:
9895 ;;
9896
9897 solaris*)
9898 no_undefined_flag=' -z defs'
9899 if test "$GCC" = yes; then
9900 wlarc='${wl}'
9901 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9903 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9904 else
9905 case `$CC -V 2>&1` in
9906 *"Compilers 5.0"*)
9907 wlarc=''
9908 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9911 ;;
9912 *)
9913 wlarc='${wl}'
9914 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9916 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9917 ;;
9918 esac
9919 fi
9920 hardcode_libdir_flag_spec='-R$libdir'
9921 hardcode_shlibpath_var=no
9922 case $host_os in
9923 solaris2.[0-5] | solaris2.[0-5].*) ;;
9924 *)
9925 # The compiler driver will combine and reorder linker options,
9926 # but understands `-z linker_flag'. GCC discards it without `$wl',
9927 # but is careful enough not to reorder.
9928 # Supported since Solaris 2.6 (maybe 2.5.1?)
9929 if test "$GCC" = yes; then
9930 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9931 else
9932 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9933 fi
9934 ;;
9935 esac
9936 link_all_deplibs=yes
9937 ;;
9938
9939 sunos4*)
9940 if test "x$host_vendor" = xsequent; then
9941 # Use $CC to link under sequent, because it throws in some extra .o
9942 # files that make .init and .fini sections work.
9943 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9944 else
9945 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9946 fi
9947 hardcode_libdir_flag_spec='-L$libdir'
9948 hardcode_direct=yes
9949 hardcode_minus_L=yes
9950 hardcode_shlibpath_var=no
9951 ;;
9952
9953 sysv4)
9954 case $host_vendor in
9955 sni)
9956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_direct=yes # is this really true???
9958 ;;
9959 siemens)
9960 ## LD is ld it makes a PLAMLIB
9961 ## CC just makes a GrossModule.
9962 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9963 reload_cmds='$CC -r -o $output$reload_objs'
9964 hardcode_direct=no
9965 ;;
9966 motorola)
9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9969 ;;
9970 esac
9971 runpath_var='LD_RUN_PATH'
9972 hardcode_shlibpath_var=no
9973 ;;
9974
9975 sysv4.3*)
9976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_shlibpath_var=no
9978 export_dynamic_flag_spec='-Bexport'
9979 ;;
9980
9981 sysv4*MP*)
9982 if test -d /usr/nec; then
9983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984 hardcode_shlibpath_var=no
9985 runpath_var=LD_RUN_PATH
9986 hardcode_runpath_var=yes
9987 ld_shlibs=yes
9988 fi
9989 ;;
9990
9991 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9992 no_undefined_flag='${wl}-z,text'
9993 archive_cmds_need_lc=no
9994 hardcode_shlibpath_var=no
9995 runpath_var='LD_RUN_PATH'
9996
9997 if test "$GCC" = yes; then
9998 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000 else
10001 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10002 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003 fi
10004 ;;
10005
10006 sysv5* | sco3.2v5* | sco5v6*)
10007 # Note: We can NOT use -z defs as we might desire, because we do not
10008 # link with -lc, and that would cause any symbols used from libc to
10009 # always be unresolved, which means just about no library would
10010 # ever link correctly. If we're not using GNU ld we use -z text
10011 # though, which does catch some bad symbols but isn't as heavy-handed
10012 # as -z defs.
10013 no_undefined_flag='${wl}-z,text'
10014 allow_undefined_flag='${wl}-z,nodefs'
10015 archive_cmds_need_lc=no
10016 hardcode_shlibpath_var=no
10017 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10018 hardcode_libdir_separator=':'
10019 link_all_deplibs=yes
10020 export_dynamic_flag_spec='${wl}-Bexport'
10021 runpath_var='LD_RUN_PATH'
10022
10023 if test "$GCC" = yes; then
10024 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 else
10027 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029 fi
10030 ;;
10031
10032 uts4*)
10033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_libdir_flag_spec='-L$libdir'
10035 hardcode_shlibpath_var=no
10036 ;;
10037
10038 *)
10039 ld_shlibs=no
10040 ;;
10041 esac
10042
10043 if test x$host_vendor = xsni; then
10044 case $host in
10045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10046 export_dynamic_flag_spec='${wl}-Blargedynsym'
10047 ;;
10048 esac
10049 fi
10050 fi
10051
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10053 $as_echo "$ld_shlibs" >&6; }
10054 test "$ld_shlibs" = no && can_build_shared=no
10055
10056 with_gnu_ld=$with_gnu_ld
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072 #
10073 # Do we need to explicitly link libc?
10074 #
10075 case "x$archive_cmds_need_lc" in
10076 x|xyes)
10077 # Assume -lc should be added
10078 archive_cmds_need_lc=yes
10079
10080 if test "$enable_shared" = yes && test "$GCC" = yes; then
10081 case $archive_cmds in
10082 *'~'*)
10083 # FIXME: we may have to deal with multi-command sequences.
10084 ;;
10085 '$CC '*)
10086 # Test whether the compiler implicitly links with -lc since on some
10087 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10088 # to ld, don't add -lc before -lgcc.
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10090 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10091 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 $RM conftest*
10095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10096
10097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10098 (eval $ac_compile) 2>&5
10099 ac_status=$?
10100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10101 test $ac_status = 0; } 2>conftest.err; then
10102 soname=conftest
10103 lib=conftest
10104 libobjs=conftest.$ac_objext
10105 deplibs=
10106 wl=$lt_prog_compiler_wl
10107 pic_flag=$lt_prog_compiler_pic
10108 compiler_flags=-v
10109 linker_flags=-v
10110 verstring=
10111 output_objdir=.
10112 libname=conftest
10113 lt_save_allow_undefined_flag=$allow_undefined_flag
10114 allow_undefined_flag=
10115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10116 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10117 ac_status=$?
10118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10119 test $ac_status = 0; }
10120 then
10121 lt_cv_archive_cmds_need_lc=no
10122 else
10123 lt_cv_archive_cmds_need_lc=yes
10124 fi
10125 allow_undefined_flag=$lt_save_allow_undefined_flag
10126 else
10127 cat conftest.err 1>&5
10128 fi
10129 $RM conftest*
10130
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10133 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10134 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10135 ;;
10136 esac
10137 fi
10138 ;;
10139 esac
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
10290
10291
10292
10293
10294
10295
10296
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10298 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10299
10300 if test "$GCC" = yes; then
10301 case $host_os in
10302 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10303 *) lt_awk_arg="/^libraries:/" ;;
10304 esac
10305 case $host_os in
10306 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10307 *) lt_sed_strip_eq="s,=/,/,g" ;;
10308 esac
10309 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10310 case $lt_search_path_spec in
10311 *\;*)
10312 # if the path contains ";" then we assume it to be the separator
10313 # otherwise default to the standard path separator (i.e. ":") - it is
10314 # assumed that no part of a normal pathname contains ";" but that should
10315 # okay in the real world where ";" in dirpaths is itself problematic.
10316 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10317 ;;
10318 *)
10319 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10320 ;;
10321 esac
10322 # Ok, now we have the path, separated by spaces, we can step through it
10323 # and add multilib dir if necessary.
10324 lt_tmp_lt_search_path_spec=
10325 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10326 for lt_sys_path in $lt_search_path_spec; do
10327 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10329 else
10330 test -d "$lt_sys_path" && \
10331 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10332 fi
10333 done
10334 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10335 BEGIN {RS=" "; FS="/|\n";} {
10336 lt_foo="";
10337 lt_count=0;
10338 for (lt_i = NF; lt_i > 0; lt_i--) {
10339 if ($lt_i != "" && $lt_i != ".") {
10340 if ($lt_i == "..") {
10341 lt_count++;
10342 } else {
10343 if (lt_count == 0) {
10344 lt_foo="/" $lt_i lt_foo;
10345 } else {
10346 lt_count--;
10347 }
10348 }
10349 }
10350 }
10351 if (lt_foo != "") { lt_freq[lt_foo]++; }
10352 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10353 }'`
10354 # AWK program above erroneously prepends '/' to C:/dos/paths
10355 # for these hosts.
10356 case $host_os in
10357 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10358 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10359 esac
10360 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10361 else
10362 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10363 fi
10364 library_names_spec=
10365 libname_spec='lib$name'
10366 soname_spec=
10367 shrext_cmds=".so"
10368 postinstall_cmds=
10369 postuninstall_cmds=
10370 finish_cmds=
10371 finish_eval=
10372 shlibpath_var=
10373 shlibpath_overrides_runpath=unknown
10374 version_type=none
10375 dynamic_linker="$host_os ld.so"
10376 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10377 need_lib_prefix=unknown
10378 hardcode_into_libs=no
10379
10380 # when you set need_version to no, make sure it does not cause -set_version
10381 # flags to be left without arguments
10382 need_version=unknown
10383
10384 case $host_os in
10385 aix3*)
10386 version_type=linux
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10388 shlibpath_var=LIBPATH
10389
10390 # AIX 3 has no versioning support, so we append a major version to the name.
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 ;;
10393
10394 aix[4-9]*)
10395 version_type=linux
10396 need_lib_prefix=no
10397 need_version=no
10398 hardcode_into_libs=yes
10399 if test "$host_cpu" = ia64; then
10400 # AIX 5 supports IA64
10401 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 else
10404 # With GCC up to 2.95.x, collect2 would create an import file
10405 # for dependence libraries. The import file would start with
10406 # the line `#! .'. This would cause the generated library to
10407 # depend on `.', always an invalid library. This was fixed in
10408 # development snapshots of GCC prior to 3.0.
10409 case $host_os in
10410 aix4 | aix4.[01] | aix4.[01].*)
10411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10412 echo ' yes '
10413 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10414 :
10415 else
10416 can_build_shared=no
10417 fi
10418 ;;
10419 esac
10420 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10421 # soname into executable. Probably we can add versioning support to
10422 # collect2, so additional links can be useful in future.
10423 if test "$aix_use_runtimelinking" = yes; then
10424 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10425 # instead of lib<name>.a to let people know that these are not
10426 # typical AIX shared libraries.
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428 else
10429 # We preserve .a as extension for shared libraries through AIX4.2
10430 # and later when we are not doing run time linking.
10431 library_names_spec='${libname}${release}.a $libname.a'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 fi
10434 shlibpath_var=LIBPATH
10435 fi
10436 ;;
10437
10438 amigaos*)
10439 case $host_cpu in
10440 powerpc)
10441 # Since July 2007 AmigaOS4 officially supports .so libraries.
10442 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 ;;
10445 m68k)
10446 library_names_spec='$libname.ixlibrary $libname.a'
10447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10448 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'
10449 ;;
10450 esac
10451 ;;
10452
10453 beos*)
10454 library_names_spec='${libname}${shared_ext}'
10455 dynamic_linker="$host_os ld.so"
10456 shlibpath_var=LIBRARY_PATH
10457 ;;
10458
10459 bsdi[45]*)
10460 version_type=linux
10461 need_version=no
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10467 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10468 # the default ld.so.conf also contains /usr/contrib/lib and
10469 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10470 # libtool to hard-code these into programs
10471 ;;
10472
10473 cygwin* | mingw* | pw32* | cegcc*)
10474 version_type=windows
10475 shrext_cmds=".dll"
10476 need_version=no
10477 need_lib_prefix=no
10478
10479 case $GCC,$host_os in
10480 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10481 library_names_spec='$libname.dll.a'
10482 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10483 postinstall_cmds='base_file=`basename \${file}`~
10484 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10485 dldir=$destdir/`dirname \$dlpath`~
10486 test -d \$dldir || mkdir -p \$dldir~
10487 $install_prog $dir/$dlname \$dldir/$dlname~
10488 chmod a+x \$dldir/$dlname~
10489 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10490 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10491 fi'
10492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10493 dlpath=$dir/\$dldll~
10494 $RM \$dlpath'
10495 shlibpath_overrides_runpath=yes
10496
10497 case $host_os in
10498 cygwin*)
10499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10501
10502 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10503 ;;
10504 mingw* | cegcc*)
10505 # MinGW DLLs use traditional 'lib' prefix
10506 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10507 ;;
10508 pw32*)
10509 # pw32 DLLs use 'pw' prefix rather than 'lib'
10510 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10511 ;;
10512 esac
10513 ;;
10514
10515 *)
10516 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10517 ;;
10518 esac
10519 dynamic_linker='Win32 ld.exe'
10520 # FIXME: first we should search . and the directory the executable is in
10521 shlibpath_var=PATH
10522 ;;
10523
10524 darwin* | rhapsody*)
10525 dynamic_linker="$host_os dyld"
10526 version_type=darwin
10527 need_lib_prefix=no
10528 need_version=no
10529 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10530 soname_spec='${libname}${release}${major}$shared_ext'
10531 shlibpath_overrides_runpath=yes
10532 shlibpath_var=DYLD_LIBRARY_PATH
10533 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10534
10535 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10536 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10537 ;;
10538
10539 dgux*)
10540 version_type=linux
10541 need_lib_prefix=no
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 ;;
10547
10548 freebsd* | dragonfly*)
10549 # DragonFly does not have aout. When/if they implement a new
10550 # versioning mechanism, adjust this.
10551 if test -x /usr/bin/objformat; then
10552 objformat=`/usr/bin/objformat`
10553 else
10554 case $host_os in
10555 freebsd[23].*) objformat=aout ;;
10556 *) objformat=elf ;;
10557 esac
10558 fi
10559 version_type=freebsd-$objformat
10560 case $version_type in
10561 freebsd-elf*)
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10563 need_version=no
10564 need_lib_prefix=no
10565 ;;
10566 freebsd-*)
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10568 need_version=yes
10569 ;;
10570 esac
10571 shlibpath_var=LD_LIBRARY_PATH
10572 case $host_os in
10573 freebsd2.*)
10574 shlibpath_overrides_runpath=yes
10575 ;;
10576 freebsd3.[01]* | freebsdelf3.[01]*)
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10579 ;;
10580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10582 shlibpath_overrides_runpath=no
10583 hardcode_into_libs=yes
10584 ;;
10585 *) # from 4.6 on, and DragonFly
10586 shlibpath_overrides_runpath=yes
10587 hardcode_into_libs=yes
10588 ;;
10589 esac
10590 ;;
10591
10592 haiku*)
10593 version_type=linux
10594 need_lib_prefix=no
10595 need_version=no
10596 dynamic_linker="$host_os runtime_loader"
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10602 hardcode_into_libs=yes
10603 ;;
10604
10605 hpux9* | hpux10* | hpux11*)
10606 # Give a soname corresponding to the major version so that dld.sl refuses to
10607 # link against other versions.
10608 version_type=sunos
10609 need_lib_prefix=no
10610 need_version=no
10611 case $host_cpu in
10612 ia64*)
10613 shrext_cmds='.so'
10614 hardcode_into_libs=yes
10615 dynamic_linker="$host_os dld.so"
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 if test "X$HPUX_IA64_MODE" = X32; then
10621 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10622 else
10623 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10624 fi
10625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10626 ;;
10627 hppa*64*)
10628 shrext_cmds='.sl'
10629 hardcode_into_libs=yes
10630 dynamic_linker="$host_os dld.sl"
10631 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10637 ;;
10638 *)
10639 shrext_cmds='.sl'
10640 dynamic_linker="$host_os dld.sl"
10641 shlibpath_var=SHLIB_PATH
10642 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 ;;
10646 esac
10647 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10648 postinstall_cmds='chmod 555 $lib'
10649 # or fails outright, so override atomically:
10650 install_override_mode=555
10651 ;;
10652
10653 interix[3-9]*)
10654 version_type=linux
10655 need_lib_prefix=no
10656 need_version=no
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10658 soname_spec='${libname}${release}${shared_ext}$major'
10659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=no
10662 hardcode_into_libs=yes
10663 ;;
10664
10665 irix5* | irix6* | nonstopux*)
10666 case $host_os in
10667 nonstopux*) version_type=nonstopux ;;
10668 *)
10669 if test "$lt_cv_prog_gnu_ld" = yes; then
10670 version_type=linux
10671 else
10672 version_type=irix
10673 fi ;;
10674 esac
10675 need_lib_prefix=no
10676 need_version=no
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10679 case $host_os in
10680 irix5* | nonstopux*)
10681 libsuff= shlibsuff=
10682 ;;
10683 *)
10684 case $LD in # libtool.m4 will add one of these switches to LD
10685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10686 libsuff= shlibsuff= libmagic=32-bit;;
10687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10688 libsuff=32 shlibsuff=N32 libmagic=N32;;
10689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10691 *) libsuff= shlibsuff= libmagic=never-match;;
10692 esac
10693 ;;
10694 esac
10695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10696 shlibpath_overrides_runpath=no
10697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10699 hardcode_into_libs=yes
10700 ;;
10701
10702 # No shared lib support for Linux oldld, aout, or coff.
10703 linux*oldld* | linux*aout* | linux*coff*)
10704 dynamic_linker=no
10705 ;;
10706
10707 # This must be Linux ELF.
10708
10709 # uclinux* changes (here and below) have been submitted to the libtool
10710 # project, but have not yet been accepted: they are GCC-local changes
10711 # for the time being. (See
10712 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10713 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10714 version_type=linux
10715 need_lib_prefix=no
10716 need_version=no
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath=no
10722
10723 # Some binutils ld are patched to set DT_RUNPATH
10724 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 lt_cv_shlibpath_overrides_runpath=no
10728 save_LDFLAGS=$LDFLAGS
10729 save_libdir=$libdir
10730 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10731 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734
10735 int
10736 main ()
10737 {
10738
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_link "$LINENO"; then :
10744 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10745 lt_cv_shlibpath_overrides_runpath=yes
10746 fi
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 LDFLAGS=$save_LDFLAGS
10751 libdir=$save_libdir
10752
10753 fi
10754
10755 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10756
10757 # This implies no fast_install, which is unacceptable.
10758 # Some rework will be needed to allow for fast_install
10759 # before this can be enabled.
10760 hardcode_into_libs=yes
10761
10762 # Append ld.so.conf contents to the search path
10763 if test -f /etc/ld.so.conf; then
10764 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' ' '`
10765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10766 fi
10767
10768 # We used to test for /lib/ld.so.1 and disable shared libraries on
10769 # powerpc, because MkLinux only supported shared libraries with the
10770 # GNU dynamic linker. Since this was broken with cross compilers,
10771 # most powerpc-linux boxes support dynamic linking these days and
10772 # people can always --disable-shared, the test was removed, and we
10773 # assume the GNU/Linux dynamic linker is in use.
10774 dynamic_linker='GNU/Linux ld.so'
10775 ;;
10776
10777 netbsd*)
10778 version_type=sunos
10779 need_lib_prefix=no
10780 need_version=no
10781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10784 dynamic_linker='NetBSD (a.out) ld.so'
10785 else
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 dynamic_linker='NetBSD ld.elf_so'
10789 fi
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=yes
10792 hardcode_into_libs=yes
10793 ;;
10794
10795 newsos6)
10796 version_type=linux
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 shlibpath_var=LD_LIBRARY_PATH
10799 shlibpath_overrides_runpath=yes
10800 ;;
10801
10802 *nto* | *qnx*)
10803 version_type=qnx
10804 need_lib_prefix=no
10805 need_version=no
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810 hardcode_into_libs=yes
10811 dynamic_linker='ldqnx.so'
10812 ;;
10813
10814 openbsd*)
10815 version_type=sunos
10816 sys_lib_dlsearch_path_spec="/usr/lib"
10817 need_lib_prefix=no
10818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10819 case $host_os in
10820 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10821 *) need_version=no ;;
10822 esac
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10827 case $host_os in
10828 openbsd2.[89] | openbsd2.[89].*)
10829 shlibpath_overrides_runpath=no
10830 ;;
10831 *)
10832 shlibpath_overrides_runpath=yes
10833 ;;
10834 esac
10835 else
10836 shlibpath_overrides_runpath=yes
10837 fi
10838 ;;
10839
10840 os2*)
10841 libname_spec='$name'
10842 shrext_cmds=".dll"
10843 need_lib_prefix=no
10844 library_names_spec='$libname${shared_ext} $libname.a'
10845 dynamic_linker='OS/2 ld.exe'
10846 shlibpath_var=LIBPATH
10847 ;;
10848
10849 osf3* | osf4* | osf5*)
10850 version_type=osf
10851 need_lib_prefix=no
10852 need_version=no
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10857 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10858 ;;
10859
10860 rdos*)
10861 dynamic_linker=no
10862 ;;
10863
10864 solaris*)
10865 version_type=linux
10866 need_lib_prefix=no
10867 need_version=no
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=yes
10872 hardcode_into_libs=yes
10873 # ldd complains unless libraries are executable
10874 postinstall_cmds='chmod +x $lib'
10875 ;;
10876
10877 sunos4*)
10878 version_type=sunos
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10880 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=yes
10883 if test "$with_gnu_ld" = yes; then
10884 need_lib_prefix=no
10885 fi
10886 need_version=yes
10887 ;;
10888
10889 sysv4 | sysv4.3*)
10890 version_type=linux
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 case $host_vendor in
10895 sni)
10896 shlibpath_overrides_runpath=no
10897 need_lib_prefix=no
10898 runpath_var=LD_RUN_PATH
10899 ;;
10900 siemens)
10901 need_lib_prefix=no
10902 ;;
10903 motorola)
10904 need_lib_prefix=no
10905 need_version=no
10906 shlibpath_overrides_runpath=no
10907 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10908 ;;
10909 esac
10910 ;;
10911
10912 sysv4*MP*)
10913 if test -d /usr/nec ;then
10914 version_type=linux
10915 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10916 soname_spec='$libname${shared_ext}.$major'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 fi
10919 ;;
10920
10921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10922 version_type=freebsd-elf
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=yes
10929 hardcode_into_libs=yes
10930 if test "$with_gnu_ld" = yes; then
10931 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10932 else
10933 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10934 case $host_os in
10935 sco3.2v5*)
10936 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10937 ;;
10938 esac
10939 fi
10940 sys_lib_dlsearch_path_spec='/usr/lib'
10941 ;;
10942
10943 tpf*)
10944 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10945 version_type=linux
10946 need_lib_prefix=no
10947 need_version=no
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=no
10951 hardcode_into_libs=yes
10952 ;;
10953
10954 uts4*)
10955 version_type=linux
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 ;;
10960
10961 # Shared libraries for VwWorks, >= 7 only at this stage
10962 # and (fpic) still incompatible with "large" code models
10963 # in a few configurations. Only for RTP mode in any case,
10964 # and upon explicit request at configure time.
10965 vxworks7*)
10966 dynamic_linker=no
10967 case ${with_multisubdir}-${enable_shared} in
10968 *large*)
10969 ;;
10970 *mrtp*-yes)
10971 version_type=linux
10972 need_lib_prefix=no
10973 need_version=no
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 dynamic_linker="$host_os module_loader"
10977 ;;
10978 esac
10979 ;;
10980 *)
10981 dynamic_linker=no
10982 ;;
10983 esac
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10985 $as_echo "$dynamic_linker" >&6; }
10986 test "$dynamic_linker" = no && can_build_shared=no
10987
10988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10989 if test "$GCC" = yes; then
10990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10991 fi
10992
10993 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10994 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10995 fi
10996 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10997 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10998 fi
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
11084
11085
11086
11087
11088
11089
11090
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11092 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11093 hardcode_action=
11094 if test -n "$hardcode_libdir_flag_spec" ||
11095 test -n "$runpath_var" ||
11096 test "X$hardcode_automatic" = "Xyes" ; then
11097
11098 # We can hardcode non-existent directories.
11099 if test "$hardcode_direct" != no &&
11100 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11101 # have to relink, otherwise we might link with an installed library
11102 # when we should be linking with a yet-to-be-installed one
11103 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11104 test "$hardcode_minus_L" != no; then
11105 # Linking always hardcodes the temporary library directory.
11106 hardcode_action=relink
11107 else
11108 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11109 hardcode_action=immediate
11110 fi
11111 else
11112 # We cannot hardcode anything, or else we can only hardcode existing
11113 # directories.
11114 hardcode_action=unsupported
11115 fi
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11117 $as_echo "$hardcode_action" >&6; }
11118
11119 if test "$hardcode_action" = relink ||
11120 test "$inherit_rpath" = yes; then
11121 # Fast installation is not supported
11122 enable_fast_install=no
11123 elif test "$shlibpath_overrides_runpath" = yes ||
11124 test "$enable_shared" = no; then
11125 # Fast installation is not necessary
11126 enable_fast_install=needless
11127 fi
11128
11129
11130
11131
11132
11133
11134 if test "x$enable_dlopen" != xyes; then
11135 enable_dlopen=unknown
11136 enable_dlopen_self=unknown
11137 enable_dlopen_self_static=unknown
11138 else
11139 lt_cv_dlopen=no
11140 lt_cv_dlopen_libs=
11141
11142 case $host_os in
11143 beos*)
11144 lt_cv_dlopen="load_add_on"
11145 lt_cv_dlopen_libs=
11146 lt_cv_dlopen_self=yes
11147 ;;
11148
11149 mingw* | pw32* | cegcc*)
11150 lt_cv_dlopen="LoadLibrary"
11151 lt_cv_dlopen_libs=
11152 ;;
11153
11154 cygwin*)
11155 lt_cv_dlopen="dlopen"
11156 lt_cv_dlopen_libs=
11157 ;;
11158
11159 darwin*)
11160 # if libdl is installed we need to link against it
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11163 if ${ac_cv_lib_dl_dlopen+:} false; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 ac_check_lib_save_LIBS=$LIBS
11167 LIBS="-ldl $LIBS"
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11170
11171 /* Override any GCC internal prototype to avoid an error.
11172 Use char because int might match the return type of a GCC
11173 builtin and then its argument prototype would still apply. */
11174 #ifdef __cplusplus
11175 extern "C"
11176 #endif
11177 char dlopen ();
11178 int
11179 main ()
11180 {
11181 return dlopen ();
11182 ;
11183 return 0;
11184 }
11185 _ACEOF
11186 if ac_fn_c_try_link "$LINENO"; then :
11187 ac_cv_lib_dl_dlopen=yes
11188 else
11189 ac_cv_lib_dl_dlopen=no
11190 fi
11191 rm -f core conftest.err conftest.$ac_objext \
11192 conftest$ac_exeext conftest.$ac_ext
11193 LIBS=$ac_check_lib_save_LIBS
11194 fi
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11196 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11197 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11199 else
11200
11201 lt_cv_dlopen="dyld"
11202 lt_cv_dlopen_libs=
11203 lt_cv_dlopen_self=yes
11204
11205 fi
11206
11207 ;;
11208
11209 *)
11210 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11211 if test "x$ac_cv_func_shl_load" = xyes; then :
11212 lt_cv_dlopen="shl_load"
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11215 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11216 if ${ac_cv_lib_dld_shl_load+:} false; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 ac_check_lib_save_LIBS=$LIBS
11220 LIBS="-ldld $LIBS"
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11223
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 char shl_load ();
11231 int
11232 main ()
11233 {
11234 return shl_load ();
11235 ;
11236 return 0;
11237 }
11238 _ACEOF
11239 if ac_fn_c_try_link "$LINENO"; then :
11240 ac_cv_lib_dld_shl_load=yes
11241 else
11242 ac_cv_lib_dld_shl_load=no
11243 fi
11244 rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11246 LIBS=$ac_check_lib_save_LIBS
11247 fi
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11249 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11250 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11251 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11252 else
11253 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11254 if test "x$ac_cv_func_dlopen" = xyes; then :
11255 lt_cv_dlopen="dlopen"
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11258 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11259 if ${ac_cv_lib_dl_dlopen+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 ac_check_lib_save_LIBS=$LIBS
11263 LIBS="-ldl $LIBS"
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266
11267 /* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
11270 #ifdef __cplusplus
11271 extern "C"
11272 #endif
11273 char dlopen ();
11274 int
11275 main ()
11276 {
11277 return dlopen ();
11278 ;
11279 return 0;
11280 }
11281 _ACEOF
11282 if ac_fn_c_try_link "$LINENO"; then :
11283 ac_cv_lib_dl_dlopen=yes
11284 else
11285 ac_cv_lib_dl_dlopen=no
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11293 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11295 else
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11297 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11298 if ${ac_cv_lib_svld_dlopen+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 ac_check_lib_save_LIBS=$LIBS
11302 LIBS="-lsvld $LIBS"
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char dlopen ();
11313 int
11314 main ()
11315 {
11316 return dlopen ();
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 ac_cv_lib_svld_dlopen=yes
11323 else
11324 ac_cv_lib_svld_dlopen=no
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11331 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11332 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11336 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11337 if ${ac_cv_lib_dld_dld_link+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 ac_check_lib_save_LIBS=$LIBS
11341 LIBS="-ldld $LIBS"
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11348 #ifdef __cplusplus
11349 extern "C"
11350 #endif
11351 char dld_link ();
11352 int
11353 main ()
11354 {
11355 return dld_link ();
11356 ;
11357 return 0;
11358 }
11359 _ACEOF
11360 if ac_fn_c_try_link "$LINENO"; then :
11361 ac_cv_lib_dld_dld_link=yes
11362 else
11363 ac_cv_lib_dld_dld_link=no
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11368 fi
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11370 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11371 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11372 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11373 fi
11374
11375
11376 fi
11377
11378
11379 fi
11380
11381
11382 fi
11383
11384
11385 fi
11386
11387
11388 fi
11389
11390 ;;
11391 esac
11392
11393 if test "x$lt_cv_dlopen" != xno; then
11394 enable_dlopen=yes
11395 else
11396 enable_dlopen=no
11397 fi
11398
11399 case $lt_cv_dlopen in
11400 dlopen)
11401 save_CPPFLAGS="$CPPFLAGS"
11402 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11403
11404 save_LDFLAGS="$LDFLAGS"
11405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11406
11407 save_LIBS="$LIBS"
11408 LIBS="$lt_cv_dlopen_libs $LIBS"
11409
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11411 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11412 if ${lt_cv_dlopen_self+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 if test "$cross_compiling" = yes; then :
11416 lt_cv_dlopen_self=cross
11417 else
11418 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11419 lt_status=$lt_dlunknown
11420 cat > conftest.$ac_ext <<_LT_EOF
11421 #line 11421 "configure"
11422 #include "confdefs.h"
11423
11424 #if HAVE_DLFCN_H
11425 #include <dlfcn.h>
11426 #endif
11427
11428 #include <stdio.h>
11429
11430 #ifdef RTLD_GLOBAL
11431 # define LT_DLGLOBAL RTLD_GLOBAL
11432 #else
11433 # ifdef DL_GLOBAL
11434 # define LT_DLGLOBAL DL_GLOBAL
11435 # else
11436 # define LT_DLGLOBAL 0
11437 # endif
11438 #endif
11439
11440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11441 find out it does not work in some platform. */
11442 #ifndef LT_DLLAZY_OR_NOW
11443 # ifdef RTLD_LAZY
11444 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11445 # else
11446 # ifdef DL_LAZY
11447 # define LT_DLLAZY_OR_NOW DL_LAZY
11448 # else
11449 # ifdef RTLD_NOW
11450 # define LT_DLLAZY_OR_NOW RTLD_NOW
11451 # else
11452 # ifdef DL_NOW
11453 # define LT_DLLAZY_OR_NOW DL_NOW
11454 # else
11455 # define LT_DLLAZY_OR_NOW 0
11456 # endif
11457 # endif
11458 # endif
11459 # endif
11460 #endif
11461
11462 /* When -fvisbility=hidden is used, assume the code has been annotated
11463 correspondingly for the symbols needed. */
11464 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11465 void fnord () __attribute__((visibility("default")));
11466 #endif
11467
11468 void fnord () { int i=42; }
11469 int main ()
11470 {
11471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11472 int status = $lt_dlunknown;
11473
11474 if (self)
11475 {
11476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11477 else
11478 {
11479 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11480 else puts (dlerror ());
11481 }
11482 /* dlclose (self); */
11483 }
11484 else
11485 puts (dlerror ());
11486
11487 return status;
11488 }
11489 _LT_EOF
11490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11491 (eval $ac_link) 2>&5
11492 ac_status=$?
11493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11495 (./conftest; exit; ) >&5 2>/dev/null
11496 lt_status=$?
11497 case x$lt_status in
11498 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11499 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11500 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11501 esac
11502 else :
11503 # compilation failed
11504 lt_cv_dlopen_self=no
11505 fi
11506 fi
11507 rm -fr conftest*
11508
11509
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11512 $as_echo "$lt_cv_dlopen_self" >&6; }
11513
11514 if test "x$lt_cv_dlopen_self" = xyes; then
11515 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11517 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11518 if ${lt_cv_dlopen_self_static+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 if test "$cross_compiling" = yes; then :
11522 lt_cv_dlopen_self_static=cross
11523 else
11524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11525 lt_status=$lt_dlunknown
11526 cat > conftest.$ac_ext <<_LT_EOF
11527 #line 11527 "configure"
11528 #include "confdefs.h"
11529
11530 #if HAVE_DLFCN_H
11531 #include <dlfcn.h>
11532 #endif
11533
11534 #include <stdio.h>
11535
11536 #ifdef RTLD_GLOBAL
11537 # define LT_DLGLOBAL RTLD_GLOBAL
11538 #else
11539 # ifdef DL_GLOBAL
11540 # define LT_DLGLOBAL DL_GLOBAL
11541 # else
11542 # define LT_DLGLOBAL 0
11543 # endif
11544 #endif
11545
11546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11547 find out it does not work in some platform. */
11548 #ifndef LT_DLLAZY_OR_NOW
11549 # ifdef RTLD_LAZY
11550 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11551 # else
11552 # ifdef DL_LAZY
11553 # define LT_DLLAZY_OR_NOW DL_LAZY
11554 # else
11555 # ifdef RTLD_NOW
11556 # define LT_DLLAZY_OR_NOW RTLD_NOW
11557 # else
11558 # ifdef DL_NOW
11559 # define LT_DLLAZY_OR_NOW DL_NOW
11560 # else
11561 # define LT_DLLAZY_OR_NOW 0
11562 # endif
11563 # endif
11564 # endif
11565 # endif
11566 #endif
11567
11568 /* When -fvisbility=hidden is used, assume the code has been annotated
11569 correspondingly for the symbols needed. */
11570 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11571 void fnord () __attribute__((visibility("default")));
11572 #endif
11573
11574 void fnord () { int i=42; }
11575 int main ()
11576 {
11577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11578 int status = $lt_dlunknown;
11579
11580 if (self)
11581 {
11582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11583 else
11584 {
11585 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11586 else puts (dlerror ());
11587 }
11588 /* dlclose (self); */
11589 }
11590 else
11591 puts (dlerror ());
11592
11593 return status;
11594 }
11595 _LT_EOF
11596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11597 (eval $ac_link) 2>&5
11598 ac_status=$?
11599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11600 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11601 (./conftest; exit; ) >&5 2>/dev/null
11602 lt_status=$?
11603 case x$lt_status in
11604 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11605 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11606 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11607 esac
11608 else :
11609 # compilation failed
11610 lt_cv_dlopen_self_static=no
11611 fi
11612 fi
11613 rm -fr conftest*
11614
11615
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11618 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11619 fi
11620
11621 CPPFLAGS="$save_CPPFLAGS"
11622 LDFLAGS="$save_LDFLAGS"
11623 LIBS="$save_LIBS"
11624 ;;
11625 esac
11626
11627 case $lt_cv_dlopen_self in
11628 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11629 *) enable_dlopen_self=unknown ;;
11630 esac
11631
11632 case $lt_cv_dlopen_self_static in
11633 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11634 *) enable_dlopen_self_static=unknown ;;
11635 esac
11636 fi
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654 striplib=
11655 old_striplib=
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11657 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11658 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11659 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11660 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11662 $as_echo "yes" >&6; }
11663 else
11664 # FIXME - insert some real tests, host_os isn't really good enough
11665 case $host_os in
11666 darwin*)
11667 if test -n "$STRIP" ; then
11668 striplib="$STRIP -x"
11669 old_striplib="$STRIP -S"
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11671 $as_echo "yes" >&6; }
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 $as_echo "no" >&6; }
11675 fi
11676 ;;
11677 *)
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11680 ;;
11681 esac
11682 fi
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695 # Report which library types will actually be built
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11697 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11699 $as_echo "$can_build_shared" >&6; }
11700
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11702 $as_echo_n "checking whether to build shared libraries... " >&6; }
11703 test "$can_build_shared" = "no" && enable_shared=no
11704
11705 # On AIX, shared libraries and static libraries use the same namespace, and
11706 # are all built from PIC.
11707 case $host_os in
11708 aix3*)
11709 test "$enable_shared" = yes && enable_static=no
11710 if test -n "$RANLIB"; then
11711 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11712 postinstall_cmds='$RANLIB $lib'
11713 fi
11714 ;;
11715
11716 aix[4-9]*)
11717 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11718 test "$enable_shared" = yes && enable_static=no
11719 fi
11720 ;;
11721 esac
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11723 $as_echo "$enable_shared" >&6; }
11724
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11726 $as_echo_n "checking whether to build static libraries... " >&6; }
11727 # Make sure either enable_shared or enable_static is yes.
11728 test "$enable_shared" = yes || enable_static=yes
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11730 $as_echo "$enable_static" >&6; }
11731
11732
11733
11734
11735 fi
11736 ac_ext=c
11737 ac_cpp='$CPP $CPPFLAGS'
11738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11741
11742 CC="$lt_save_CC"
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756 ac_config_commands="$ac_config_commands libtool"
11757
11758
11759
11760
11761 # Only expand once:
11762
11763
11764
11765
11766
11767 case $host in
11768 *-cygwin* | *-mingw*)
11769 # 'host' will be top-level target in the case of a target lib,
11770 # we must compare to with_cross_host to decide if this is a native
11771 # or cross-compiler and select where to install dlls appropriately.
11772 if test -n "$with_cross_host" &&
11773 test x"$with_cross_host" != x"no"; then
11774 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11775 else
11776 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11777 fi
11778 ;;
11779 *)
11780 lt_host_flags=
11781 ;;
11782 esac
11783
11784
11785
11786
11787
11788
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11791 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11792 # Check whether --enable-maintainer-mode was given.
11793 if test "${enable_maintainer_mode+set}" = set; then :
11794 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11795 else
11796 USE_MAINTAINER_MODE=no
11797 fi
11798
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11800 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11801 if test $USE_MAINTAINER_MODE = yes; then
11802 MAINTAINER_MODE_TRUE=
11803 MAINTAINER_MODE_FALSE='#'
11804 else
11805 MAINTAINER_MODE_TRUE='#'
11806 MAINTAINER_MODE_FALSE=
11807 fi
11808
11809 MAINT=$MAINTAINER_MODE_TRUE
11810
11811
11812
11813 # Create a spec file, so that compile/link tests don't fail
11814 test -f libgfortran.spec || touch libgfortran.spec
11815 FCFLAGS="$FCFLAGS -L."
11816
11817 # We need gfortran to compile parts of the library
11818 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11819 #AC_PROG_FC(gfortran)
11820 case `echo $GFORTRAN` in
11821 -* | no* )
11822 FC=no ;;
11823 *)
11824 set dummy $GFORTRAN; ac_word=$2
11825 if test -x "$ac_word"; then
11826 FC="$GFORTRAN"
11827 else
11828 FC=no
11829 fi ;;
11830 esac
11831 ac_ext=${ac_fc_srcext-f}
11832 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11833 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11834 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11835 if test -n "$ac_tool_prefix"; then
11836 for ac_prog in gfortran
11837 do
11838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11841 $as_echo_n "checking for $ac_word... " >&6; }
11842 if ${ac_cv_prog_FC+:} false; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845 if test -n "$FC"; then
11846 ac_cv_prog_FC="$FC" # Let the user override the test.
11847 else
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11850 do
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 break 2
11858 fi
11859 done
11860 done
11861 IFS=$as_save_IFS
11862
11863 fi
11864 fi
11865 FC=$ac_cv_prog_FC
11866 if test -n "$FC"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11868 $as_echo "$FC" >&6; }
11869 else
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11872 fi
11873
11874
11875 test -n "$FC" && break
11876 done
11877 fi
11878 if test -z "$FC"; then
11879 ac_ct_FC=$FC
11880 for ac_prog in gfortran
11881 do
11882 # Extract the first word of "$ac_prog", so it can be a program name with args.
11883 set dummy $ac_prog; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 if test -n "$ac_ct_FC"; then
11890 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899 ac_cv_prog_ac_ct_FC="$ac_prog"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 break 2
11902 fi
11903 done
11904 done
11905 IFS=$as_save_IFS
11906
11907 fi
11908 fi
11909 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11910 if test -n "$ac_ct_FC"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11912 $as_echo "$ac_ct_FC" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919 test -n "$ac_ct_FC" && break
11920 done
11921
11922 if test "x$ac_ct_FC" = x; then
11923 FC=""
11924 else
11925 case $cross_compiling:$ac_tool_warned in
11926 yes:)
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11929 ac_tool_warned=yes ;;
11930 esac
11931 FC=$ac_ct_FC
11932 fi
11933 fi
11934
11935
11936 # Provide some information about the compiler.
11937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11938 set X $ac_compile
11939 ac_compiler=$2
11940 for ac_option in --version -v -V -qversion; do
11941 { { ac_try="$ac_compiler $ac_option >&5"
11942 case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945 esac
11946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11947 $as_echo "$ac_try_echo"; } >&5
11948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11949 ac_status=$?
11950 if test -s conftest.err; then
11951 sed '10a\
11952 ... rest of stderr output deleted ...
11953 10q' conftest.err >conftest.er1
11954 cat conftest.er1 >&5
11955 fi
11956 rm -f conftest.er1 conftest.err
11957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958 test $ac_status = 0; }
11959 done
11960 rm -f a.out
11961
11962 # If we don't use `.F' as extension, the preprocessor is not run on the
11963 # input file. (Note that this only needs to work for GNU compilers.)
11964 ac_save_ext=$ac_ext
11965 ac_ext=F
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11967 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11968 if ${ac_cv_fc_compiler_gnu+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 cat > conftest.$ac_ext <<_ACEOF
11972 program main
11973 #ifndef __GNUC__
11974 choke me
11975 #endif
11976
11977 end
11978 _ACEOF
11979 if ac_fn_fc_try_compile "$LINENO"; then :
11980 ac_compiler_gnu=yes
11981 else
11982 ac_compiler_gnu=no
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11986
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11989 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11990 ac_ext=$ac_save_ext
11991 ac_test_FCFLAGS=${FCFLAGS+set}
11992 ac_save_FCFLAGS=$FCFLAGS
11993 FCFLAGS=
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11995 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11996 if ${ac_cv_prog_fc_g+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 FCFLAGS=-g
12000 cat > conftest.$ac_ext <<_ACEOF
12001 program main
12002
12003 end
12004 _ACEOF
12005 if ac_fn_fc_try_compile "$LINENO"; then :
12006 ac_cv_prog_fc_g=yes
12007 else
12008 ac_cv_prog_fc_g=no
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12014 $as_echo "$ac_cv_prog_fc_g" >&6; }
12015 if test "$ac_test_FCFLAGS" = set; then
12016 FCFLAGS=$ac_save_FCFLAGS
12017 elif test $ac_cv_prog_fc_g = yes; then
12018 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12019 FCFLAGS="-g -O2"
12020 else
12021 FCFLAGS="-g"
12022 fi
12023 else
12024 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12025 FCFLAGS="-O2"
12026 else
12027 FCFLAGS=
12028 fi
12029 fi
12030
12031 if test $ac_compiler_gnu = yes; then
12032 GFC=yes
12033 else
12034 GFC=
12035 fi
12036 ac_ext=c
12037 ac_cpp='$CPP $CPPFLAGS'
12038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12041
12042 ac_ext=${ac_fc_srcext-f}
12043 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12044 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12045 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12046
12047
12048 if test -z "$FC" || test "X$FC" = "Xno"; then
12049 _lt_disable_FC=yes
12050 fi
12051
12052 archive_cmds_need_lc_FC=no
12053 allow_undefined_flag_FC=
12054 always_export_symbols_FC=no
12055 archive_expsym_cmds_FC=
12056 export_dynamic_flag_spec_FC=
12057 hardcode_direct_FC=no
12058 hardcode_direct_absolute_FC=no
12059 hardcode_libdir_flag_spec_FC=
12060 hardcode_libdir_flag_spec_ld_FC=
12061 hardcode_libdir_separator_FC=
12062 hardcode_minus_L_FC=no
12063 hardcode_automatic_FC=no
12064 inherit_rpath_FC=no
12065 module_cmds_FC=
12066 module_expsym_cmds_FC=
12067 link_all_deplibs_FC=unknown
12068 old_archive_cmds_FC=$old_archive_cmds
12069 reload_flag_FC=$reload_flag
12070 reload_cmds_FC=$reload_cmds
12071 no_undefined_flag_FC=
12072 whole_archive_flag_spec_FC=
12073 enable_shared_with_static_runtimes_FC=no
12074
12075 # Source file extension for fc test sources.
12076 ac_ext=${ac_fc_srcext-f}
12077
12078 # Object file extension for compiled fc test sources.
12079 objext=o
12080 objext_FC=$objext
12081
12082 # No sense in running all these tests if we already determined that
12083 # the FC compiler isn't working. Some variables (like enable_shared)
12084 # are currently assumed to apply to all compilers on this platform,
12085 # and will be corrupted by setting them based on a non-working compiler.
12086 if test "$_lt_disable_FC" != yes; then
12087 # Code to be used in simple compile tests
12088 lt_simple_compile_test_code="\
12089 subroutine t
12090 return
12091 end
12092 "
12093
12094 # Code to be used in simple link tests
12095 lt_simple_link_test_code="\
12096 program t
12097 end
12098 "
12099
12100 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12101
12102
12103
12104
12105
12106
12107 # If no C compiler was specified, use CC.
12108 LTCC=${LTCC-"$CC"}
12109
12110 # If no C compiler flags were specified, use CFLAGS.
12111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12112
12113 # Allow CC to be a program name with arguments.
12114 compiler=$CC
12115
12116
12117 # save warnings/boilerplate of simple test code
12118 ac_outfile=conftest.$ac_objext
12119 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12120 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12121 _lt_compiler_boilerplate=`cat conftest.err`
12122 $RM conftest*
12123
12124 ac_outfile=conftest.$ac_objext
12125 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12126 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12127 _lt_linker_boilerplate=`cat conftest.err`
12128 $RM -r conftest*
12129
12130
12131 # Allow CC to be a program name with arguments.
12132 lt_save_CC="$CC"
12133 lt_save_GCC=$GCC
12134 CC=${FC-"f95"}
12135 compiler=$CC
12136 GCC=$ac_cv_fc_compiler_gnu
12137
12138 compiler_FC=$CC
12139 for cc_temp in $compiler""; do
12140 case $cc_temp in
12141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12143 \-*) ;;
12144 *) break;;
12145 esac
12146 done
12147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12148
12149
12150 if test -n "$compiler"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12152 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12154 $as_echo "$can_build_shared" >&6; }
12155
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12157 $as_echo_n "checking whether to build shared libraries... " >&6; }
12158 test "$can_build_shared" = "no" && enable_shared=no
12159
12160 # On AIX, shared libraries and static libraries use the same namespace, and
12161 # are all built from PIC.
12162 case $host_os in
12163 aix3*)
12164 test "$enable_shared" = yes && enable_static=no
12165 if test -n "$RANLIB"; then
12166 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12167 postinstall_cmds='$RANLIB $lib'
12168 fi
12169 ;;
12170 aix[4-9]*)
12171 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12172 test "$enable_shared" = yes && enable_static=no
12173 fi
12174 ;;
12175 esac
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12177 $as_echo "$enable_shared" >&6; }
12178
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12180 $as_echo_n "checking whether to build static libraries... " >&6; }
12181 # Make sure either enable_shared or enable_static is yes.
12182 test "$enable_shared" = yes || enable_static=yes
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12184 $as_echo "$enable_static" >&6; }
12185
12186 GCC_FC="$ac_cv_fc_compiler_gnu"
12187 LD_FC="$LD"
12188
12189 ## CAVEAT EMPTOR:
12190 ## There is no encapsulation within the following macros, do not change
12191 ## the running order or otherwise move them around unless you know exactly
12192 ## what you are doing...
12193 # Dependencies to place before and after the object being linked:
12194 predep_objects_FC=
12195 postdep_objects_FC=
12196 predeps_FC=
12197 postdeps_FC=
12198 compiler_lib_search_path_FC=
12199
12200 cat > conftest.$ac_ext <<_LT_EOF
12201 subroutine foo
12202 implicit none
12203 integer a
12204 a=0
12205 return
12206 end
12207 _LT_EOF
12208
12209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12210 (eval $ac_compile) 2>&5
12211 ac_status=$?
12212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12213 test $ac_status = 0; }; then
12214 # Parse the compiler output and extract the necessary
12215 # objects, libraries and library flags.
12216
12217 # Sentinel used to keep track of whether or not we are before
12218 # the conftest object file.
12219 pre_test_object_deps_done=no
12220
12221 for p in `eval "$output_verbose_link_cmd"`; do
12222 case $p in
12223
12224 -L* | -R* | -l*)
12225 # Some compilers place space between "-{L,R}" and the path.
12226 # Remove the space.
12227 if test $p = "-L" ||
12228 test $p = "-R"; then
12229 prev=$p
12230 continue
12231 else
12232 prev=
12233 fi
12234
12235 if test "$pre_test_object_deps_done" = no; then
12236 case $p in
12237 -L* | -R*)
12238 # Internal compiler library paths should come after those
12239 # provided the user. The postdeps already come after the
12240 # user supplied libs so there is no need to process them.
12241 if test -z "$compiler_lib_search_path_FC"; then
12242 compiler_lib_search_path_FC="${prev}${p}"
12243 else
12244 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12245 fi
12246 ;;
12247 # The "-l" case would never come before the object being
12248 # linked, so don't bother handling this case.
12249 esac
12250 else
12251 if test -z "$postdeps_FC"; then
12252 postdeps_FC="${prev}${p}"
12253 else
12254 postdeps_FC="${postdeps_FC} ${prev}${p}"
12255 fi
12256 fi
12257 ;;
12258
12259 *.$objext)
12260 # This assumes that the test object file only shows up
12261 # once in the compiler output.
12262 if test "$p" = "conftest.$objext"; then
12263 pre_test_object_deps_done=yes
12264 continue
12265 fi
12266
12267 if test "$pre_test_object_deps_done" = no; then
12268 if test -z "$predep_objects_FC"; then
12269 predep_objects_FC="$p"
12270 else
12271 predep_objects_FC="$predep_objects_FC $p"
12272 fi
12273 else
12274 if test -z "$postdep_objects_FC"; then
12275 postdep_objects_FC="$p"
12276 else
12277 postdep_objects_FC="$postdep_objects_FC $p"
12278 fi
12279 fi
12280 ;;
12281
12282 *) ;; # Ignore the rest.
12283
12284 esac
12285 done
12286
12287 # Clean up.
12288 rm -f a.out a.exe
12289 else
12290 echo "libtool.m4: error: problem compiling FC test program"
12291 fi
12292
12293 $RM -f confest.$objext
12294
12295 # PORTME: override above test on systems where it is broken
12296
12297
12298 case " $postdeps_FC " in
12299 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12300 esac
12301 compiler_lib_search_dirs_FC=
12302 if test -n "${compiler_lib_search_path_FC}"; then
12303 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12304 fi
12305
12306
12307
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 lt_prog_compiler_wl_FC=
12337 lt_prog_compiler_pic_FC=
12338 lt_prog_compiler_static_FC=
12339
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12341 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12342
12343 if test "$GCC" = yes; then
12344 lt_prog_compiler_wl_FC='-Wl,'
12345 lt_prog_compiler_static_FC='-static'
12346
12347 case $host_os in
12348 aix*)
12349 # All AIX code is PIC.
12350 if test "$host_cpu" = ia64; then
12351 # AIX 5 now supports IA64 processor
12352 lt_prog_compiler_static_FC='-Bstatic'
12353 fi
12354 lt_prog_compiler_pic_FC='-fPIC'
12355 ;;
12356
12357 amigaos*)
12358 case $host_cpu in
12359 powerpc)
12360 # see comment about AmigaOS4 .so support
12361 lt_prog_compiler_pic_FC='-fPIC'
12362 ;;
12363 m68k)
12364 # FIXME: we need at least 68020 code to build shared libraries, but
12365 # adding the `-m68020' flag to GCC prevents building anything better,
12366 # like `-m68040'.
12367 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12368 ;;
12369 esac
12370 ;;
12371
12372 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12373 # PIC is the default for these OSes.
12374 ;;
12375
12376 mingw* | cygwin* | pw32* | os2* | cegcc*)
12377 # This hack is so that the source file can tell whether it is being
12378 # built for inclusion in a dll (and should export symbols for example).
12379 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12380 # (--disable-auto-import) libraries
12381 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12382 ;;
12383
12384 darwin* | rhapsody*)
12385 # PIC is the default on this platform
12386 # Common symbols not allowed in MH_DYLIB files
12387 lt_prog_compiler_pic_FC='-fno-common'
12388 ;;
12389
12390 haiku*)
12391 # PIC is the default for Haiku.
12392 # The "-static" flag exists, but is broken.
12393 lt_prog_compiler_static_FC=
12394 ;;
12395
12396 hpux*)
12397 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12398 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12399 # sets the default TLS model and affects inlining.
12400 case $host_cpu in
12401 hppa*64*)
12402 # +Z the default
12403 ;;
12404 *)
12405 lt_prog_compiler_pic_FC='-fPIC'
12406 ;;
12407 esac
12408 ;;
12409
12410 interix[3-9]*)
12411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12412 # Instead, we relocate shared libraries at runtime.
12413 ;;
12414
12415 msdosdjgpp*)
12416 # Just because we use GCC doesn't mean we suddenly get shared libraries
12417 # on systems that don't support them.
12418 lt_prog_compiler_can_build_shared_FC=no
12419 enable_shared=no
12420 ;;
12421
12422 *nto* | *qnx*)
12423 # QNX uses GNU C++, but need to define -shared option too, otherwise
12424 # it will coredump.
12425 lt_prog_compiler_pic_FC='-fPIC -shared'
12426 ;;
12427
12428 sysv4*MP*)
12429 if test -d /usr/nec; then
12430 lt_prog_compiler_pic_FC=-Kconform_pic
12431 fi
12432 ;;
12433
12434 *)
12435 lt_prog_compiler_pic_FC='-fPIC'
12436 ;;
12437 esac
12438
12439 case $cc_basename in
12440 nvcc*) # Cuda Compiler Driver 2.2
12441 lt_prog_compiler_wl_FC='-Xlinker '
12442 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12443 ;;
12444 esac
12445 else
12446 # PORTME Check for flag to pass linker flags through the system compiler.
12447 case $host_os in
12448 aix*)
12449 lt_prog_compiler_wl_FC='-Wl,'
12450 if test "$host_cpu" = ia64; then
12451 # AIX 5 now supports IA64 processor
12452 lt_prog_compiler_static_FC='-Bstatic'
12453 else
12454 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12455 fi
12456 ;;
12457
12458 mingw* | cygwin* | pw32* | os2* | cegcc*)
12459 # This hack is so that the source file can tell whether it is being
12460 # built for inclusion in a dll (and should export symbols for example).
12461 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12462 ;;
12463
12464 hpux9* | hpux10* | hpux11*)
12465 lt_prog_compiler_wl_FC='-Wl,'
12466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12467 # not for PA HP-UX.
12468 case $host_cpu in
12469 hppa*64*|ia64*)
12470 # +Z the default
12471 ;;
12472 *)
12473 lt_prog_compiler_pic_FC='+Z'
12474 ;;
12475 esac
12476 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12477 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12478 ;;
12479
12480 irix5* | irix6* | nonstopux*)
12481 lt_prog_compiler_wl_FC='-Wl,'
12482 # PIC (with -KPIC) is the default.
12483 lt_prog_compiler_static_FC='-non_shared'
12484 ;;
12485
12486 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12487 case $cc_basename in
12488 # old Intel for x86_64 which still supported -KPIC.
12489 ecc*)
12490 lt_prog_compiler_wl_FC='-Wl,'
12491 lt_prog_compiler_pic_FC='-KPIC'
12492 lt_prog_compiler_static_FC='-static'
12493 ;;
12494 # icc used to be incompatible with GCC.
12495 # ICC 10 doesn't accept -KPIC any more.
12496 icc* | ifort*)
12497 lt_prog_compiler_wl_FC='-Wl,'
12498 lt_prog_compiler_pic_FC='-fPIC'
12499 lt_prog_compiler_static_FC='-static'
12500 ;;
12501 # Lahey Fortran 8.1.
12502 lf95*)
12503 lt_prog_compiler_wl_FC='-Wl,'
12504 lt_prog_compiler_pic_FC='--shared'
12505 lt_prog_compiler_static_FC='--static'
12506 ;;
12507 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12508 # Portland Group compilers (*not* the Pentium gcc compiler,
12509 # which looks to be a dead project)
12510 lt_prog_compiler_wl_FC='-Wl,'
12511 lt_prog_compiler_pic_FC='-fpic'
12512 lt_prog_compiler_static_FC='-Bstatic'
12513 ;;
12514 ccc*)
12515 lt_prog_compiler_wl_FC='-Wl,'
12516 # All Alpha code is PIC.
12517 lt_prog_compiler_static_FC='-non_shared'
12518 ;;
12519 xl* | bgxl* | bgf* | mpixl*)
12520 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12521 lt_prog_compiler_wl_FC='-Wl,'
12522 lt_prog_compiler_pic_FC='-qpic'
12523 lt_prog_compiler_static_FC='-qstaticlink'
12524 ;;
12525 *)
12526 case `$CC -V 2>&1 | sed 5q` in
12527 *Sun\ F* | *Sun*Fortran*)
12528 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12529 lt_prog_compiler_pic_FC='-KPIC'
12530 lt_prog_compiler_static_FC='-Bstatic'
12531 lt_prog_compiler_wl_FC=''
12532 ;;
12533 *Sun\ C*)
12534 # Sun C 5.9
12535 lt_prog_compiler_pic_FC='-KPIC'
12536 lt_prog_compiler_static_FC='-Bstatic'
12537 lt_prog_compiler_wl_FC='-Wl,'
12538 ;;
12539 esac
12540 ;;
12541 esac
12542 ;;
12543
12544 newsos6)
12545 lt_prog_compiler_pic_FC='-KPIC'
12546 lt_prog_compiler_static_FC='-Bstatic'
12547 ;;
12548
12549 *nto* | *qnx*)
12550 # QNX uses GNU C++, but need to define -shared option too, otherwise
12551 # it will coredump.
12552 lt_prog_compiler_pic_FC='-fPIC -shared'
12553 ;;
12554
12555 osf3* | osf4* | osf5*)
12556 lt_prog_compiler_wl_FC='-Wl,'
12557 # All OSF/1 code is PIC.
12558 lt_prog_compiler_static_FC='-non_shared'
12559 ;;
12560
12561 rdos*)
12562 lt_prog_compiler_static_FC='-non_shared'
12563 ;;
12564
12565 solaris*)
12566 lt_prog_compiler_pic_FC='-KPIC'
12567 lt_prog_compiler_static_FC='-Bstatic'
12568 case $cc_basename in
12569 f77* | f90* | f95*)
12570 lt_prog_compiler_wl_FC='-Qoption ld ';;
12571 *)
12572 lt_prog_compiler_wl_FC='-Wl,';;
12573 esac
12574 ;;
12575
12576 sunos4*)
12577 lt_prog_compiler_wl_FC='-Qoption ld '
12578 lt_prog_compiler_pic_FC='-PIC'
12579 lt_prog_compiler_static_FC='-Bstatic'
12580 ;;
12581
12582 sysv4 | sysv4.2uw2* | sysv4.3*)
12583 lt_prog_compiler_wl_FC='-Wl,'
12584 lt_prog_compiler_pic_FC='-KPIC'
12585 lt_prog_compiler_static_FC='-Bstatic'
12586 ;;
12587
12588 sysv4*MP*)
12589 if test -d /usr/nec ;then
12590 lt_prog_compiler_pic_FC='-Kconform_pic'
12591 lt_prog_compiler_static_FC='-Bstatic'
12592 fi
12593 ;;
12594
12595 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12596 lt_prog_compiler_wl_FC='-Wl,'
12597 lt_prog_compiler_pic_FC='-KPIC'
12598 lt_prog_compiler_static_FC='-Bstatic'
12599 ;;
12600
12601 unicos*)
12602 lt_prog_compiler_wl_FC='-Wl,'
12603 lt_prog_compiler_can_build_shared_FC=no
12604 ;;
12605
12606 uts4*)
12607 lt_prog_compiler_pic_FC='-pic'
12608 lt_prog_compiler_static_FC='-Bstatic'
12609 ;;
12610
12611 *)
12612 lt_prog_compiler_can_build_shared_FC=no
12613 ;;
12614 esac
12615 fi
12616
12617 case $host_os in
12618 # For platforms which do not support PIC, -DPIC is meaningless:
12619 *djgpp*)
12620 lt_prog_compiler_pic_FC=
12621 ;;
12622 *)
12623 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12624 ;;
12625 esac
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12627 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12628
12629
12630
12631 #
12632 # Check to make sure the PIC flag actually works.
12633 #
12634 if test -n "$lt_prog_compiler_pic_FC"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12636 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12637 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 lt_cv_prog_compiler_pic_works_FC=no
12641 ac_outfile=conftest.$ac_objext
12642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12643 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12644 # Insert the option either (1) after the last *FLAGS variable, or
12645 # (2) before a word containing "conftest.", or (3) at the end.
12646 # Note that $ac_compile itself does not contain backslashes and begins
12647 # with a dollar sign (not a hyphen), so the echo should work correctly.
12648 # The option is referenced via a variable to avoid confusing sed.
12649 lt_compile=`echo "$ac_compile" | $SED \
12650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12652 -e 's:$: $lt_compiler_flag:'`
12653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12654 (eval "$lt_compile" 2>conftest.err)
12655 ac_status=$?
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 if (exit $ac_status) && test -s "$ac_outfile"; then
12659 # The compiler can only warn and ignore the option if not recognized
12660 # So say no if there are warnings other than the usual output.
12661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12664 lt_cv_prog_compiler_pic_works_FC=yes
12665 fi
12666 fi
12667 $RM conftest*
12668
12669 fi
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12671 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12672
12673 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12674 case $lt_prog_compiler_pic_FC in
12675 "" | " "*) ;;
12676 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12677 esac
12678 else
12679 lt_prog_compiler_pic_FC=
12680 lt_prog_compiler_can_build_shared_FC=no
12681 fi
12682
12683 fi
12684
12685
12686
12687 #
12688 # Check to make sure the static flag actually works.
12689 #
12690 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12692 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12693 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 lt_cv_prog_compiler_static_works_FC=no
12697 save_LDFLAGS="$LDFLAGS"
12698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12699 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12701 # The linker can only warn and ignore the option if not recognized
12702 # So say no if there are warnings
12703 if test -s conftest.err; then
12704 # Append any errors to the config.log.
12705 cat conftest.err 1>&5
12706 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12708 if diff conftest.exp conftest.er2 >/dev/null; then
12709 lt_cv_prog_compiler_static_works_FC=yes
12710 fi
12711 else
12712 lt_cv_prog_compiler_static_works_FC=yes
12713 fi
12714 fi
12715 $RM -r conftest*
12716 LDFLAGS="$save_LDFLAGS"
12717
12718 fi
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12720 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12721
12722 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12723 :
12724 else
12725 lt_prog_compiler_static_FC=
12726 fi
12727
12728
12729
12730
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12732 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12733 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12736 lt_cv_prog_compiler_c_o_FC=no
12737 $RM -r conftest 2>/dev/null
12738 mkdir conftest
12739 cd conftest
12740 mkdir out
12741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12742
12743 lt_compiler_flag="-o out/conftest2.$ac_objext"
12744 # Insert the option either (1) after the last *FLAGS variable, or
12745 # (2) before a word containing "conftest.", or (3) at the end.
12746 # Note that $ac_compile itself does not contain backslashes and begins
12747 # with a dollar sign (not a hyphen), so the echo should work correctly.
12748 lt_compile=`echo "$ac_compile" | $SED \
12749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12751 -e 's:$: $lt_compiler_flag:'`
12752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12753 (eval "$lt_compile" 2>out/conftest.err)
12754 ac_status=$?
12755 cat out/conftest.err >&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12758 then
12759 # The compiler can only warn and ignore the option if not recognized
12760 # So say no if there are warnings
12761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12764 lt_cv_prog_compiler_c_o_FC=yes
12765 fi
12766 fi
12767 chmod u+w . 2>&5
12768 $RM conftest*
12769 # SGI C++ compiler will create directory out/ii_files/ for
12770 # template instantiation
12771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12772 $RM out/* && rmdir out
12773 cd ..
12774 $RM -r conftest
12775 $RM conftest*
12776
12777 fi
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12779 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12780
12781
12782
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12785 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 lt_cv_prog_compiler_c_o_FC=no
12789 $RM -r conftest 2>/dev/null
12790 mkdir conftest
12791 cd conftest
12792 mkdir out
12793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12794
12795 lt_compiler_flag="-o out/conftest2.$ac_objext"
12796 # Insert the option either (1) after the last *FLAGS variable, or
12797 # (2) before a word containing "conftest.", or (3) at the end.
12798 # Note that $ac_compile itself does not contain backslashes and begins
12799 # with a dollar sign (not a hyphen), so the echo should work correctly.
12800 lt_compile=`echo "$ac_compile" | $SED \
12801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12803 -e 's:$: $lt_compiler_flag:'`
12804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12805 (eval "$lt_compile" 2>out/conftest.err)
12806 ac_status=$?
12807 cat out/conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12810 then
12811 # The compiler can only warn and ignore the option if not recognized
12812 # So say no if there are warnings
12813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12816 lt_cv_prog_compiler_c_o_FC=yes
12817 fi
12818 fi
12819 chmod u+w . 2>&5
12820 $RM conftest*
12821 # SGI C++ compiler will create directory out/ii_files/ for
12822 # template instantiation
12823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12824 $RM out/* && rmdir out
12825 cd ..
12826 $RM -r conftest
12827 $RM conftest*
12828
12829 fi
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12831 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12832
12833
12834
12835
12836 hard_links="nottested"
12837 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12838 # do not overwrite the value of need_locks provided by the user
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12840 $as_echo_n "checking if we can lock with hard links... " >&6; }
12841 hard_links=yes
12842 $RM conftest*
12843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12844 touch conftest.a
12845 ln conftest.a conftest.b 2>&5 || hard_links=no
12846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12848 $as_echo "$hard_links" >&6; }
12849 if test "$hard_links" = no; then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12851 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12852 need_locks=warn
12853 fi
12854 else
12855 need_locks=no
12856 fi
12857
12858
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12861 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12862
12863 runpath_var=
12864 allow_undefined_flag_FC=
12865 always_export_symbols_FC=no
12866 archive_cmds_FC=
12867 archive_expsym_cmds_FC=
12868 compiler_needs_object_FC=no
12869 enable_shared_with_static_runtimes_FC=no
12870 export_dynamic_flag_spec_FC=
12871 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12872 hardcode_automatic_FC=no
12873 hardcode_direct_FC=no
12874 hardcode_direct_absolute_FC=no
12875 hardcode_libdir_flag_spec_FC=
12876 hardcode_libdir_flag_spec_ld_FC=
12877 hardcode_libdir_separator_FC=
12878 hardcode_minus_L_FC=no
12879 hardcode_shlibpath_var_FC=unsupported
12880 inherit_rpath_FC=no
12881 link_all_deplibs_FC=unknown
12882 module_cmds_FC=
12883 module_expsym_cmds_FC=
12884 old_archive_from_new_cmds_FC=
12885 old_archive_from_expsyms_cmds_FC=
12886 thread_safe_flag_spec_FC=
12887 whole_archive_flag_spec_FC=
12888 # include_expsyms should be a list of space-separated symbols to be *always*
12889 # included in the symbol list
12890 include_expsyms_FC=
12891 # exclude_expsyms can be an extended regexp of symbols to exclude
12892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12894 # as well as any symbol that contains `d'.
12895 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12897 # platforms (ab)use it in PIC code, but their linkers get confused if
12898 # the symbol is explicitly referenced. Since portable code cannot
12899 # rely on this symbol name, it's probably fine to never include it in
12900 # preloaded symbol tables.
12901 # Exclude shared library initialization/finalization symbols.
12902 extract_expsyms_cmds=
12903
12904 case $host_os in
12905 cygwin* | mingw* | pw32* | cegcc*)
12906 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12907 # When not using gcc, we currently assume that we are using
12908 # Microsoft Visual C++.
12909 if test "$GCC" != yes; then
12910 with_gnu_ld=no
12911 fi
12912 ;;
12913 interix*)
12914 # we just hope/assume this is gcc and not c89 (= MSVC++)
12915 with_gnu_ld=yes
12916 ;;
12917 openbsd*)
12918 with_gnu_ld=no
12919 ;;
12920 esac
12921
12922 ld_shlibs_FC=yes
12923
12924 # On some targets, GNU ld is compatible enough with the native linker
12925 # that we're better off using the native interface for both.
12926 lt_use_gnu_ld_interface=no
12927 if test "$with_gnu_ld" = yes; then
12928 case $host_os in
12929 aix*)
12930 # The AIX port of GNU ld has always aspired to compatibility
12931 # with the native linker. However, as the warning in the GNU ld
12932 # block says, versions before 2.19.5* couldn't really create working
12933 # shared libraries, regardless of the interface used.
12934 case `$LD -v 2>&1` in
12935 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12936 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12937 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12938 *)
12939 lt_use_gnu_ld_interface=yes
12940 ;;
12941 esac
12942 ;;
12943 *)
12944 lt_use_gnu_ld_interface=yes
12945 ;;
12946 esac
12947 fi
12948
12949 if test "$lt_use_gnu_ld_interface" = yes; then
12950 # If archive_cmds runs LD, not CC, wlarc should be empty
12951 wlarc='${wl}'
12952
12953 # Set some defaults for GNU ld with shared library support. These
12954 # are reset later if shared libraries are not supported. Putting them
12955 # here allows them to be overridden if necessary.
12956 runpath_var=LD_RUN_PATH
12957 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12958 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12959 # ancient GNU ld didn't support --whole-archive et. al.
12960 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12961 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12962 else
12963 whole_archive_flag_spec_FC=
12964 fi
12965 supports_anon_versioning=no
12966 case `$LD -v 2>&1` in
12967 *GNU\ gold*) supports_anon_versioning=yes ;;
12968 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12969 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12970 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12971 *\ 2.11.*) ;; # other 2.11 versions
12972 *) supports_anon_versioning=yes ;;
12973 esac
12974
12975 # See if GNU ld supports shared libraries.
12976 case $host_os in
12977 aix[3-9]*)
12978 # On AIX/PPC, the GNU linker is very broken
12979 if test "$host_cpu" != ia64; then
12980 ld_shlibs_FC=no
12981 cat <<_LT_EOF 1>&2
12982
12983 *** Warning: the GNU linker, at least up to release 2.19, is reported
12984 *** to be unable to reliably create shared libraries on AIX.
12985 *** Therefore, libtool is disabling shared libraries support. If you
12986 *** really care for shared libraries, you may want to install binutils
12987 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12988 *** You will then need to restart the configuration process.
12989
12990 _LT_EOF
12991 fi
12992 ;;
12993
12994 amigaos*)
12995 case $host_cpu in
12996 powerpc)
12997 # see comment about AmigaOS4 .so support
12998 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12999 archive_expsym_cmds_FC=''
13000 ;;
13001 m68k)
13002 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)'
13003 hardcode_libdir_flag_spec_FC='-L$libdir'
13004 hardcode_minus_L_FC=yes
13005 ;;
13006 esac
13007 ;;
13008
13009 beos*)
13010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13011 allow_undefined_flag_FC=unsupported
13012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13013 # support --undefined. This deserves some investigation. FIXME
13014 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015 else
13016 ld_shlibs_FC=no
13017 fi
13018 ;;
13019
13020 cygwin* | mingw* | pw32* | cegcc*)
13021 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13022 # as there is no search path for DLLs.
13023 hardcode_libdir_flag_spec_FC='-L$libdir'
13024 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13025 allow_undefined_flag_FC=unsupported
13026 always_export_symbols_FC=no
13027 enable_shared_with_static_runtimes_FC=yes
13028 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13029
13030 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13031 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13032 # If the export-symbols file already is a .def file (1st line
13033 # is EXPORTS), use it as is; otherwise, prepend...
13034 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13035 cp $export_symbols $output_objdir/$soname.def;
13036 else
13037 echo EXPORTS > $output_objdir/$soname.def;
13038 cat $export_symbols >> $output_objdir/$soname.def;
13039 fi~
13040 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13041 else
13042 ld_shlibs_FC=no
13043 fi
13044 ;;
13045
13046 haiku*)
13047 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13048 link_all_deplibs_FC=yes
13049 ;;
13050
13051 interix[3-9]*)
13052 hardcode_direct_FC=no
13053 hardcode_shlibpath_var_FC=no
13054 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13055 export_dynamic_flag_spec_FC='${wl}-E'
13056 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13057 # Instead, shared libraries are loaded at an image base (0x10000000 by
13058 # default) and relocated if they conflict, which is a slow very memory
13059 # consuming and fragmenting process. To avoid this, we pick a random,
13060 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13061 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13062 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'
13063 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'
13064 ;;
13065
13066 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13067 tmp_diet=no
13068 if test "$host_os" = linux-dietlibc; then
13069 case $cc_basename in
13070 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13071 esac
13072 fi
13073 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13074 && test "$tmp_diet" = no
13075 then
13076 tmp_addflag=' $pic_flag'
13077 tmp_sharedflag='-shared'
13078 case $cc_basename,$host_cpu in
13079 pgcc*) # Portland Group C compiler
13080 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'
13081 tmp_addflag=' $pic_flag'
13082 ;;
13083 pgf77* | pgf90* | pgf95* | pgfortran*)
13084 # Portland Group f77 and f90 compilers
13085 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'
13086 tmp_addflag=' $pic_flag -Mnomain' ;;
13087 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13088 tmp_addflag=' -i_dynamic' ;;
13089 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13090 tmp_addflag=' -i_dynamic -nofor_main' ;;
13091 ifc* | ifort*) # Intel Fortran compiler
13092 tmp_addflag=' -nofor_main' ;;
13093 lf95*) # Lahey Fortran 8.1
13094 whole_archive_flag_spec_FC=
13095 tmp_sharedflag='--shared' ;;
13096 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13097 tmp_sharedflag='-qmkshrobj'
13098 tmp_addflag= ;;
13099 nvcc*) # Cuda Compiler Driver 2.2
13100 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'
13101 compiler_needs_object_FC=yes
13102 ;;
13103 esac
13104 case `$CC -V 2>&1 | sed 5q` in
13105 *Sun\ C*) # Sun C 5.9
13106 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'
13107 compiler_needs_object_FC=yes
13108 tmp_sharedflag='-G' ;;
13109 *Sun\ F*) # Sun Fortran 8.3
13110 tmp_sharedflag='-G' ;;
13111 esac
13112 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13113
13114 if test "x$supports_anon_versioning" = xyes; then
13115 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13117 echo "local: *; };" >> $output_objdir/$libname.ver~
13118 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13119 fi
13120
13121 case $cc_basename in
13122 xlf* | bgf* | bgxlf* | mpixlf*)
13123 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13124 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13125 hardcode_libdir_flag_spec_FC=
13126 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13127 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13128 if test "x$supports_anon_versioning" = xyes; then
13129 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13131 echo "local: *; };" >> $output_objdir/$libname.ver~
13132 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13133 fi
13134 ;;
13135 esac
13136 else
13137 ld_shlibs_FC=no
13138 fi
13139 ;;
13140
13141 netbsd*)
13142 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13143 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13144 wlarc=
13145 else
13146 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13147 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13148 fi
13149 ;;
13150
13151 solaris*)
13152 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13153 ld_shlibs_FC=no
13154 cat <<_LT_EOF 1>&2
13155
13156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13157 *** create shared libraries on Solaris systems. Therefore, libtool
13158 *** is disabling shared libraries support. We urge you to upgrade GNU
13159 *** binutils to release 2.9.1 or newer. Another option is to modify
13160 *** your PATH or compiler configuration so that the native linker is
13161 *** used, and then restart.
13162
13163 _LT_EOF
13164 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13165 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13166 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13167 else
13168 ld_shlibs_FC=no
13169 fi
13170 ;;
13171
13172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13173 case `$LD -v 2>&1` in
13174 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13175 ld_shlibs_FC=no
13176 cat <<_LT_EOF 1>&2
13177
13178 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13179 *** reliably create shared libraries on SCO systems. Therefore, libtool
13180 *** is disabling shared libraries support. We urge you to upgrade GNU
13181 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13182 *** your PATH or compiler configuration so that the native linker is
13183 *** used, and then restart.
13184
13185 _LT_EOF
13186 ;;
13187 *)
13188 # For security reasons, it is highly recommended that you always
13189 # use absolute paths for naming shared libraries, and exclude the
13190 # DT_RUNPATH tag from executables and libraries. But doing so
13191 # requires that you compile everything twice, which is a pain.
13192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13193 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13194 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13195 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13196 else
13197 ld_shlibs_FC=no
13198 fi
13199 ;;
13200 esac
13201 ;;
13202
13203 sunos4*)
13204 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13205 wlarc=
13206 hardcode_direct_FC=yes
13207 hardcode_shlibpath_var_FC=no
13208 ;;
13209
13210 *)
13211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13212 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13213 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13214 else
13215 ld_shlibs_FC=no
13216 fi
13217 ;;
13218 esac
13219
13220 if test "$ld_shlibs_FC" = no; then
13221 runpath_var=
13222 hardcode_libdir_flag_spec_FC=
13223 export_dynamic_flag_spec_FC=
13224 whole_archive_flag_spec_FC=
13225 fi
13226 else
13227 # PORTME fill in a description of your system's linker (not GNU ld)
13228 case $host_os in
13229 aix3*)
13230 allow_undefined_flag_FC=unsupported
13231 always_export_symbols_FC=yes
13232 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'
13233 # Note: this linker hardcodes the directories in LIBPATH if there
13234 # are no directories specified by -L.
13235 hardcode_minus_L_FC=yes
13236 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13237 # Neither direct hardcoding nor static linking is supported with a
13238 # broken collect2.
13239 hardcode_direct_FC=unsupported
13240 fi
13241 ;;
13242
13243 aix[4-9]*)
13244 if test "$host_cpu" = ia64; then
13245 # On IA64, the linker does run time linking by default, so we don't
13246 # have to do anything special.
13247 aix_use_runtimelinking=no
13248 exp_sym_flag='-Bexport'
13249 no_entry_flag=""
13250 else
13251 # If we're using GNU nm, then we don't want the "-C" option.
13252 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13253 # Also, AIX nm treats weak defined symbols like other global
13254 # defined symbols, whereas GNU nm marks them as "W".
13255 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13256 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'
13257 else
13258 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'
13259 fi
13260 aix_use_runtimelinking=no
13261
13262 # Test if we are trying to use run time linking or normal
13263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13264 # need to do runtime linking.
13265 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13266 for ld_flag in $LDFLAGS; do
13267 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13268 aix_use_runtimelinking=yes
13269 break
13270 fi
13271 done
13272 ;;
13273 esac
13274
13275 exp_sym_flag='-bexport'
13276 no_entry_flag='-bnoentry'
13277 fi
13278
13279 # When large executables or shared objects are built, AIX ld can
13280 # have problems creating the table of contents. If linking a library
13281 # or program results in "error TOC overflow" add -mminimal-toc to
13282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13284
13285 archive_cmds_FC=''
13286 hardcode_direct_FC=yes
13287 hardcode_direct_absolute_FC=yes
13288 hardcode_libdir_separator_FC=':'
13289 link_all_deplibs_FC=yes
13290 file_list_spec_FC='${wl}-f,'
13291
13292 if test "$GCC" = yes; then
13293 case $host_os in aix4.[012]|aix4.[012].*)
13294 # We only want to do this on AIX 4.2 and lower, the check
13295 # below for broken collect2 doesn't work under 4.3+
13296 collect2name=`${CC} -print-prog-name=collect2`
13297 if test -f "$collect2name" &&
13298 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13299 then
13300 # We have reworked collect2
13301 :
13302 else
13303 # We have old collect2
13304 hardcode_direct_FC=unsupported
13305 # It fails to find uninstalled libraries when the uninstalled
13306 # path is not listed in the libpath. Setting hardcode_minus_L
13307 # to unsupported forces relinking
13308 hardcode_minus_L_FC=yes
13309 hardcode_libdir_flag_spec_FC='-L$libdir'
13310 hardcode_libdir_separator_FC=
13311 fi
13312 ;;
13313 esac
13314 shared_flag='-shared'
13315 if test "$aix_use_runtimelinking" = yes; then
13316 shared_flag="$shared_flag "'${wl}-G'
13317 fi
13318 else
13319 # not using gcc
13320 if test "$host_cpu" = ia64; then
13321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13322 # chokes on -Wl,-G. The following line is correct:
13323 shared_flag='-G'
13324 else
13325 if test "$aix_use_runtimelinking" = yes; then
13326 shared_flag='${wl}-G'
13327 else
13328 shared_flag='${wl}-bM:SRE'
13329 fi
13330 fi
13331 fi
13332
13333 export_dynamic_flag_spec_FC='${wl}-bexpall'
13334 # It seems that -bexpall does not export symbols beginning with
13335 # underscore (_), so it is better to generate a list of symbols to export.
13336 always_export_symbols_FC=yes
13337 if test "$aix_use_runtimelinking" = yes; then
13338 # Warning - without using the other runtime loading flags (-brtl),
13339 # -berok will link without error, but may produce a broken library.
13340 allow_undefined_flag_FC='-berok'
13341 # Determine the default libpath from the value encoded in an
13342 # empty executable.
13343 cat > conftest.$ac_ext <<_ACEOF
13344 program main
13345
13346 end
13347 _ACEOF
13348 if ac_fn_fc_try_link "$LINENO"; then :
13349
13350 lt_aix_libpath_sed='
13351 /Import File Strings/,/^$/ {
13352 /^0/ {
13353 s/^0 *\(.*\)$/\1/
13354 p
13355 }
13356 }'
13357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358 # Check for a 64-bit object if we didn't find anything.
13359 if test -z "$aix_libpath"; then
13360 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13361 fi
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext \
13364 conftest$ac_exeext conftest.$ac_ext
13365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13366
13367 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13368 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"
13369 else
13370 if test "$host_cpu" = ia64; then
13371 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13372 allow_undefined_flag_FC="-z nodefs"
13373 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"
13374 else
13375 # Determine the default libpath from the value encoded in an
13376 # empty executable.
13377 cat > conftest.$ac_ext <<_ACEOF
13378 program main
13379
13380 end
13381 _ACEOF
13382 if ac_fn_fc_try_link "$LINENO"; then :
13383
13384 lt_aix_libpath_sed='
13385 /Import File Strings/,/^$/ {
13386 /^0/ {
13387 s/^0 *\(.*\)$/\1/
13388 p
13389 }
13390 }'
13391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13392 # Check for a 64-bit object if we didn't find anything.
13393 if test -z "$aix_libpath"; then
13394 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13395 fi
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13400
13401 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13402 # Warning - without using the other run time loading flags,
13403 # -berok will link without error, but may produce a broken library.
13404 no_undefined_flag_FC=' ${wl}-bernotok'
13405 allow_undefined_flag_FC=' ${wl}-berok'
13406 if test "$with_gnu_ld" = yes; then
13407 # We only use this code for GNU lds that support --whole-archive.
13408 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13409 else
13410 # Exported symbols can be pulled into shared objects from archives
13411 whole_archive_flag_spec_FC='$convenience'
13412 fi
13413 archive_cmds_need_lc_FC=yes
13414 # This is similar to how AIX traditionally builds its shared libraries.
13415 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'
13416 fi
13417 fi
13418 ;;
13419
13420 amigaos*)
13421 case $host_cpu in
13422 powerpc)
13423 # see comment about AmigaOS4 .so support
13424 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425 archive_expsym_cmds_FC=''
13426 ;;
13427 m68k)
13428 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)'
13429 hardcode_libdir_flag_spec_FC='-L$libdir'
13430 hardcode_minus_L_FC=yes
13431 ;;
13432 esac
13433 ;;
13434
13435 bsdi[45]*)
13436 export_dynamic_flag_spec_FC=-rdynamic
13437 ;;
13438
13439 cygwin* | mingw* | pw32* | cegcc*)
13440 # When not using gcc, we currently assume that we are using
13441 # Microsoft Visual C++.
13442 # hardcode_libdir_flag_spec is actually meaningless, as there is
13443 # no search path for DLLs.
13444 hardcode_libdir_flag_spec_FC=' '
13445 allow_undefined_flag_FC=unsupported
13446 # Tell ltmain to make .lib files, not .a files.
13447 libext=lib
13448 # Tell ltmain to make .dll files, not .so files.
13449 shrext_cmds=".dll"
13450 # FIXME: Setting linknames here is a bad hack.
13451 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13452 # The linker will automatically build a .lib file if we build a DLL.
13453 old_archive_from_new_cmds_FC='true'
13454 # FIXME: Should let the user specify the lib program.
13455 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13456 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13457 enable_shared_with_static_runtimes_FC=yes
13458 ;;
13459
13460 darwin* | rhapsody*)
13461
13462
13463 archive_cmds_need_lc_FC=no
13464 hardcode_direct_FC=no
13465 hardcode_automatic_FC=yes
13466 hardcode_shlibpath_var_FC=unsupported
13467 if test "$lt_cv_ld_force_load" = "yes"; then
13468 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\"`'
13469 else
13470 whole_archive_flag_spec_FC=''
13471 fi
13472 link_all_deplibs_FC=yes
13473 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13474 case $cc_basename in
13475 ifort*) _lt_dar_can_shared=yes ;;
13476 *) _lt_dar_can_shared=$GCC ;;
13477 esac
13478 if test "$_lt_dar_can_shared" = "yes"; then
13479 output_verbose_link_cmd=func_echo_all
13480 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}"
13481 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13482 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}"
13483 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}"
13484
13485 else
13486 ld_shlibs_FC=no
13487 fi
13488
13489 ;;
13490
13491 dgux*)
13492 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13493 hardcode_libdir_flag_spec_FC='-L$libdir'
13494 hardcode_shlibpath_var_FC=no
13495 ;;
13496
13497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13498 # support. Future versions do this automatically, but an explicit c++rt0.o
13499 # does not break anything, and helps significantly (at the cost of a little
13500 # extra space).
13501 freebsd2.2*)
13502 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13503 hardcode_libdir_flag_spec_FC='-R$libdir'
13504 hardcode_direct_FC=yes
13505 hardcode_shlibpath_var_FC=no
13506 ;;
13507
13508 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13509 freebsd2.*)
13510 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13511 hardcode_direct_FC=yes
13512 hardcode_minus_L_FC=yes
13513 hardcode_shlibpath_var_FC=no
13514 ;;
13515
13516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13517 freebsd* | dragonfly*)
13518 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13519 hardcode_libdir_flag_spec_FC='-R$libdir'
13520 hardcode_direct_FC=yes
13521 hardcode_shlibpath_var_FC=no
13522 ;;
13523
13524 hpux9*)
13525 if test "$GCC" = yes; then
13526 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'
13527 else
13528 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'
13529 fi
13530 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13531 hardcode_libdir_separator_FC=:
13532 hardcode_direct_FC=yes
13533
13534 # hardcode_minus_L: Not really in the search PATH,
13535 # but as the default location of the library.
13536 hardcode_minus_L_FC=yes
13537 export_dynamic_flag_spec_FC='${wl}-E'
13538 ;;
13539
13540 hpux10*)
13541 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13542 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13543 else
13544 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13545 fi
13546 if test "$with_gnu_ld" = no; then
13547 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13548 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13549 hardcode_libdir_separator_FC=:
13550 hardcode_direct_FC=yes
13551 hardcode_direct_absolute_FC=yes
13552 export_dynamic_flag_spec_FC='${wl}-E'
13553 # hardcode_minus_L: Not really in the search PATH,
13554 # but as the default location of the library.
13555 hardcode_minus_L_FC=yes
13556 fi
13557 ;;
13558
13559 hpux11*)
13560 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13561 case $host_cpu in
13562 hppa*64*)
13563 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13564 ;;
13565 ia64*)
13566 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13567 ;;
13568 *)
13569 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13570 ;;
13571 esac
13572 else
13573 case $host_cpu in
13574 hppa*64*)
13575 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13576 ;;
13577 ia64*)
13578 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13579 ;;
13580 *)
13581 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13582 ;;
13583 esac
13584 fi
13585 if test "$with_gnu_ld" = no; then
13586 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13587 hardcode_libdir_separator_FC=:
13588
13589 case $host_cpu in
13590 hppa*64*|ia64*)
13591 hardcode_direct_FC=no
13592 hardcode_shlibpath_var_FC=no
13593 ;;
13594 *)
13595 hardcode_direct_FC=yes
13596 hardcode_direct_absolute_FC=yes
13597 export_dynamic_flag_spec_FC='${wl}-E'
13598
13599 # hardcode_minus_L: Not really in the search PATH,
13600 # but as the default location of the library.
13601 hardcode_minus_L_FC=yes
13602 ;;
13603 esac
13604 fi
13605 ;;
13606
13607 irix5* | irix6* | nonstopux*)
13608 if test "$GCC" = yes; then
13609 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'
13610 # Try to use the -exported_symbol ld option, if it does not
13611 # work, assume that -exports_file does not work either and
13612 # implicitly export all symbols.
13613 save_LDFLAGS="$LDFLAGS"
13614 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13615 cat > conftest.$ac_ext <<_ACEOF
13616 int foo(void) {}
13617 _ACEOF
13618 if ac_fn_fc_try_link "$LINENO"; then :
13619 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'
13620
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext \
13623 conftest$ac_exeext conftest.$ac_ext
13624 LDFLAGS="$save_LDFLAGS"
13625 else
13626 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'
13627 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'
13628 fi
13629 archive_cmds_need_lc_FC='no'
13630 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13631 hardcode_libdir_separator_FC=:
13632 inherit_rpath_FC=yes
13633 link_all_deplibs_FC=yes
13634 ;;
13635
13636 netbsd*)
13637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13638 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13639 else
13640 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13641 fi
13642 hardcode_libdir_flag_spec_FC='-R$libdir'
13643 hardcode_direct_FC=yes
13644 hardcode_shlibpath_var_FC=no
13645 ;;
13646
13647 newsos6)
13648 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13649 hardcode_direct_FC=yes
13650 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13651 hardcode_libdir_separator_FC=:
13652 hardcode_shlibpath_var_FC=no
13653 ;;
13654
13655 *nto* | *qnx*)
13656 ;;
13657
13658 openbsd*)
13659 if test -f /usr/libexec/ld.so; then
13660 hardcode_direct_FC=yes
13661 hardcode_shlibpath_var_FC=no
13662 hardcode_direct_absolute_FC=yes
13663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13664 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13665 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13666 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13667 export_dynamic_flag_spec_FC='${wl}-E'
13668 else
13669 case $host_os in
13670 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13671 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13672 hardcode_libdir_flag_spec_FC='-R$libdir'
13673 ;;
13674 *)
13675 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13676 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13677 ;;
13678 esac
13679 fi
13680 else
13681 ld_shlibs_FC=no
13682 fi
13683 ;;
13684
13685 os2*)
13686 hardcode_libdir_flag_spec_FC='-L$libdir'
13687 hardcode_minus_L_FC=yes
13688 allow_undefined_flag_FC=unsupported
13689 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'
13690 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13691 ;;
13692
13693 osf3*)
13694 if test "$GCC" = yes; then
13695 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13696 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'
13697 else
13698 allow_undefined_flag_FC=' -expect_unresolved \*'
13699 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'
13700 fi
13701 archive_cmds_need_lc_FC='no'
13702 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13703 hardcode_libdir_separator_FC=:
13704 ;;
13705
13706 osf4* | osf5*) # as osf3* with the addition of -msym flag
13707 if test "$GCC" = yes; then
13708 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13709 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'
13710 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13711 else
13712 allow_undefined_flag_FC=' -expect_unresolved \*'
13713 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'
13714 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~
13715 $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'
13716
13717 # Both c and cxx compiler support -rpath directly
13718 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13719 fi
13720 archive_cmds_need_lc_FC='no'
13721 hardcode_libdir_separator_FC=:
13722 ;;
13723
13724 solaris*)
13725 no_undefined_flag_FC=' -z defs'
13726 if test "$GCC" = yes; then
13727 wlarc='${wl}'
13728 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13729 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13730 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13731 else
13732 case `$CC -V 2>&1` in
13733 *"Compilers 5.0"*)
13734 wlarc=''
13735 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13736 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13737 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13738 ;;
13739 *)
13740 wlarc='${wl}'
13741 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13742 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13743 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13744 ;;
13745 esac
13746 fi
13747 hardcode_libdir_flag_spec_FC='-R$libdir'
13748 hardcode_shlibpath_var_FC=no
13749 case $host_os in
13750 solaris2.[0-5] | solaris2.[0-5].*) ;;
13751 *)
13752 # The compiler driver will combine and reorder linker options,
13753 # but understands `-z linker_flag'. GCC discards it without `$wl',
13754 # but is careful enough not to reorder.
13755 # Supported since Solaris 2.6 (maybe 2.5.1?)
13756 if test "$GCC" = yes; then
13757 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13758 else
13759 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13760 fi
13761 ;;
13762 esac
13763 link_all_deplibs_FC=yes
13764 ;;
13765
13766 sunos4*)
13767 if test "x$host_vendor" = xsequent; then
13768 # Use $CC to link under sequent, because it throws in some extra .o
13769 # files that make .init and .fini sections work.
13770 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13771 else
13772 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13773 fi
13774 hardcode_libdir_flag_spec_FC='-L$libdir'
13775 hardcode_direct_FC=yes
13776 hardcode_minus_L_FC=yes
13777 hardcode_shlibpath_var_FC=no
13778 ;;
13779
13780 sysv4)
13781 case $host_vendor in
13782 sni)
13783 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13784 hardcode_direct_FC=yes # is this really true???
13785 ;;
13786 siemens)
13787 ## LD is ld it makes a PLAMLIB
13788 ## CC just makes a GrossModule.
13789 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13790 reload_cmds_FC='$CC -r -o $output$reload_objs'
13791 hardcode_direct_FC=no
13792 ;;
13793 motorola)
13794 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13796 ;;
13797 esac
13798 runpath_var='LD_RUN_PATH'
13799 hardcode_shlibpath_var_FC=no
13800 ;;
13801
13802 sysv4.3*)
13803 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13804 hardcode_shlibpath_var_FC=no
13805 export_dynamic_flag_spec_FC='-Bexport'
13806 ;;
13807
13808 sysv4*MP*)
13809 if test -d /usr/nec; then
13810 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13811 hardcode_shlibpath_var_FC=no
13812 runpath_var=LD_RUN_PATH
13813 hardcode_runpath_var=yes
13814 ld_shlibs_FC=yes
13815 fi
13816 ;;
13817
13818 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13819 no_undefined_flag_FC='${wl}-z,text'
13820 archive_cmds_need_lc_FC=no
13821 hardcode_shlibpath_var_FC=no
13822 runpath_var='LD_RUN_PATH'
13823
13824 if test "$GCC" = yes; then
13825 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 else
13828 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 fi
13831 ;;
13832
13833 sysv5* | sco3.2v5* | sco5v6*)
13834 # Note: We can NOT use -z defs as we might desire, because we do not
13835 # link with -lc, and that would cause any symbols used from libc to
13836 # always be unresolved, which means just about no library would
13837 # ever link correctly. If we're not using GNU ld we use -z text
13838 # though, which does catch some bad symbols but isn't as heavy-handed
13839 # as -z defs.
13840 no_undefined_flag_FC='${wl}-z,text'
13841 allow_undefined_flag_FC='${wl}-z,nodefs'
13842 archive_cmds_need_lc_FC=no
13843 hardcode_shlibpath_var_FC=no
13844 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13845 hardcode_libdir_separator_FC=':'
13846 link_all_deplibs_FC=yes
13847 export_dynamic_flag_spec_FC='${wl}-Bexport'
13848 runpath_var='LD_RUN_PATH'
13849
13850 if test "$GCC" = yes; then
13851 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13852 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13853 else
13854 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13855 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13856 fi
13857 ;;
13858
13859 uts4*)
13860 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13861 hardcode_libdir_flag_spec_FC='-L$libdir'
13862 hardcode_shlibpath_var_FC=no
13863 ;;
13864
13865 *)
13866 ld_shlibs_FC=no
13867 ;;
13868 esac
13869
13870 if test x$host_vendor = xsni; then
13871 case $host in
13872 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13873 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13874 ;;
13875 esac
13876 fi
13877 fi
13878
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13880 $as_echo "$ld_shlibs_FC" >&6; }
13881 test "$ld_shlibs_FC" = no && can_build_shared=no
13882
13883 with_gnu_ld_FC=$with_gnu_ld
13884
13885
13886
13887
13888
13889
13890 #
13891 # Do we need to explicitly link libc?
13892 #
13893 case "x$archive_cmds_need_lc_FC" in
13894 x|xyes)
13895 # Assume -lc should be added
13896 archive_cmds_need_lc_FC=yes
13897
13898 if test "$enable_shared" = yes && test "$GCC" = yes; then
13899 case $archive_cmds_FC in
13900 *'~'*)
13901 # FIXME: we may have to deal with multi-command sequences.
13902 ;;
13903 '$CC '*)
13904 # Test whether the compiler implicitly links with -lc since on some
13905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13906 # to ld, don't add -lc before -lgcc.
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13908 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13909 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13912 $RM conftest*
13913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13914
13915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13916 (eval $ac_compile) 2>&5
13917 ac_status=$?
13918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919 test $ac_status = 0; } 2>conftest.err; then
13920 soname=conftest
13921 lib=conftest
13922 libobjs=conftest.$ac_objext
13923 deplibs=
13924 wl=$lt_prog_compiler_wl_FC
13925 pic_flag=$lt_prog_compiler_pic_FC
13926 compiler_flags=-v
13927 linker_flags=-v
13928 verstring=
13929 output_objdir=.
13930 libname=conftest
13931 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13932 allow_undefined_flag_FC=
13933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13934 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13935 ac_status=$?
13936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937 test $ac_status = 0; }
13938 then
13939 lt_cv_archive_cmds_need_lc_FC=no
13940 else
13941 lt_cv_archive_cmds_need_lc_FC=yes
13942 fi
13943 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13944 else
13945 cat conftest.err 1>&5
13946 fi
13947 $RM conftest*
13948
13949 fi
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13951 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13952 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13953 ;;
13954 esac
13955 fi
13956 ;;
13957 esac
13958
13959
13960
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14024
14025 library_names_spec=
14026 libname_spec='lib$name'
14027 soname_spec=
14028 shrext_cmds=".so"
14029 postinstall_cmds=
14030 postuninstall_cmds=
14031 finish_cmds=
14032 finish_eval=
14033 shlibpath_var=
14034 shlibpath_overrides_runpath=unknown
14035 version_type=none
14036 dynamic_linker="$host_os ld.so"
14037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14038 need_lib_prefix=unknown
14039 hardcode_into_libs=no
14040
14041 # when you set need_version to no, make sure it does not cause -set_version
14042 # flags to be left without arguments
14043 need_version=unknown
14044
14045 case $host_os in
14046 aix3*)
14047 version_type=linux
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14049 shlibpath_var=LIBPATH
14050
14051 # AIX 3 has no versioning support, so we append a major version to the name.
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 ;;
14054
14055 aix[4-9]*)
14056 version_type=linux
14057 need_lib_prefix=no
14058 need_version=no
14059 hardcode_into_libs=yes
14060 if test "$host_cpu" = ia64; then
14061 # AIX 5 supports IA64
14062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 else
14065 # With GCC up to 2.95.x, collect2 would create an import file
14066 # for dependence libraries. The import file would start with
14067 # the line `#! .'. This would cause the generated library to
14068 # depend on `.', always an invalid library. This was fixed in
14069 # development snapshots of GCC prior to 3.0.
14070 case $host_os in
14071 aix4 | aix4.[01] | aix4.[01].*)
14072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14073 echo ' yes '
14074 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14075 :
14076 else
14077 can_build_shared=no
14078 fi
14079 ;;
14080 esac
14081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14082 # soname into executable. Probably we can add versioning support to
14083 # collect2, so additional links can be useful in future.
14084 if test "$aix_use_runtimelinking" = yes; then
14085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14086 # instead of lib<name>.a to let people know that these are not
14087 # typical AIX shared libraries.
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 else
14090 # We preserve .a as extension for shared libraries through AIX4.2
14091 # and later when we are not doing run time linking.
14092 library_names_spec='${libname}${release}.a $libname.a'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14094 fi
14095 shlibpath_var=LIBPATH
14096 fi
14097 ;;
14098
14099 amigaos*)
14100 case $host_cpu in
14101 powerpc)
14102 # Since July 2007 AmigaOS4 officially supports .so libraries.
14103 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14105 ;;
14106 m68k)
14107 library_names_spec='$libname.ixlibrary $libname.a'
14108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14109 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'
14110 ;;
14111 esac
14112 ;;
14113
14114 beos*)
14115 library_names_spec='${libname}${shared_ext}'
14116 dynamic_linker="$host_os ld.so"
14117 shlibpath_var=LIBRARY_PATH
14118 ;;
14119
14120 bsdi[45]*)
14121 version_type=linux
14122 need_version=no
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14126 shlibpath_var=LD_LIBRARY_PATH
14127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14129 # the default ld.so.conf also contains /usr/contrib/lib and
14130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14131 # libtool to hard-code these into programs
14132 ;;
14133
14134 cygwin* | mingw* | pw32* | cegcc*)
14135 version_type=windows
14136 shrext_cmds=".dll"
14137 need_version=no
14138 need_lib_prefix=no
14139
14140 case $GCC,$host_os in
14141 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14142 library_names_spec='$libname.dll.a'
14143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14144 postinstall_cmds='base_file=`basename \${file}`~
14145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14146 dldir=$destdir/`dirname \$dlpath`~
14147 test -d \$dldir || mkdir -p \$dldir~
14148 $install_prog $dir/$dlname \$dldir/$dlname~
14149 chmod a+x \$dldir/$dlname~
14150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14152 fi'
14153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14154 dlpath=$dir/\$dldll~
14155 $RM \$dlpath'
14156 shlibpath_overrides_runpath=yes
14157
14158 case $host_os in
14159 cygwin*)
14160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14162
14163 ;;
14164 mingw* | cegcc*)
14165 # MinGW DLLs use traditional 'lib' prefix
14166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14167 ;;
14168 pw32*)
14169 # pw32 DLLs use 'pw' prefix rather than 'lib'
14170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14171 ;;
14172 esac
14173 ;;
14174
14175 *)
14176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14177 ;;
14178 esac
14179 dynamic_linker='Win32 ld.exe'
14180 # FIXME: first we should search . and the directory the executable is in
14181 shlibpath_var=PATH
14182 ;;
14183
14184 darwin* | rhapsody*)
14185 dynamic_linker="$host_os dyld"
14186 version_type=darwin
14187 need_lib_prefix=no
14188 need_version=no
14189 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14190 soname_spec='${libname}${release}${major}$shared_ext'
14191 shlibpath_overrides_runpath=yes
14192 shlibpath_var=DYLD_LIBRARY_PATH
14193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14194
14195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14196 ;;
14197
14198 dgux*)
14199 version_type=linux
14200 need_lib_prefix=no
14201 need_version=no
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14203 soname_spec='${libname}${release}${shared_ext}$major'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 ;;
14206
14207 freebsd* | dragonfly*)
14208 # DragonFly does not have aout. When/if they implement a new
14209 # versioning mechanism, adjust this.
14210 if test -x /usr/bin/objformat; then
14211 objformat=`/usr/bin/objformat`
14212 else
14213 case $host_os in
14214 freebsd[23].*) objformat=aout ;;
14215 *) objformat=elf ;;
14216 esac
14217 fi
14218 version_type=freebsd-$objformat
14219 case $version_type in
14220 freebsd-elf*)
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14222 need_version=no
14223 need_lib_prefix=no
14224 ;;
14225 freebsd-*)
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14227 need_version=yes
14228 ;;
14229 esac
14230 shlibpath_var=LD_LIBRARY_PATH
14231 case $host_os in
14232 freebsd2.*)
14233 shlibpath_overrides_runpath=yes
14234 ;;
14235 freebsd3.[01]* | freebsdelf3.[01]*)
14236 shlibpath_overrides_runpath=yes
14237 hardcode_into_libs=yes
14238 ;;
14239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14241 shlibpath_overrides_runpath=no
14242 hardcode_into_libs=yes
14243 ;;
14244 *) # from 4.6 on, and DragonFly
14245 shlibpath_overrides_runpath=yes
14246 hardcode_into_libs=yes
14247 ;;
14248 esac
14249 ;;
14250
14251 haiku*)
14252 version_type=linux
14253 need_lib_prefix=no
14254 need_version=no
14255 dynamic_linker="$host_os runtime_loader"
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14257 soname_spec='${libname}${release}${shared_ext}$major'
14258 shlibpath_var=LIBRARY_PATH
14259 shlibpath_overrides_runpath=yes
14260 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14261 hardcode_into_libs=yes
14262 ;;
14263
14264 hpux9* | hpux10* | hpux11*)
14265 # Give a soname corresponding to the major version so that dld.sl refuses to
14266 # link against other versions.
14267 version_type=sunos
14268 need_lib_prefix=no
14269 need_version=no
14270 case $host_cpu in
14271 ia64*)
14272 shrext_cmds='.so'
14273 hardcode_into_libs=yes
14274 dynamic_linker="$host_os dld.so"
14275 shlibpath_var=LD_LIBRARY_PATH
14276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14278 soname_spec='${libname}${release}${shared_ext}$major'
14279 if test "X$HPUX_IA64_MODE" = X32; then
14280 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14281 else
14282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14283 fi
14284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14285 ;;
14286 hppa*64*)
14287 shrext_cmds='.sl'
14288 hardcode_into_libs=yes
14289 dynamic_linker="$host_os dld.sl"
14290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293 soname_spec='${libname}${release}${shared_ext}$major'
14294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14296 ;;
14297 *)
14298 shrext_cmds='.sl'
14299 dynamic_linker="$host_os dld.sl"
14300 shlibpath_var=SHLIB_PATH
14301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14304 ;;
14305 esac
14306 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14307 postinstall_cmds='chmod 555 $lib'
14308 # or fails outright, so override atomically:
14309 install_override_mode=555
14310 ;;
14311
14312 interix[3-9]*)
14313 version_type=linux
14314 need_lib_prefix=no
14315 need_version=no
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 shlibpath_overrides_runpath=no
14321 hardcode_into_libs=yes
14322 ;;
14323
14324 irix5* | irix6* | nonstopux*)
14325 case $host_os in
14326 nonstopux*) version_type=nonstopux ;;
14327 *)
14328 if test "$lt_cv_prog_gnu_ld" = yes; then
14329 version_type=linux
14330 else
14331 version_type=irix
14332 fi ;;
14333 esac
14334 need_lib_prefix=no
14335 need_version=no
14336 soname_spec='${libname}${release}${shared_ext}$major'
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14338 case $host_os in
14339 irix5* | nonstopux*)
14340 libsuff= shlibsuff=
14341 ;;
14342 *)
14343 case $LD in # libtool.m4 will add one of these switches to LD
14344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14345 libsuff= shlibsuff= libmagic=32-bit;;
14346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14347 libsuff=32 shlibsuff=N32 libmagic=N32;;
14348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14350 *) libsuff= shlibsuff= libmagic=never-match;;
14351 esac
14352 ;;
14353 esac
14354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14355 shlibpath_overrides_runpath=no
14356 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14357 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14358 hardcode_into_libs=yes
14359 ;;
14360
14361 # No shared lib support for Linux oldld, aout, or coff.
14362 linux*oldld* | linux*aout* | linux*coff*)
14363 dynamic_linker=no
14364 ;;
14365
14366 # This must be Linux ELF.
14367
14368 # uclinux* changes (here and below) have been submitted to the libtool
14369 # project, but have not yet been accepted: they are GCC-local changes
14370 # for the time being. (See
14371 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14373 version_type=linux
14374 need_lib_prefix=no
14375 need_version=no
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14377 soname_spec='${libname}${release}${shared_ext}$major'
14378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14379 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=no
14381
14382 # Some binutils ld are patched to set DT_RUNPATH
14383 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 lt_cv_shlibpath_overrides_runpath=no
14387 save_LDFLAGS=$LDFLAGS
14388 save_libdir=$libdir
14389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14391 cat > conftest.$ac_ext <<_ACEOF
14392 program main
14393
14394 end
14395 _ACEOF
14396 if ac_fn_fc_try_link "$LINENO"; then :
14397 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14398 lt_cv_shlibpath_overrides_runpath=yes
14399 fi
14400 fi
14401 rm -f core conftest.err conftest.$ac_objext \
14402 conftest$ac_exeext conftest.$ac_ext
14403 LDFLAGS=$save_LDFLAGS
14404 libdir=$save_libdir
14405
14406 fi
14407
14408 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14409
14410 # This implies no fast_install, which is unacceptable.
14411 # Some rework will be needed to allow for fast_install
14412 # before this can be enabled.
14413 hardcode_into_libs=yes
14414
14415 # Append ld.so.conf contents to the search path
14416 if test -f /etc/ld.so.conf; then
14417 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' ' '`
14418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14419 fi
14420
14421 # We used to test for /lib/ld.so.1 and disable shared libraries on
14422 # powerpc, because MkLinux only supported shared libraries with the
14423 # GNU dynamic linker. Since this was broken with cross compilers,
14424 # most powerpc-linux boxes support dynamic linking these days and
14425 # people can always --disable-shared, the test was removed, and we
14426 # assume the GNU/Linux dynamic linker is in use.
14427 dynamic_linker='GNU/Linux ld.so'
14428 ;;
14429
14430 netbsd*)
14431 version_type=sunos
14432 need_lib_prefix=no
14433 need_version=no
14434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14437 dynamic_linker='NetBSD (a.out) ld.so'
14438 else
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 dynamic_linker='NetBSD ld.elf_so'
14442 fi
14443 shlibpath_var=LD_LIBRARY_PATH
14444 shlibpath_overrides_runpath=yes
14445 hardcode_into_libs=yes
14446 ;;
14447
14448 newsos6)
14449 version_type=linux
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 shlibpath_overrides_runpath=yes
14453 ;;
14454
14455 *nto* | *qnx*)
14456 version_type=qnx
14457 need_lib_prefix=no
14458 need_version=no
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 shlibpath_overrides_runpath=no
14463 hardcode_into_libs=yes
14464 dynamic_linker='ldqnx.so'
14465 ;;
14466
14467 openbsd*)
14468 version_type=sunos
14469 sys_lib_dlsearch_path_spec="/usr/lib"
14470 need_lib_prefix=no
14471 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14472 case $host_os in
14473 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14474 *) need_version=no ;;
14475 esac
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14478 shlibpath_var=LD_LIBRARY_PATH
14479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14480 case $host_os in
14481 openbsd2.[89] | openbsd2.[89].*)
14482 shlibpath_overrides_runpath=no
14483 ;;
14484 *)
14485 shlibpath_overrides_runpath=yes
14486 ;;
14487 esac
14488 else
14489 shlibpath_overrides_runpath=yes
14490 fi
14491 ;;
14492
14493 os2*)
14494 libname_spec='$name'
14495 shrext_cmds=".dll"
14496 need_lib_prefix=no
14497 library_names_spec='$libname${shared_ext} $libname.a'
14498 dynamic_linker='OS/2 ld.exe'
14499 shlibpath_var=LIBPATH
14500 ;;
14501
14502 osf3* | osf4* | osf5*)
14503 version_type=osf
14504 need_lib_prefix=no
14505 need_version=no
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14510 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14511 ;;
14512
14513 rdos*)
14514 dynamic_linker=no
14515 ;;
14516
14517 solaris*)
14518 version_type=linux
14519 need_lib_prefix=no
14520 need_version=no
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 shlibpath_overrides_runpath=yes
14525 hardcode_into_libs=yes
14526 # ldd complains unless libraries are executable
14527 postinstall_cmds='chmod +x $lib'
14528 ;;
14529
14530 sunos4*)
14531 version_type=sunos
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 shlibpath_overrides_runpath=yes
14536 if test "$with_gnu_ld" = yes; then
14537 need_lib_prefix=no
14538 fi
14539 need_version=yes
14540 ;;
14541
14542 sysv4 | sysv4.3*)
14543 version_type=linux
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 case $host_vendor in
14548 sni)
14549 shlibpath_overrides_runpath=no
14550 need_lib_prefix=no
14551 runpath_var=LD_RUN_PATH
14552 ;;
14553 siemens)
14554 need_lib_prefix=no
14555 ;;
14556 motorola)
14557 need_lib_prefix=no
14558 need_version=no
14559 shlibpath_overrides_runpath=no
14560 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14561 ;;
14562 esac
14563 ;;
14564
14565 sysv4*MP*)
14566 if test -d /usr/nec ;then
14567 version_type=linux
14568 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14569 soname_spec='$libname${shared_ext}.$major'
14570 shlibpath_var=LD_LIBRARY_PATH
14571 fi
14572 ;;
14573
14574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14575 version_type=freebsd-elf
14576 need_lib_prefix=no
14577 need_version=no
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 shlibpath_var=LD_LIBRARY_PATH
14581 shlibpath_overrides_runpath=yes
14582 hardcode_into_libs=yes
14583 if test "$with_gnu_ld" = yes; then
14584 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14585 else
14586 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14587 case $host_os in
14588 sco3.2v5*)
14589 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14590 ;;
14591 esac
14592 fi
14593 sys_lib_dlsearch_path_spec='/usr/lib'
14594 ;;
14595
14596 tpf*)
14597 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14598 version_type=linux
14599 need_lib_prefix=no
14600 need_version=no
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=no
14604 hardcode_into_libs=yes
14605 ;;
14606
14607 uts4*)
14608 version_type=linux
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610 soname_spec='${libname}${release}${shared_ext}$major'
14611 shlibpath_var=LD_LIBRARY_PATH
14612 ;;
14613
14614 # Shared libraries for VwWorks, >= 7 only at this stage
14615 # and (fpic) still incompatible with "large" code models
14616 # in a few configurations. Only for RTP mode in any case,
14617 # and upon explicit request at configure time.
14618 vxworks7*)
14619 dynamic_linker=no
14620 case ${with_multisubdir}-${enable_shared} in
14621 *large*)
14622 ;;
14623 *mrtp*-yes)
14624 version_type=linux
14625 need_lib_prefix=no
14626 need_version=no
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14628 soname_spec='${libname}${release}${shared_ext}$major'
14629 dynamic_linker="$host_os module_loader"
14630 ;;
14631 esac
14632 ;;
14633 *)
14634 dynamic_linker=no
14635 ;;
14636 esac
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14638 $as_echo "$dynamic_linker" >&6; }
14639 test "$dynamic_linker" = no && can_build_shared=no
14640
14641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14642 if test "$GCC" = yes; then
14643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14644 fi
14645
14646 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14647 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14648 fi
14649 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14650 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14651 fi
14652
14653
14654
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14691 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14692 hardcode_action_FC=
14693 if test -n "$hardcode_libdir_flag_spec_FC" ||
14694 test -n "$runpath_var_FC" ||
14695 test "X$hardcode_automatic_FC" = "Xyes" ; then
14696
14697 # We can hardcode non-existent directories.
14698 if test "$hardcode_direct_FC" != no &&
14699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14700 # have to relink, otherwise we might link with an installed library
14701 # when we should be linking with a yet-to-be-installed one
14702 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14703 test "$hardcode_minus_L_FC" != no; then
14704 # Linking always hardcodes the temporary library directory.
14705 hardcode_action_FC=relink
14706 else
14707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14708 hardcode_action_FC=immediate
14709 fi
14710 else
14711 # We cannot hardcode anything, or else we can only hardcode existing
14712 # directories.
14713 hardcode_action_FC=unsupported
14714 fi
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14716 $as_echo "$hardcode_action_FC" >&6; }
14717
14718 if test "$hardcode_action_FC" = relink ||
14719 test "$inherit_rpath_FC" = yes; then
14720 # Fast installation is not supported
14721 enable_fast_install=no
14722 elif test "$shlibpath_overrides_runpath" = yes ||
14723 test "$enable_shared" = no; then
14724 # Fast installation is not necessary
14725 enable_fast_install=needless
14726 fi
14727
14728
14729
14730
14731
14732
14733
14734 fi # test -n "$compiler"
14735
14736 GCC=$lt_save_GCC
14737 CC="$lt_save_CC"
14738 fi # test "$_lt_disable_FC" != yes
14739
14740 ac_ext=c
14741 ac_cpp='$CPP $CPPFLAGS'
14742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14745
14746
14747 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14748
14749 # For libtool versioning info, format is CURRENT:REVISION:AGE
14750 libtool_VERSION=1:0:0
14751
14752
14753 # Check header files.
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14755 $as_echo_n "checking for ANSI C header files... " >&6; }
14756 if ${ac_cv_header_stdc+:} false; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 #include <stdlib.h>
14762 #include <stdarg.h>
14763 #include <string.h>
14764 #include <float.h>
14765
14766 int
14767 main ()
14768 {
14769
14770 ;
14771 return 0;
14772 }
14773 _ACEOF
14774 if ac_fn_c_try_compile "$LINENO"; then :
14775 ac_cv_header_stdc=yes
14776 else
14777 ac_cv_header_stdc=no
14778 fi
14779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780
14781 if test $ac_cv_header_stdc = yes; then
14782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 #include <string.h>
14786
14787 _ACEOF
14788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14789 $EGREP "memchr" >/dev/null 2>&1; then :
14790
14791 else
14792 ac_cv_header_stdc=no
14793 fi
14794 rm -f conftest*
14795
14796 fi
14797
14798 if test $ac_cv_header_stdc = yes; then
14799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 #include <stdlib.h>
14803
14804 _ACEOF
14805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14806 $EGREP "free" >/dev/null 2>&1; then :
14807
14808 else
14809 ac_cv_header_stdc=no
14810 fi
14811 rm -f conftest*
14812
14813 fi
14814
14815 if test $ac_cv_header_stdc = yes; then
14816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14817 if test "$cross_compiling" = yes; then :
14818 :
14819 else
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14822 #include <ctype.h>
14823 #include <stdlib.h>
14824 #if ((' ' & 0x0FF) == 0x020)
14825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14827 #else
14828 # define ISLOWER(c) \
14829 (('a' <= (c) && (c) <= 'i') \
14830 || ('j' <= (c) && (c) <= 'r') \
14831 || ('s' <= (c) && (c) <= 'z'))
14832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14833 #endif
14834
14835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14836 int
14837 main ()
14838 {
14839 int i;
14840 for (i = 0; i < 256; i++)
14841 if (XOR (islower (i), ISLOWER (i))
14842 || toupper (i) != TOUPPER (i))
14843 return 2;
14844 return 0;
14845 }
14846 _ACEOF
14847 if ac_fn_c_try_run "$LINENO"; then :
14848
14849 else
14850 ac_cv_header_stdc=no
14851 fi
14852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14853 conftest.$ac_objext conftest.beam conftest.$ac_ext
14854 fi
14855
14856 fi
14857 fi
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14859 $as_echo "$ac_cv_header_stdc" >&6; }
14860 if test $ac_cv_header_stdc = yes; then
14861
14862 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14863
14864 fi
14865
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14867 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14868 if ${ac_cv_header_time+:} false; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873 #include <sys/types.h>
14874 #include <sys/time.h>
14875 #include <time.h>
14876
14877 int
14878 main ()
14879 {
14880 if ((struct tm *) 0)
14881 return 0;
14882 ;
14883 return 0;
14884 }
14885 _ACEOF
14886 if ac_fn_c_try_compile "$LINENO"; then :
14887 ac_cv_header_time=yes
14888 else
14889 ac_cv_header_time=no
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 fi
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14894 $as_echo "$ac_cv_header_time" >&6; }
14895 if test $ac_cv_header_time = yes; then
14896
14897 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14898
14899 fi
14900
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14902 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14903 if ${gcc_cv_header_string+:} false; then :
14904 $as_echo_n "(cached) " >&6
14905 else
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <string.h>
14909 #include <strings.h>
14910 int
14911 main ()
14912 {
14913
14914 ;
14915 return 0;
14916 }
14917 _ACEOF
14918 if ac_fn_c_try_compile "$LINENO"; then :
14919 gcc_cv_header_string=yes
14920 else
14921 gcc_cv_header_string=no
14922 fi
14923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 fi
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14926 $as_echo "$gcc_cv_header_string" >&6; }
14927 if test $gcc_cv_header_string = yes; then
14928
14929 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14930
14931 fi
14932
14933 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14934 do :
14935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14938 cat >>confdefs.h <<_ACEOF
14939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14940 _ACEOF
14941
14942 fi
14943
14944 done
14945
14946
14947 XPCFLAGS=""
14948 case "$host" in
14949 *-*-rtems*)
14950 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14951 ;;
14952 nvptx*-*-* | amdgcn*-*-*)
14953 # NVPTX does not support Pthreads, has its own code replacement.
14954 libgomp_use_pthreads=no
14955 # NVPTX is an accelerator-only target
14956 libgomp_offloaded_only=yes
14957 ;;
14958 *)
14959 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14960 # In case the pthread.h system header is not found, this test will fail.
14961 CFLAGS="$CFLAGS -pthread"
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14964 #include <pthread.h>
14965 void *g(void *d) { return NULL; }
14966 int
14967 main ()
14968 {
14969 pthread_t t; pthread_create(&t,NULL,g,NULL);
14970 ;
14971 return 0;
14972 }
14973 _ACEOF
14974 if ac_fn_c_try_link "$LINENO"; then :
14975 XPCFLAGS=" -Wc,-pthread"
14976 else
14977 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980 #include <pthread.h>
14981 void *g(void *d) { return NULL; }
14982 int
14983 main ()
14984 {
14985 pthread_t t; pthread_create(&t,NULL,g,NULL);
14986 ;
14987 return 0;
14988 }
14989 _ACEOF
14990 if ac_fn_c_try_link "$LINENO"; then :
14991
14992 else
14993 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
14994 fi
14995 rm -f core conftest.err conftest.$ac_objext \
14996 conftest$ac_exeext conftest.$ac_ext
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext \
14999 conftest$ac_exeext conftest.$ac_ext
15000 esac
15001
15002 if test x$libgomp_use_pthreads != xno; then
15003
15004 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15005
15006 fi
15007
15008 if test x$libgomp_offloaded_only = xyes; then
15009
15010 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15011
15012 fi
15013
15014 if test "x$enable_offload_defaulted" = xyes; then
15015
15016 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
15017
15018 fi
15019
15020 # The cast to long int works around a bug in the HP C Compiler
15021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15023 # This bug is HP SR number 8606223364.
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15025 $as_echo_n "checking size of void *... " >&6; }
15026 if ${ac_cv_sizeof_void_p+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15030
15031 else
15032 if test "$ac_cv_type_void_p" = yes; then
15033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15035 as_fn_error 77 "cannot compute sizeof (void *)
15036 See \`config.log' for more details" "$LINENO" 5; }
15037 else
15038 ac_cv_sizeof_void_p=0
15039 fi
15040 fi
15041
15042 fi
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15044 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15045
15046
15047
15048 cat >>confdefs.h <<_ACEOF
15049 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15050 _ACEOF
15051
15052
15053
15054 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15055 #
15056 # Copyright (C) 2014-2022 Free Software Foundation, Inc.
15057 #
15058 # Contributed by Mentor Embedded.
15059 #
15060 # This file is part of the GNU Offloading and Multi Processing Library
15061 # (libgomp).
15062 #
15063 # Libgomp is free software; you can redistribute it and/or modify it
15064 # under the terms of the GNU General Public License as published by
15065 # the Free Software Foundation; either version 3, or (at your option)
15066 # any later version.
15067 #
15068 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15069 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15070 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15071 # more details.
15072 #
15073 # Under Section 7 of GPL version 3, you are granted additional
15074 # permissions described in the GCC Runtime Library Exception, version
15075 # 3.1, as published by the Free Software Foundation.
15076 #
15077 # You should have received a copy of the GNU General Public License and
15078 # a copy of the GCC Runtime Library Exception along with this program;
15079 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15080 # <http://www.gnu.org/licenses/>.
15081
15082 plugin_support=yes
15083 DL_LIBS=
15084
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15086 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15087 if ${ac_cv_lib_dl_dlsym+:} false; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-ldl $LIBS"
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15094
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char dlsym ();
15102 int
15103 main ()
15104 {
15105 return dlsym ();
15106 ;
15107 return 0;
15108 }
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"; then :
15111 ac_cv_lib_dl_dlsym=yes
15112 else
15113 ac_cv_lib_dl_dlsym=no
15114 fi
15115 rm -f core conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15118 fi
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15120 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15121 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15122 DL_LIBS=-ldl
15123 else
15124 plugin_support=no
15125 fi
15126
15127 if test x"$plugin_support" = xyes; then
15128
15129 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15130
15131 elif test "x${enable_offload_targets-no}" != xno; then
15132 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15133 fi
15134
15135
15136
15137 for ac_header in $ac_header_list
15138 do :
15139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15140 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15141 "
15142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15143 cat >>confdefs.h <<_ACEOF
15144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15145 _ACEOF
15146
15147 fi
15148
15149 done
15150
15151
15152
15153
15154
15155
15156
15157 for ac_func in $ac_func_list
15158 do :
15159 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15160 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15161 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15162 cat >>confdefs.h <<_ACEOF
15163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15164 _ACEOF
15165
15166 fi
15167 done
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184 PLUGIN_NVPTX=0
15185 PLUGIN_GCN=0
15186 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15187 # plugins, and configure to find the corresponding offload compilers.
15188 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15189 offload_plugins=
15190 offload_targets=
15191
15192
15193 offload_additional_options=
15194 offload_additional_lib_paths=
15195
15196
15197 if test x"$enable_offload_targets" != x; then
15198 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15199 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15200 tgt=`echo $tgt | sed 's/=.*//'`
15201 tgt_plugin=
15202 case $tgt in
15203 *-intelmic-* | *-intelmicemul-*)
15204 tgt_plugin=intelmic
15205 ;;
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 # Get target configury.
16493 . ${srcdir}/configure.tgt
16494 CFLAGS="$save_CFLAGS $XCFLAGS"
16495
16496 # Check for __sync_val_compare_and_swap, but only after the target has
16497 # had a chance to set XCFLAGS.
16498
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16500 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16501 if ${libgomp_cv_have_sync_builtins+:} false; then :
16502 $as_echo_n "(cached) " >&6
16503 else
16504
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16507
16508 int
16509 main ()
16510 {
16511 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16512 ;
16513 return 0;
16514 }
16515 _ACEOF
16516 if ac_fn_c_try_link "$LINENO"; then :
16517 libgomp_cv_have_sync_builtins=yes
16518 else
16519 libgomp_cv_have_sync_builtins=no
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16523 fi
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16525 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16526 if test $libgomp_cv_have_sync_builtins = yes; then
16527
16528 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16529
16530 fi
16531
16532 XCFLAGS="$XCFLAGS$XPCFLAGS"
16533
16534 # Add CET specific flags if CET is enabled
16535 # Check whether --enable-cet was given.
16536 if test "${enable_cet+set}" = set; then :
16537 enableval=$enable_cet;
16538 case "$enableval" in
16539 yes|no|auto) ;;
16540 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16541 esac
16542
16543 else
16544 enable_cet=auto
16545 fi
16546
16547
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16549 $as_echo_n "checking for CET support... " >&6; }
16550
16551 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16552 case "$host" in
16553 i[34567]86-*-linux* | x86_64-*-linux*)
16554 case "$enable_cet" in
16555 auto)
16556 # Check if target supports multi-byte NOPs
16557 # and if compiler and assembler support CET insn.
16558 cet_save_CFLAGS="$CFLAGS"
16559 CFLAGS="$CFLAGS -fcf-protection"
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16562
16563 int
16564 main ()
16565 {
16566
16567 #if !defined(__SSE2__)
16568 #error target does not support multi-byte NOPs
16569 #else
16570 asm ("setssbsy");
16571 #endif
16572
16573 ;
16574 return 0;
16575 }
16576 _ACEOF
16577 if ac_fn_c_try_compile "$LINENO"; then :
16578 enable_cet=yes
16579 else
16580 enable_cet=no
16581 fi
16582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 CFLAGS="$cet_save_CFLAGS"
16584 ;;
16585 yes)
16586 # Check if assembler supports CET.
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16589
16590 int
16591 main ()
16592 {
16593 asm ("setssbsy");
16594 ;
16595 return 0;
16596 }
16597 _ACEOF
16598 if ac_fn_c_try_compile "$LINENO"; then :
16599
16600 else
16601 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16602 fi
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604 ;;
16605 esac
16606 ;;
16607 *)
16608 enable_cet=no
16609 ;;
16610 esac
16611 if test x$enable_cet = xyes; then
16612 CET_FLAGS="-fcf-protection -mshstk"
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16614 $as_echo "yes" >&6; }
16615 else
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16617 $as_echo "no" >&6; }
16618 fi
16619
16620 XCFLAGS="$XCFLAGS $CET_FLAGS"
16621 FCFLAGS="$FCFLAGS $CET_FLAGS"
16622
16623
16624
16625
16626
16627 # Conditionalize the makefile for this target machine.
16628 tmake_file_=
16629 for f in ${tmake_file}
16630 do
16631 if test -f ${srcdir}/config/$f
16632 then
16633 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
16634 fi
16635 done
16636 tmake_file="${tmake_file_}"
16637
16638
16639 # Cleanup and exit.
16640 CFLAGS="$save_CFLAGS"
16641 cat >confcache <<\_ACEOF
16642 # This file is a shell script that caches the results of configure
16643 # tests run on this system so they can be shared between configure
16644 # scripts and configure runs, see configure's option --config-cache.
16645 # It is not useful on other systems. If it contains results you don't
16646 # want to keep, you may remove or edit it.
16647 #
16648 # config.status only pays attention to the cache file if you give it
16649 # the --recheck option to rerun configure.
16650 #
16651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16653 # following values.
16654
16655 _ACEOF
16656
16657 # The following way of writing the cache mishandles newlines in values,
16658 # but we know of no workaround that is simple, portable, and efficient.
16659 # So, we kill variables containing newlines.
16660 # Ultrix sh set writes to stderr and can't be redirected directly,
16661 # and sets the high bit in the cache file unless we assign to the vars.
16662 (
16663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16664 eval ac_val=\$$ac_var
16665 case $ac_val in #(
16666 *${as_nl}*)
16667 case $ac_var in #(
16668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16670 esac
16671 case $ac_var in #(
16672 _ | IFS | as_nl) ;; #(
16673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16674 *) { eval $ac_var=; unset $ac_var;} ;;
16675 esac ;;
16676 esac
16677 done
16678
16679 (set) 2>&1 |
16680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16681 *${as_nl}ac_space=\ *)
16682 # `set' does not quote correctly, so add quotes: double-quote
16683 # substitution turns \\\\ into \\, and sed turns \\ into \.
16684 sed -n \
16685 "s/'/'\\\\''/g;
16686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16687 ;; #(
16688 *)
16689 # `set' quotes correctly as required by POSIX, so do not add quotes.
16690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16691 ;;
16692 esac |
16693 sort
16694 ) |
16695 sed '
16696 /^ac_cv_env_/b end
16697 t clear
16698 :clear
16699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16700 t end
16701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16702 :end' >>confcache
16703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16704 if test -w "$cache_file"; then
16705 if test "x$cache_file" != "x/dev/null"; then
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16707 $as_echo "$as_me: updating cache $cache_file" >&6;}
16708 if test ! -f "$cache_file" || test -h "$cache_file"; then
16709 cat confcache >"$cache_file"
16710 else
16711 case $cache_file in #(
16712 */* | ?:*)
16713 mv -f confcache "$cache_file"$$ &&
16714 mv -f "$cache_file"$$ "$cache_file" ;; #(
16715 *)
16716 mv -f confcache "$cache_file" ;;
16717 esac
16718 fi
16719 fi
16720 else
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16722 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16723 fi
16724 fi
16725 rm -f confcache
16726
16727 if test ${multilib} = yes; then
16728 multilib_arg="--enable-multilib"
16729 else
16730 multilib_arg=
16731 fi
16732
16733 # Set up the set of libraries that we need to link against for libgomp.
16734 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16735 # which will force linkage against -lpthread (or equivalent for the system).
16736 # That's not 100% ideal, but about the best we can do easily.
16737 if test $enable_shared = yes; then
16738 link_gomp="-lgomp %{static: $LIBS}"
16739 else
16740 link_gomp="-lgomp $LIBS"
16741 fi
16742
16743
16744 if test "$ac_cv_fc_compiler_gnu" = yes; then
16745 USE_FORTRAN_TRUE=
16746 USE_FORTRAN_FALSE='#'
16747 else
16748 USE_FORTRAN_TRUE='#'
16749 USE_FORTRAN_FALSE=
16750 fi
16751
16752
16753 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16754 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16755 # the underscore here and update the PREREQ. If it doesn't, then we'll
16756 # need to copy this macro to our acinclude.m4.
16757 save_CFLAGS="$CFLAGS"
16758 for i in $config_path; do
16759 if test -f $srcdir/config/$i/omp-lock.h; then
16760 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16761 break
16762 fi
16763 done
16764
16765 if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16766
16767 fi
16768
16769
16770 if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16771
16772 else
16773 OMP_INT128_SIZE=0
16774 fi
16775
16776
16777 if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16778
16779 else
16780 OMP_DEPEND_KIND=0
16781 fi
16782
16783
16784 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16785
16786 else
16787 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16788 fi
16789
16790
16791 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16792
16793 fi
16794
16795
16796 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16797
16798 fi
16799
16800
16801 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16802
16803 fi
16804
16805
16806 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16807
16808 else
16809 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16810 fi
16811
16812
16813 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16814
16815 fi
16816
16817
16818 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16819
16820 fi
16821
16822
16823 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16824
16825 fi
16826
16827
16828
16829 # If the lock fits in an integer, then arrange for Fortran to use that
16830 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16831 # Except that we don't have a way at present to multi-lib the installed
16832 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16833 # actual target.
16834 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16835 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16836 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16837 OMP_LOCK_KIND=8
16838 fi
16839 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16840 OMP_NEST_LOCK_KIND=8
16841 fi
16842 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16843 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16844 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16845 OMP_LOCK_25_KIND=8
16846 fi
16847 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16848 OMP_NEST_LOCK_25_KIND=8
16849 fi
16850 if test "$ac_cv_fc_compiler_gnu" = yes; then
16851 if test $OMP_DEPEND_KIND -eq 16; then
16852 if test $OMP_INT128_SIZE -ne 16; then
16853 as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16854 fi
16855 else
16856 if test $OMP_DEPEND_KIND -ne 8; then
16857 as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16858 fi
16859 fi
16860 fi
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876 CFLAGS="$save_CFLAGS"
16877
16878 # Determine what GCC version number to use in filesystem paths.
16879
16880 get_gcc_base_ver="cat"
16881
16882 # Check whether --with-gcc-major-version-only was given.
16883 if test "${with_gcc_major_version_only+set}" = set; then :
16884 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16885 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16886 fi
16887
16888 fi
16889
16890
16891
16892
16893 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16894
16895 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16896
16897 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16898
16899 ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
16900
16901 cat >confcache <<\_ACEOF
16902 # This file is a shell script that caches the results of configure
16903 # tests run on this system so they can be shared between configure
16904 # scripts and configure runs, see configure's option --config-cache.
16905 # It is not useful on other systems. If it contains results you don't
16906 # want to keep, you may remove or edit it.
16907 #
16908 # config.status only pays attention to the cache file if you give it
16909 # the --recheck option to rerun configure.
16910 #
16911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16913 # following values.
16914
16915 _ACEOF
16916
16917 # The following way of writing the cache mishandles newlines in values,
16918 # but we know of no workaround that is simple, portable, and efficient.
16919 # So, we kill variables containing newlines.
16920 # Ultrix sh set writes to stderr and can't be redirected directly,
16921 # and sets the high bit in the cache file unless we assign to the vars.
16922 (
16923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16924 eval ac_val=\$$ac_var
16925 case $ac_val in #(
16926 *${as_nl}*)
16927 case $ac_var in #(
16928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16930 esac
16931 case $ac_var in #(
16932 _ | IFS | as_nl) ;; #(
16933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16934 *) { eval $ac_var=; unset $ac_var;} ;;
16935 esac ;;
16936 esac
16937 done
16938
16939 (set) 2>&1 |
16940 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16941 *${as_nl}ac_space=\ *)
16942 # `set' does not quote correctly, so add quotes: double-quote
16943 # substitution turns \\\\ into \\, and sed turns \\ into \.
16944 sed -n \
16945 "s/'/'\\\\''/g;
16946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16947 ;; #(
16948 *)
16949 # `set' quotes correctly as required by POSIX, so do not add quotes.
16950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16951 ;;
16952 esac |
16953 sort
16954 ) |
16955 sed '
16956 /^ac_cv_env_/b end
16957 t clear
16958 :clear
16959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16960 t end
16961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16962 :end' >>confcache
16963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16964 if test -w "$cache_file"; then
16965 if test "x$cache_file" != "x/dev/null"; then
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16967 $as_echo "$as_me: updating cache $cache_file" >&6;}
16968 if test ! -f "$cache_file" || test -h "$cache_file"; then
16969 cat confcache >"$cache_file"
16970 else
16971 case $cache_file in #(
16972 */* | ?:*)
16973 mv -f confcache "$cache_file"$$ &&
16974 mv -f "$cache_file"$$ "$cache_file" ;; #(
16975 *)
16976 mv -f confcache "$cache_file" ;;
16977 esac
16978 fi
16979 fi
16980 else
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16982 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16983 fi
16984 fi
16985 rm -f confcache
16986
16987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16988 # Let make expand exec_prefix.
16989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16990
16991 DEFS=-DHAVE_CONFIG_H
16992
16993 ac_libobjs=
16994 ac_ltlibobjs=
16995 U=
16996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16997 # 1. Remove the extension, and $U if already installed.
16998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16999 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17001 # will be set to the directory where LIBOBJS objects are built.
17002 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17003 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17004 done
17005 LIBOBJS=$ac_libobjs
17006
17007 LTLIBOBJS=$ac_ltlibobjs
17008
17009
17010 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17011 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17013 fi
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17015 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17016 if test -n "$am_sleep_pid"; then
17017 # Hide warnings about reused PIDs.
17018 wait $am_sleep_pid 2>/dev/null
17019 fi
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17021 $as_echo "done" >&6; }
17022 if test -n "$EXEEXT"; then
17023 am__EXEEXT_TRUE=
17024 am__EXEEXT_FALSE='#'
17025 else
17026 am__EXEEXT_TRUE='#'
17027 am__EXEEXT_FALSE=
17028 fi
17029
17030 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17031 as_fn_error $? "conditional \"AMDEP\" was never defined.
17032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17033 fi
17034 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17035 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17037 fi
17038 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17039 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17041 fi
17042 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17043 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17045 fi
17046 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17047 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17049 fi
17050 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17051 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17053 fi
17054 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17055 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17057 fi
17058 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17059 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17061 fi
17062 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17063 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17065 fi
17066 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17067 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17069 fi
17070
17071 : "${CONFIG_STATUS=./config.status}"
17072 ac_write_fail=0
17073 ac_clean_files_save=$ac_clean_files
17074 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17076 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17077 as_write_fail=0
17078 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17079 #! $SHELL
17080 # Generated by $as_me.
17081 # Run this file to recreate the current configuration.
17082 # Compiler output produced by configure, useful for debugging
17083 # configure, is in config.log if it exists.
17084
17085 debug=false
17086 ac_cs_recheck=false
17087 ac_cs_silent=false
17088
17089 SHELL=\${CONFIG_SHELL-$SHELL}
17090 export SHELL
17091 _ASEOF
17092 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17093 ## -------------------- ##
17094 ## M4sh Initialization. ##
17095 ## -------------------- ##
17096
17097 # Be more Bourne compatible
17098 DUALCASE=1; export DUALCASE # for MKS sh
17099 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17100 emulate sh
17101 NULLCMD=:
17102 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17103 # is contrary to our usage. Disable this feature.
17104 alias -g '${1+"$@"}'='"$@"'
17105 setopt NO_GLOB_SUBST
17106 else
17107 case `(set -o) 2>/dev/null` in #(
17108 *posix*) :
17109 set -o posix ;; #(
17110 *) :
17111 ;;
17112 esac
17113 fi
17114
17115
17116 as_nl='
17117 '
17118 export as_nl
17119 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17120 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17123 # Prefer a ksh shell builtin over an external printf program on Solaris,
17124 # but without wasting forks for bash or zsh.
17125 if test -z "$BASH_VERSION$ZSH_VERSION" \
17126 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17127 as_echo='print -r --'
17128 as_echo_n='print -rn --'
17129 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17130 as_echo='printf %s\n'
17131 as_echo_n='printf %s'
17132 else
17133 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17134 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17135 as_echo_n='/usr/ucb/echo -n'
17136 else
17137 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17138 as_echo_n_body='eval
17139 arg=$1;
17140 case $arg in #(
17141 *"$as_nl"*)
17142 expr "X$arg" : "X\\(.*\\)$as_nl";
17143 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17144 esac;
17145 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17146 '
17147 export as_echo_n_body
17148 as_echo_n='sh -c $as_echo_n_body as_echo'
17149 fi
17150 export as_echo_body
17151 as_echo='sh -c $as_echo_body as_echo'
17152 fi
17153
17154 # The user is always right.
17155 if test "${PATH_SEPARATOR+set}" != set; then
17156 PATH_SEPARATOR=:
17157 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17158 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17159 PATH_SEPARATOR=';'
17160 }
17161 fi
17162
17163
17164 # IFS
17165 # We need space, tab and new line, in precisely that order. Quoting is
17166 # there to prevent editors from complaining about space-tab.
17167 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17168 # splitting by setting IFS to empty value.)
17169 IFS=" "" $as_nl"
17170
17171 # Find who we are. Look in the path if we contain no directory separator.
17172 as_myself=
17173 case $0 in #((
17174 *[\\/]* ) as_myself=$0 ;;
17175 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17176 for as_dir in $PATH
17177 do
17178 IFS=$as_save_IFS
17179 test -z "$as_dir" && as_dir=.
17180 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17181 done
17182 IFS=$as_save_IFS
17183
17184 ;;
17185 esac
17186 # We did not find ourselves, most probably we were run as `sh COMMAND'
17187 # in which case we are not to be found in the path.
17188 if test "x$as_myself" = x; then
17189 as_myself=$0
17190 fi
17191 if test ! -f "$as_myself"; then
17192 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17193 exit 1
17194 fi
17195
17196 # Unset variables that we do not need and which cause bugs (e.g. in
17197 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17198 # suppresses any "Segmentation fault" message there. '((' could
17199 # trigger a bug in pdksh 5.2.14.
17200 for as_var in BASH_ENV ENV MAIL MAILPATH
17201 do eval test x\${$as_var+set} = xset \
17202 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17203 done
17204 PS1='$ '
17205 PS2='> '
17206 PS4='+ '
17207
17208 # NLS nuisances.
17209 LC_ALL=C
17210 export LC_ALL
17211 LANGUAGE=C
17212 export LANGUAGE
17213
17214 # CDPATH.
17215 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17216
17217
17218 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17219 # ----------------------------------------
17220 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17221 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17222 # script with STATUS, using 1 if that was 0.
17223 as_fn_error ()
17224 {
17225 as_status=$1; test $as_status -eq 0 && as_status=1
17226 if test "$4"; then
17227 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17228 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17229 fi
17230 $as_echo "$as_me: error: $2" >&2
17231 as_fn_exit $as_status
17232 } # as_fn_error
17233
17234
17235 # as_fn_set_status STATUS
17236 # -----------------------
17237 # Set $? to STATUS, without forking.
17238 as_fn_set_status ()
17239 {
17240 return $1
17241 } # as_fn_set_status
17242
17243 # as_fn_exit STATUS
17244 # -----------------
17245 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17246 as_fn_exit ()
17247 {
17248 set +e
17249 as_fn_set_status $1
17250 exit $1
17251 } # as_fn_exit
17252
17253 # as_fn_unset VAR
17254 # ---------------
17255 # Portably unset VAR.
17256 as_fn_unset ()
17257 {
17258 { eval $1=; unset $1;}
17259 }
17260 as_unset=as_fn_unset
17261 # as_fn_append VAR VALUE
17262 # ----------------------
17263 # Append the text in VALUE to the end of the definition contained in VAR. Take
17264 # advantage of any shell optimizations that allow amortized linear growth over
17265 # repeated appends, instead of the typical quadratic growth present in naive
17266 # implementations.
17267 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17268 eval 'as_fn_append ()
17269 {
17270 eval $1+=\$2
17271 }'
17272 else
17273 as_fn_append ()
17274 {
17275 eval $1=\$$1\$2
17276 }
17277 fi # as_fn_append
17278
17279 # as_fn_arith ARG...
17280 # ------------------
17281 # Perform arithmetic evaluation on the ARGs, and store the result in the
17282 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17283 # must be portable across $(()) and expr.
17284 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17285 eval 'as_fn_arith ()
17286 {
17287 as_val=$(( $* ))
17288 }'
17289 else
17290 as_fn_arith ()
17291 {
17292 as_val=`expr "$@" || test $? -eq 1`
17293 }
17294 fi # as_fn_arith
17295
17296
17297 if expr a : '\(a\)' >/dev/null 2>&1 &&
17298 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17299 as_expr=expr
17300 else
17301 as_expr=false
17302 fi
17303
17304 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17305 as_basename=basename
17306 else
17307 as_basename=false
17308 fi
17309
17310 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17311 as_dirname=dirname
17312 else
17313 as_dirname=false
17314 fi
17315
17316 as_me=`$as_basename -- "$0" ||
17317 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17318 X"$0" : 'X\(//\)$' \| \
17319 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17320 $as_echo X/"$0" |
17321 sed '/^.*\/\([^/][^/]*\)\/*$/{
17322 s//\1/
17323 q
17324 }
17325 /^X\/\(\/\/\)$/{
17326 s//\1/
17327 q
17328 }
17329 /^X\/\(\/\).*/{
17330 s//\1/
17331 q
17332 }
17333 s/.*/./; q'`
17334
17335 # Avoid depending upon Character Ranges.
17336 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17337 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17338 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17339 as_cr_digits='0123456789'
17340 as_cr_alnum=$as_cr_Letters$as_cr_digits
17341
17342 ECHO_C= ECHO_N= ECHO_T=
17343 case `echo -n x` in #(((((
17344 -n*)
17345 case `echo 'xy\c'` in
17346 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17347 xy) ECHO_C='\c';;
17348 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17349 ECHO_T=' ';;
17350 esac;;
17351 *)
17352 ECHO_N='-n';;
17353 esac
17354
17355 rm -f conf$$ conf$$.exe conf$$.file
17356 if test -d conf$$.dir; then
17357 rm -f conf$$.dir/conf$$.file
17358 else
17359 rm -f conf$$.dir
17360 mkdir conf$$.dir 2>/dev/null
17361 fi
17362 if (echo >conf$$.file) 2>/dev/null; then
17363 if ln -s conf$$.file conf$$ 2>/dev/null; then
17364 as_ln_s='ln -s'
17365 # ... but there are two gotchas:
17366 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17367 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17368 # In both cases, we have to default to `cp -pR'.
17369 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17370 as_ln_s='cp -pR'
17371 elif ln conf$$.file conf$$ 2>/dev/null; then
17372 as_ln_s=ln
17373 else
17374 as_ln_s='cp -pR'
17375 fi
17376 else
17377 as_ln_s='cp -pR'
17378 fi
17379 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17380 rmdir conf$$.dir 2>/dev/null
17381
17382
17383 # as_fn_mkdir_p
17384 # -------------
17385 # Create "$as_dir" as a directory, including parents if necessary.
17386 as_fn_mkdir_p ()
17387 {
17388
17389 case $as_dir in #(
17390 -*) as_dir=./$as_dir;;
17391 esac
17392 test -d "$as_dir" || eval $as_mkdir_p || {
17393 as_dirs=
17394 while :; do
17395 case $as_dir in #(
17396 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17397 *) as_qdir=$as_dir;;
17398 esac
17399 as_dirs="'$as_qdir' $as_dirs"
17400 as_dir=`$as_dirname -- "$as_dir" ||
17401 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17402 X"$as_dir" : 'X\(//\)[^/]' \| \
17403 X"$as_dir" : 'X\(//\)$' \| \
17404 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17405 $as_echo X"$as_dir" |
17406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17407 s//\1/
17408 q
17409 }
17410 /^X\(\/\/\)[^/].*/{
17411 s//\1/
17412 q
17413 }
17414 /^X\(\/\/\)$/{
17415 s//\1/
17416 q
17417 }
17418 /^X\(\/\).*/{
17419 s//\1/
17420 q
17421 }
17422 s/.*/./; q'`
17423 test -d "$as_dir" && break
17424 done
17425 test -z "$as_dirs" || eval "mkdir $as_dirs"
17426 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17427
17428
17429 } # as_fn_mkdir_p
17430 if mkdir -p . 2>/dev/null; then
17431 as_mkdir_p='mkdir -p "$as_dir"'
17432 else
17433 test -d ./-p && rmdir ./-p
17434 as_mkdir_p=false
17435 fi
17436
17437
17438 # as_fn_executable_p FILE
17439 # -----------------------
17440 # Test if FILE is an executable regular file.
17441 as_fn_executable_p ()
17442 {
17443 test -f "$1" && test -x "$1"
17444 } # as_fn_executable_p
17445 as_test_x='test -x'
17446 as_executable_p=as_fn_executable_p
17447
17448 # Sed expression to map a string onto a valid CPP name.
17449 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17450
17451 # Sed expression to map a string onto a valid variable name.
17452 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17453
17454
17455 exec 6>&1
17456 ## ----------------------------------- ##
17457 ## Main body of $CONFIG_STATUS script. ##
17458 ## ----------------------------------- ##
17459 _ASEOF
17460 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17461
17462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17463 # Save the log message, to keep $0 and so on meaningful, and to
17464 # report actual input values of CONFIG_FILES etc. instead of their
17465 # values after options handling.
17466 ac_log="
17467 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17468 generated by GNU Autoconf 2.69. Invocation command line was
17469
17470 CONFIG_FILES = $CONFIG_FILES
17471 CONFIG_HEADERS = $CONFIG_HEADERS
17472 CONFIG_LINKS = $CONFIG_LINKS
17473 CONFIG_COMMANDS = $CONFIG_COMMANDS
17474 $ $0 $@
17475
17476 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17477 "
17478
17479 _ACEOF
17480
17481 case $ac_config_files in *"
17482 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17483 esac
17484
17485 case $ac_config_headers in *"
17486 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17487 esac
17488
17489
17490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17491 # Files that config.status was made for.
17492 config_files="$ac_config_files"
17493 config_headers="$ac_config_headers"
17494 config_commands="$ac_config_commands"
17495
17496 _ACEOF
17497
17498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17499 ac_cs_usage="\
17500 \`$as_me' instantiates files and other configuration actions
17501 from templates according to the current configuration. Unless the files
17502 and actions are specified as TAGs, all are instantiated by default.
17503
17504 Usage: $0 [OPTION]... [TAG]...
17505
17506 -h, --help print this help, then exit
17507 -V, --version print version number and configuration settings, then exit
17508 --config print configuration, then exit
17509 -q, --quiet, --silent
17510 do not print progress messages
17511 -d, --debug don't remove temporary files
17512 --recheck update $as_me by reconfiguring in the same conditions
17513 --file=FILE[:TEMPLATE]
17514 instantiate the configuration file FILE
17515 --header=FILE[:TEMPLATE]
17516 instantiate the configuration header FILE
17517
17518 Configuration files:
17519 $config_files
17520
17521 Configuration headers:
17522 $config_headers
17523
17524 Configuration commands:
17525 $config_commands
17526
17527 Report bugs to the package provider.
17528 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17529 General help using GNU software: <http://www.gnu.org/gethelp/>."
17530
17531 _ACEOF
17532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17533 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17534 ac_cs_version="\\
17535 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17536 configured by $0, generated by GNU Autoconf 2.69,
17537 with options \\"\$ac_cs_config\\"
17538
17539 Copyright (C) 2012 Free Software Foundation, Inc.
17540 This config.status script is free software; the Free Software Foundation
17541 gives unlimited permission to copy, distribute and modify it."
17542
17543 ac_pwd='$ac_pwd'
17544 srcdir='$srcdir'
17545 INSTALL='$INSTALL'
17546 MKDIR_P='$MKDIR_P'
17547 AWK='$AWK'
17548 test -n "\$AWK" || AWK=awk
17549 _ACEOF
17550
17551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17552 # The default lists apply if the user does not specify any file.
17553 ac_need_defaults=:
17554 while test $# != 0
17555 do
17556 case $1 in
17557 --*=?*)
17558 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17559 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17560 ac_shift=:
17561 ;;
17562 --*=)
17563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17564 ac_optarg=
17565 ac_shift=:
17566 ;;
17567 *)
17568 ac_option=$1
17569 ac_optarg=$2
17570 ac_shift=shift
17571 ;;
17572 esac
17573
17574 case $ac_option in
17575 # Handling of the options.
17576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17577 ac_cs_recheck=: ;;
17578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17579 $as_echo "$ac_cs_version"; exit ;;
17580 --config | --confi | --conf | --con | --co | --c )
17581 $as_echo "$ac_cs_config"; exit ;;
17582 --debug | --debu | --deb | --de | --d | -d )
17583 debug=: ;;
17584 --file | --fil | --fi | --f )
17585 $ac_shift
17586 case $ac_optarg in
17587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17588 '') as_fn_error $? "missing file argument" ;;
17589 esac
17590 as_fn_append CONFIG_FILES " '$ac_optarg'"
17591 ac_need_defaults=false;;
17592 --header | --heade | --head | --hea )
17593 $ac_shift
17594 case $ac_optarg in
17595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17596 esac
17597 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17598 ac_need_defaults=false;;
17599 --he | --h)
17600 # Conflict between --help and --header
17601 as_fn_error $? "ambiguous option: \`$1'
17602 Try \`$0 --help' for more information.";;
17603 --help | --hel | -h )
17604 $as_echo "$ac_cs_usage"; exit ;;
17605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17606 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17607 ac_cs_silent=: ;;
17608
17609 # This is an error.
17610 -*) as_fn_error $? "unrecognized option: \`$1'
17611 Try \`$0 --help' for more information." ;;
17612
17613 *) as_fn_append ac_config_targets " $1"
17614 ac_need_defaults=false ;;
17615
17616 esac
17617 shift
17618 done
17619
17620 ac_configure_extra_args=
17621
17622 if $ac_cs_silent; then
17623 exec 6>/dev/null
17624 ac_configure_extra_args="$ac_configure_extra_args --silent"
17625 fi
17626
17627 _ACEOF
17628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17629 if \$ac_cs_recheck; then
17630 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17631 shift
17632 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17633 CONFIG_SHELL='$SHELL'
17634 export CONFIG_SHELL
17635 exec "\$@"
17636 fi
17637
17638 _ACEOF
17639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17640 exec 5>>config.log
17641 {
17642 echo
17643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17644 ## Running $as_me. ##
17645 _ASBOX
17646 $as_echo "$ac_log"
17647 } >&5
17648
17649 _ACEOF
17650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17651 #
17652 # INIT-COMMANDS
17653 #
17654
17655 srcdir="$srcdir"
17656 host="$host"
17657 target="$target"
17658 with_multisubdir="$with_multisubdir"
17659 with_multisrctop="$with_multisrctop"
17660 with_target_subdir="$with_target_subdir"
17661 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17662 multi_basedir="$multi_basedir"
17663 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17664 CC="$CC"
17665 CXX="$CXX"
17666 GFORTRAN="$GFORTRAN"
17667 GDC="$GDC"
17668 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17669
17670
17671 # The HP-UX ksh and POSIX shell print the target directory to stdout
17672 # if CDPATH is set.
17673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17674
17675 sed_quote_subst='$sed_quote_subst'
17676 double_quote_subst='$double_quote_subst'
17677 delay_variable_subst='$delay_variable_subst'
17678 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17679 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17680 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17681 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17682 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17683 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17684 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17685 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17686 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17687 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17688 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17689 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17690 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17691 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17692 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17693 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17694 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17695 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17696 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17697 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17698 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17699 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17700 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17701 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17702 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17703 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17704 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17705 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17706 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17707 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17708 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17709 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17710 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17711 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17712 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17713 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17714 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17715 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17716 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17717 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17718 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17719 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17720 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17721 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17722 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17723 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17724 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17725 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17726 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"`'
17727 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17728 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17729 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17730 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17731 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17732 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17733 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17734 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17735 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17736 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17737 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17738 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17739 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17740 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17741 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17742 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17743 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17744 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17745 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17746 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17747 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17748 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17749 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17750 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17751 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17752 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17753 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17754 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17755 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17756 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17757 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17758 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17759 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17760 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17761 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17762 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17763 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17764 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17765 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17766 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17767 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17768 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17769 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17770 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17771 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17772 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17773 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17774 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17775 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17776 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17777 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17778 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17779 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17780 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17781 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17782 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17783 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17784 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17785 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17786 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17787 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17788 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17789 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17790 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17791 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17792 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17793 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17794 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17795 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17796 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17797 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17798 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17799 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17800 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17801 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17802 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17803 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17804 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17805 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17806 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17807 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17808 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17809 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17810 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17811 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17812 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17813 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17814 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17815 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17816 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17817 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17818 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17819 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17820 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17821 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17822 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17823 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17824 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17825 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17826 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17827 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17828 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17829 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17830 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17831 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17832 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17833 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17834 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17835 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17836 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17837 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17838 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17839 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17840 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17841 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17842 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17843 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17844 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17845 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17846 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17847 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17848 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17849 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17850 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17851 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17852 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17853
17854 LTCC='$LTCC'
17855 LTCFLAGS='$LTCFLAGS'
17856 compiler='$compiler_DEFAULT'
17857
17858 # A function that is used when there is no print builtin or printf.
17859 func_fallback_echo ()
17860 {
17861 eval 'cat <<_LTECHO_EOF
17862 \$1
17863 _LTECHO_EOF'
17864 }
17865
17866 # Quote evaled strings.
17867 for var in SHELL \
17868 ECHO \
17869 SED \
17870 GREP \
17871 EGREP \
17872 FGREP \
17873 LD \
17874 NM \
17875 LN_S \
17876 lt_SP2NL \
17877 lt_NL2SP \
17878 reload_flag \
17879 OBJDUMP \
17880 deplibs_check_method \
17881 file_magic_cmd \
17882 AR \
17883 AR_FLAGS \
17884 STRIP \
17885 RANLIB \
17886 CC \
17887 CFLAGS \
17888 compiler \
17889 lt_cv_sys_global_symbol_pipe \
17890 lt_cv_sys_global_symbol_to_cdecl \
17891 lt_cv_sys_global_symbol_to_c_name_address \
17892 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17893 lt_prog_compiler_no_builtin_flag \
17894 lt_prog_compiler_wl \
17895 lt_prog_compiler_pic \
17896 lt_prog_compiler_static \
17897 lt_cv_prog_compiler_c_o \
17898 need_locks \
17899 DSYMUTIL \
17900 NMEDIT \
17901 LIPO \
17902 OTOOL \
17903 OTOOL64 \
17904 shrext_cmds \
17905 export_dynamic_flag_spec \
17906 whole_archive_flag_spec \
17907 compiler_needs_object \
17908 with_gnu_ld \
17909 allow_undefined_flag \
17910 no_undefined_flag \
17911 hardcode_libdir_flag_spec \
17912 hardcode_libdir_flag_spec_ld \
17913 hardcode_libdir_separator \
17914 fix_srcfile_path \
17915 exclude_expsyms \
17916 include_expsyms \
17917 file_list_spec \
17918 variables_saved_for_relink \
17919 libname_spec \
17920 library_names_spec \
17921 soname_spec \
17922 install_override_mode \
17923 finish_eval \
17924 old_striplib \
17925 striplib \
17926 compiler_lib_search_dirs \
17927 predep_objects \
17928 postdep_objects \
17929 predeps \
17930 postdeps \
17931 compiler_lib_search_path \
17932 LD_FC \
17933 reload_flag_FC \
17934 compiler_FC \
17935 lt_prog_compiler_no_builtin_flag_FC \
17936 lt_prog_compiler_wl_FC \
17937 lt_prog_compiler_pic_FC \
17938 lt_prog_compiler_static_FC \
17939 lt_cv_prog_compiler_c_o_FC \
17940 export_dynamic_flag_spec_FC \
17941 whole_archive_flag_spec_FC \
17942 compiler_needs_object_FC \
17943 with_gnu_ld_FC \
17944 allow_undefined_flag_FC \
17945 no_undefined_flag_FC \
17946 hardcode_libdir_flag_spec_FC \
17947 hardcode_libdir_flag_spec_ld_FC \
17948 hardcode_libdir_separator_FC \
17949 fix_srcfile_path_FC \
17950 exclude_expsyms_FC \
17951 include_expsyms_FC \
17952 file_list_spec_FC \
17953 compiler_lib_search_dirs_FC \
17954 predep_objects_FC \
17955 postdep_objects_FC \
17956 predeps_FC \
17957 postdeps_FC \
17958 compiler_lib_search_path_FC; do
17959 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17960 *[\\\\\\\`\\"\\\$]*)
17961 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17962 ;;
17963 *)
17964 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17965 ;;
17966 esac
17967 done
17968
17969 # Double-quote double-evaled strings.
17970 for var in reload_cmds \
17971 old_postinstall_cmds \
17972 old_postuninstall_cmds \
17973 old_archive_cmds \
17974 extract_expsyms_cmds \
17975 old_archive_from_new_cmds \
17976 old_archive_from_expsyms_cmds \
17977 archive_cmds \
17978 archive_expsym_cmds \
17979 module_cmds \
17980 module_expsym_cmds \
17981 export_symbols_cmds \
17982 prelink_cmds \
17983 postinstall_cmds \
17984 postuninstall_cmds \
17985 finish_cmds \
17986 sys_lib_search_path_spec \
17987 sys_lib_dlsearch_path_spec \
17988 reload_cmds_FC \
17989 old_archive_cmds_FC \
17990 old_archive_from_new_cmds_FC \
17991 old_archive_from_expsyms_cmds_FC \
17992 archive_cmds_FC \
17993 archive_expsym_cmds_FC \
17994 module_cmds_FC \
17995 module_expsym_cmds_FC \
17996 export_symbols_cmds_FC \
17997 prelink_cmds_FC; do
17998 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17999 *[\\\\\\\`\\"\\\$]*)
18000 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18001 ;;
18002 *)
18003 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18004 ;;
18005 esac
18006 done
18007
18008 ac_aux_dir='$ac_aux_dir'
18009 xsi_shell='$xsi_shell'
18010 lt_shell_append='$lt_shell_append'
18011
18012 # See if we are running on zsh, and set the options which allow our
18013 # commands through without removal of \ escapes INIT.
18014 if test -n "\${ZSH_VERSION+set}" ; then
18015 setopt NO_GLOB_SUBST
18016 fi
18017
18018
18019 PACKAGE='$PACKAGE'
18020 VERSION='$VERSION'
18021 TIMESTAMP='$TIMESTAMP'
18022 RM='$RM'
18023 ofile='$ofile'
18024
18025
18026
18027
18028
18029
18030 _ACEOF
18031
18032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18033
18034 # Handling of arguments.
18035 for ac_config_target in $ac_config_targets
18036 do
18037 case $ac_config_target in
18038 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18039 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18040 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18041 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18042 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18043 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18044 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18045 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18046 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18047 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18048 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18049 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18050 "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18051
18052 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18053 esac
18054 done
18055
18056
18057 # If the user did not use the arguments to specify the items to instantiate,
18058 # then the envvar interface is used. Set only those that are not.
18059 # We use the long form for the default assignment because of an extremely
18060 # bizarre bug on SunOS 4.1.3.
18061 if $ac_need_defaults; then
18062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18065 fi
18066
18067 # Have a temporary directory for convenience. Make it in the build tree
18068 # simply because there is no reason against having it here, and in addition,
18069 # creating and moving files from /tmp can sometimes cause problems.
18070 # Hook for its removal unless debugging.
18071 # Note that there is a small window in which the directory will not be cleaned:
18072 # after its creation but before its name has been assigned to `$tmp'.
18073 $debug ||
18074 {
18075 tmp= ac_tmp=
18076 trap 'exit_status=$?
18077 : "${ac_tmp:=$tmp}"
18078 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18079 ' 0
18080 trap 'as_fn_exit 1' 1 2 13 15
18081 }
18082 # Create a (secure) tmp directory for tmp files.
18083
18084 {
18085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18086 test -d "$tmp"
18087 } ||
18088 {
18089 tmp=./conf$$-$RANDOM
18090 (umask 077 && mkdir "$tmp")
18091 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18092 ac_tmp=$tmp
18093
18094 # Set up the scripts for CONFIG_FILES section.
18095 # No need to generate them if there are no CONFIG_FILES.
18096 # This happens for instance with `./config.status config.h'.
18097 if test -n "$CONFIG_FILES"; then
18098
18099
18100 ac_cr=`echo X | tr X '\015'`
18101 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18102 # But we know of no other shell where ac_cr would be empty at this
18103 # point, so we can use a bashism as a fallback.
18104 if test "x$ac_cr" = x; then
18105 eval ac_cr=\$\'\\r\'
18106 fi
18107 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18108 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18109 ac_cs_awk_cr='\\r'
18110 else
18111 ac_cs_awk_cr=$ac_cr
18112 fi
18113
18114 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18115 _ACEOF
18116
18117
18118 {
18119 echo "cat >conf$$subs.awk <<_ACEOF" &&
18120 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18121 echo "_ACEOF"
18122 } >conf$$subs.sh ||
18123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18124 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18125 ac_delim='%!_!# '
18126 for ac_last_try in false false false false false :; do
18127 . ./conf$$subs.sh ||
18128 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18129
18130 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18131 if test $ac_delim_n = $ac_delim_num; then
18132 break
18133 elif $ac_last_try; then
18134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18135 else
18136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18137 fi
18138 done
18139 rm -f conf$$subs.sh
18140
18141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18142 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18143 _ACEOF
18144 sed -n '
18145 h
18146 s/^/S["/; s/!.*/"]=/
18147 p
18148 g
18149 s/^[^!]*!//
18150 :repl
18151 t repl
18152 s/'"$ac_delim"'$//
18153 t delim
18154 :nl
18155 h
18156 s/\(.\{148\}\)..*/\1/
18157 t more1
18158 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18159 p
18160 n
18161 b repl
18162 :more1
18163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18164 p
18165 g
18166 s/.\{148\}//
18167 t nl
18168 :delim
18169 h
18170 s/\(.\{148\}\)..*/\1/
18171 t more2
18172 s/["\\]/\\&/g; s/^/"/; s/$/"/
18173 p
18174 b
18175 :more2
18176 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18177 p
18178 g
18179 s/.\{148\}//
18180 t delim
18181 ' <conf$$subs.awk | sed '
18182 /^[^""]/{
18183 N
18184 s/\n//
18185 }
18186 ' >>$CONFIG_STATUS || ac_write_fail=1
18187 rm -f conf$$subs.awk
18188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18189 _ACAWK
18190 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18191 for (key in S) S_is_set[key] = 1
18192 FS = "\a"
18193
18194 }
18195 {
18196 line = $ 0
18197 nfields = split(line, field, "@")
18198 substed = 0
18199 len = length(field[1])
18200 for (i = 2; i < nfields; i++) {
18201 key = field[i]
18202 keylen = length(key)
18203 if (S_is_set[key]) {
18204 value = S[key]
18205 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18206 len += length(value) + length(field[++i])
18207 substed = 1
18208 } else
18209 len += 1 + keylen
18210 }
18211
18212 print line
18213 }
18214
18215 _ACAWK
18216 _ACEOF
18217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18218 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18219 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18220 else
18221 cat
18222 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18223 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18224 _ACEOF
18225
18226 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18227 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18228 # trailing colons and then remove the whole line if VPATH becomes empty
18229 # (actually we leave an empty line to preserve line numbers).
18230 if test "x$srcdir" = x.; then
18231 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18232 h
18233 s///
18234 s/^/:/
18235 s/[ ]*$/:/
18236 s/:\$(srcdir):/:/g
18237 s/:\${srcdir}:/:/g
18238 s/:@srcdir@:/:/g
18239 s/^:*//
18240 s/:*$//
18241 x
18242 s/\(=[ ]*\).*/\1/
18243 G
18244 s/\n//
18245 s/^[^=]*=[ ]*$//
18246 }'
18247 fi
18248
18249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18250 fi # test -n "$CONFIG_FILES"
18251
18252 # Set up the scripts for CONFIG_HEADERS section.
18253 # No need to generate them if there are no CONFIG_HEADERS.
18254 # This happens for instance with `./config.status Makefile'.
18255 if test -n "$CONFIG_HEADERS"; then
18256 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18257 BEGIN {
18258 _ACEOF
18259
18260 # Transform confdefs.h into an awk script `defines.awk', embedded as
18261 # here-document in config.status, that substitutes the proper values into
18262 # config.h.in to produce config.h.
18263
18264 # Create a delimiter string that does not exist in confdefs.h, to ease
18265 # handling of long lines.
18266 ac_delim='%!_!# '
18267 for ac_last_try in false false :; do
18268 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18269 if test -z "$ac_tt"; then
18270 break
18271 elif $ac_last_try; then
18272 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18273 else
18274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18275 fi
18276 done
18277
18278 # For the awk script, D is an array of macro values keyed by name,
18279 # likewise P contains macro parameters if any. Preserve backslash
18280 # newline sequences.
18281
18282 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18283 sed -n '
18284 s/.\{148\}/&'"$ac_delim"'/g
18285 t rset
18286 :rset
18287 s/^[ ]*#[ ]*define[ ][ ]*/ /
18288 t def
18289 d
18290 :def
18291 s/\\$//
18292 t bsnl
18293 s/["\\]/\\&/g
18294 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18295 D["\1"]=" \3"/p
18296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18297 d
18298 :bsnl
18299 s/["\\]/\\&/g
18300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18301 D["\1"]=" \3\\\\\\n"\\/p
18302 t cont
18303 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18304 t cont
18305 d
18306 :cont
18307 n
18308 s/.\{148\}/&'"$ac_delim"'/g
18309 t clear
18310 :clear
18311 s/\\$//
18312 t bsnlc
18313 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18314 d
18315 :bsnlc
18316 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18317 b cont
18318 ' <confdefs.h | sed '
18319 s/'"$ac_delim"'/"\\\
18320 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18321
18322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18323 for (key in D) D_is_set[key] = 1
18324 FS = "\a"
18325 }
18326 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18327 line = \$ 0
18328 split(line, arg, " ")
18329 if (arg[1] == "#") {
18330 defundef = arg[2]
18331 mac1 = arg[3]
18332 } else {
18333 defundef = substr(arg[1], 2)
18334 mac1 = arg[2]
18335 }
18336 split(mac1, mac2, "(") #)
18337 macro = mac2[1]
18338 prefix = substr(line, 1, index(line, defundef) - 1)
18339 if (D_is_set[macro]) {
18340 # Preserve the white space surrounding the "#".
18341 print prefix "define", macro P[macro] D[macro]
18342 next
18343 } else {
18344 # Replace #undef with comments. This is necessary, for example,
18345 # in the case of _POSIX_SOURCE, which is predefined and required
18346 # on some systems where configure will not decide to define it.
18347 if (defundef == "undef") {
18348 print "/*", prefix defundef, macro, "*/"
18349 next
18350 }
18351 }
18352 }
18353 { print }
18354 _ACAWK
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18357 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18358 fi # test -n "$CONFIG_HEADERS"
18359
18360
18361 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18362 shift
18363 for ac_tag
18364 do
18365 case $ac_tag in
18366 :[FHLC]) ac_mode=$ac_tag; continue;;
18367 esac
18368 case $ac_mode$ac_tag in
18369 :[FHL]*:*);;
18370 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18371 :[FH]-) ac_tag=-:-;;
18372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18373 esac
18374 ac_save_IFS=$IFS
18375 IFS=:
18376 set x $ac_tag
18377 IFS=$ac_save_IFS
18378 shift
18379 ac_file=$1
18380 shift
18381
18382 case $ac_mode in
18383 :L) ac_source=$1;;
18384 :[FH])
18385 ac_file_inputs=
18386 for ac_f
18387 do
18388 case $ac_f in
18389 -) ac_f="$ac_tmp/stdin";;
18390 *) # Look for the file first in the build tree, then in the source tree
18391 # (if the path is not absolute). The absolute path cannot be DOS-style,
18392 # because $ac_f cannot contain `:'.
18393 test -f "$ac_f" ||
18394 case $ac_f in
18395 [\\/$]*) false;;
18396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18397 esac ||
18398 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18399 esac
18400 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18401 as_fn_append ac_file_inputs " '$ac_f'"
18402 done
18403
18404 # Let's still pretend it is `configure' which instantiates (i.e., don't
18405 # use $as_me), people would be surprised to read:
18406 # /* config.h. Generated by config.status. */
18407 configure_input='Generated from '`
18408 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18409 `' by configure.'
18410 if test x"$ac_file" != x-; then
18411 configure_input="$ac_file. $configure_input"
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18413 $as_echo "$as_me: creating $ac_file" >&6;}
18414 fi
18415 # Neutralize special characters interpreted by sed in replacement strings.
18416 case $configure_input in #(
18417 *\&* | *\|* | *\\* )
18418 ac_sed_conf_input=`$as_echo "$configure_input" |
18419 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18420 *) ac_sed_conf_input=$configure_input;;
18421 esac
18422
18423 case $ac_tag in
18424 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18426 esac
18427 ;;
18428 esac
18429
18430 ac_dir=`$as_dirname -- "$ac_file" ||
18431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18432 X"$ac_file" : 'X\(//\)[^/]' \| \
18433 X"$ac_file" : 'X\(//\)$' \| \
18434 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18435 $as_echo X"$ac_file" |
18436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18437 s//\1/
18438 q
18439 }
18440 /^X\(\/\/\)[^/].*/{
18441 s//\1/
18442 q
18443 }
18444 /^X\(\/\/\)$/{
18445 s//\1/
18446 q
18447 }
18448 /^X\(\/\).*/{
18449 s//\1/
18450 q
18451 }
18452 s/.*/./; q'`
18453 as_dir="$ac_dir"; as_fn_mkdir_p
18454 ac_builddir=.
18455
18456 case "$ac_dir" in
18457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18458 *)
18459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18460 # A ".." for each directory in $ac_dir_suffix.
18461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18462 case $ac_top_builddir_sub in
18463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18465 esac ;;
18466 esac
18467 ac_abs_top_builddir=$ac_pwd
18468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18469 # for backward compatibility:
18470 ac_top_builddir=$ac_top_build_prefix
18471
18472 case $srcdir in
18473 .) # We are building in place.
18474 ac_srcdir=.
18475 ac_top_srcdir=$ac_top_builddir_sub
18476 ac_abs_top_srcdir=$ac_pwd ;;
18477 [\\/]* | ?:[\\/]* ) # Absolute name.
18478 ac_srcdir=$srcdir$ac_dir_suffix;
18479 ac_top_srcdir=$srcdir
18480 ac_abs_top_srcdir=$srcdir ;;
18481 *) # Relative name.
18482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18483 ac_top_srcdir=$ac_top_build_prefix$srcdir
18484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18485 esac
18486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18487
18488
18489 case $ac_mode in
18490 :F)
18491 #
18492 # CONFIG_FILE
18493 #
18494
18495 case $INSTALL in
18496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18497 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18498 esac
18499 ac_MKDIR_P=$MKDIR_P
18500 case $MKDIR_P in
18501 [\\/$]* | ?:[\\/]* ) ;;
18502 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18503 esac
18504 _ACEOF
18505
18506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18507 # If the template does not know about datarootdir, expand it.
18508 # FIXME: This hack should be removed a few years after 2.60.
18509 ac_datarootdir_hack=; ac_datarootdir_seen=
18510 ac_sed_dataroot='
18511 /datarootdir/ {
18512 p
18513 q
18514 }
18515 /@datadir@/p
18516 /@docdir@/p
18517 /@infodir@/p
18518 /@localedir@/p
18519 /@mandir@/p'
18520 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18521 *datarootdir*) ac_datarootdir_seen=yes;;
18522 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18524 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18525 _ACEOF
18526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18527 ac_datarootdir_hack='
18528 s&@datadir@&$datadir&g
18529 s&@docdir@&$docdir&g
18530 s&@infodir@&$infodir&g
18531 s&@localedir@&$localedir&g
18532 s&@mandir@&$mandir&g
18533 s&\\\${datarootdir}&$datarootdir&g' ;;
18534 esac
18535 _ACEOF
18536
18537 # Neutralize VPATH when `$srcdir' = `.'.
18538 # Shell code in configure.ac might set extrasub.
18539 # FIXME: do we really want to maintain this feature?
18540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18541 ac_sed_extra="$ac_vpsub
18542 $extrasub
18543 _ACEOF
18544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18545 :t
18546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18547 s|@configure_input@|$ac_sed_conf_input|;t t
18548 s&@top_builddir@&$ac_top_builddir_sub&;t t
18549 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18550 s&@srcdir@&$ac_srcdir&;t t
18551 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18552 s&@top_srcdir@&$ac_top_srcdir&;t t
18553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18554 s&@builddir@&$ac_builddir&;t t
18555 s&@abs_builddir@&$ac_abs_builddir&;t t
18556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18557 s&@INSTALL@&$ac_INSTALL&;t t
18558 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18559 $ac_datarootdir_hack
18560 "
18561 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18562 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18563
18564 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18565 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18566 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18567 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18569 which seems to be undefined. Please make sure it is defined" >&5
18570 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18571 which seems to be undefined. Please make sure it is defined" >&2;}
18572
18573 rm -f "$ac_tmp/stdin"
18574 case $ac_file in
18575 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18576 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18577 esac \
18578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18579 ;;
18580 :H)
18581 #
18582 # CONFIG_HEADER
18583 #
18584 if test x"$ac_file" != x-; then
18585 {
18586 $as_echo "/* $configure_input */" \
18587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18588 } >"$ac_tmp/config.h" \
18589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18590 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18592 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18593 else
18594 rm -f "$ac_file"
18595 mv "$ac_tmp/config.h" "$ac_file" \
18596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18597 fi
18598 else
18599 $as_echo "/* $configure_input */" \
18600 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18601 || as_fn_error $? "could not create -" "$LINENO" 5
18602 fi
18603 # Compute "$ac_file"'s index in $config_headers.
18604 _am_arg="$ac_file"
18605 _am_stamp_count=1
18606 for _am_header in $config_headers :; do
18607 case $_am_header in
18608 $_am_arg | $_am_arg:* )
18609 break ;;
18610 * )
18611 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18612 esac
18613 done
18614 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18615 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18616 X"$_am_arg" : 'X\(//\)[^/]' \| \
18617 X"$_am_arg" : 'X\(//\)$' \| \
18618 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18619 $as_echo X"$_am_arg" |
18620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18621 s//\1/
18622 q
18623 }
18624 /^X\(\/\/\)[^/].*/{
18625 s//\1/
18626 q
18627 }
18628 /^X\(\/\/\)$/{
18629 s//\1/
18630 q
18631 }
18632 /^X\(\/\).*/{
18633 s//\1/
18634 q
18635 }
18636 s/.*/./; q'`/stamp-h$_am_stamp_count
18637 ;;
18638
18639 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18640 $as_echo "$as_me: executing $ac_file commands" >&6;}
18641 ;;
18642 esac
18643
18644
18645 case $ac_file$ac_mode in
18646 "default-1":C)
18647 # Only add multilib support code if we just rebuilt the top-level
18648 # Makefile.
18649 case " $CONFIG_FILES " in
18650 *" Makefile "*)
18651 ac_file=Makefile . ${multi_basedir}/config-ml.in
18652 ;;
18653 esac ;;
18654 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18655 # Older Autoconf quotes --file arguments for eval, but not when files
18656 # are listed without --file. Let's play safe and only enable the eval
18657 # if we detect the quoting.
18658 case $CONFIG_FILES in
18659 *\'*) eval set x "$CONFIG_FILES" ;;
18660 *) set x $CONFIG_FILES ;;
18661 esac
18662 shift
18663 for mf
18664 do
18665 # Strip MF so we end up with the name of the file.
18666 mf=`echo "$mf" | sed -e 's/:.*$//'`
18667 # Check whether this is an Automake generated Makefile or not.
18668 # We used to match only the files named 'Makefile.in', but
18669 # some people rename them; so instead we look at the file content.
18670 # Grep'ing the first line is not enough: some people post-process
18671 # each Makefile.in and add a new line on top of each file to say so.
18672 # Grep'ing the whole file is not good either: AIX grep has a line
18673 # limit of 2048, but all sed's we know have understand at least 4000.
18674 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18675 dirpart=`$as_dirname -- "$mf" ||
18676 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18677 X"$mf" : 'X\(//\)[^/]' \| \
18678 X"$mf" : 'X\(//\)$' \| \
18679 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18680 $as_echo X"$mf" |
18681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18682 s//\1/
18683 q
18684 }
18685 /^X\(\/\/\)[^/].*/{
18686 s//\1/
18687 q
18688 }
18689 /^X\(\/\/\)$/{
18690 s//\1/
18691 q
18692 }
18693 /^X\(\/\).*/{
18694 s//\1/
18695 q
18696 }
18697 s/.*/./; q'`
18698 else
18699 continue
18700 fi
18701 # Extract the definition of DEPDIR, am__include, and am__quote
18702 # from the Makefile without running 'make'.
18703 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18704 test -z "$DEPDIR" && continue
18705 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18706 test -z "$am__include" && continue
18707 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18708 # Find all dependency output files, they are included files with
18709 # $(DEPDIR) in their names. We invoke sed twice because it is the
18710 # simplest approach to changing $(DEPDIR) to its actual value in the
18711 # expansion.
18712 for file in `sed -n "
18713 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18714 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18715 # Make sure the directory exists.
18716 test -f "$dirpart/$file" && continue
18717 fdir=`$as_dirname -- "$file" ||
18718 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18719 X"$file" : 'X\(//\)[^/]' \| \
18720 X"$file" : 'X\(//\)$' \| \
18721 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18722 $as_echo X"$file" |
18723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18724 s//\1/
18725 q
18726 }
18727 /^X\(\/\/\)[^/].*/{
18728 s//\1/
18729 q
18730 }
18731 /^X\(\/\/\)$/{
18732 s//\1/
18733 q
18734 }
18735 /^X\(\/\).*/{
18736 s//\1/
18737 q
18738 }
18739 s/.*/./; q'`
18740 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18741 # echo "creating $dirpart/$file"
18742 echo '# dummy' > "$dirpart/$file"
18743 done
18744 done
18745 }
18746 ;;
18747 "libtool":C)
18748
18749 # See if we are running on zsh, and set the options which allow our
18750 # commands through without removal of \ escapes.
18751 if test -n "${ZSH_VERSION+set}" ; then
18752 setopt NO_GLOB_SUBST
18753 fi
18754
18755 cfgfile="${ofile}T"
18756 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18757 $RM "$cfgfile"
18758
18759 cat <<_LT_EOF >> "$cfgfile"
18760 #! $SHELL
18761
18762 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18763 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18764 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18765 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18766 #
18767 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18768 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18769 # Written by Gordon Matzigkeit, 1996
18770 #
18771 # This file is part of GNU Libtool.
18772 #
18773 # GNU Libtool is free software; you can redistribute it and/or
18774 # modify it under the terms of the GNU General Public License as
18775 # published by the Free Software Foundation; either version 2 of
18776 # the License, or (at your option) any later version.
18777 #
18778 # As a special exception to the GNU General Public License,
18779 # if you distribute this file as part of a program or library that
18780 # is built using GNU Libtool, you may include this file under the
18781 # same distribution terms that you use for the rest of that program.
18782 #
18783 # GNU Libtool is distributed in the hope that it will be useful,
18784 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18785 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18786 # GNU General Public License for more details.
18787 #
18788 # You should have received a copy of the GNU General Public License
18789 # along with GNU Libtool; see the file COPYING. If not, a copy
18790 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18791 # obtained by writing to the Free Software Foundation, Inc.,
18792 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18793
18794
18795 # The names of the tagged configurations supported by this script.
18796 available_tags="FC "
18797
18798 # ### BEGIN LIBTOOL CONFIG
18799
18800 # Which release of libtool.m4 was used?
18801 macro_version=$macro_version
18802 macro_revision=$macro_revision
18803
18804 # Whether or not to build shared libraries.
18805 build_libtool_libs=$enable_shared
18806
18807 # Whether or not to build static libraries.
18808 build_old_libs=$enable_static
18809
18810 # What type of objects to build.
18811 pic_mode=$pic_mode
18812
18813 # Whether or not to optimize for fast installation.
18814 fast_install=$enable_fast_install
18815
18816 # Shell to use when invoking shell scripts.
18817 SHELL=$lt_SHELL
18818
18819 # An echo program that protects backslashes.
18820 ECHO=$lt_ECHO
18821
18822 # The host system.
18823 host_alias=$host_alias
18824 host=$host
18825 host_os=$host_os
18826
18827 # The build system.
18828 build_alias=$build_alias
18829 build=$build
18830 build_os=$build_os
18831
18832 # A sed program that does not truncate output.
18833 SED=$lt_SED
18834
18835 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18836 Xsed="\$SED -e 1s/^X//"
18837
18838 # A grep program that handles long lines.
18839 GREP=$lt_GREP
18840
18841 # An ERE matcher.
18842 EGREP=$lt_EGREP
18843
18844 # A literal string matcher.
18845 FGREP=$lt_FGREP
18846
18847 # A BSD- or MS-compatible name lister.
18848 NM=$lt_NM
18849
18850 # Whether we need soft or hard links.
18851 LN_S=$lt_LN_S
18852
18853 # What is the maximum length of a command?
18854 max_cmd_len=$max_cmd_len
18855
18856 # Object file suffix (normally "o").
18857 objext=$ac_objext
18858
18859 # Executable file suffix (normally "").
18860 exeext=$exeext
18861
18862 # whether the shell understands "unset".
18863 lt_unset=$lt_unset
18864
18865 # turn spaces into newlines.
18866 SP2NL=$lt_lt_SP2NL
18867
18868 # turn newlines into spaces.
18869 NL2SP=$lt_lt_NL2SP
18870
18871 # An object symbol dumper.
18872 OBJDUMP=$lt_OBJDUMP
18873
18874 # Method to check whether dependent libraries are shared objects.
18875 deplibs_check_method=$lt_deplibs_check_method
18876
18877 # Command to use when deplibs_check_method == "file_magic".
18878 file_magic_cmd=$lt_file_magic_cmd
18879
18880 # The archiver.
18881 AR=$lt_AR
18882 AR_FLAGS=$lt_AR_FLAGS
18883
18884 # A symbol stripping program.
18885 STRIP=$lt_STRIP
18886
18887 # Commands used to install an old-style archive.
18888 RANLIB=$lt_RANLIB
18889 old_postinstall_cmds=$lt_old_postinstall_cmds
18890 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18891
18892 # Whether to use a lock for old archive extraction.
18893 lock_old_archive_extraction=$lock_old_archive_extraction
18894
18895 # A C compiler.
18896 LTCC=$lt_CC
18897
18898 # LTCC compiler flags.
18899 LTCFLAGS=$lt_CFLAGS
18900
18901 # Take the output of nm and produce a listing of raw symbols and C names.
18902 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18903
18904 # Transform the output of nm in a proper C declaration.
18905 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18906
18907 # Transform the output of nm in a C name address pair.
18908 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18909
18910 # Transform the output of nm in a C name address pair when lib prefix is needed.
18911 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18912
18913 # The name of the directory that contains temporary libtool files.
18914 objdir=$objdir
18915
18916 # Used to examine libraries when file_magic_cmd begins with "file".
18917 MAGIC_CMD=$MAGIC_CMD
18918
18919 # Must we lock files when doing compilation?
18920 need_locks=$lt_need_locks
18921
18922 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18923 DSYMUTIL=$lt_DSYMUTIL
18924
18925 # Tool to change global to local symbols on Mac OS X.
18926 NMEDIT=$lt_NMEDIT
18927
18928 # Tool to manipulate fat objects and archives on Mac OS X.
18929 LIPO=$lt_LIPO
18930
18931 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18932 OTOOL=$lt_OTOOL
18933
18934 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18935 OTOOL64=$lt_OTOOL64
18936
18937 # Old archive suffix (normally "a").
18938 libext=$libext
18939
18940 # Shared library suffix (normally ".so").
18941 shrext_cmds=$lt_shrext_cmds
18942
18943 # The commands to extract the exported symbol list from a shared archive.
18944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18945
18946 # Variables whose values should be saved in libtool wrapper scripts and
18947 # restored at link time.
18948 variables_saved_for_relink=$lt_variables_saved_for_relink
18949
18950 # Do we need the "lib" prefix for modules?
18951 need_lib_prefix=$need_lib_prefix
18952
18953 # Do we need a version for libraries?
18954 need_version=$need_version
18955
18956 # Library versioning type.
18957 version_type=$version_type
18958
18959 # Shared library runtime path variable.
18960 runpath_var=$runpath_var
18961
18962 # Shared library path variable.
18963 shlibpath_var=$shlibpath_var
18964
18965 # Is shlibpath searched before the hard-coded library search path?
18966 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18967
18968 # Format of library name prefix.
18969 libname_spec=$lt_libname_spec
18970
18971 # List of archive names. First name is the real one, the rest are links.
18972 # The last name is the one that the linker finds with -lNAME
18973 library_names_spec=$lt_library_names_spec
18974
18975 # The coded name of the library, if different from the real name.
18976 soname_spec=$lt_soname_spec
18977
18978 # Permission mode override for installation of shared libraries.
18979 install_override_mode=$lt_install_override_mode
18980
18981 # Command to use after installation of a shared archive.
18982 postinstall_cmds=$lt_postinstall_cmds
18983
18984 # Command to use after uninstallation of a shared archive.
18985 postuninstall_cmds=$lt_postuninstall_cmds
18986
18987 # Commands used to finish a libtool library installation in a directory.
18988 finish_cmds=$lt_finish_cmds
18989
18990 # As "finish_cmds", except a single script fragment to be evaled but
18991 # not shown.
18992 finish_eval=$lt_finish_eval
18993
18994 # Whether we should hardcode library paths into libraries.
18995 hardcode_into_libs=$hardcode_into_libs
18996
18997 # Compile-time system search path for libraries.
18998 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18999
19000 # Run-time system search path for libraries.
19001 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19002
19003 # Whether dlopen is supported.
19004 dlopen_support=$enable_dlopen
19005
19006 # Whether dlopen of programs is supported.
19007 dlopen_self=$enable_dlopen_self
19008
19009 # Whether dlopen of statically linked programs is supported.
19010 dlopen_self_static=$enable_dlopen_self_static
19011
19012 # Commands to strip libraries.
19013 old_striplib=$lt_old_striplib
19014 striplib=$lt_striplib
19015
19016
19017 # The linker used to build libraries.
19018 LD=$lt_LD
19019
19020 # How to create reloadable object files.
19021 reload_flag=$lt_reload_flag
19022 reload_cmds=$lt_reload_cmds
19023
19024 # Commands used to build an old-style archive.
19025 old_archive_cmds=$lt_old_archive_cmds
19026
19027 # A language specific compiler.
19028 CC=$lt_compiler
19029
19030 # Is the compiler the GNU compiler?
19031 with_gcc=$GCC
19032
19033 # Compiler flag to turn off builtin functions.
19034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19035
19036 # How to pass a linker flag through the compiler.
19037 wl=$lt_lt_prog_compiler_wl
19038
19039 # Additional compiler flags for building library objects.
19040 pic_flag=$lt_lt_prog_compiler_pic
19041
19042 # Compiler flag to prevent dynamic linking.
19043 link_static_flag=$lt_lt_prog_compiler_static
19044
19045 # Does compiler simultaneously support -c and -o options?
19046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19047
19048 # Whether or not to add -lc for building shared libraries.
19049 build_libtool_need_lc=$archive_cmds_need_lc
19050
19051 # Whether or not to disallow shared libs when runtime libs are static.
19052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19053
19054 # Compiler flag to allow reflexive dlopens.
19055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19056
19057 # Compiler flag to generate shared objects directly from archives.
19058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19059
19060 # Whether the compiler copes with passing no objects directly.
19061 compiler_needs_object=$lt_compiler_needs_object
19062
19063 # Create an old-style archive from a shared archive.
19064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19065
19066 # Create a temporary old-style archive to link instead of a shared archive.
19067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19068
19069 # Commands used to build a shared archive.
19070 archive_cmds=$lt_archive_cmds
19071 archive_expsym_cmds=$lt_archive_expsym_cmds
19072
19073 # Commands used to build a loadable module if different from building
19074 # a shared archive.
19075 module_cmds=$lt_module_cmds
19076 module_expsym_cmds=$lt_module_expsym_cmds
19077
19078 # Whether we are building with GNU ld or not.
19079 with_gnu_ld=$lt_with_gnu_ld
19080
19081 # Flag that allows shared libraries with undefined symbols to be built.
19082 allow_undefined_flag=$lt_allow_undefined_flag
19083
19084 # Flag that enforces no undefined symbols.
19085 no_undefined_flag=$lt_no_undefined_flag
19086
19087 # Flag to hardcode \$libdir into a binary during linking.
19088 # This must work even if \$libdir does not exist
19089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19090
19091 # If ld is used when linking, flag to hardcode \$libdir into a binary
19092 # during linking. This must work even if \$libdir does not exist.
19093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19094
19095 # Whether we need a single "-rpath" flag with a separated argument.
19096 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19097
19098 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19099 # DIR into the resulting binary.
19100 hardcode_direct=$hardcode_direct
19101
19102 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19103 # DIR into the resulting binary and the resulting library dependency is
19104 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19105 # library is relocated.
19106 hardcode_direct_absolute=$hardcode_direct_absolute
19107
19108 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19109 # into the resulting binary.
19110 hardcode_minus_L=$hardcode_minus_L
19111
19112 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19113 # into the resulting binary.
19114 hardcode_shlibpath_var=$hardcode_shlibpath_var
19115
19116 # Set to "yes" if building a shared library automatically hardcodes DIR
19117 # into the library and all subsequent libraries and executables linked
19118 # against it.
19119 hardcode_automatic=$hardcode_automatic
19120
19121 # Set to yes if linker adds runtime paths of dependent libraries
19122 # to runtime path list.
19123 inherit_rpath=$inherit_rpath
19124
19125 # Whether libtool must link a program against all its dependency libraries.
19126 link_all_deplibs=$link_all_deplibs
19127
19128 # Fix the shell variable \$srcfile for the compiler.
19129 fix_srcfile_path=$lt_fix_srcfile_path
19130
19131 # Set to "yes" if exported symbols are required.
19132 always_export_symbols=$always_export_symbols
19133
19134 # The commands to list exported symbols.
19135 export_symbols_cmds=$lt_export_symbols_cmds
19136
19137 # Symbols that should not be listed in the preloaded symbols.
19138 exclude_expsyms=$lt_exclude_expsyms
19139
19140 # Symbols that must always be exported.
19141 include_expsyms=$lt_include_expsyms
19142
19143 # Commands necessary for linking programs (against libraries) with templates.
19144 prelink_cmds=$lt_prelink_cmds
19145
19146 # Specify filename containing input files.
19147 file_list_spec=$lt_file_list_spec
19148
19149 # How to hardcode a shared library path into an executable.
19150 hardcode_action=$hardcode_action
19151
19152 # The directories searched by this compiler when creating a shared library.
19153 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19154
19155 # Dependencies to place before and after the objects being linked to
19156 # create a shared library.
19157 predep_objects=$lt_predep_objects
19158 postdep_objects=$lt_postdep_objects
19159 predeps=$lt_predeps
19160 postdeps=$lt_postdeps
19161
19162 # The library search path used internally by the compiler when linking
19163 # a shared library.
19164 compiler_lib_search_path=$lt_compiler_lib_search_path
19165
19166 # ### END LIBTOOL CONFIG
19167
19168 _LT_EOF
19169
19170 case $host_os in
19171 aix3*)
19172 cat <<\_LT_EOF >> "$cfgfile"
19173 # AIX sometimes has problems with the GCC collect2 program. For some
19174 # reason, if we set the COLLECT_NAMES environment variable, the problems
19175 # vanish in a puff of smoke.
19176 if test "X${COLLECT_NAMES+set}" != Xset; then
19177 COLLECT_NAMES=
19178 export COLLECT_NAMES
19179 fi
19180 _LT_EOF
19181 ;;
19182 esac
19183
19184
19185 ltmain="$ac_aux_dir/ltmain.sh"
19186
19187
19188 # We use sed instead of cat because bash on DJGPP gets confused if
19189 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19190 # text mode, it properly converts lines to CR/LF. This bash problem
19191 # is reportedly fixed, but why not run on old versions too?
19192 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19193 || (rm -f "$cfgfile"; exit 1)
19194
19195 case $xsi_shell in
19196 yes)
19197 cat << \_LT_EOF >> "$cfgfile"
19198
19199 # func_dirname file append nondir_replacement
19200 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19201 # otherwise set result to NONDIR_REPLACEMENT.
19202 func_dirname ()
19203 {
19204 case ${1} in
19205 */*) func_dirname_result="${1%/*}${2}" ;;
19206 * ) func_dirname_result="${3}" ;;
19207 esac
19208 }
19209
19210 # func_basename file
19211 func_basename ()
19212 {
19213 func_basename_result="${1##*/}"
19214 }
19215
19216 # func_dirname_and_basename file append nondir_replacement
19217 # perform func_basename and func_dirname in a single function
19218 # call:
19219 # dirname: Compute the dirname of FILE. If nonempty,
19220 # add APPEND to the result, otherwise set result
19221 # to NONDIR_REPLACEMENT.
19222 # value returned in "$func_dirname_result"
19223 # basename: Compute filename of FILE.
19224 # value retuned in "$func_basename_result"
19225 # Implementation must be kept synchronized with func_dirname
19226 # and func_basename. For efficiency, we do not delegate to
19227 # those functions but instead duplicate the functionality here.
19228 func_dirname_and_basename ()
19229 {
19230 case ${1} in
19231 */*) func_dirname_result="${1%/*}${2}" ;;
19232 * ) func_dirname_result="${3}" ;;
19233 esac
19234 func_basename_result="${1##*/}"
19235 }
19236
19237 # func_stripname prefix suffix name
19238 # strip PREFIX and SUFFIX off of NAME.
19239 # PREFIX and SUFFIX must not contain globbing or regex special
19240 # characters, hashes, percent signs, but SUFFIX may contain a leading
19241 # dot (in which case that matches only a dot).
19242 func_stripname ()
19243 {
19244 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19245 # positional parameters, so assign one to ordinary parameter first.
19246 func_stripname_result=${3}
19247 func_stripname_result=${func_stripname_result#"${1}"}
19248 func_stripname_result=${func_stripname_result%"${2}"}
19249 }
19250
19251 # func_opt_split
19252 func_opt_split ()
19253 {
19254 func_opt_split_opt=${1%%=*}
19255 func_opt_split_arg=${1#*=}
19256 }
19257
19258 # func_lo2o object
19259 func_lo2o ()
19260 {
19261 case ${1} in
19262 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19263 *) func_lo2o_result=${1} ;;
19264 esac
19265 }
19266
19267 # func_xform libobj-or-source
19268 func_xform ()
19269 {
19270 func_xform_result=${1%.*}.lo
19271 }
19272
19273 # func_arith arithmetic-term...
19274 func_arith ()
19275 {
19276 func_arith_result=$(( $* ))
19277 }
19278
19279 # func_len string
19280 # STRING may not start with a hyphen.
19281 func_len ()
19282 {
19283 func_len_result=${#1}
19284 }
19285
19286 _LT_EOF
19287 ;;
19288 *) # Bourne compatible functions.
19289 cat << \_LT_EOF >> "$cfgfile"
19290
19291 # func_dirname file append nondir_replacement
19292 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19293 # otherwise set result to NONDIR_REPLACEMENT.
19294 func_dirname ()
19295 {
19296 # Extract subdirectory from the argument.
19297 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19298 if test "X$func_dirname_result" = "X${1}"; then
19299 func_dirname_result="${3}"
19300 else
19301 func_dirname_result="$func_dirname_result${2}"
19302 fi
19303 }
19304
19305 # func_basename file
19306 func_basename ()
19307 {
19308 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19309 }
19310
19311
19312 # func_stripname prefix suffix name
19313 # strip PREFIX and SUFFIX off of NAME.
19314 # PREFIX and SUFFIX must not contain globbing or regex special
19315 # characters, hashes, percent signs, but SUFFIX may contain a leading
19316 # dot (in which case that matches only a dot).
19317 # func_strip_suffix prefix name
19318 func_stripname ()
19319 {
19320 case ${2} in
19321 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19322 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19323 esac
19324 }
19325
19326 # sed scripts:
19327 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19328 my_sed_long_arg='1s/^-[^=]*=//'
19329
19330 # func_opt_split
19331 func_opt_split ()
19332 {
19333 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19334 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19335 }
19336
19337 # func_lo2o object
19338 func_lo2o ()
19339 {
19340 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19341 }
19342
19343 # func_xform libobj-or-source
19344 func_xform ()
19345 {
19346 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19347 }
19348
19349 # func_arith arithmetic-term...
19350 func_arith ()
19351 {
19352 func_arith_result=`expr "$@"`
19353 }
19354
19355 # func_len string
19356 # STRING may not start with a hyphen.
19357 func_len ()
19358 {
19359 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19360 }
19361
19362 _LT_EOF
19363 esac
19364
19365 case $lt_shell_append in
19366 yes)
19367 cat << \_LT_EOF >> "$cfgfile"
19368
19369 # func_append var value
19370 # Append VALUE to the end of shell variable VAR.
19371 func_append ()
19372 {
19373 eval "$1+=\$2"
19374 }
19375 _LT_EOF
19376 ;;
19377 *)
19378 cat << \_LT_EOF >> "$cfgfile"
19379
19380 # func_append var value
19381 # Append VALUE to the end of shell variable VAR.
19382 func_append ()
19383 {
19384 eval "$1=\$$1\$2"
19385 }
19386
19387 _LT_EOF
19388 ;;
19389 esac
19390
19391
19392 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19393 || (rm -f "$cfgfile"; exit 1)
19394
19395 mv -f "$cfgfile" "$ofile" ||
19396 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19397 chmod +x "$ofile"
19398
19399
19400 cat <<_LT_EOF >> "$ofile"
19401
19402 # ### BEGIN LIBTOOL TAG CONFIG: FC
19403
19404 # The linker used to build libraries.
19405 LD=$lt_LD_FC
19406
19407 # How to create reloadable object files.
19408 reload_flag=$lt_reload_flag_FC
19409 reload_cmds=$lt_reload_cmds_FC
19410
19411 # Commands used to build an old-style archive.
19412 old_archive_cmds=$lt_old_archive_cmds_FC
19413
19414 # A language specific compiler.
19415 CC=$lt_compiler_FC
19416
19417 # Is the compiler the GNU compiler?
19418 with_gcc=$GCC_FC
19419
19420 # Compiler flag to turn off builtin functions.
19421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19422
19423 # How to pass a linker flag through the compiler.
19424 wl=$lt_lt_prog_compiler_wl_FC
19425
19426 # Additional compiler flags for building library objects.
19427 pic_flag=$lt_lt_prog_compiler_pic_FC
19428
19429 # Compiler flag to prevent dynamic linking.
19430 link_static_flag=$lt_lt_prog_compiler_static_FC
19431
19432 # Does compiler simultaneously support -c and -o options?
19433 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19434
19435 # Whether or not to add -lc for building shared libraries.
19436 build_libtool_need_lc=$archive_cmds_need_lc_FC
19437
19438 # Whether or not to disallow shared libs when runtime libs are static.
19439 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19440
19441 # Compiler flag to allow reflexive dlopens.
19442 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19443
19444 # Compiler flag to generate shared objects directly from archives.
19445 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19446
19447 # Whether the compiler copes with passing no objects directly.
19448 compiler_needs_object=$lt_compiler_needs_object_FC
19449
19450 # Create an old-style archive from a shared archive.
19451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19452
19453 # Create a temporary old-style archive to link instead of a shared archive.
19454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19455
19456 # Commands used to build a shared archive.
19457 archive_cmds=$lt_archive_cmds_FC
19458 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19459
19460 # Commands used to build a loadable module if different from building
19461 # a shared archive.
19462 module_cmds=$lt_module_cmds_FC
19463 module_expsym_cmds=$lt_module_expsym_cmds_FC
19464
19465 # Whether we are building with GNU ld or not.
19466 with_gnu_ld=$lt_with_gnu_ld_FC
19467
19468 # Flag that allows shared libraries with undefined symbols to be built.
19469 allow_undefined_flag=$lt_allow_undefined_flag_FC
19470
19471 # Flag that enforces no undefined symbols.
19472 no_undefined_flag=$lt_no_undefined_flag_FC
19473
19474 # Flag to hardcode \$libdir into a binary during linking.
19475 # This must work even if \$libdir does not exist
19476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19477
19478 # If ld is used when linking, flag to hardcode \$libdir into a binary
19479 # during linking. This must work even if \$libdir does not exist.
19480 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19481
19482 # Whether we need a single "-rpath" flag with a separated argument.
19483 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19484
19485 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19486 # DIR into the resulting binary.
19487 hardcode_direct=$hardcode_direct_FC
19488
19489 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19490 # DIR into the resulting binary and the resulting library dependency is
19491 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19492 # library is relocated.
19493 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19494
19495 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19496 # into the resulting binary.
19497 hardcode_minus_L=$hardcode_minus_L_FC
19498
19499 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19500 # into the resulting binary.
19501 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19502
19503 # Set to "yes" if building a shared library automatically hardcodes DIR
19504 # into the library and all subsequent libraries and executables linked
19505 # against it.
19506 hardcode_automatic=$hardcode_automatic_FC
19507
19508 # Set to yes if linker adds runtime paths of dependent libraries
19509 # to runtime path list.
19510 inherit_rpath=$inherit_rpath_FC
19511
19512 # Whether libtool must link a program against all its dependency libraries.
19513 link_all_deplibs=$link_all_deplibs_FC
19514
19515 # Fix the shell variable \$srcfile for the compiler.
19516 fix_srcfile_path=$lt_fix_srcfile_path_FC
19517
19518 # Set to "yes" if exported symbols are required.
19519 always_export_symbols=$always_export_symbols_FC
19520
19521 # The commands to list exported symbols.
19522 export_symbols_cmds=$lt_export_symbols_cmds_FC
19523
19524 # Symbols that should not be listed in the preloaded symbols.
19525 exclude_expsyms=$lt_exclude_expsyms_FC
19526
19527 # Symbols that must always be exported.
19528 include_expsyms=$lt_include_expsyms_FC
19529
19530 # Commands necessary for linking programs (against libraries) with templates.
19531 prelink_cmds=$lt_prelink_cmds_FC
19532
19533 # Specify filename containing input files.
19534 file_list_spec=$lt_file_list_spec_FC
19535
19536 # How to hardcode a shared library path into an executable.
19537 hardcode_action=$hardcode_action_FC
19538
19539 # The directories searched by this compiler when creating a shared library.
19540 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19541
19542 # Dependencies to place before and after the objects being linked to
19543 # create a shared library.
19544 predep_objects=$lt_predep_objects_FC
19545 postdep_objects=$lt_postdep_objects_FC
19546 predeps=$lt_predeps_FC
19547 postdeps=$lt_postdeps_FC
19548
19549 # The library search path used internally by the compiler when linking
19550 # a shared library.
19551 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19552
19553 # ### END LIBTOOL TAG CONFIG: FC
19554 _LT_EOF
19555
19556 ;;
19557
19558 esac
19559 done # for ac_tag
19560
19561
19562 as_fn_exit 0
19563 _ACEOF
19564 ac_clean_files=$ac_clean_files_save
19565
19566 test $ac_write_fail = 0 ||
19567 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19568
19569
19570 # configure is writing to config.log, and then calls config.status.
19571 # config.status does its own redirection, appending to config.log.
19572 # Unfortunately, on DOS this fails, as config.log is still kept open
19573 # by configure, so config.status won't be able to write to it; its
19574 # output is simply discarded. So we exec the FD to /dev/null,
19575 # effectively closing config.log, so it can be properly (re)opened and
19576 # appended to by config.status. When coming back to configure, we
19577 # need to make the FD available again.
19578 if test "$no_create" != yes; then
19579 ac_cs_success=:
19580 ac_config_status_args=
19581 test "$silent" = yes &&
19582 ac_config_status_args="$ac_config_status_args --quiet"
19583 exec 5>/dev/null
19584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19585 exec 5>>config.log
19586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19587 # would make configure fail if this is the last instruction.
19588 $ac_cs_success || as_fn_exit 1
19589 fi
19590 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19592 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19593 fi
19594