gcc.c (process_command): Update copyright notice dates.
[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_NEST_LOCK_25_KIND
639 OMP_LOCK_25_KIND
640 OMP_NEST_LOCK_25_ALIGN
641 OMP_NEST_LOCK_25_SIZE
642 OMP_LOCK_25_ALIGN
643 OMP_LOCK_25_SIZE
644 OMP_NEST_LOCK_KIND
645 OMP_LOCK_KIND
646 OMP_NEST_LOCK_ALIGN
647 OMP_NEST_LOCK_SIZE
648 OMP_LOCK_ALIGN
649 OMP_LOCK_SIZE
650 USE_FORTRAN_FALSE
651 USE_FORTRAN_TRUE
652 link_gomp
653 XLDFLAGS
654 XCFLAGS
655 config_path
656 CPU_COUNT
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
663 OPT_LDFLAGS
664 SECTION_LDFLAGS
665 PLUGIN_GCN_FALSE
666 PLUGIN_GCN_TRUE
667 PLUGIN_HSA_FALSE
668 PLUGIN_HSA_TRUE
669 PLUGIN_NVPTX_FALSE
670 PLUGIN_NVPTX_TRUE
671 offload_additional_lib_paths
672 offload_additional_options
673 offload_targets
674 offload_plugins
675 PLUGIN_GCN_LIBS
676 PLUGIN_GCN_LDFLAGS
677 PLUGIN_GCN_CPPFLAGS
678 PLUGIN_GCN
679 PLUGIN_HSA_LIBS
680 PLUGIN_HSA_LDFLAGS
681 PLUGIN_HSA_CPPFLAGS
682 PLUGIN_HSA
683 HSA_RUNTIME_LIB
684 HSA_RUNTIME_INCLUDE
685 PLUGIN_NVPTX_LIBS
686 PLUGIN_NVPTX_LDFLAGS
687 PLUGIN_NVPTX_CPPFLAGS
688 PLUGIN_NVPTX
689 CUDA_DRIVER_LIB
690 CUDA_DRIVER_INCLUDE
691 libtool_VERSION
692 ac_ct_FC
693 FCFLAGS
694 FC
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 enable_static
699 enable_shared
700 lt_host_flags
701 CPP
702 OTOOL64
703 OTOOL
704 LIPO
705 NMEDIT
706 DSYMUTIL
707 OBJDUMP
708 LN_S
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LD
713 FGREP
714 EGREP
715 GREP
716 SED
717 LIBTOOL
718 BUILD_INFO_FALSE
719 BUILD_INFO_TRUE
720 PERL
721 RANLIB
722 AR
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 toolexeclibdir
741 toolexecdir
742 multi_basedir
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 target_os
771 target_vendor
772 target_cpu
773 target
774 host_os
775 host_vendor
776 host_cpu
777 host
778 build_os
779 build_vendor
780 build_cpu
781 build
782 GENINSRC_FALSE
783 GENINSRC_TRUE
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 enable_version_specific_runtime_libs
826 enable_generated_files_in_srcdir
827 enable_silent_rules
828 enable_multilib
829 enable_dependency_tracking
830 enable_shared
831 enable_static
832 with_pic
833 enable_fast_install
834 with_gnu_ld
835 enable_libtool_lock
836 enable_maintainer_mode
837 with_cuda_driver
838 with_cuda_driver_include
839 with_cuda_driver_lib
840 with_hsa_runtime
841 with_hsa_runtime_include
842 with_hsa_runtime_lib
843 enable_linux_futex
844 enable_tls
845 enable_symvers
846 enable_cet
847 with_gcc_major_version_only
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CPP
853 CPPFLAGS
854 FC
855 FCFLAGS
856 LDFLAGS
857 LIBS'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 --target=TARGET configure for building compilers for TARGET [HOST]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-version-specific-runtime-libs
1478 Specify that runtime libraries should be installed
1479 in a compiler-specific directory [default=no]
1480 --enable-generated-files-in-srcdir
1481 put copies of generated files in source dir intended
1482 for creating source tarballs for users without
1483 texinfo bison or flex. [default=no]
1484 --enable-silent-rules less verbose build output (undo: "make V=1")
1485 --disable-silent-rules verbose build output (undo: "make V=0")
1486 --enable-multilib build many library versions (default)
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --enable-maintainer-mode
1497 enable make rules and dependencies not useful (and
1498 sometimes confusing) to the casual installer
1499 --enable-linux-futex use the Linux futex system call [default=default]
1500 --enable-tls Use thread-local storage [default=yes]
1501 --enable-symvers=STYLE enables symbol versioning of the shared library
1502 [default=yes]
1503 --enable-cet enable Intel CET in target libraries [default=no]
1504
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-pic try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1511 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1512 package. Equivalent to
1513 --with-cuda-driver-include=PATH/include plus
1514 --with-cuda-driver-lib=PATH/lib
1515 --with-cuda-driver-include=PATH
1516 specify directory for installed CUDA driver include
1517 files
1518 --with-cuda-driver-lib=PATH
1519 specify directory for the installed CUDA driver
1520 library
1521 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1522 package. Equivalent to
1523 --with-hsa-runtime-include=PATH/include plus
1524 --with-hsa-runtime-lib=PATH/lib
1525 --with-hsa-runtime-include=PATH
1526 specify directory for installed HSA run-time include
1527 files
1528 --with-hsa-runtime-lib=PATH
1529 specify directory for the installed HSA run-time
1530 library
1531 --with-gcc-major-version-only
1532 use only GCC major number in filesystem paths
1533
1534 Some influential environment variables:
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538 nonstandard directory <lib dir>
1539 LIBS libraries to pass to the linker, e.g. -l<library>
1540 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541 you have headers in a nonstandard directory <include dir>
1542 CPP C preprocessor
1543 FC Fortran compiler command
1544 FCFLAGS Fortran compiler flags
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to the package provider.
1550 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1551 General help using GNU software: <http://www.gnu.org/gethelp/>.
1552 _ACEOF
1553 ac_status=$?
1554 fi
1555
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559 test -d "$ac_dir" ||
1560 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 continue
1562 ac_builddir=.
1563
1564 case "$ac_dir" in
1565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *)
1567 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1568 # A ".." for each directory in $ac_dir_suffix.
1569 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1570 case $ac_top_builddir_sub in
1571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 esac ;;
1574 esac
1575 ac_abs_top_builddir=$ac_pwd
1576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir=$ac_top_build_prefix
1579
1580 case $srcdir in
1581 .) # We are building in place.
1582 ac_srcdir=.
1583 ac_top_srcdir=$ac_top_builddir_sub
1584 ac_abs_top_srcdir=$ac_pwd ;;
1585 [\\/]* | ?:[\\/]* ) # Absolute name.
1586 ac_srcdir=$srcdir$ac_dir_suffix;
1587 ac_top_srcdir=$srcdir
1588 ac_abs_top_srcdir=$srcdir ;;
1589 *) # Relative name.
1590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591 ac_top_srcdir=$ac_top_build_prefix$srcdir
1592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 esac
1594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595
1596 cd "$ac_dir" || { ac_status=$?; continue; }
1597 # Check for guested configure.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1604 else
1605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 fi || ac_status=$?
1607 cd "$ac_pwd" || { ac_status=$?; break; }
1608 done
1609 fi
1610
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1613 cat <<\_ACEOF
1614 GNU Offloading and Multi Processing Runtime Library configure 1.0
1615 generated by GNU Autoconf 2.69
1616
1617 Copyright (C) 2012 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1620 _ACEOF
1621 exit
1622 fi
1623
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1627
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext
1635 if { { ac_try="$ac_compile"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.$ac_objext; then :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660 fi
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_compile
1665
1666 # ac_fn_c_try_link LINENO
1667 # -----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_link ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 rm -f conftest.$ac_objext conftest$ac_exeext
1673 if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>conftest.err
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1686 fi
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && {
1689 test -z "$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 } && test -s conftest$ac_exeext && {
1692 test "$cross_compiling" = yes ||
1693 test -x conftest$ac_exeext
1694 }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1704 # interfere with the next link command; also delete a directory that is
1705 # left behind by Apple's compiler. We do this before executing the actions.
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_link
1711
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 $4
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730 eval "$3=yes"
1731 else
1732 eval "$3=no"
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_c_check_header_compile
1742
1743 # ac_fn_c_try_cpp LINENO
1744 # ----------------------
1745 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_cpp ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_cpp conftest.$ac_ext"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1762 fi
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } > conftest.i && {
1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1767 }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=1
1774 fi
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_cpp
1779
1780 # ac_fn_c_try_run LINENO
1781 # ----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783 # that executables *can* be run.
1784 ac_fn_c_try_run ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>&5
1795 ac_status=$?
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798 { { case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_try") 2>&5
1805 ac_status=$?
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; }; }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: program exited with status $ac_status" >&5
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=$ac_status
1815 fi
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_run
1821
1822 # ac_fn_c_check_func LINENO FUNC VAR
1823 # ----------------------------------
1824 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1825 ac_fn_c_check_func ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1832 else
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1837 #define $2 innocuous_$2
1838
1839 /* System header to define __stub macros and hopefully few prototypes,
1840 which can conflict with char $2 (); below.
1841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1842 <limits.h> exists even on freestanding compilers. */
1843
1844 #ifdef __STDC__
1845 # include <limits.h>
1846 #else
1847 # include <assert.h>
1848 #endif
1849
1850 #undef $2
1851
1852 /* Override any GCC internal prototype to avoid an error.
1853 Use char because int might match the return type of a GCC
1854 builtin and then its argument prototype would still apply. */
1855 #ifdef __cplusplus
1856 extern "C"
1857 #endif
1858 char $2 ();
1859 /* The GNU C library defines this for functions which it implements
1860 to always fail with ENOSYS. Some functions are actually named
1861 something starting with __ and the normal name is an alias. */
1862 #if defined __stub_$2 || defined __stub___$2
1863 choke me
1864 #endif
1865
1866 int
1867 main ()
1868 {
1869 return $2 ();
1870 ;
1871 return 0;
1872 }
1873 _ACEOF
1874 if ac_fn_c_try_link "$LINENO"; then :
1875 eval "$3=yes"
1876 else
1877 eval "$3=no"
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext \
1880 conftest$ac_exeext conftest.$ac_ext
1881 fi
1882 eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887 } # ac_fn_c_check_func
1888
1889 # ac_fn_fc_try_compile LINENO
1890 # ---------------------------
1891 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_fc_try_compile ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext
1896 if { { ac_try="$ac_compile"
1897 case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_compile") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1909 fi
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_fc_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest.$ac_objext; then :
1915 ac_retval=0
1916 else
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1
1921 fi
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1924
1925 } # ac_fn_fc_try_compile
1926
1927 # ac_fn_fc_try_link LINENO
1928 # ------------------------
1929 # Try to link conftest.$ac_ext, and return whether this succeeded.
1930 ac_fn_fc_try_link ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 rm -f conftest.$ac_objext conftest$ac_exeext
1934 if { { ac_try="$ac_link"
1935 case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_link") 2>conftest.err
1942 ac_status=$?
1943 if test -s conftest.err; then
1944 grep -v '^ *+' conftest.err >conftest.er1
1945 cat conftest.er1 >&5
1946 mv -f conftest.er1 conftest.err
1947 fi
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && {
1950 test -z "$ac_fc_werror_flag" ||
1951 test ! -s conftest.err
1952 } && test -s conftest$ac_exeext && {
1953 test "$cross_compiling" = yes ||
1954 test -x conftest$ac_exeext
1955 }; then :
1956 ac_retval=0
1957 else
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.$ac_ext >&5
1960
1961 ac_retval=1
1962 fi
1963 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1964 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1965 # interfere with the next link command; also delete a directory that is
1966 # left behind by Apple's compiler. We do this before executing the actions.
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1970
1971 } # ac_fn_fc_try_link
1972
1973 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1974 # -------------------------------------------------------
1975 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1976 # the include files in INCLUDES and setting the cache variable VAR
1977 # accordingly.
1978 ac_fn_c_check_header_mongrel ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if eval \${$3+:} false; then :
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1986 fi
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 else
1991 # Is the header compilable?
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1993 $as_echo_n "checking $2 usability... " >&6; }
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 $4
1997 #include <$2>
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 ac_header_compiler=yes
2001 else
2002 ac_header_compiler=no
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2006 $as_echo "$ac_header_compiler" >&6; }
2007
2008 # Is the header present?
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2010 $as_echo_n "checking $2 presence... " >&6; }
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 #include <$2>
2014 _ACEOF
2015 if ac_fn_c_try_cpp "$LINENO"; then :
2016 ac_header_preproc=yes
2017 else
2018 ac_header_preproc=no
2019 fi
2020 rm -f conftest.err conftest.i conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2022 $as_echo "$ac_header_preproc" >&6; }
2023
2024 # So? What about this header?
2025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2026 yes:no: )
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2028 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2030 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031 ;;
2032 no:yes:* )
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2034 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2036 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2038 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2040 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 ;;
2044 esac
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2049 else
2050 eval "$3=\$ac_header_compiler"
2051 fi
2052 eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 fi
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057
2058 } # ac_fn_c_check_header_mongrel
2059
2060 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2061 # -------------------------------------------
2062 # Tests whether TYPE exists after having included INCLUDES, setting cache
2063 # variable VAR accordingly.
2064 ac_fn_c_check_type ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if eval \${$3+:} false; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 eval "$3=no"
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $4
2076 int
2077 main ()
2078 {
2079 if (sizeof ($2))
2080 return 0;
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $4
2089 int
2090 main ()
2091 {
2092 if (sizeof (($2)))
2093 return 0;
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099
2100 else
2101 eval "$3=yes"
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112 } # ac_fn_c_check_type
2113
2114 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2115 # --------------------------------------------
2116 # Tries to find the compile-time value of EXPR in a program that includes
2117 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2118 # computed
2119 ac_fn_c_compute_int ()
2120 {
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 if test "$cross_compiling" = yes; then
2123 # Depending upon the size, compute the lo and hi bounds.
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) >= 0)];
2131 test_array [0] = 0;
2132 return test_array [0];
2133
2134 ;
2135 return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_lo=0 ac_mid=0
2140 while :; do
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $4
2144 int
2145 main ()
2146 {
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148 test_array [0] = 0;
2149 return test_array [0];
2150
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_hi=$ac_mid; break
2157 else
2158 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2159 if test $ac_lo -le $ac_mid; then
2160 ac_lo= ac_hi=
2161 break
2162 fi
2163 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) < 0)];
2175 test_array [0] = 0;
2176 return test_array [0];
2177
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_hi=-1 ac_mid=-1
2184 while :; do
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 int
2189 main ()
2190 {
2191 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2192 test_array [0] = 0;
2193 return test_array [0];
2194
2195 ;
2196 return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_lo=$ac_mid; break
2201 else
2202 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2203 if test $ac_mid -le $ac_hi; then
2204 ac_lo= ac_hi=
2205 break
2206 fi
2207 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 done
2211 else
2212 ac_lo= ac_hi=
2213 fi
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 fi
2216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 # Binary search between lo and hi bounds.
2218 while test "x$ac_lo" != "x$ac_hi"; do
2219 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2222 $4
2223 int
2224 main ()
2225 {
2226 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2227 test_array [0] = 0;
2228 return test_array [0];
2229
2230 ;
2231 return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 ac_hi=$ac_mid
2236 else
2237 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 done
2241 case $ac_lo in #((
2242 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2243 '') ac_retval=1 ;;
2244 esac
2245 else
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 $4
2249 static long int longval () { return $2; }
2250 static unsigned long int ulongval () { return $2; }
2251 #include <stdio.h>
2252 #include <stdlib.h>
2253 int
2254 main ()
2255 {
2256
2257 FILE *f = fopen ("conftest.val", "w");
2258 if (! f)
2259 return 1;
2260 if (($2) < 0)
2261 {
2262 long int i = longval ();
2263 if (i != ($2))
2264 return 1;
2265 fprintf (f, "%ld", i);
2266 }
2267 else
2268 {
2269 unsigned long int i = ulongval ();
2270 if (i != ($2))
2271 return 1;
2272 fprintf (f, "%lu", i);
2273 }
2274 /* Do not output a trailing newline, as this causes \r\n confusion
2275 on some platforms. */
2276 return ferror (f) || fclose (f) != 0;
2277
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_run "$LINENO"; then :
2283 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2284 else
2285 ac_retval=1
2286 fi
2287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2288 conftest.$ac_objext conftest.beam conftest.$ac_ext
2289 rm -f conftest.val
2290
2291 fi
2292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 as_fn_set_status $ac_retval
2294
2295 } # ac_fn_c_compute_int
2296 cat >config.log <<_ACEOF
2297 This file contains any messages produced by compilers while
2298 running configure, to aid debugging if configure makes a mistake.
2299
2300 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2301 generated by GNU Autoconf 2.69. Invocation command line was
2302
2303 $ $0 $@
2304
2305 _ACEOF
2306 exec 5>>config.log
2307 {
2308 cat <<_ASUNAME
2309 ## --------- ##
2310 ## Platform. ##
2311 ## --------- ##
2312
2313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2318
2319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2321
2322 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2323 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2326 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2327 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2328 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2329
2330 _ASUNAME
2331
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 $as_echo "PATH: $as_dir"
2338 done
2339 IFS=$as_save_IFS
2340
2341 } >&5
2342
2343 cat >&5 <<_ACEOF
2344
2345
2346 ## ----------- ##
2347 ## Core tests. ##
2348 ## ----------- ##
2349
2350 _ACEOF
2351
2352
2353 # Keep a trace of the command line.
2354 # Strip out --no-create and --no-recursion so they do not pile up.
2355 # Strip out --silent because we don't want to record it for future runs.
2356 # Also quote any args containing shell meta-characters.
2357 # Make two passes to allow for proper duplicate-argument suppression.
2358 ac_configure_args=
2359 ac_configure_args0=
2360 ac_configure_args1=
2361 ac_must_keep_next=false
2362 for ac_pass in 1 2
2363 do
2364 for ac_arg
2365 do
2366 case $ac_arg in
2367 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2369 | -silent | --silent | --silen | --sile | --sil)
2370 continue ;;
2371 *\'*)
2372 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 esac
2374 case $ac_pass in
2375 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2376 2)
2377 as_fn_append ac_configure_args1 " '$ac_arg'"
2378 if test $ac_must_keep_next = true; then
2379 ac_must_keep_next=false # Got value, back to normal.
2380 else
2381 case $ac_arg in
2382 *=* | --config-cache | -C | -disable-* | --disable-* \
2383 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2384 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2385 | -with-* | --with-* | -without-* | --without-* | --x)
2386 case "$ac_configure_args0 " in
2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388 esac
2389 ;;
2390 -* ) ac_must_keep_next=true ;;
2391 esac
2392 fi
2393 as_fn_append ac_configure_args " '$ac_arg'"
2394 ;;
2395 esac
2396 done
2397 done
2398 { ac_configure_args0=; unset ac_configure_args0;}
2399 { ac_configure_args1=; unset ac_configure_args1;}
2400
2401 # When interrupted or exit'd, cleanup temporary files, and complete
2402 # config.log. We remove comments because anyway the quotes in there
2403 # would cause problems or look ugly.
2404 # WARNING: Use '\'' to represent an apostrophe within the trap.
2405 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406 trap 'exit_status=$?
2407 # Save into config.log some information that might help in debugging.
2408 {
2409 echo
2410
2411 $as_echo "## ---------------- ##
2412 ## Cache variables. ##
2413 ## ---------------- ##"
2414 echo
2415 # The following way of writing the cache mishandles newlines in values,
2416 (
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in #(
2420 *${as_nl}*)
2421 case $ac_var in #(
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2424 esac
2425 case $ac_var in #(
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2429 esac ;;
2430 esac
2431 done
2432 (set) 2>&1 |
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2435 sed -n \
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2438 ;; #(
2439 *)
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441 ;;
2442 esac |
2443 sort
2444 )
2445 echo
2446
2447 $as_echo "## ----------------- ##
2448 ## Output variables. ##
2449 ## ----------------- ##"
2450 echo
2451 for ac_var in $ac_subst_vars
2452 do
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2460
2461 if test -n "$ac_subst_files"; then
2462 $as_echo "## ------------------- ##
2463 ## File substitutions. ##
2464 ## ------------------- ##"
2465 echo
2466 for ac_var in $ac_subst_files
2467 do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2475 fi
2476
2477 if test -s confdefs.h; then
2478 $as_echo "## ----------- ##
2479 ## confdefs.h. ##
2480 ## ----------- ##"
2481 echo
2482 cat confdefs.h
2483 echo
2484 fi
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2488 } >&5
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2491 exit $exit_status
2492 ' 0
2493 for ac_signal in 1 2 13 15; do
2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495 done
2496 ac_signal=0
2497
2498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2499 rm -f -r conftest* confdefs.h
2500
2501 $as_echo "/* confdefs.h */" > confdefs.h
2502
2503 # Predefined preprocessor variables.
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_NAME "$PACKAGE_NAME"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_STRING "$PACKAGE_STRING"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2523 _ACEOF
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_URL "$PACKAGE_URL"
2527 _ACEOF
2528
2529
2530 # Let the site file select an alternate cache file if it wants to.
2531 # Prefer an explicitly selected file to automatically selected ones.
2532 ac_site_file1=NONE
2533 ac_site_file2=NONE
2534 if test -n "$CONFIG_SITE"; then
2535 # We do not want a PATH search for config.site.
2536 case $CONFIG_SITE in #((
2537 -*) ac_site_file1=./$CONFIG_SITE;;
2538 */*) ac_site_file1=$CONFIG_SITE;;
2539 *) ac_site_file1=./$CONFIG_SITE;;
2540 esac
2541 elif test "x$prefix" != xNONE; then
2542 ac_site_file1=$prefix/share/config.site
2543 ac_site_file2=$prefix/etc/config.site
2544 else
2545 ac_site_file1=$ac_default_prefix/share/config.site
2546 ac_site_file2=$ac_default_prefix/etc/config.site
2547 fi
2548 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2549 do
2550 test "x$ac_site_file" = xNONE && continue
2551 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2555 . "$ac_site_file" \
2556 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error $? "failed to load site script $ac_site_file
2559 See \`config.log' for more details" "$LINENO" 5; }
2560 fi
2561 done
2562
2563 if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568 $as_echo "$as_me: loading cache $cache_file" >&6;}
2569 case $cache_file in
2570 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2571 *) . "./$cache_file";;
2572 esac
2573 fi
2574 else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576 $as_echo "$as_me: creating cache $cache_file" >&6;}
2577 >$cache_file
2578 fi
2579
2580 as_fn_append ac_header_list " unistd.h"
2581 as_fn_append ac_func_list " secure_getenv"
2582 as_fn_append ac_func_list " __secure_getenv"
2583 as_fn_append ac_func_list " getuid"
2584 as_fn_append ac_func_list " geteuid"
2585 as_fn_append ac_func_list " getgid"
2586 as_fn_append ac_func_list " getegid"
2587 # Check that the precious variables saved in the cache have kept the same
2588 # value.
2589 ac_cache_corrupted=false
2590 for ac_var in $ac_precious_vars; do
2591 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2592 eval ac_new_set=\$ac_env_${ac_var}_set
2593 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2594 eval ac_new_val=\$ac_env_${ac_var}_value
2595 case $ac_old_set,$ac_new_set in
2596 set,)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,set)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,);;
2605 *)
2606 if test "x$ac_old_val" != "x$ac_new_val"; then
2607 # differences in whitespace do not lead to failure.
2608 ac_old_val_w=`echo x $ac_old_val`
2609 ac_new_val_w=`echo x $ac_new_val`
2610 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613 ac_cache_corrupted=:
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617 eval $ac_var=\$ac_old_val
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2620 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2622 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2623 fi;;
2624 esac
2625 # Pass precious variables to config.status.
2626 if test "$ac_new_set" = set; then
2627 case $ac_new_val in
2628 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2629 *) ac_arg=$ac_var=$ac_new_val ;;
2630 esac
2631 case " $ac_configure_args " in
2632 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2633 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2634 esac
2635 fi
2636 done
2637 if $ac_cache_corrupted; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2642 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2643 fi
2644 ## -------------------- ##
2645 ## Main body of script. ##
2646 ## -------------------- ##
2647
2648 ac_ext=c
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653
2654
2655
2656
2657
2658 ac_config_headers="$ac_config_headers config.h"
2659
2660
2661 # -------
2662 # Options
2663 # -------
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2666 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2667 # Check whether --enable-version-specific-runtime-libs was given.
2668 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2669 enableval=$enable_version_specific_runtime_libs;
2670 case "$enableval" in
2671 yes|no) ;;
2672 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2673 esac
2674
2675 else
2676 enable_version_specific_runtime_libs=no
2677 fi
2678
2679
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2681 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2682
2683 # We would like our source tree to be readonly. However when releases or
2684 # pre-releases are generated, the flex/bison generated files as well as the
2685 # various formats of manuals need to be included along with the rest of the
2686 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2687 # just that.
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2689 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2690 # Check whether --enable-generated-files-in-srcdir was given.
2691 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2692 enableval=$enable_generated_files_in_srcdir;
2693 case "$enableval" in
2694 yes|no) ;;
2695 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2696 esac
2697
2698 else
2699 enable_generated_files_in_srcdir=no
2700 fi
2701
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2704 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2705 if test "$enable_generated_files_in_srcdir" = yes; then
2706 GENINSRC_TRUE=
2707 GENINSRC_FALSE='#'
2708 else
2709 GENINSRC_TRUE='#'
2710 GENINSRC_FALSE=
2711 fi
2712
2713
2714
2715 # -------
2716 # -------
2717
2718 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2719 #
2720 # You will slowly go insane if you do not grok the following fact: when
2721 # building this library, the top-level /target/ becomes the library's /host/.
2722 #
2723 # configure then causes --target to default to --host, exactly like any
2724 # other package using autoconf. Therefore, 'target' and 'host' will
2725 # always be the same. This makes sense both for native and cross compilers
2726 # just think about it for a little while. :-)
2727 #
2728 # Also, if this library is being configured as part of a cross compiler, the
2729 # top-level configure script will pass the "real" host as $with_cross_host.
2730 #
2731 # Do not delete or change the following two lines. For why, see
2732 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2733 ac_aux_dir=
2734 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2735 if test -f "$ac_dir/install-sh"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/install-sh -c"
2738 break
2739 elif test -f "$ac_dir/install.sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install.sh -c"
2742 break
2743 elif test -f "$ac_dir/shtool"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/shtool install -c"
2746 break
2747 fi
2748 done
2749 if test -z "$ac_aux_dir"; then
2750 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2751 fi
2752
2753 # These three variables are undocumented and unsupported,
2754 # and are intended to be withdrawn in a future Autoconf release.
2755 # They can cause serious problems if a builder's source tree is in a directory
2756 # whose full name contains unusual characters.
2757 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2758 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2759 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2760
2761
2762 # Make sure we can run config.sub.
2763 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2767 $as_echo_n "checking build system type... " >&6; }
2768 if ${ac_cv_build+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 ac_build_alias=$build_alias
2772 test "x$ac_build_alias" = x &&
2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2774 test "x$ac_build_alias" = x &&
2775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2776 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2778
2779 fi
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2781 $as_echo "$ac_cv_build" >&6; }
2782 case $ac_cv_build in
2783 *-*-*) ;;
2784 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2785 esac
2786 build=$ac_cv_build
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_build
2789 shift
2790 build_cpu=$1
2791 build_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 build_os=$*
2796 IFS=$ac_save_IFS
2797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2798
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2801 $as_echo_n "checking host system type... " >&6; }
2802 if ${ac_cv_host+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test "x$host_alias" = x; then
2806 ac_cv_host=$ac_cv_build
2807 else
2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2810 fi
2811
2812 fi
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2814 $as_echo "$ac_cv_host" >&6; }
2815 case $ac_cv_host in
2816 *-*-*) ;;
2817 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2818 esac
2819 host=$ac_cv_host
2820 ac_save_IFS=$IFS; IFS='-'
2821 set x $ac_cv_host
2822 shift
2823 host_cpu=$1
2824 host_vendor=$2
2825 shift; shift
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2828 host_os=$*
2829 IFS=$ac_save_IFS
2830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2831
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2834 $as_echo_n "checking target system type... " >&6; }
2835 if ${ac_cv_target+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test "x$target_alias" = x; then
2839 ac_cv_target=$ac_cv_host
2840 else
2841 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2843 fi
2844
2845 fi
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2847 $as_echo "$ac_cv_target" >&6; }
2848 case $ac_cv_target in
2849 *-*-*) ;;
2850 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2851 esac
2852 target=$ac_cv_target
2853 ac_save_IFS=$IFS; IFS='-'
2854 set x $ac_cv_target
2855 shift
2856 target_cpu=$1
2857 target_vendor=$2
2858 shift; shift
2859 # Remember, the first character of IFS is used to create $*,
2860 # except with old shells:
2861 target_os=$*
2862 IFS=$ac_save_IFS
2863 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2864
2865
2866 # The aliases save the names the user supplied, while $host etc.
2867 # will get canonicalized.
2868 test -n "$target_alias" &&
2869 test "$program_prefix$program_suffix$program_transform_name" = \
2870 NONENONEs,x,x, &&
2871 program_prefix=${target_alias}-
2872
2873 target_alias=${target_alias-$host_alias}
2874
2875 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2876 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2877 # 1.9.0: minimum required version
2878 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2879 # of other PACKAGE_* variables will, however, and there's nothing
2880 # we can do about that; they come from AC_INIT).
2881 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2882 # file in the top srcdir, etc, etc), so stop complaining.
2883 # no-dist: we don't want 'dist' and related rules.
2884 # -Wall: turns on all automake warnings...
2885 # -Wno-portability: ...except this one, since GNU make is required.
2886 # -Wno-override: ... and this one, since we do want this in testsuite.
2887 am__api_version='1.15'
2888
2889 # Find a good install program. We prefer a C program (faster),
2890 # so one script is as good as another. But avoid the broken or
2891 # incompatible versions:
2892 # SysV /etc/install, /usr/sbin/install
2893 # SunOS /usr/etc/install
2894 # IRIX /sbin/install
2895 # AIX /bin/install
2896 # AmigaOS /C/install, which installs bootblocks on floppy discs
2897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2900 # OS/2's system install, which has a completely different semantic
2901 # ./install, which can be erroneously created by make from ./install.sh.
2902 # Reject install programs that cannot install multiple files.
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2904 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2905 if test -z "$INSTALL"; then
2906 if ${ac_cv_path_install+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 # Account for people who put trailing slashes in PATH elements.
2915 case $as_dir/ in #((
2916 ./ | .// | /[cC]/* | \
2917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2918 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2919 /usr/ucb/* ) ;;
2920 *)
2921 # OSF1 and SCO ODT 3.0 have their own names for install.
2922 # Don't use installbsd from OSF since it installs stuff as root
2923 # by default.
2924 for ac_prog in ginstall scoinst install; do
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2927 if test $ac_prog = install &&
2928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2929 # AIX install. It has an incompatible calling convention.
2930 :
2931 elif test $ac_prog = install &&
2932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2933 # program-specific install script used by HP pwplus--don't use.
2934 :
2935 else
2936 rm -rf conftest.one conftest.two conftest.dir
2937 echo one > conftest.one
2938 echo two > conftest.two
2939 mkdir conftest.dir
2940 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2941 test -s conftest.one && test -s conftest.two &&
2942 test -s conftest.dir/conftest.one &&
2943 test -s conftest.dir/conftest.two
2944 then
2945 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2946 break 3
2947 fi
2948 fi
2949 fi
2950 done
2951 done
2952 ;;
2953 esac
2954
2955 done
2956 IFS=$as_save_IFS
2957
2958 rm -rf conftest.one conftest.two conftest.dir
2959
2960 fi
2961 if test "${ac_cv_path_install+set}" = set; then
2962 INSTALL=$ac_cv_path_install
2963 else
2964 # As a last resort, use the slow shell script. Don't cache a
2965 # value for INSTALL within a source directory, because that will
2966 # break other packages using the cache if that directory is
2967 # removed, or if the value is a relative name.
2968 INSTALL=$ac_install_sh
2969 fi
2970 fi
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2972 $as_echo "$INSTALL" >&6; }
2973
2974 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2975 # It thinks the first close brace ends the variable substitution.
2976 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2977
2978 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2979
2980 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2981
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2983 $as_echo_n "checking whether build environment is sane... " >&6; }
2984 # Reject unsafe characters in $srcdir or the absolute working directory
2985 # name. Accept space and tab only in the latter.
2986 am_lf='
2987 '
2988 case `pwd` in
2989 *[\\\"\#\$\&\'\`$am_lf]*)
2990 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2991 esac
2992 case $srcdir in
2993 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2994 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2995 esac
2996
2997 # Do 'set' in a subshell so we don't clobber the current shell's
2998 # arguments. Must try -L first in case configure is actually a
2999 # symlink; some systems play weird games with the mod time of symlinks
3000 # (eg FreeBSD returns the mod time of the symlink's containing
3001 # directory).
3002 if (
3003 am_has_slept=no
3004 for am_try in 1 2; do
3005 echo "timestamp, slept: $am_has_slept" > conftest.file
3006 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3007 if test "$*" = "X"; then
3008 # -L didn't work.
3009 set X `ls -t "$srcdir/configure" conftest.file`
3010 fi
3011 if test "$*" != "X $srcdir/configure conftest.file" \
3012 && test "$*" != "X conftest.file $srcdir/configure"; then
3013
3014 # If neither matched, then we have a broken ls. This can happen
3015 # if, for instance, CONFIG_SHELL is bash and it inherits a
3016 # broken ls alias from the environment. This has actually
3017 # happened. Such a system could not be considered "sane".
3018 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3019 alias in your environment" "$LINENO" 5
3020 fi
3021 if test "$2" = conftest.file || test $am_try -eq 2; then
3022 break
3023 fi
3024 # Just in case.
3025 sleep 1
3026 am_has_slept=yes
3027 done
3028 test "$2" = conftest.file
3029 )
3030 then
3031 # Ok.
3032 :
3033 else
3034 as_fn_error $? "newly created file is older than distributed files!
3035 Check your system clock" "$LINENO" 5
3036 fi
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3038 $as_echo "yes" >&6; }
3039 # If we didn't sleep, we still need to ensure time stamps of config.status and
3040 # generated files are strictly newer.
3041 am_sleep_pid=
3042 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3043 ( sleep 1 ) &
3044 am_sleep_pid=$!
3045 fi
3046
3047 rm -f conftest.file
3048
3049 test "$program_prefix" != NONE &&
3050 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3051 # Use a double $ so make ignores it.
3052 test "$program_suffix" != NONE &&
3053 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3054 # Double any \ or $.
3055 # By default was `s,x,x', remove it if useless.
3056 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3057 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3058
3059 # Expand $ac_aux_dir to an absolute path.
3060 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3061
3062 if test x"${MISSING+set}" != xset; then
3063 case $am_aux_dir in
3064 *\ * | *\ *)
3065 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3066 *)
3067 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3068 esac
3069 fi
3070 # Use eval to expand $SHELL
3071 if eval "$MISSING --is-lightweight"; then
3072 am_missing_run="$MISSING "
3073 else
3074 am_missing_run=
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3076 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3077 fi
3078
3079 if test x"${install_sh+set}" != xset; then
3080 case $am_aux_dir in
3081 *\ * | *\ *)
3082 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3083 *)
3084 install_sh="\${SHELL} $am_aux_dir/install-sh"
3085 esac
3086 fi
3087
3088 # Installed binaries are usually stripped using 'strip' when the user
3089 # run "make install-strip". However 'strip' might not be the right
3090 # tool to use in cross-compilation environments, therefore Automake
3091 # will honor the 'STRIP' environment variable to overrule this program.
3092 if test "$cross_compiling" != no; then
3093 if test -n "$ac_tool_prefix"; then
3094 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}strip; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_STRIP+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$STRIP"; then
3102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 STRIP=$ac_cv_prog_STRIP
3122 if test -n "$STRIP"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3124 $as_echo "$STRIP" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131 fi
3132 if test -z "$ac_cv_prog_STRIP"; then
3133 ac_ct_STRIP=$STRIP
3134 # Extract the first word of "strip", so it can be a program name with args.
3135 set dummy strip; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 if test -n "$ac_ct_STRIP"; then
3142 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_ac_ct_STRIP="strip"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
3154 fi
3155 done
3156 done
3157 IFS=$as_save_IFS
3158
3159 fi
3160 fi
3161 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3162 if test -n "$ac_ct_STRIP"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3164 $as_echo "$ac_ct_STRIP" >&6; }
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 fi
3169
3170 if test "x$ac_ct_STRIP" = x; then
3171 STRIP=":"
3172 else
3173 case $cross_compiling:$ac_tool_warned in
3174 yes:)
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3178 esac
3179 STRIP=$ac_ct_STRIP
3180 fi
3181 else
3182 STRIP="$ac_cv_prog_STRIP"
3183 fi
3184
3185 fi
3186 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3187
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3189 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3190 if test -z "$MKDIR_P"; then
3191 if ${ac_cv_path_mkdir+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3196 do
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_prog in mkdir gmkdir; do
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3202 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3203 'mkdir (GNU coreutils) '* | \
3204 'mkdir (coreutils) '* | \
3205 'mkdir (fileutils) '4.1*)
3206 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3207 break 3;;
3208 esac
3209 done
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215
3216 test -d ./--version && rmdir ./--version
3217 if test "${ac_cv_path_mkdir+set}" = set; then
3218 MKDIR_P="$ac_cv_path_mkdir -p"
3219 else
3220 # As a last resort, use the slow shell script. Don't cache a
3221 # value for MKDIR_P within a source directory, because that will
3222 # break other packages using the cache if that directory is
3223 # removed, or if the value is a relative name.
3224 MKDIR_P="$ac_install_sh -d"
3225 fi
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3228 $as_echo "$MKDIR_P" >&6; }
3229
3230 for ac_prog in gawk mawk nawk awk
3231 do
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_AWK+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 if test -n "$AWK"; then
3240 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_AWK="$ac_prog"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253 done
3254 done
3255 IFS=$as_save_IFS
3256
3257 fi
3258 fi
3259 AWK=$ac_cv_prog_AWK
3260 if test -n "$AWK"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3262 $as_echo "$AWK" >&6; }
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269 test -n "$AWK" && break
3270 done
3271
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3273 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3274 set x ${MAKE-make}
3275 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3276 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 cat >conftest.make <<\_ACEOF
3280 SHELL = /bin/sh
3281 all:
3282 @echo '@@@%%%=$(MAKE)=@@@%%%'
3283 _ACEOF
3284 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3285 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3286 *@@@%%%=?*=@@@%%%*)
3287 eval ac_cv_prog_make_${ac_make}_set=yes;;
3288 *)
3289 eval ac_cv_prog_make_${ac_make}_set=no;;
3290 esac
3291 rm -f conftest.make
3292 fi
3293 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3296 SET_MAKE=
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 SET_MAKE="MAKE=${MAKE-make}"
3301 fi
3302
3303 rm -rf .tst 2>/dev/null
3304 mkdir .tst 2>/dev/null
3305 if test -d .tst; then
3306 am__leading_dot=.
3307 else
3308 am__leading_dot=_
3309 fi
3310 rmdir .tst 2>/dev/null
3311
3312 # Check whether --enable-silent-rules was given.
3313 if test "${enable_silent_rules+set}" = set; then :
3314 enableval=$enable_silent_rules;
3315 fi
3316
3317 case $enable_silent_rules in # (((
3318 yes) AM_DEFAULT_VERBOSITY=0;;
3319 no) AM_DEFAULT_VERBOSITY=1;;
3320 *) AM_DEFAULT_VERBOSITY=1;;
3321 esac
3322 am_make=${MAKE-make}
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3324 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3325 if ${am_cv_make_support_nested_variables+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 if $as_echo 'TRUE=$(BAR$(V))
3329 BAR0=false
3330 BAR1=true
3331 V=1
3332 am__doit:
3333 @$(TRUE)
3334 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3335 am_cv_make_support_nested_variables=yes
3336 else
3337 am_cv_make_support_nested_variables=no
3338 fi
3339 fi
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3341 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3342 if test $am_cv_make_support_nested_variables = yes; then
3343 AM_V='$(V)'
3344 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3345 else
3346 AM_V=$AM_DEFAULT_VERBOSITY
3347 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3348 fi
3349 AM_BACKSLASH='\'
3350
3351 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3352 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3353 # is not polluted with repeated "-I."
3354 am__isrc=' -I$(srcdir)'
3355 # test to see if srcdir already configured
3356 if test -f $srcdir/config.status; then
3357 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3358 fi
3359 fi
3360
3361 # test whether we have cygpath
3362 if test -z "$CYGPATH_W"; then
3363 if (cygpath --version) >/dev/null 2>/dev/null; then
3364 CYGPATH_W='cygpath -w'
3365 else
3366 CYGPATH_W=echo
3367 fi
3368 fi
3369
3370
3371 # Define the identity of the package.
3372 PACKAGE='libgomp'
3373 VERSION='1.0'
3374
3375
3376 cat >>confdefs.h <<_ACEOF
3377 #define PACKAGE "$PACKAGE"
3378 _ACEOF
3379
3380
3381 cat >>confdefs.h <<_ACEOF
3382 #define VERSION "$VERSION"
3383 _ACEOF
3384
3385 # Some tools Automake needs.
3386
3387 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3388
3389
3390 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3391
3392
3393 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3394
3395
3396 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3397
3398
3399 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3400
3401 # For better backward compatibility. To be removed once Automake 1.9.x
3402 # dies out for good. For more background, see:
3403 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3404 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3405 mkdir_p='$(MKDIR_P)'
3406
3407 # We need awk for the "check" target (and possibly the TAP driver). The
3408 # system "awk" is bad on some platforms.
3409 # Always define AMTAR for backward compatibility. Yes, it's still used
3410 # in the wild :-( We should find a proper way to deprecate it ...
3411 AMTAR='$${TAR-tar}'
3412
3413
3414 # We'll loop over all known methods to create a tar archive until one works.
3415 _am_tools='gnutar pax cpio none'
3416
3417 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3418
3419
3420
3421
3422
3423
3424 # POSIX will say in a future version that running "rm -f" with no argument
3425 # is OK; and we want to be able to make that assumption in our Makefile
3426 # recipes. So use an aggressive probe to check that the usage we want is
3427 # actually supported "in the wild" to an acceptable degree.
3428 # See automake bug#10828.
3429 # To make any issue more visible, cause the running configure to be aborted
3430 # by default if the 'rm' program in use doesn't match our expectations; the
3431 # user can still override this though.
3432 if rm -f && rm -fr && rm -rf; then : OK; else
3433 cat >&2 <<'END'
3434 Oops!
3435
3436 Your 'rm' program seems unable to run without file operands specified
3437 on the command line, even when the '-f' option is present. This is contrary
3438 to the behaviour of most rm programs out there, and not conforming with
3439 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3440
3441 Please tell bug-automake@gnu.org about your system, including the value
3442 of your $PATH and any error possibly output before this message. This
3443 can help us improve future automake versions.
3444
3445 END
3446 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3447 echo 'Configuration will proceed anyway, since you have set the' >&2
3448 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3449 echo >&2
3450 else
3451 cat >&2 <<'END'
3452 Aborting the configuration process, to ensure you take notice of the issue.
3453
3454 You can download and install GNU coreutils to get an 'rm' implementation
3455 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3456
3457 If you want to complete the configuration process using your problematic
3458 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3459 to "yes", and re-run configure.
3460
3461 END
3462 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3463 fi
3464 fi
3465
3466 # Default to --enable-multilib
3467 # Check whether --enable-multilib was given.
3468 if test "${enable_multilib+set}" = set; then :
3469 enableval=$enable_multilib; case "$enableval" in
3470 yes) multilib=yes ;;
3471 no) multilib=no ;;
3472 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3473 esac
3474 else
3475 multilib=yes
3476 fi
3477
3478
3479 # We may get other options which we leave undocumented:
3480 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3481 # See config-ml.in if you want the gory details.
3482
3483 if test "$srcdir" = "."; then
3484 if test "$with_target_subdir" != "."; then
3485 multi_basedir="$srcdir/$with_multisrctop../.."
3486 else
3487 multi_basedir="$srcdir/$with_multisrctop.."
3488 fi
3489 else
3490 multi_basedir="$srcdir/.."
3491 fi
3492
3493
3494 # Even if the default multilib is not a cross compilation,
3495 # it may be that some of the other multilibs are.
3496 if test $cross_compiling = no && test $multilib = yes \
3497 && test "x${with_multisubdir}" != x ; then
3498 cross_compiling=maybe
3499 fi
3500
3501 ac_config_commands="$ac_config_commands default-1"
3502
3503
3504 # Calculate toolexeclibdir
3505 # Also toolexecdir, though it's only used in toolexeclibdir
3506 case ${enable_version_specific_runtime_libs} in
3507 yes)
3508 # Need the gcc compiler version to know where to install libraries
3509 # and header files if --enable-version-specific-runtime-libs option
3510 # is selected.
3511 toolexecdir='$(libdir)/gcc/$(target_alias)'
3512 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3513 ;;
3514 no)
3515 if test -n "$with_cross_host" &&
3516 test x"$with_cross_host" != x"no"; then
3517 # Install a library built with a cross compiler in tooldir, not libdir.
3518 toolexecdir='$(exec_prefix)/$(target_alias)'
3519 toolexeclibdir='$(toolexecdir)/lib'
3520 else
3521 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3522 toolexeclibdir='$(libdir)'
3523 fi
3524 multi_os_directory=`$CC -print-multi-os-directory`
3525 case $multi_os_directory in
3526 .) ;; # Avoid trailing /.
3527 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3528 esac
3529 ;;
3530 esac
3531
3532
3533
3534 # Check the compiler.
3535 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3536 # We must force CC to /not/ be precious variables; otherwise
3537 # the wrong, non-multilib-adjusted value will be used in multilibs.
3538 # As a side effect, we have to subst CFLAGS ourselves.
3539
3540
3541
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3549 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_CC+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC="$CC" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 CC=$ac_cv_prog_CC
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584
3585 fi
3586 if test -z "$ac_cv_prog_CC"; then
3587 ac_ct_CC=$CC
3588 # Extract the first word of "gcc", so it can be a program name with args.
3589 set dummy gcc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_ac_ct_CC="gcc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618 $as_echo "$ac_ct_CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624 if test "x$ac_ct_CC" = x; then
3625 CC=""
3626 else
3627 case $cross_compiling:$ac_tool_warned in
3628 yes:)
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned=yes ;;
3632 esac
3633 CC=$ac_ct_CC
3634 fi
3635 else
3636 CC="$ac_cv_prog_CC"
3637 fi
3638
3639 if test -z "$CC"; then
3640 if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3642 set dummy ${ac_tool_prefix}cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_CC="${ac_tool_prefix}cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662 done
3663 done
3664 IFS=$as_save_IFS
3665
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678 fi
3679 fi
3680 if test -z "$CC"; then
3681 # Extract the first word of "cc", so it can be a program name with args.
3682 set dummy cc; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if ${ac_cv_prog_CC+:} false; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 else
3691 ac_prog_rejected=no
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695 IFS=$as_save_IFS
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3700 ac_prog_rejected=yes
3701 continue
3702 fi
3703 ac_cv_prog_CC="cc"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3706 fi
3707 done
3708 done
3709 IFS=$as_save_IFS
3710
3711 if test $ac_prog_rejected = yes; then
3712 # We found a bogon in the path, so make sure we never use it.
3713 set dummy $ac_cv_prog_CC
3714 shift
3715 if test $# != 0; then
3716 # We chose a different compiler from the bogus one.
3717 # However, it has the same basename, so the bogon will be chosen
3718 # first if we set CC to just the basename; use the full file name.
3719 shift
3720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3721 fi
3722 fi
3723 fi
3724 fi
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734
3735 fi
3736 if test -z "$CC"; then
3737 if test -n "$ac_tool_prefix"; then
3738 for ac_prog in cl.exe
3739 do
3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777 test -n "$CC" && break
3778 done
3779 fi
3780 if test -z "$CC"; then
3781 ac_ct_CC=$CC
3782 for ac_prog in cl.exe
3783 do
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if test -n "$ac_ct_CC"; then
3792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_ac_ct_CC="$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805 done
3806 done
3807 IFS=$as_save_IFS
3808
3809 fi
3810 fi
3811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3812 if test -n "$ac_ct_CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3814 $as_echo "$ac_ct_CC" >&6; }
3815 else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3818 fi
3819
3820
3821 test -n "$ac_ct_CC" && break
3822 done
3823
3824 if test "x$ac_ct_CC" = x; then
3825 CC=""
3826 else
3827 case $cross_compiling:$ac_tool_warned in
3828 yes:)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned=yes ;;
3832 esac
3833 CC=$ac_ct_CC
3834 fi
3835 fi
3836
3837 fi
3838
3839
3840 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "no acceptable C compiler found in \$PATH
3843 See \`config.log' for more details" "$LINENO" 5; }
3844
3845 # Provide some information about the compiler.
3846 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3847 set X $ac_compile
3848 ac_compiler=$2
3849 for ac_option in --version -v -V -qversion; do
3850 { { ac_try="$ac_compiler $ac_option >&5"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3858 ac_status=$?
3859 if test -s conftest.err; then
3860 sed '10a\
3861 ... rest of stderr output deleted ...
3862 10q' conftest.err >conftest.er1
3863 cat conftest.er1 >&5
3864 fi
3865 rm -f conftest.er1 conftest.err
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }
3868 done
3869
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872
3873 int
3874 main ()
3875 {
3876
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 ac_clean_files_save=$ac_clean_files
3882 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3883 # Try to create an executable without -o first, disregard a.out.
3884 # It will help us diagnose broken compilers, and finding out an intuition
3885 # of exeext.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3887 $as_echo_n "checking whether the C compiler works... " >&6; }
3888 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3889
3890 # The possible output files:
3891 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3892
3893 ac_rmfiles=
3894 for ac_file in $ac_files
3895 do
3896 case $ac_file in
3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3899 esac
3900 done
3901 rm -f $ac_rmfiles
3902
3903 if { { ac_try="$ac_link_default"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_link_default") 2>&5
3911 ac_status=$?
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3915 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3916 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3917 # so that the user can short-circuit this test for compilers unknown to
3918 # Autoconf.
3919 for ac_file in $ac_files ''
3920 do
3921 test -f "$ac_file" || continue
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3924 ;;
3925 [ab].out )
3926 # We found the default executable, but exeext='' is most
3927 # certainly right.
3928 break;;
3929 *.* )
3930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3931 then :; else
3932 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933 fi
3934 # We set ac_cv_exeext here because the later test for it is not
3935 # safe: cross compilers may not add the suffix if given an `-o'
3936 # argument, so we may need to know it at that point already.
3937 # Even if this section looks crufty: it has the advantage of
3938 # actually working.
3939 break;;
3940 * )
3941 break;;
3942 esac
3943 done
3944 test "$ac_cv_exeext" = no && ac_cv_exeext=
3945
3946 else
3947 ac_file=''
3948 fi
3949 if test -z "$ac_file"; then :
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error 77 "C compiler cannot create executables
3958 See \`config.log' for more details" "$LINENO" 5; }
3959 else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3964 $as_echo_n "checking for C compiler default output file name... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3966 $as_echo "$ac_file" >&6; }
3967 ac_exeext=$ac_cv_exeext
3968
3969 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3970 ac_clean_files=$ac_clean_files_save
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3972 $as_echo_n "checking for suffix of executables... " >&6; }
3973 if { { ac_try="$ac_link"
3974 case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3981 ac_status=$?
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3985 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3986 # work properly (i.e., refer to `conftest.exe'), while it won't with
3987 # `rm'.
3988 for ac_file in conftest.exe conftest conftest.*; do
3989 test -f "$ac_file" || continue
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3993 break;;
3994 * ) break;;
3995 esac
3996 done
3997 else
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4001 See \`config.log' for more details" "$LINENO" 5; }
4002 fi
4003 rm -f conftest conftest$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4005 $as_echo "$ac_cv_exeext" >&6; }
4006
4007 rm -f conftest.$ac_ext
4008 EXEEXT=$ac_cv_exeext
4009 ac_exeext=$EXEEXT
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #include <stdio.h>
4013 int
4014 main ()
4015 {
4016 FILE *f = fopen ("conftest.out", "w");
4017 return ferror (f) || fclose (f) != 0;
4018
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 ac_clean_files="$ac_clean_files conftest.out"
4024 # Check that the compiler produces executables we can run. If not, either
4025 # the compiler is broken, or we cross compile.
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4027 $as_echo_n "checking whether we are cross compiling... " >&6; }
4028 if test "$cross_compiling" != yes; then
4029 { { ac_try="$ac_link"
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_link") 2>&5
4037 ac_status=$?
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }
4040 if { ac_try='./conftest$ac_cv_exeext'
4041 { { case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_try") 2>&5
4048 ac_status=$?
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; }; then
4051 cross_compiling=no
4052 else
4053 if test "$cross_compiling" = maybe; then
4054 cross_compiling=yes
4055 else
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "cannot run C compiled programs.
4059 If you meant to cross compile, use \`--host'.
4060 See \`config.log' for more details" "$LINENO" 5; }
4061 fi
4062 fi
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4065 $as_echo "$cross_compiling" >&6; }
4066
4067 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4068 ac_clean_files=$ac_clean_files_save
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4070 $as_echo_n "checking for suffix of object files... " >&6; }
4071 if ${ac_cv_objext+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main ()
4079 {
4080
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.o conftest.obj
4086 if { { ac_try="$ac_compile"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 $as_echo "$ac_try_echo"; } >&5
4093 (eval "$ac_compile") 2>&5
4094 ac_status=$?
4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096 test $ac_status = 0; }; then :
4097 for ac_file in conftest.o conftest.obj conftest.*; do
4098 test -f "$ac_file" || continue;
4099 case $ac_file in
4100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4101 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4102 break;;
4103 esac
4104 done
4105 else
4106 $as_echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot compute suffix of object files: cannot compile
4112 See \`config.log' for more details" "$LINENO" 5; }
4113 fi
4114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4117 $as_echo "$ac_cv_objext" >&6; }
4118 OBJEXT=$ac_cv_objext
4119 ac_objext=$OBJEXT
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4121 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4122 if ${ac_cv_c_compiler_gnu+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127
4128 int
4129 main ()
4130 {
4131 #ifndef __GNUC__
4132 choke me
4133 #endif
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_compiler_gnu=yes
4141 else
4142 ac_compiler_gnu=no
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4146
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4149 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4150 if test $ac_compiler_gnu = yes; then
4151 GCC=yes
4152 else
4153 GCC=
4154 fi
4155 ac_test_CFLAGS=${CFLAGS+set}
4156 ac_save_CFLAGS=$CFLAGS
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4158 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4159 if ${ac_cv_prog_cc_g+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_save_c_werror_flag=$ac_c_werror_flag
4163 ac_c_werror_flag=yes
4164 ac_cv_prog_cc_g=no
4165 CFLAGS="-g"
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168
4169 int
4170 main ()
4171 {
4172
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178 ac_cv_prog_cc_g=yes
4179 else
4180 CFLAGS=""
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183
4184 int
4185 main ()
4186 {
4187
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193
4194 else
4195 ac_c_werror_flag=$ac_save_c_werror_flag
4196 CFLAGS="-g"
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 int
4201 main ()
4202 {
4203
4204 ;
4205 return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_prog_cc_g=yes
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_c_werror_flag=$ac_save_c_werror_flag
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4219 $as_echo "$ac_cv_prog_cc_g" >&6; }
4220 if test "$ac_test_CFLAGS" = set; then
4221 CFLAGS=$ac_save_CFLAGS
4222 elif test $ac_cv_prog_cc_g = yes; then
4223 if test "$GCC" = yes; then
4224 CFLAGS="-g -O2"
4225 else
4226 CFLAGS="-g"
4227 fi
4228 else
4229 if test "$GCC" = yes; then
4230 CFLAGS="-O2"
4231 else
4232 CFLAGS=
4233 fi
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4237 if ${ac_cv_prog_cc_c89+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 ac_cv_prog_cc_c89=no
4241 ac_save_CC=$CC
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <stdarg.h>
4245 #include <stdio.h>
4246 struct stat;
4247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4248 struct buf { int x; };
4249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4250 static char *e (p, i)
4251 char **p;
4252 int i;
4253 {
4254 return p[i];
4255 }
4256 static char *f (char * (*g) (char **, int), char **p, ...)
4257 {
4258 char *s;
4259 va_list v;
4260 va_start (v,p);
4261 s = g (p, va_arg (v,int));
4262 va_end (v);
4263 return s;
4264 }
4265
4266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4267 function prototypes and stuff, but not '\xHH' hex character constants.
4268 These don't provoke an error unfortunately, instead are silently treated
4269 as 'x'. The following induces an error, until -std is added to get
4270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4271 array size at least. It's necessary to write '\x00'==0 to get something
4272 that's true only with -std. */
4273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274
4275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4276 inside strings and character constants. */
4277 #define FOO(x) 'x'
4278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4284 int argc;
4285 char **argv;
4286 int
4287 main ()
4288 {
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4296 do
4297 CC="$ac_save_CC $ac_arg"
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_prog_cc_c89=$ac_arg
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext
4302 test "x$ac_cv_prog_cc_c89" != "xno" && break
4303 done
4304 rm -f conftest.$ac_ext
4305 CC=$ac_save_CC
4306
4307 fi
4308 # AC_CACHE_VAL
4309 case "x$ac_cv_prog_cc_c89" in
4310 x)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312 $as_echo "none needed" >&6; } ;;
4313 xno)
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 $as_echo "unsupported" >&6; } ;;
4316 *)
4317 CC="$CC $ac_cv_prog_cc_c89"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4320 esac
4321 if test "x$ac_cv_prog_cc_c89" != xno; then :
4322
4323 fi
4324
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4337 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4338 if ${am_cv_prog_cc_c_o+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343
4344 int
4345 main ()
4346 {
4347
4348 ;
4349 return 0;
4350 }
4351 _ACEOF
4352 # Make sure it works both with $CC and with simple cc.
4353 # Following AC_PROG_CC_C_O, we do the test twice because some
4354 # compilers refuse to overwrite an existing .o file with -o,
4355 # though they will create one.
4356 am_cv_prog_cc_c_o=yes
4357 for am_i in 1 2; do
4358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } \
4363 && test -f conftest2.$ac_objext; then
4364 : OK
4365 else
4366 am_cv_prog_cc_c_o=no
4367 break
4368 fi
4369 done
4370 rm -f core conftest*
4371 unset am_i
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4374 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4375 if test "$am_cv_prog_cc_c_o" != yes; then
4376 # Losing compiler, so override with the script.
4377 # FIXME: It is wrong to rewrite CC.
4378 # But if we don't then we get into trouble of one sort or another.
4379 # A longer-term fix would be to have automake use am__CC in this case,
4380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4381 CC="$am_aux_dir/compile $CC"
4382 fi
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388
4389 DEPDIR="${am__leading_dot}deps"
4390
4391 ac_config_commands="$ac_config_commands depfiles"
4392
4393
4394 am_make=${MAKE-make}
4395 cat > confinc << 'END'
4396 am__doit:
4397 @echo this is the am__doit target
4398 .PHONY: am__doit
4399 END
4400 # If we don't find an include directive, just comment out the code.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4403 am__include="#"
4404 am__quote=
4405 _am_result=none
4406 # First try GNU make style include.
4407 echo "include confinc" > confmf
4408 # Ignore all kinds of additional output from 'make'.
4409 case `$am_make -s -f confmf 2> /dev/null` in #(
4410 *the\ am__doit\ target*)
4411 am__include=include
4412 am__quote=
4413 _am_result=GNU
4414 ;;
4415 esac
4416 # Now try BSD make style include.
4417 if test "$am__include" = "#"; then
4418 echo '.include "confinc"' > confmf
4419 case `$am_make -s -f confmf 2> /dev/null` in #(
4420 *the\ am__doit\ target*)
4421 am__include=.include
4422 am__quote="\""
4423 _am_result=BSD
4424 ;;
4425 esac
4426 fi
4427
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4430 $as_echo "$_am_result" >&6; }
4431 rm -f confinc confmf
4432
4433 # Check whether --enable-dependency-tracking was given.
4434 if test "${enable_dependency_tracking+set}" = set; then :
4435 enableval=$enable_dependency_tracking;
4436 fi
4437
4438 if test "x$enable_dependency_tracking" != xno; then
4439 am_depcomp="$ac_aux_dir/depcomp"
4440 AMDEPBACKSLASH='\'
4441 am__nodep='_no'
4442 fi
4443 if test "x$enable_dependency_tracking" != xno; then
4444 AMDEP_TRUE=
4445 AMDEP_FALSE='#'
4446 else
4447 AMDEP_TRUE='#'
4448 AMDEP_FALSE=
4449 fi
4450
4451
4452
4453 depcc="$CC" am_compiler_list=
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456 $as_echo_n "checking dependency style of $depcc... " >&6; }
4457 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461 # We make a subdir and do the tests there. Otherwise we can end up
4462 # making bogus files that we don't know about and never remove. For
4463 # instance it was reported that on HP-UX the gcc test will end up
4464 # making a dummy file named 'D' -- because '-MD' means "put the output
4465 # in D".
4466 rm -rf conftest.dir
4467 mkdir conftest.dir
4468 # Copy depcomp to subdir because otherwise we won't find it if we're
4469 # using a relative directory.
4470 cp "$am_depcomp" conftest.dir
4471 cd conftest.dir
4472 # We will build objects and dependencies in a subdirectory because
4473 # it helps to detect inapplicable dependency modes. For instance
4474 # both Tru64's cc and ICC support -MD to output dependencies as a
4475 # side effect of compilation, but ICC will put the dependencies in
4476 # the current directory while Tru64 will put them in the object
4477 # directory.
4478 mkdir sub
4479
4480 am_cv_CC_dependencies_compiler_type=none
4481 if test "$am_compiler_list" = ""; then
4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4483 fi
4484 am__universal=false
4485 case " $depcc " in #(
4486 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4487 esac
4488
4489 for depmode in $am_compiler_list; do
4490 # Setup a source with many dependencies, because some compilers
4491 # like to wrap large dependency lists on column 80 (with \), and
4492 # we should not choose a depcomp mode which is confused by this.
4493 #
4494 # We need to recreate these files for each test, as the compiler may
4495 # overwrite some of them when testing with obscure command lines.
4496 # This happens at least with the AIX C compiler.
4497 : > sub/conftest.c
4498 for i in 1 2 3 4 5 6; do
4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4501 # Solaris 10 /bin/sh.
4502 echo '/* dummy */' > sub/conftst$i.h
4503 done
4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4505
4506 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4507 # mode. It turns out that the SunPro C++ compiler does not properly
4508 # handle '-M -o', and we need to detect this. Also, some Intel
4509 # versions had trouble with output in subdirs.
4510 am__obj=sub/conftest.${OBJEXT-o}
4511 am__minus_obj="-o $am__obj"
4512 case $depmode in
4513 gcc)
4514 # This depmode causes a compiler race in universal mode.
4515 test "$am__universal" = false || continue
4516 ;;
4517 nosideeffect)
4518 # After this tag, mechanisms are not by side-effect, so they'll
4519 # only be used when explicitly requested.
4520 if test "x$enable_dependency_tracking" = xyes; then
4521 continue
4522 else
4523 break
4524 fi
4525 ;;
4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4527 # This compiler won't grok '-c -o', but also, the minuso test has
4528 # not run yet. These depmodes are late enough in the game, and
4529 # so weak that their functioning should not be impacted.
4530 am__obj=conftest.${OBJEXT-o}
4531 am__minus_obj=
4532 ;;
4533 none) break ;;
4534 esac
4535 if depmode=$depmode \
4536 source=sub/conftest.c object=$am__obj \
4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4539 >/dev/null 2>conftest.err &&
4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4544 # icc doesn't choke on unknown options, it will just issue warnings
4545 # or remarks (even with -Werror). So we grep stderr for any message
4546 # that says an option was ignored or not supported.
4547 # When given -MP, icc 7.0 and 7.1 complain thusly:
4548 # icc: Command line warning: ignoring option '-M'; no argument required
4549 # The diagnosis changed in icc 8.0:
4550 # icc: Command line remark: option '-MP' not supported
4551 if (grep 'ignoring option' conftest.err ||
4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4553 am_cv_CC_dependencies_compiler_type=$depmode
4554 break
4555 fi
4556 fi
4557 done
4558
4559 cd ..
4560 rm -rf conftest.dir
4561 else
4562 am_cv_CC_dependencies_compiler_type=none
4563 fi
4564
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4567 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4569
4570 if
4571 test "x$enable_dependency_tracking" != xno \
4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4573 am__fastdepCC_TRUE=
4574 am__fastdepCC_FALSE='#'
4575 else
4576 am__fastdepCC_TRUE='#'
4577 am__fastdepCC_FALSE=
4578 fi
4579
4580
4581
4582
4583
4584
4585 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4586 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4587 # in both places for now and restore CFLAGS at the end of config.
4588 save_CFLAGS="$CFLAGS"
4589
4590 # Add -Wall -Werror if we are using GCC.
4591 if test "x$GCC" = "xyes"; then
4592 XCFLAGS="$XCFLAGS -Wall -Werror"
4593 fi
4594
4595 # Find other programs we need.
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}ar; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_AR+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$AR"; then
4605 ac_cv_prog_AR="$AR" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_AR="${ac_tool_prefix}ar"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 AR=$ac_cv_prog_AR
4625 if test -n "$AR"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4627 $as_echo "$AR" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633
4634 fi
4635 if test -z "$ac_cv_prog_AR"; then
4636 ac_ct_AR=$AR
4637 # Extract the first word of "ar", so it can be a program name with args.
4638 set dummy ar; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$ac_ct_AR"; then
4645 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_AR="ar"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4665 if test -n "$ac_ct_AR"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4667 $as_echo "$ac_ct_AR" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673 if test "x$ac_ct_AR" = x; then
4674 AR=""
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682 AR=$ac_ct_AR
4683 fi
4684 else
4685 AR="$ac_cv_prog_AR"
4686 fi
4687
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_prog_RANLIB+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if test -n "$RANLIB"; then
4697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710 done
4711 done
4712 IFS=$as_save_IFS
4713
4714 fi
4715 fi
4716 RANLIB=$ac_cv_prog_RANLIB
4717 if test -n "$RANLIB"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4719 $as_echo "$RANLIB" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 fi
4724
4725
4726 fi
4727 if test -z "$ac_cv_prog_RANLIB"; then
4728 ac_ct_RANLIB=$RANLIB
4729 # Extract the first word of "ranlib", so it can be a program name with args.
4730 set dummy ranlib; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 if test -n "$ac_ct_RANLIB"; then
4737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746 ac_cv_prog_ac_ct_RANLIB="ranlib"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 fi
4755 fi
4756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4757 if test -n "$ac_ct_RANLIB"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4759 $as_echo "$ac_ct_RANLIB" >&6; }
4760 else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763 fi
4764
4765 if test "x$ac_ct_RANLIB" = x; then
4766 RANLIB="ranlib-not-found-in-path-error"
4767 else
4768 case $cross_compiling:$ac_tool_warned in
4769 yes:)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4772 ac_tool_warned=yes ;;
4773 esac
4774 RANLIB=$ac_ct_RANLIB
4775 fi
4776 else
4777 RANLIB="$ac_cv_prog_RANLIB"
4778 fi
4779
4780 # Extract the first word of "perl", so it can be a program name with args.
4781 set dummy perl; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_path_PERL+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 case $PERL in
4788 [\\/]* | ?:[\\/]*)
4789 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4790 ;;
4791 *)
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803 done
4804 done
4805 IFS=$as_save_IFS
4806
4807 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4808 ;;
4809 esac
4810 fi
4811 PERL=$ac_cv_path_PERL
4812 if test -n "$PERL"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4814 $as_echo "$PERL" >&6; }
4815 else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4818 fi
4819
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4822 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4823 set x ${MAKE-make}
4824 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4825 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 cat >conftest.make <<\_ACEOF
4829 SHELL = /bin/sh
4830 all:
4831 @echo '@@@%%%=$(MAKE)=@@@%%%'
4832 _ACEOF
4833 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4834 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4835 *@@@%%%=?*=@@@%%%*)
4836 eval ac_cv_prog_make_${ac_make}_set=yes;;
4837 *)
4838 eval ac_cv_prog_make_${ac_make}_set=no;;
4839 esac
4840 rm -f conftest.make
4841 fi
4842 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4844 $as_echo "yes" >&6; }
4845 SET_MAKE=
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 SET_MAKE="MAKE=${MAKE-make}"
4850 fi
4851
4852
4853
4854 # See if makeinfo has been installed and is modern enough
4855 # that we can use it.
4856
4857 # Extract the first word of "makeinfo", so it can be a program name with args.
4858 set dummy makeinfo; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_MAKEINFO+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$MAKEINFO"; then
4865 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_MAKEINFO="makeinfo"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 MAKEINFO=$ac_cv_prog_MAKEINFO
4885 if test -n "$MAKEINFO"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4887 $as_echo "$MAKEINFO" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893
4894 if test -n "$MAKEINFO"; then
4895 # Found it, now check the version.
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4897 $as_echo_n "checking for modern makeinfo... " >&6; }
4898 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4902 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4903
4904 case $ac_prog_version in
4905 '') gcc_cv_prog_makeinfo_modern=no;;
4906 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4907 *) gcc_cv_prog_makeinfo_modern=no;;
4908 esac
4909
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4912 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4913 else
4914 gcc_cv_prog_makeinfo_modern=no
4915 fi
4916 if test $gcc_cv_prog_makeinfo_modern = no; then
4917 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4918 fi
4919
4920 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4921 BUILD_INFO_TRUE=
4922 BUILD_INFO_FALSE='#'
4923 else
4924 BUILD_INFO_TRUE='#'
4925 BUILD_INFO_FALSE=
4926 fi
4927
4928
4929
4930 # Configure libtool
4931 case `pwd` in
4932 *\ * | *\ *)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4934 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4935 esac
4936
4937
4938
4939 macro_version='2.2.7a'
4940 macro_revision='1.3134'
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 ltmain="$ac_aux_dir/ltmain.sh"
4955
4956 # Backslashify metacharacters that are still active within
4957 # double-quoted strings.
4958 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4959
4960 # Same as above, but do not quote variable references.
4961 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4962
4963 # Sed substitution to delay expansion of an escaped shell variable in a
4964 # double_quote_subst'ed string.
4965 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4966
4967 # Sed substitution to delay expansion of an escaped single quote.
4968 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4969
4970 # Sed substitution to avoid accidental globbing in evaled expressions
4971 no_glob_subst='s/\*/\\\*/g'
4972
4973 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4974 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4975 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4978 $as_echo_n "checking how to print strings... " >&6; }
4979 # Test print first, because it will be a builtin if present.
4980 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4981 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4982 ECHO='print -r --'
4983 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4984 ECHO='printf %s\n'
4985 else
4986 # Use this function as a fallback that always works.
4987 func_fallback_echo ()
4988 {
4989 eval 'cat <<_LTECHO_EOF
4990 $1
4991 _LTECHO_EOF'
4992 }
4993 ECHO='func_fallback_echo'
4994 fi
4995
4996 # func_echo_all arg...
4997 # Invoke $ECHO with all args, space-separated.
4998 func_echo_all ()
4999 {
5000 $ECHO ""
5001 }
5002
5003 case "$ECHO" in
5004 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5005 $as_echo "printf" >&6; } ;;
5006 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5007 $as_echo "print -r" >&6; } ;;
5008 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5009 $as_echo "cat" >&6; } ;;
5010 esac
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5026 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5027 if ${ac_cv_path_SED+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5031 for ac_i in 1 2 3 4 5 6 7; do
5032 ac_script="$ac_script$as_nl$ac_script"
5033 done
5034 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5035 { ac_script=; unset ac_script;}
5036 if test -z "$SED"; then
5037 ac_path_SED_found=false
5038 # Loop through the user's path and test for each of PROGNAME-LIST
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_prog in sed gsed; do
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5047 as_fn_executable_p "$ac_path_SED" || continue
5048 # Check for GNU ac_path_SED and select it if it is found.
5049 # Check for GNU $ac_path_SED
5050 case `"$ac_path_SED" --version 2>&1` in
5051 *GNU*)
5052 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5053 *)
5054 ac_count=0
5055 $as_echo_n 0123456789 >"conftest.in"
5056 while :
5057 do
5058 cat "conftest.in" "conftest.in" >"conftest.tmp"
5059 mv "conftest.tmp" "conftest.in"
5060 cp "conftest.in" "conftest.nl"
5061 $as_echo '' >> "conftest.nl"
5062 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5064 as_fn_arith $ac_count + 1 && ac_count=$as_val
5065 if test $ac_count -gt ${ac_path_SED_max-0}; then
5066 # Best one so far, save it but keep looking for a better one
5067 ac_cv_path_SED="$ac_path_SED"
5068 ac_path_SED_max=$ac_count
5069 fi
5070 # 10*(2^10) chars as input seems more than enough
5071 test $ac_count -gt 10 && break
5072 done
5073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5074 esac
5075
5076 $ac_path_SED_found && break 3
5077 done
5078 done
5079 done
5080 IFS=$as_save_IFS
5081 if test -z "$ac_cv_path_SED"; then
5082 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5083 fi
5084 else
5085 ac_cv_path_SED=$SED
5086 fi
5087
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5090 $as_echo "$ac_cv_path_SED" >&6; }
5091 SED="$ac_cv_path_SED"
5092 rm -f conftest.sed
5093
5094 test -z "$SED" && SED=sed
5095 Xsed="$SED -e 1s/^X//"
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5109 if ${ac_cv_path_GREP+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -z "$GREP"; then
5113 ac_path_GREP_found=false
5114 # Loop through the user's path and test for each of PROGNAME-LIST
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_prog in grep ggrep; do
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5123 as_fn_executable_p "$ac_path_GREP" || continue
5124 # Check for GNU ac_path_GREP and select it if it is found.
5125 # Check for GNU $ac_path_GREP
5126 case `"$ac_path_GREP" --version 2>&1` in
5127 *GNU*)
5128 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5129 *)
5130 ac_count=0
5131 $as_echo_n 0123456789 >"conftest.in"
5132 while :
5133 do
5134 cat "conftest.in" "conftest.in" >"conftest.tmp"
5135 mv "conftest.tmp" "conftest.in"
5136 cp "conftest.in" "conftest.nl"
5137 $as_echo 'GREP' >> "conftest.nl"
5138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5140 as_fn_arith $ac_count + 1 && ac_count=$as_val
5141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5142 # Best one so far, save it but keep looking for a better one
5143 ac_cv_path_GREP="$ac_path_GREP"
5144 ac_path_GREP_max=$ac_count
5145 fi
5146 # 10*(2^10) chars as input seems more than enough
5147 test $ac_count -gt 10 && break
5148 done
5149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5150 esac
5151
5152 $ac_path_GREP_found && break 3
5153 done
5154 done
5155 done
5156 IFS=$as_save_IFS
5157 if test -z "$ac_cv_path_GREP"; then
5158 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5159 fi
5160 else
5161 ac_cv_path_GREP=$GREP
5162 fi
5163
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5166 $as_echo "$ac_cv_path_GREP" >&6; }
5167 GREP="$ac_cv_path_GREP"
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5171 $as_echo_n "checking for egrep... " >&6; }
5172 if ${ac_cv_path_EGREP+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5176 then ac_cv_path_EGREP="$GREP -E"
5177 else
5178 if test -z "$EGREP"; then
5179 ac_path_EGREP_found=false
5180 # Loop through the user's path and test for each of PROGNAME-LIST
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_prog in egrep; do
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5189 as_fn_executable_p "$ac_path_EGREP" || continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191 # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in
5193 *GNU*)
5194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5195 *)
5196 ac_count=0
5197 $as_echo_n 0123456789 >"conftest.in"
5198 while :
5199 do
5200 cat "conftest.in" "conftest.in" >"conftest.tmp"
5201 mv "conftest.tmp" "conftest.in"
5202 cp "conftest.in" "conftest.nl"
5203 $as_echo 'EGREP' >> "conftest.nl"
5204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206 as_fn_arith $ac_count + 1 && ac_count=$as_val
5207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_EGREP="$ac_path_EGREP"
5210 ac_path_EGREP_max=$ac_count
5211 fi
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5214 done
5215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216 esac
5217
5218 $ac_path_EGREP_found && break 3
5219 done
5220 done
5221 done
5222 IFS=$as_save_IFS
5223 if test -z "$ac_cv_path_EGREP"; then
5224 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 fi
5226 else
5227 ac_cv_path_EGREP=$EGREP
5228 fi
5229
5230 fi
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5233 $as_echo "$ac_cv_path_EGREP" >&6; }
5234 EGREP="$ac_cv_path_EGREP"
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5238 $as_echo_n "checking for fgrep... " >&6; }
5239 if ${ac_cv_path_FGREP+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5243 then ac_cv_path_FGREP="$GREP -F"
5244 else
5245 if test -z "$FGREP"; then
5246 ac_path_FGREP_found=false
5247 # Loop through the user's path and test for each of PROGNAME-LIST
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_prog in fgrep; do
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5256 as_fn_executable_p "$ac_path_FGREP" || continue
5257 # Check for GNU ac_path_FGREP and select it if it is found.
5258 # Check for GNU $ac_path_FGREP
5259 case `"$ac_path_FGREP" --version 2>&1` in
5260 *GNU*)
5261 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5262 *)
5263 ac_count=0
5264 $as_echo_n 0123456789 >"conftest.in"
5265 while :
5266 do
5267 cat "conftest.in" "conftest.in" >"conftest.tmp"
5268 mv "conftest.tmp" "conftest.in"
5269 cp "conftest.in" "conftest.nl"
5270 $as_echo 'FGREP' >> "conftest.nl"
5271 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273 as_fn_arith $ac_count + 1 && ac_count=$as_val
5274 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5275 # Best one so far, save it but keep looking for a better one
5276 ac_cv_path_FGREP="$ac_path_FGREP"
5277 ac_path_FGREP_max=$ac_count
5278 fi
5279 # 10*(2^10) chars as input seems more than enough
5280 test $ac_count -gt 10 && break
5281 done
5282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283 esac
5284
5285 $ac_path_FGREP_found && break 3
5286 done
5287 done
5288 done
5289 IFS=$as_save_IFS
5290 if test -z "$ac_cv_path_FGREP"; then
5291 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292 fi
5293 else
5294 ac_cv_path_FGREP=$FGREP
5295 fi
5296
5297 fi
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5300 $as_echo "$ac_cv_path_FGREP" >&6; }
5301 FGREP="$ac_cv_path_FGREP"
5302
5303
5304 test -z "$GREP" && GREP=grep
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324 # Check whether --with-gnu-ld was given.
5325 if test "${with_gnu_ld+set}" = set; then :
5326 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5327 else
5328 with_gnu_ld=no
5329 fi
5330
5331 ac_prog=ld
5332 if test "$GCC" = yes; then
5333 # Check if gcc -print-prog-name=ld gives a path.
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5335 $as_echo_n "checking for ld used by $CC... " >&6; }
5336 case $host in
5337 *-*-mingw*)
5338 # gcc leaves a trailing carriage return which upsets mingw
5339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5340 *)
5341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5342 esac
5343 case $ac_prog in
5344 # Accept absolute paths.
5345 [\\/]* | ?:[\\/]*)
5346 re_direlt='/[^/][^/]*/\.\./'
5347 # Canonicalize the pathname of ld
5348 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5349 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5350 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5351 done
5352 test -z "$LD" && LD="$ac_prog"
5353 ;;
5354 "")
5355 # If it fails, then pretend we aren't using GCC.
5356 ac_prog=ld
5357 ;;
5358 *)
5359 # If it is relative, then search for the first ld in PATH.
5360 with_gnu_ld=unknown
5361 ;;
5362 esac
5363 elif test "$with_gnu_ld" = yes; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5365 $as_echo_n "checking for GNU ld... " >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5368 $as_echo_n "checking for non-GNU ld... " >&6; }
5369 fi
5370 if ${lt_cv_path_LD+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -z "$LD"; then
5374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5375 for ac_dir in $PATH; do
5376 IFS="$lt_save_ifs"
5377 test -z "$ac_dir" && ac_dir=.
5378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5379 lt_cv_path_LD="$ac_dir/$ac_prog"
5380 # Check to see if the program is GNU ld. I'd rather use --version,
5381 # but apparently some variants of GNU ld only accept -v.
5382 # Break only if it was the GNU/non-GNU ld that we prefer.
5383 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5384 *GNU* | *'with BFD'*)
5385 test "$with_gnu_ld" != no && break
5386 ;;
5387 *)
5388 test "$with_gnu_ld" != yes && break
5389 ;;
5390 esac
5391 fi
5392 done
5393 IFS="$lt_save_ifs"
5394 else
5395 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5396 fi
5397 fi
5398
5399 LD="$lt_cv_path_LD"
5400 if test -n "$LD"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5402 $as_echo "$LD" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5409 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5410 if ${lt_cv_prog_gnu_ld+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5414 case `$LD -v 2>&1 </dev/null` in
5415 *GNU* | *'with BFD'*)
5416 lt_cv_prog_gnu_ld=yes
5417 ;;
5418 *)
5419 lt_cv_prog_gnu_ld=no
5420 ;;
5421 esac
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5424 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5425 with_gnu_ld=$lt_cv_prog_gnu_ld
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5436 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5437 if ${lt_cv_path_NM+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -n "$NM"; then
5441 # Let the user override the test.
5442 lt_cv_path_NM="$NM"
5443 else
5444 lt_nm_to_check="${ac_tool_prefix}nm"
5445 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5446 lt_nm_to_check="$lt_nm_to_check nm"
5447 fi
5448 for lt_tmp_nm in $lt_nm_to_check; do
5449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5451 IFS="$lt_save_ifs"
5452 test -z "$ac_dir" && ac_dir=.
5453 tmp_nm="$ac_dir/$lt_tmp_nm"
5454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5455 # Check to see if the nm accepts a BSD-compat flag.
5456 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5457 # nm: unknown option "B" ignored
5458 # Tru64's nm complains that /dev/null is an invalid object file
5459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5460 */dev/null* | *'Invalid file or object type'*)
5461 lt_cv_path_NM="$tmp_nm -B"
5462 break
5463 ;;
5464 *)
5465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5466 */dev/null*)
5467 lt_cv_path_NM="$tmp_nm -p"
5468 break
5469 ;;
5470 *)
5471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5472 continue # so that we can try to find one that supports BSD flags
5473 ;;
5474 esac
5475 ;;
5476 esac
5477 fi
5478 done
5479 IFS="$lt_save_ifs"
5480 done
5481 : ${lt_cv_path_NM=no}
5482 fi
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5485 $as_echo "$lt_cv_path_NM" >&6; }
5486 if test "$lt_cv_path_NM" != "no"; then
5487 NM="$lt_cv_path_NM"
5488 else
5489 # Didn't find any BSD compatible name lister, look for dumpbin.
5490 if test -n "$DUMPBIN"; then :
5491 # Let the user override the test.
5492 else
5493 if test -n "$ac_tool_prefix"; then
5494 for ac_prog in dumpbin "link -dump"
5495 do
5496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_prog_DUMPBIN+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$DUMPBIN"; then
5504 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517 done
5518 done
5519 IFS=$as_save_IFS
5520
5521 fi
5522 fi
5523 DUMPBIN=$ac_cv_prog_DUMPBIN
5524 if test -n "$DUMPBIN"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5526 $as_echo "$DUMPBIN" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 fi
5531
5532
5533 test -n "$DUMPBIN" && break
5534 done
5535 fi
5536 if test -z "$DUMPBIN"; then
5537 ac_ct_DUMPBIN=$DUMPBIN
5538 for ac_prog in dumpbin "link -dump"
5539 do
5540 # Extract the first word of "$ac_prog", so it can be a program name with args.
5541 set dummy $ac_prog; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$ac_ct_DUMPBIN"; then
5548 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561 done
5562 done
5563 IFS=$as_save_IFS
5564
5565 fi
5566 fi
5567 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5568 if test -n "$ac_ct_DUMPBIN"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5570 $as_echo "$ac_ct_DUMPBIN" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 fi
5575
5576
5577 test -n "$ac_ct_DUMPBIN" && break
5578 done
5579
5580 if test "x$ac_ct_DUMPBIN" = x; then
5581 DUMPBIN=":"
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584 yes:)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589 DUMPBIN=$ac_ct_DUMPBIN
5590 fi
5591 fi
5592
5593 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5594 *COFF*)
5595 DUMPBIN="$DUMPBIN -symbols"
5596 ;;
5597 *)
5598 DUMPBIN=:
5599 ;;
5600 esac
5601 fi
5602
5603 if test "$DUMPBIN" != ":"; then
5604 NM="$DUMPBIN"
5605 fi
5606 fi
5607 test -z "$NM" && NM=nm
5608
5609
5610
5611
5612
5613
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5615 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5616 if ${lt_cv_nm_interface+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 lt_cv_nm_interface="BSD nm"
5620 echo "int some_variable = 0;" > conftest.$ac_ext
5621 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5622 (eval "$ac_compile" 2>conftest.err)
5623 cat conftest.err >&5
5624 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5625 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5626 cat conftest.err >&5
5627 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5628 cat conftest.out >&5
5629 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5630 lt_cv_nm_interface="MS dumpbin"
5631 fi
5632 rm -f conftest*
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5635 $as_echo "$lt_cv_nm_interface" >&6; }
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5638 $as_echo_n "checking whether ln -s works... " >&6; }
5639 LN_S=$as_ln_s
5640 if test "$LN_S" = "ln -s"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5642 $as_echo "yes" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5645 $as_echo "no, using $LN_S" >&6; }
5646 fi
5647
5648 # find the maximum length of command line arguments
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5650 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5651 if ${lt_cv_sys_max_cmd_len+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 i=0
5655 teststring="ABCD"
5656
5657 case $build_os in
5658 msdosdjgpp*)
5659 # On DJGPP, this test can blow up pretty badly due to problems in libc
5660 # (any single argument exceeding 2000 bytes causes a buffer overrun
5661 # during glob expansion). Even if it were fixed, the result of this
5662 # check would be larger than it should be.
5663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5664 ;;
5665
5666 gnu*)
5667 # Under GNU Hurd, this test is not required because there is
5668 # no limit to the length of command line arguments.
5669 # Libtool will interpret -1 as no limit whatsoever
5670 lt_cv_sys_max_cmd_len=-1;
5671 ;;
5672
5673 cygwin* | mingw* | cegcc*)
5674 # On Win9x/ME, this test blows up -- it succeeds, but takes
5675 # about 5 minutes as the teststring grows exponentially.
5676 # Worse, since 9x/ME are not pre-emptively multitasking,
5677 # you end up with a "frozen" computer, even though with patience
5678 # the test eventually succeeds (with a max line length of 256k).
5679 # Instead, let's just punt: use the minimum linelength reported by
5680 # all of the supported platforms: 8192 (on NT/2K/XP).
5681 lt_cv_sys_max_cmd_len=8192;
5682 ;;
5683
5684 mint*)
5685 # On MiNT this can take a long time and run out of memory.
5686 lt_cv_sys_max_cmd_len=8192;
5687 ;;
5688
5689 amigaos*)
5690 # On AmigaOS with pdksh, this test takes hours, literally.
5691 # So we just punt and use a minimum line length of 8192.
5692 lt_cv_sys_max_cmd_len=8192;
5693 ;;
5694
5695 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5696 # This has been around since 386BSD, at least. Likely further.
5697 if test -x /sbin/sysctl; then
5698 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5699 elif test -x /usr/sbin/sysctl; then
5700 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5701 else
5702 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5703 fi
5704 # And add a safety zone
5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5707 ;;
5708
5709 interix*)
5710 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5711 lt_cv_sys_max_cmd_len=196608
5712 ;;
5713
5714 osf*)
5715 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5716 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5717 # nice to cause kernel panics so lets avoid the loop below.
5718 # First set a reasonable default.
5719 lt_cv_sys_max_cmd_len=16384
5720 #
5721 if test -x /sbin/sysconfig; then
5722 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5723 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5724 esac
5725 fi
5726 ;;
5727 sco3.2v5*)
5728 lt_cv_sys_max_cmd_len=102400
5729 ;;
5730 sysv5* | sco5v6* | sysv4.2uw2*)
5731 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5732 if test -n "$kargmax"; then
5733 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5734 else
5735 lt_cv_sys_max_cmd_len=32768
5736 fi
5737 ;;
5738 *)
5739 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5740 if test -n "$lt_cv_sys_max_cmd_len"; then
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5743 else
5744 # Make teststring a little bigger before we do anything with it.
5745 # a 1K string should be a reasonable start.
5746 for i in 1 2 3 4 5 6 7 8 ; do
5747 teststring=$teststring$teststring
5748 done
5749 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5750 # If test is not a shell built-in, we'll probably end up computing a
5751 # maximum length that is only half of the actual maximum length, but
5752 # we can't tell.
5753 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5754 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5755 test $i != 17 # 1/2 MB should be enough
5756 do
5757 i=`expr $i + 1`
5758 teststring=$teststring$teststring
5759 done
5760 # Only check the string length outside the loop.
5761 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5762 teststring=
5763 # Add a significant safety factor because C++ compilers can tack on
5764 # massive amounts of additional arguments before passing them to the
5765 # linker. It appears as though 1/2 is a usable value.
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5767 fi
5768 ;;
5769 esac
5770
5771 fi
5772
5773 if test -n $lt_cv_sys_max_cmd_len ; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5775 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5778 $as_echo "none" >&6; }
5779 fi
5780 max_cmd_len=$lt_cv_sys_max_cmd_len
5781
5782
5783
5784
5785
5786
5787 : ${CP="cp -f"}
5788 : ${MV="mv -f"}
5789 : ${RM="rm -f"}
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5792 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5793 # Try some XSI features
5794 xsi_shell=no
5795 ( _lt_dummy="a/b/c"
5796 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5797 = c,a/b,, \
5798 && eval 'test $(( 1 + 1 )) -eq 2 \
5799 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5800 && xsi_shell=yes
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5802 $as_echo "$xsi_shell" >&6; }
5803
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5806 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5807 lt_shell_append=no
5808 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5809 >/dev/null 2>&1 \
5810 && lt_shell_append=yes
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5812 $as_echo "$lt_shell_append" >&6; }
5813
5814
5815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5816 lt_unset=unset
5817 else
5818 lt_unset=false
5819 fi
5820
5821
5822
5823
5824
5825 # test EBCDIC or ASCII
5826 case `echo X|tr X '\101'` in
5827 A) # ASCII based system
5828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5829 lt_SP2NL='tr \040 \012'
5830 lt_NL2SP='tr \015\012 \040\040'
5831 ;;
5832 *) # EBCDIC based system
5833 lt_SP2NL='tr \100 \n'
5834 lt_NL2SP='tr \r\n \100\100'
5835 ;;
5836 esac
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5847 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5848 if ${lt_cv_ld_reload_flag+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 lt_cv_ld_reload_flag='-r'
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5854 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5855 reload_flag=$lt_cv_ld_reload_flag
5856 case $reload_flag in
5857 "" | " "*) ;;
5858 *) reload_flag=" $reload_flag" ;;
5859 esac
5860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5861 case $host_os in
5862 darwin*)
5863 if test "$GCC" = yes; then
5864 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5865 else
5866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5867 fi
5868 ;;
5869 esac
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_OBJDUMP+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -n "$OBJDUMP"; then
5888 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901 done
5902 done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 OBJDUMP=$ac_cv_prog_OBJDUMP
5908 if test -n "$OBJDUMP"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5910 $as_echo "$OBJDUMP" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916
5917 fi
5918 if test -z "$ac_cv_prog_OBJDUMP"; then
5919 ac_ct_OBJDUMP=$OBJDUMP
5920 # Extract the first word of "objdump", so it can be a program name with args.
5921 set dummy objdump; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$ac_ct_OBJDUMP"; then
5928 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5948 if test -n "$ac_ct_OBJDUMP"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5950 $as_echo "$ac_ct_OBJDUMP" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956 if test "x$ac_ct_OBJDUMP" = x; then
5957 OBJDUMP="false"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 OBJDUMP=$ac_ct_OBJDUMP
5966 fi
5967 else
5968 OBJDUMP="$ac_cv_prog_OBJDUMP"
5969 fi
5970
5971 test -z "$OBJDUMP" && OBJDUMP=objdump
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5982 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5983 if ${lt_cv_deplibs_check_method+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 lt_cv_file_magic_cmd='$MAGIC_CMD'
5987 lt_cv_file_magic_test_file=
5988 lt_cv_deplibs_check_method='unknown'
5989 # Need to set the preceding variable on all platforms that support
5990 # interlibrary dependencies.
5991 # 'none' -- dependencies not supported.
5992 # `unknown' -- same as none, but documents that we really don't know.
5993 # 'pass_all' -- all dependencies passed with no checks.
5994 # 'test_compile' -- check by making test program.
5995 # 'file_magic [[regex]]' -- check by looking for files in library path
5996 # which responds to the $file_magic_cmd with a given extended regex.
5997 # If you have `file' or equivalent on your system and you're not sure
5998 # whether `pass_all' will *always* work, you probably want this one.
5999
6000 case $host_os in
6001 aix[4-9]*)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004
6005 beos*)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008
6009 bsdi[45]*)
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6011 lt_cv_file_magic_cmd='/usr/bin/file -L'
6012 lt_cv_file_magic_test_file=/shlib/libc.so
6013 ;;
6014
6015 cygwin*)
6016 # func_win32_libid is a shell function defined in ltmain.sh
6017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6018 lt_cv_file_magic_cmd='func_win32_libid'
6019 ;;
6020
6021 mingw* | pw32*)
6022 # Base MSYS/MinGW do not provide the 'file' command needed by
6023 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6024 # unless we find 'file', for example because we are cross-compiling.
6025 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6026 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6027 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6028 lt_cv_file_magic_cmd='func_win32_libid'
6029 else
6030 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6031 lt_cv_file_magic_cmd='$OBJDUMP -f'
6032 fi
6033 ;;
6034
6035 cegcc*)
6036 # use the weaker test based on 'objdump'. See mingw*.
6037 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6038 lt_cv_file_magic_cmd='$OBJDUMP -f'
6039 ;;
6040
6041 darwin* | rhapsody*)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045 freebsd* | dragonfly*)
6046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6047 case $host_cpu in
6048 i*86 )
6049 # Not sure whether the presence of OpenBSD here was a mistake.
6050 # Let's accept both of them until this is cleared up.
6051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6052 lt_cv_file_magic_cmd=/usr/bin/file
6053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6054 ;;
6055 esac
6056 else
6057 lt_cv_deplibs_check_method=pass_all
6058 fi
6059 ;;
6060
6061 gnu*)
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
6064
6065 haiku*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
6069 hpux10.20* | hpux11*)
6070 lt_cv_file_magic_cmd=/usr/bin/file
6071 case $host_cpu in
6072 ia64*)
6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6075 ;;
6076 hppa*64*)
6077 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]'
6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6079 ;;
6080 *)
6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6083 ;;
6084 esac
6085 ;;
6086
6087 interix[3-9]*)
6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6090 ;;
6091
6092 irix5* | irix6* | nonstopux*)
6093 case $LD in
6094 *-32|*"-32 ") libmagic=32-bit;;
6095 *-n32|*"-n32 ") libmagic=N32;;
6096 *-64|*"-64 ") libmagic=64-bit;;
6097 *) libmagic=never-match;;
6098 esac
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101
6102 # This must be Linux ELF.
6103 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 netbsd*)
6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6110 else
6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6112 fi
6113 ;;
6114
6115 newos6*)
6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6117 lt_cv_file_magic_cmd=/usr/bin/file
6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6119 ;;
6120
6121 *nto* | *qnx*)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124
6125 openbsd*)
6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6128 else
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130 fi
6131 ;;
6132
6133 osf3* | osf4* | osf5*)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136
6137 rdos*)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140
6141 solaris*)
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
6144
6145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 sysv4 | sysv4.3*)
6150 case $host_vendor in
6151 motorola)
6152 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]'
6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6154 ;;
6155 ncr)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158 sequent)
6159 lt_cv_file_magic_cmd='/bin/file'
6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6161 ;;
6162 sni)
6163 lt_cv_file_magic_cmd='/bin/file'
6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6165 lt_cv_file_magic_test_file=/lib/libc.so
6166 ;;
6167 siemens)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
6170 pc)
6171 lt_cv_deplibs_check_method=pass_all
6172 ;;
6173 esac
6174 ;;
6175
6176 tpf*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179 esac
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6183 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6184 file_magic_cmd=$lt_cv_file_magic_cmd
6185 deplibs_check_method=$lt_cv_deplibs_check_method
6186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}ar; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_AR+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$AR"; then
6208 ac_cv_prog_AR="$AR" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_AR="${ac_tool_prefix}ar"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 AR=$ac_cv_prog_AR
6228 if test -n "$AR"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6230 $as_echo "$AR" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235
6236
6237 fi
6238 if test -z "$ac_cv_prog_AR"; then
6239 ac_ct_AR=$AR
6240 # Extract the first word of "ar", so it can be a program name with args.
6241 set dummy ar; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if test -n "$ac_ct_AR"; then
6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257 ac_cv_prog_ac_ct_AR="ar"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6268 if test -n "$ac_ct_AR"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6270 $as_echo "$ac_ct_AR" >&6; }
6271 else
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275
6276 if test "x$ac_ct_AR" = x; then
6277 AR="false"
6278 else
6279 case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283 ac_tool_warned=yes ;;
6284 esac
6285 AR=$ac_ct_AR
6286 fi
6287 else
6288 AR="$ac_cv_prog_AR"
6289 fi
6290
6291 test -z "$AR" && AR=ar
6292 test -z "$AR_FLAGS" && AR_FLAGS=cru
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}strip; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_STRIP+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$STRIP"; then
6313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 STRIP=$ac_cv_prog_STRIP
6333 if test -n "$STRIP"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6335 $as_echo "$STRIP" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_STRIP"; then
6344 ac_ct_STRIP=$STRIP
6345 # Extract the first word of "strip", so it can be a program name with args.
6346 set dummy strip; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_STRIP"; then
6353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_STRIP="strip"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6373 if test -n "$ac_ct_STRIP"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6375 $as_echo "$ac_ct_STRIP" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381 if test "x$ac_ct_STRIP" = x; then
6382 STRIP=":"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 STRIP=$ac_ct_STRIP
6391 fi
6392 else
6393 STRIP="$ac_cv_prog_STRIP"
6394 fi
6395
6396 test -z "$STRIP" && STRIP=:
6397
6398
6399
6400
6401
6402
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_RANLIB+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$RANLIB"; then
6412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 RANLIB=$ac_cv_prog_RANLIB
6432 if test -n "$RANLIB"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6434 $as_echo "$RANLIB" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440
6441 fi
6442 if test -z "$ac_cv_prog_RANLIB"; then
6443 ac_ct_RANLIB=$RANLIB
6444 # Extract the first word of "ranlib", so it can be a program name with args.
6445 set dummy ranlib; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$ac_ct_RANLIB"; then
6452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_ac_ct_RANLIB="ranlib"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6472 if test -n "$ac_ct_RANLIB"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6474 $as_echo "$ac_ct_RANLIB" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480 if test "x$ac_ct_RANLIB" = x; then
6481 RANLIB=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 RANLIB=$ac_ct_RANLIB
6490 fi
6491 else
6492 RANLIB="$ac_cv_prog_RANLIB"
6493 fi
6494
6495 test -z "$RANLIB" && RANLIB=:
6496
6497
6498
6499
6500
6501
6502 # Determine commands to create old-style static archives.
6503 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6504 old_postinstall_cmds='chmod 644 $oldlib'
6505 old_postuninstall_cmds=
6506
6507 if test -n "$RANLIB"; then
6508 case $host_os in
6509 openbsd*)
6510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6511 ;;
6512 *)
6513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6514 ;;
6515 esac
6516 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6517 fi
6518
6519 case $host_os in
6520 darwin*)
6521 lock_old_archive_extraction=yes ;;
6522 *)
6523 lock_old_archive_extraction=no ;;
6524 esac
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 # If no C compiler was specified, use CC.
6565 LTCC=${LTCC-"$CC"}
6566
6567 # If no C compiler flags were specified, use CFLAGS.
6568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6569
6570 # Allow CC to be a program name with arguments.
6571 compiler=$CC
6572
6573
6574 # Check for command to grab the raw symbol name followed by C symbol from nm.
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6576 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6577 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580
6581 # These are sane defaults that work on at least a few old systems.
6582 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6583
6584 # Character class describing NM global symbol codes.
6585 symcode='[BCDEGRST]'
6586
6587 # Regexp to match symbols that can be accessed directly from C.
6588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6589
6590 # Define system-specific variables.
6591 case $host_os in
6592 aix*)
6593 symcode='[BCDT]'
6594 ;;
6595 cygwin* | mingw* | pw32* | cegcc*)
6596 symcode='[ABCDGISTW]'
6597 ;;
6598 hpux*)
6599 if test "$host_cpu" = ia64; then
6600 symcode='[ABCDEGRST]'
6601 fi
6602 ;;
6603 irix* | nonstopux*)
6604 symcode='[BCDEGRST]'
6605 ;;
6606 osf*)
6607 symcode='[BCDEGQRST]'
6608 ;;
6609 solaris*)
6610 symcode='[BDRT]'
6611 ;;
6612 sco3.2v5*)
6613 symcode='[DT]'
6614 ;;
6615 sysv4.2uw2*)
6616 symcode='[DT]'
6617 ;;
6618 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6619 symcode='[ABDT]'
6620 ;;
6621 sysv4)
6622 symcode='[DFNSTU]'
6623 ;;
6624 esac
6625
6626 # If we're using GNU nm, then use its standard symbol codes.
6627 case `$NM -V 2>&1` in
6628 *GNU* | *'with BFD'*)
6629 symcode='[ABCDGIRSTW]' ;;
6630 esac
6631
6632 # Transform an extracted symbol line into a proper C declaration.
6633 # Some systems (esp. on ia64) link data and code symbols differently,
6634 # so use this general approach.
6635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6636
6637 # Transform an extracted symbol line into symbol name and symbol address
6638 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6639 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'"
6640
6641 # Handle CRLF in mingw tool chain
6642 opt_cr=
6643 case $build_os in
6644 mingw*)
6645 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6646 ;;
6647 esac
6648
6649 # Try without a prefix underscore, then with it.
6650 for ac_symprfx in "" "_"; do
6651
6652 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6653 symxfrm="\\1 $ac_symprfx\\2 \\2"
6654
6655 # Write the raw and C identifiers.
6656 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6657 # Fake it for dumpbin and say T for any non-static function
6658 # and D for any global variable.
6659 # Also find C++ and __fastcall symbols from MSVC++,
6660 # which start with @ or ?.
6661 lt_cv_sys_global_symbol_pipe="$AWK '"\
6662 " {last_section=section; section=\$ 3};"\
6663 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6664 " \$ 0!~/External *\|/{next};"\
6665 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6666 " {if(hide[section]) next};"\
6667 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6668 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6669 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6670 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6671 " ' prfx=^$ac_symprfx"
6672 else
6673 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6674 fi
6675
6676 # Check to see that the pipe works correctly.
6677 pipe_works=no
6678
6679 rm -f conftest*
6680 cat > conftest.$ac_ext <<_LT_EOF
6681 #ifdef __cplusplus
6682 extern "C" {
6683 #endif
6684 char nm_test_var;
6685 void nm_test_func(void);
6686 void nm_test_func(void){}
6687 #ifdef __cplusplus
6688 }
6689 #endif
6690 int main(){nm_test_var='a';nm_test_func();return(0);}
6691 _LT_EOF
6692
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6694 (eval $ac_compile) 2>&5
6695 ac_status=$?
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; }; then
6698 # Now try to grab the symbols.
6699 nlist=conftest.nm
6700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6701 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6702 ac_status=$?
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704 test $ac_status = 0; } && test -s "$nlist"; then
6705 # Try sorting and uniquifying the output.
6706 if sort "$nlist" | uniq > "$nlist"T; then
6707 mv -f "$nlist"T "$nlist"
6708 else
6709 rm -f "$nlist"T
6710 fi
6711
6712 # Make sure that we snagged all the symbols we need.
6713 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6714 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6715 cat <<_LT_EOF > conftest.$ac_ext
6716 #ifdef __cplusplus
6717 extern "C" {
6718 #endif
6719
6720 _LT_EOF
6721 # Now generate the symbol file.
6722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6723
6724 cat <<_LT_EOF >> conftest.$ac_ext
6725
6726 /* The mapping between symbol names and symbols. */
6727 const struct {
6728 const char *name;
6729 void *address;
6730 }
6731 lt__PROGRAM__LTX_preloaded_symbols[] =
6732 {
6733 { "@PROGRAM@", (void *) 0 },
6734 _LT_EOF
6735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6736 cat <<\_LT_EOF >> conftest.$ac_ext
6737 {0, (void *) 0}
6738 };
6739
6740 /* This works around a problem in FreeBSD linker */
6741 #ifdef FREEBSD_WORKAROUND
6742 static const void *lt_preloaded_setup() {
6743 return lt__PROGRAM__LTX_preloaded_symbols;
6744 }
6745 #endif
6746
6747 #ifdef __cplusplus
6748 }
6749 #endif
6750 _LT_EOF
6751 # Now try linking the two files.
6752 mv conftest.$ac_objext conftstm.$ac_objext
6753 lt_save_LIBS="$LIBS"
6754 lt_save_CFLAGS="$CFLAGS"
6755 LIBS="conftstm.$ac_objext"
6756 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6758 (eval $ac_link) 2>&5
6759 ac_status=$?
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6762 pipe_works=yes
6763 fi
6764 LIBS="$lt_save_LIBS"
6765 CFLAGS="$lt_save_CFLAGS"
6766 else
6767 echo "cannot find nm_test_func in $nlist" >&5
6768 fi
6769 else
6770 echo "cannot find nm_test_var in $nlist" >&5
6771 fi
6772 else
6773 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6774 fi
6775 else
6776 echo "$progname: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6778 fi
6779 rm -rf conftest* conftst*
6780
6781 # Do not use the global_symbol_pipe unless it works.
6782 if test "$pipe_works" = yes; then
6783 break
6784 else
6785 lt_cv_sys_global_symbol_pipe=
6786 fi
6787 done
6788
6789 fi
6790
6791 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6792 lt_cv_sys_global_symbol_to_cdecl=
6793 fi
6794 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6796 $as_echo "failed" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6799 $as_echo "ok" >&6; }
6800 fi
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824 # Check whether --enable-libtool-lock was given.
6825 if test "${enable_libtool_lock+set}" = set; then :
6826 enableval=$enable_libtool_lock;
6827 fi
6828
6829 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6830
6831 # Some flags need to be propagated to the compiler or linker for good
6832 # libtool support.
6833 case $host in
6834 ia64-*-hpux*)
6835 # Find out which ABI we are using.
6836 echo 'int i;' > conftest.$ac_ext
6837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6838 (eval $ac_compile) 2>&5
6839 ac_status=$?
6840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6841 test $ac_status = 0; }; then
6842 case `/usr/bin/file conftest.$ac_objext` in
6843 *ELF-32*)
6844 HPUX_IA64_MODE="32"
6845 ;;
6846 *ELF-64*)
6847 HPUX_IA64_MODE="64"
6848 ;;
6849 esac
6850 fi
6851 rm -rf conftest*
6852 ;;
6853 *-*-irix6*)
6854 # Find out which ABI we are using.
6855 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857 (eval $ac_compile) 2>&5
6858 ac_status=$?
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }; then
6861 if test "$lt_cv_prog_gnu_ld" = yes; then
6862 case `/usr/bin/file conftest.$ac_objext` in
6863 *32-bit*)
6864 LD="${LD-ld} -melf32bsmip"
6865 ;;
6866 *N32*)
6867 LD="${LD-ld} -melf32bmipn32"
6868 ;;
6869 *64-bit*)
6870 LD="${LD-ld} -melf64bmip"
6871 ;;
6872 esac
6873 else
6874 case `/usr/bin/file conftest.$ac_objext` in
6875 *32-bit*)
6876 LD="${LD-ld} -32"
6877 ;;
6878 *N32*)
6879 LD="${LD-ld} -n32"
6880 ;;
6881 *64-bit*)
6882 LD="${LD-ld} -64"
6883 ;;
6884 esac
6885 fi
6886 fi
6887 rm -rf conftest*
6888 ;;
6889
6890 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6891 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6892 # Find out which ABI we are using.
6893 echo 'int i;' > conftest.$ac_ext
6894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6895 (eval $ac_compile) 2>&5
6896 ac_status=$?
6897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898 test $ac_status = 0; }; then
6899 case `/usr/bin/file conftest.o` in
6900 *32-bit*)
6901 case $host in
6902 x86_64-*kfreebsd*-gnu)
6903 LD="${LD-ld} -m elf_i386_fbsd"
6904 ;;
6905 x86_64-*linux*)
6906 case `/usr/bin/file conftest.o` in
6907 *x86-64*)
6908 LD="${LD-ld} -m elf32_x86_64"
6909 ;;
6910 *)
6911 LD="${LD-ld} -m elf_i386"
6912 ;;
6913 esac
6914 ;;
6915 powerpc64le-*linux*)
6916 LD="${LD-ld} -m elf32lppclinux"
6917 ;;
6918 powerpc64-*linux*)
6919 LD="${LD-ld} -m elf32ppclinux"
6920 ;;
6921 s390x-*linux*)
6922 LD="${LD-ld} -m elf_s390"
6923 ;;
6924 sparc64-*linux*)
6925 LD="${LD-ld} -m elf32_sparc"
6926 ;;
6927 esac
6928 ;;
6929 *64-bit*)
6930 case $host in
6931 x86_64-*kfreebsd*-gnu)
6932 LD="${LD-ld} -m elf_x86_64_fbsd"
6933 ;;
6934 x86_64-*linux*)
6935 LD="${LD-ld} -m elf_x86_64"
6936 ;;
6937 powerpcle-*linux*)
6938 LD="${LD-ld} -m elf64lppc"
6939 ;;
6940 powerpc-*linux*)
6941 LD="${LD-ld} -m elf64ppc"
6942 ;;
6943 s390*-*linux*|s390*-*tpf*)
6944 LD="${LD-ld} -m elf64_s390"
6945 ;;
6946 sparc*-*linux*)
6947 LD="${LD-ld} -m elf64_sparc"
6948 ;;
6949 esac
6950 ;;
6951 esac
6952 fi
6953 rm -rf conftest*
6954 ;;
6955
6956 *-*-sco3.2v5*)
6957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6958 SAVE_CFLAGS="$CFLAGS"
6959 CFLAGS="$CFLAGS -belf"
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6961 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6962 if ${lt_cv_cc_needs_belf+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 ac_ext=c
6966 ac_cpp='$CPP $CPPFLAGS'
6967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6970
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973
6974 int
6975 main ()
6976 {
6977
6978 ;
6979 return 0;
6980 }
6981 _ACEOF
6982 if ac_fn_c_try_link "$LINENO"; then :
6983 lt_cv_cc_needs_belf=yes
6984 else
6985 lt_cv_cc_needs_belf=no
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext \
6988 conftest$ac_exeext conftest.$ac_ext
6989 ac_ext=c
6990 ac_cpp='$CPP $CPPFLAGS'
6991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6994
6995 fi
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6998 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6999 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7000 CFLAGS="$SAVE_CFLAGS"
7001 fi
7002 ;;
7003 sparc*-*solaris*)
7004 # Find out which ABI we are using.
7005 echo 'int i;' > conftest.$ac_ext
7006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7007 (eval $ac_compile) 2>&5
7008 ac_status=$?
7009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7010 test $ac_status = 0; }; then
7011 case `/usr/bin/file conftest.o` in
7012 *64-bit*)
7013 case $lt_cv_prog_gnu_ld in
7014 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7015 *)
7016 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7017 LD="${LD-ld} -64"
7018 fi
7019 ;;
7020 esac
7021 ;;
7022 esac
7023 fi
7024 rm -rf conftest*
7025 ;;
7026 esac
7027
7028 need_locks="$enable_libtool_lock"
7029
7030
7031 case $host_os in
7032 rhapsody* | darwin*)
7033 if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7035 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$DSYMUTIL"; then
7042 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7062 if test -n "$DSYMUTIL"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7064 $as_echo "$DSYMUTIL" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070
7071 fi
7072 if test -z "$ac_cv_prog_DSYMUTIL"; then
7073 ac_ct_DSYMUTIL=$DSYMUTIL
7074 # Extract the first word of "dsymutil", so it can be a program name with args.
7075 set dummy dsymutil; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 if test -n "$ac_ct_DSYMUTIL"; then
7082 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099 fi
7100 fi
7101 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7102 if test -n "$ac_ct_DSYMUTIL"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7104 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7105 else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108 fi
7109
7110 if test "x$ac_ct_DSYMUTIL" = x; then
7111 DSYMUTIL=":"
7112 else
7113 case $cross_compiling:$ac_tool_warned in
7114 yes:)
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7117 ac_tool_warned=yes ;;
7118 esac
7119 DSYMUTIL=$ac_ct_DSYMUTIL
7120 fi
7121 else
7122 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7123 fi
7124
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_NMEDIT+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$NMEDIT"; then
7134 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 NMEDIT=$ac_cv_prog_NMEDIT
7154 if test -n "$NMEDIT"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7156 $as_echo "$NMEDIT" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_NMEDIT"; then
7165 ac_ct_NMEDIT=$NMEDIT
7166 # Extract the first word of "nmedit", so it can be a program name with args.
7167 set dummy nmedit; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -n "$ac_ct_NMEDIT"; then
7174 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7194 if test -n "$ac_ct_NMEDIT"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7196 $as_echo "$ac_ct_NMEDIT" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202 if test "x$ac_ct_NMEDIT" = x; then
7203 NMEDIT=":"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211 NMEDIT=$ac_ct_NMEDIT
7212 fi
7213 else
7214 NMEDIT="$ac_cv_prog_NMEDIT"
7215 fi
7216
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_LIPO+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$LIPO"; then
7226 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 LIPO=$ac_cv_prog_LIPO
7246 if test -n "$LIPO"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7248 $as_echo "$LIPO" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_LIPO"; then
7257 ac_ct_LIPO=$LIPO
7258 # Extract the first word of "lipo", so it can be a program name with args.
7259 set dummy lipo; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if test -n "$ac_ct_LIPO"; then
7266 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_prog_ac_ct_LIPO="lipo"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7286 if test -n "$ac_ct_LIPO"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7288 $as_echo "$ac_ct_LIPO" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294 if test "x$ac_ct_LIPO" = x; then
7295 LIPO=":"
7296 else
7297 case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303 LIPO=$ac_ct_LIPO
7304 fi
7305 else
7306 LIPO="$ac_cv_prog_LIPO"
7307 fi
7308
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}otool; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_OTOOL+:} false; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 if test -n "$OTOOL"; then
7318 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7330 fi
7331 done
7332 done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 OTOOL=$ac_cv_prog_OTOOL
7338 if test -n "$OTOOL"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7340 $as_echo "$OTOOL" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346
7347 fi
7348 if test -z "$ac_cv_prog_OTOOL"; then
7349 ac_ct_OTOOL=$OTOOL
7350 # Extract the first word of "otool", so it can be a program name with args.
7351 set dummy otool; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 if test -n "$ac_ct_OTOOL"; then
7358 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_ac_ct_OTOOL="otool"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371 done
7372 done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7378 if test -n "$ac_ct_OTOOL"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7380 $as_echo "$ac_ct_OTOOL" >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386 if test "x$ac_ct_OTOOL" = x; then
7387 OTOOL=":"
7388 else
7389 case $cross_compiling:$ac_tool_warned in
7390 yes:)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7394 esac
7395 OTOOL=$ac_ct_OTOOL
7396 fi
7397 else
7398 OTOOL="$ac_cv_prog_OTOOL"
7399 fi
7400
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_OTOOL64+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$OTOOL64"; then
7410 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 OTOOL64=$ac_cv_prog_OTOOL64
7430 if test -n "$OTOOL64"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7432 $as_echo "$OTOOL64" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_OTOOL64"; then
7441 ac_ct_OTOOL64=$OTOOL64
7442 # Extract the first word of "otool64", so it can be a program name with args.
7443 set dummy otool64; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_OTOOL64"; then
7450 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_ac_ct_OTOOL64="otool64"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7470 if test -n "$ac_ct_OTOOL64"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7472 $as_echo "$ac_ct_OTOOL64" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478 if test "x$ac_ct_OTOOL64" = x; then
7479 OTOOL64=":"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487 OTOOL64=$ac_ct_OTOOL64
7488 fi
7489 else
7490 OTOOL64="$ac_cv_prog_OTOOL64"
7491 fi
7492
7493
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7520 $as_echo_n "checking for -single_module linker flag... " >&6; }
7521 if ${lt_cv_apple_cc_single_mod+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 lt_cv_apple_cc_single_mod=no
7525 if test -z "${LT_MULTI_MODULE}"; then
7526 # By default we will add the -single_module flag. You can override
7527 # by either setting the environment variable LT_MULTI_MODULE
7528 # non-empty at configure time, or by adding -multi_module to the
7529 # link flags.
7530 rm -rf libconftest.dylib*
7531 echo "int foo(void){return 1;}" > conftest.c
7532 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7533 -dynamiclib -Wl,-single_module conftest.c" >&5
7534 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7535 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7536 _lt_result=$?
7537 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7538 lt_cv_apple_cc_single_mod=yes
7539 else
7540 cat conftest.err >&5
7541 fi
7542 rm -rf libconftest.dylib*
7543 rm -f conftest.*
7544 fi
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7549 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7550 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 lt_cv_ld_exported_symbols_list=no
7554 save_LDFLAGS=$LDFLAGS
7555 echo "_main" > conftest.sym
7556 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559
7560 int
7561 main ()
7562 {
7563
7564 ;
7565 return 0;
7566 }
7567 _ACEOF
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 lt_cv_ld_exported_symbols_list=yes
7570 else
7571 lt_cv_ld_exported_symbols_list=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575 LDFLAGS="$save_LDFLAGS"
7576
7577 fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7581 $as_echo_n "checking for -force_load linker flag... " >&6; }
7582 if ${lt_cv_ld_force_load+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 lt_cv_ld_force_load=no
7586 cat > conftest.c << _LT_EOF
7587 int forced_loaded() { return 2;}
7588 _LT_EOF
7589 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7590 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7591 echo "$AR cru libconftest.a conftest.o" >&5
7592 $AR cru libconftest.a conftest.o 2>&5
7593 cat > conftest.c << _LT_EOF
7594 int main() { return 0;}
7595 _LT_EOF
7596 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7597 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7598 _lt_result=$?
7599 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7600 lt_cv_ld_force_load=yes
7601 else
7602 cat conftest.err >&5
7603 fi
7604 rm -f conftest.err libconftest.a conftest conftest.c
7605 rm -rf conftest.dSYM
7606
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7609 $as_echo "$lt_cv_ld_force_load" >&6; }
7610 case $host_os in
7611 rhapsody* | darwin1.[012])
7612 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7613 darwin1.*)
7614 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7615 darwin*) # darwin 5.x on
7616 # if running on 10.5 or later, the deployment target defaults
7617 # to the OS version, if on x86, and 10.4, the deployment
7618 # target defaults to 10.4. Don't you love it?
7619 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7620 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7621 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7622 10.[012][,.]*)
7623 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7624 10.*)
7625 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7626 esac
7627 ;;
7628 esac
7629 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7630 _lt_dar_single_mod='$single_module'
7631 fi
7632 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7633 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7634 else
7635 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7636 fi
7637 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7638 _lt_dsymutil='~$DSYMUTIL $lib || :'
7639 else
7640 _lt_dsymutil=
7641 fi
7642 ;;
7643 esac
7644
7645 ac_ext=c
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7651 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7652 # On Suns, sometimes $CPP names a directory.
7653 if test -n "$CPP" && test -d "$CPP"; then
7654 CPP=
7655 fi
7656 if test -z "$CPP"; then
7657 if ${ac_cv_prog_CPP+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 # Double quotes because CPP needs to be expanded
7661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7662 do
7663 ac_preproc_ok=false
7664 for ac_c_preproc_warn_flag in '' yes
7665 do
7666 # Use a header file that comes with gcc, so configuring glibc
7667 # with a fresh cross-compiler works.
7668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7669 # <limits.h> exists even on freestanding compilers.
7670 # On the NeXT, cc -E runs the code through the compiler's parser,
7671 # not just through cpp. "Syntax error" is here to catch this case.
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 #ifdef __STDC__
7675 # include <limits.h>
7676 #else
7677 # include <assert.h>
7678 #endif
7679 Syntax error
7680 _ACEOF
7681 if ac_fn_c_try_cpp "$LINENO"; then :
7682
7683 else
7684 # Broken: fails on valid input.
7685 continue
7686 fi
7687 rm -f conftest.err conftest.i conftest.$ac_ext
7688
7689 # OK, works on sane cases. Now check whether nonexistent headers
7690 # can be detected and how.
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 #include <ac_nonexistent.h>
7694 _ACEOF
7695 if ac_fn_c_try_cpp "$LINENO"; then :
7696 # Broken: success on invalid input.
7697 continue
7698 else
7699 # Passes both tests.
7700 ac_preproc_ok=:
7701 break
7702 fi
7703 rm -f conftest.err conftest.i conftest.$ac_ext
7704
7705 done
7706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7707 rm -f conftest.i conftest.err conftest.$ac_ext
7708 if $ac_preproc_ok; then :
7709 break
7710 fi
7711
7712 done
7713 ac_cv_prog_CPP=$CPP
7714
7715 fi
7716 CPP=$ac_cv_prog_CPP
7717 else
7718 ac_cv_prog_CPP=$CPP
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7721 $as_echo "$CPP" >&6; }
7722 ac_preproc_ok=false
7723 for ac_c_preproc_warn_flag in '' yes
7724 do
7725 # Use a header file that comes with gcc, so configuring glibc
7726 # with a fresh cross-compiler works.
7727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7728 # <limits.h> exists even on freestanding compilers.
7729 # On the NeXT, cc -E runs the code through the compiler's parser,
7730 # not just through cpp. "Syntax error" is here to catch this case.
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 #ifdef __STDC__
7734 # include <limits.h>
7735 #else
7736 # include <assert.h>
7737 #endif
7738 Syntax error
7739 _ACEOF
7740 if ac_fn_c_try_cpp "$LINENO"; then :
7741
7742 else
7743 # Broken: fails on valid input.
7744 continue
7745 fi
7746 rm -f conftest.err conftest.i conftest.$ac_ext
7747
7748 # OK, works on sane cases. Now check whether nonexistent headers
7749 # can be detected and how.
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 #include <ac_nonexistent.h>
7753 _ACEOF
7754 if ac_fn_c_try_cpp "$LINENO"; then :
7755 # Broken: success on invalid input.
7756 continue
7757 else
7758 # Passes both tests.
7759 ac_preproc_ok=:
7760 break
7761 fi
7762 rm -f conftest.err conftest.i conftest.$ac_ext
7763
7764 done
7765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7766 rm -f conftest.i conftest.err conftest.$ac_ext
7767 if $ac_preproc_ok; then :
7768
7769 else
7770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7772 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7773 See \`config.log' for more details" "$LINENO" 5; }
7774 fi
7775
7776 ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7784 $as_echo_n "checking for ANSI C header files... " >&6; }
7785 if ${ac_cv_header_stdc+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #include <stdlib.h>
7791 #include <stdarg.h>
7792 #include <string.h>
7793 #include <float.h>
7794
7795 int
7796 main ()
7797 {
7798
7799 ;
7800 return 0;
7801 }
7802 _ACEOF
7803 if ac_fn_c_try_compile "$LINENO"; then :
7804 ac_cv_header_stdc=yes
7805 else
7806 ac_cv_header_stdc=no
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809
7810 if test $ac_cv_header_stdc = yes; then
7811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 #include <string.h>
7815
7816 _ACEOF
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "memchr" >/dev/null 2>&1; then :
7819
7820 else
7821 ac_cv_header_stdc=no
7822 fi
7823 rm -f conftest*
7824
7825 fi
7826
7827 if test $ac_cv_header_stdc = yes; then
7828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #include <stdlib.h>
7832
7833 _ACEOF
7834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7835 $EGREP "free" >/dev/null 2>&1; then :
7836
7837 else
7838 ac_cv_header_stdc=no
7839 fi
7840 rm -f conftest*
7841
7842 fi
7843
7844 if test $ac_cv_header_stdc = yes; then
7845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7846 if test "$cross_compiling" = yes; then :
7847 :
7848 else
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851 #include <ctype.h>
7852 #include <stdlib.h>
7853 #if ((' ' & 0x0FF) == 0x020)
7854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7856 #else
7857 # define ISLOWER(c) \
7858 (('a' <= (c) && (c) <= 'i') \
7859 || ('j' <= (c) && (c) <= 'r') \
7860 || ('s' <= (c) && (c) <= 'z'))
7861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7862 #endif
7863
7864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7865 int
7866 main ()
7867 {
7868 int i;
7869 for (i = 0; i < 256; i++)
7870 if (XOR (islower (i), ISLOWER (i))
7871 || toupper (i) != TOUPPER (i))
7872 return 2;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_run "$LINENO"; then :
7877
7878 else
7879 ac_cv_header_stdc=no
7880 fi
7881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7882 conftest.$ac_objext conftest.beam conftest.$ac_ext
7883 fi
7884
7885 fi
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7888 $as_echo "$ac_cv_header_stdc" >&6; }
7889 if test $ac_cv_header_stdc = yes; then
7890
7891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7892
7893 fi
7894
7895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7896 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7897 inttypes.h stdint.h unistd.h
7898 do :
7899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7900 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7901 "
7902 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7903 cat >>confdefs.h <<_ACEOF
7904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905 _ACEOF
7906
7907 fi
7908
7909 done
7910
7911
7912 for ac_header in dlfcn.h
7913 do :
7914 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7915 "
7916 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_DLFCN_H 1
7919 _ACEOF
7920
7921 fi
7922
7923 done
7924
7925
7926
7927
7928
7929 # Set options
7930
7931
7932
7933 enable_dlopen=no
7934
7935
7936 enable_win32_dll=no
7937
7938
7939 # Check whether --enable-shared was given.
7940 if test "${enable_shared+set}" = set; then :
7941 enableval=$enable_shared; p=${PACKAGE-default}
7942 case $enableval in
7943 yes) enable_shared=yes ;;
7944 no) enable_shared=no ;;
7945 *)
7946 enable_shared=no
7947 # Look at the argument we got. We use all the common list separators.
7948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7949 for pkg in $enableval; do
7950 IFS="$lt_save_ifs"
7951 if test "X$pkg" = "X$p"; then
7952 enable_shared=yes
7953 fi
7954 done
7955 IFS="$lt_save_ifs"
7956 ;;
7957 esac
7958 else
7959 enable_shared=yes
7960 fi
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970 # Check whether --enable-static was given.
7971 if test "${enable_static+set}" = set; then :
7972 enableval=$enable_static; p=${PACKAGE-default}
7973 case $enableval in
7974 yes) enable_static=yes ;;
7975 no) enable_static=no ;;
7976 *)
7977 enable_static=no
7978 # Look at the argument we got. We use all the common list separators.
7979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7980 for pkg in $enableval; do
7981 IFS="$lt_save_ifs"
7982 if test "X$pkg" = "X$p"; then
7983 enable_static=yes
7984 fi
7985 done
7986 IFS="$lt_save_ifs"
7987 ;;
7988 esac
7989 else
7990 enable_static=yes
7991 fi
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002 # Check whether --with-pic was given.
8003 if test "${with_pic+set}" = set; then :
8004 withval=$with_pic; pic_mode="$withval"
8005 else
8006 pic_mode=default
8007 fi
8008
8009
8010 test -z "$pic_mode" && pic_mode=default
8011
8012
8013
8014
8015
8016
8017
8018 # Check whether --enable-fast-install was given.
8019 if test "${enable_fast_install+set}" = set; then :
8020 enableval=$enable_fast_install; p=${PACKAGE-default}
8021 case $enableval in
8022 yes) enable_fast_install=yes ;;
8023 no) enable_fast_install=no ;;
8024 *)
8025 enable_fast_install=no
8026 # Look at the argument we got. We use all the common list separators.
8027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8028 for pkg in $enableval; do
8029 IFS="$lt_save_ifs"
8030 if test "X$pkg" = "X$p"; then
8031 enable_fast_install=yes
8032 fi
8033 done
8034 IFS="$lt_save_ifs"
8035 ;;
8036 esac
8037 else
8038 enable_fast_install=yes
8039 fi
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051 # This can be used to rebuild libtool when needed
8052 LIBTOOL_DEPS="$ltmain"
8053
8054 # Always use our own libtool.
8055 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082 test -z "$LN_S" && LN_S="ln -s"
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 if test -n "${ZSH_VERSION+set}" ; then
8098 setopt NO_GLOB_SUBST
8099 fi
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8102 $as_echo_n "checking for objdir... " >&6; }
8103 if ${lt_cv_objdir+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 rm -f .libs 2>/dev/null
8107 mkdir .libs 2>/dev/null
8108 if test -d .libs; then
8109 lt_cv_objdir=.libs
8110 else
8111 # MS-DOS does not allow filenames that begin with a dot.
8112 lt_cv_objdir=_libs
8113 fi
8114 rmdir .libs 2>/dev/null
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8117 $as_echo "$lt_cv_objdir" >&6; }
8118 objdir=$lt_cv_objdir
8119
8120
8121
8122
8123
8124 cat >>confdefs.h <<_ACEOF
8125 #define LT_OBJDIR "$lt_cv_objdir/"
8126 _ACEOF
8127
8128
8129
8130
8131 case $host_os in
8132 aix3*)
8133 # AIX sometimes has problems with the GCC collect2 program. For some
8134 # reason, if we set the COLLECT_NAMES environment variable, the problems
8135 # vanish in a puff of smoke.
8136 if test "X${COLLECT_NAMES+set}" != Xset; then
8137 COLLECT_NAMES=
8138 export COLLECT_NAMES
8139 fi
8140 ;;
8141 esac
8142
8143 # Global variables:
8144 ofile=libtool
8145 can_build_shared=yes
8146
8147 # All known linkers require a `.a' archive for static linking (except MSVC,
8148 # which needs '.lib').
8149 libext=a
8150
8151 with_gnu_ld="$lt_cv_prog_gnu_ld"
8152
8153 old_CC="$CC"
8154 old_CFLAGS="$CFLAGS"
8155
8156 # Set sane defaults for various variables
8157 test -z "$CC" && CC=cc
8158 test -z "$LTCC" && LTCC=$CC
8159 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8160 test -z "$LD" && LD=ld
8161 test -z "$ac_objext" && ac_objext=o
8162
8163 for cc_temp in $compiler""; do
8164 case $cc_temp in
8165 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8166 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8167 \-*) ;;
8168 *) break;;
8169 esac
8170 done
8171 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8172
8173
8174 # Only perform the check for file, if the check method requires it
8175 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8176 case $deplibs_check_method in
8177 file_magic*)
8178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8180 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8181 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 case $MAGIC_CMD in
8185 [\\/*] | ?:[\\/]*)
8186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8187 ;;
8188 *)
8189 lt_save_MAGIC_CMD="$MAGIC_CMD"
8190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8191 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8192 for ac_dir in $ac_dummy; do
8193 IFS="$lt_save_ifs"
8194 test -z "$ac_dir" && ac_dir=.
8195 if test -f $ac_dir/${ac_tool_prefix}file; then
8196 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8197 if test -n "$file_magic_test_file"; then
8198 case $deplibs_check_method in
8199 "file_magic "*)
8200 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8203 $EGREP "$file_magic_regex" > /dev/null; then
8204 :
8205 else
8206 cat <<_LT_EOF 1>&2
8207
8208 *** Warning: the command libtool uses to detect shared libraries,
8209 *** $file_magic_cmd, produces output that libtool cannot recognize.
8210 *** The result is that libtool may fail to recognize shared libraries
8211 *** as such. This will affect the creation of libtool libraries that
8212 *** depend on shared libraries, but programs linked with such libtool
8213 *** libraries will work regardless of this problem. Nevertheless, you
8214 *** may want to report the problem to your system manager and/or to
8215 *** bug-libtool@gnu.org
8216
8217 _LT_EOF
8218 fi ;;
8219 esac
8220 fi
8221 break
8222 fi
8223 done
8224 IFS="$lt_save_ifs"
8225 MAGIC_CMD="$lt_save_MAGIC_CMD"
8226 ;;
8227 esac
8228 fi
8229
8230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231 if test -n "$MAGIC_CMD"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8233 $as_echo "$MAGIC_CMD" >&6; }
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 fi
8238
8239
8240
8241
8242
8243 if test -z "$lt_cv_path_MAGIC_CMD"; then
8244 if test -n "$ac_tool_prefix"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8246 $as_echo_n "checking for file... " >&6; }
8247 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 case $MAGIC_CMD in
8251 [\\/*] | ?:[\\/]*)
8252 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8253 ;;
8254 *)
8255 lt_save_MAGIC_CMD="$MAGIC_CMD"
8256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8257 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8258 for ac_dir in $ac_dummy; do
8259 IFS="$lt_save_ifs"
8260 test -z "$ac_dir" && ac_dir=.
8261 if test -f $ac_dir/file; then
8262 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8263 if test -n "$file_magic_test_file"; then
8264 case $deplibs_check_method in
8265 "file_magic "*)
8266 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8268 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8269 $EGREP "$file_magic_regex" > /dev/null; then
8270 :
8271 else
8272 cat <<_LT_EOF 1>&2
8273
8274 *** Warning: the command libtool uses to detect shared libraries,
8275 *** $file_magic_cmd, produces output that libtool cannot recognize.
8276 *** The result is that libtool may fail to recognize shared libraries
8277 *** as such. This will affect the creation of libtool libraries that
8278 *** depend on shared libraries, but programs linked with such libtool
8279 *** libraries will work regardless of this problem. Nevertheless, you
8280 *** may want to report the problem to your system manager and/or to
8281 *** bug-libtool@gnu.org
8282
8283 _LT_EOF
8284 fi ;;
8285 esac
8286 fi
8287 break
8288 fi
8289 done
8290 IFS="$lt_save_ifs"
8291 MAGIC_CMD="$lt_save_MAGIC_CMD"
8292 ;;
8293 esac
8294 fi
8295
8296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8297 if test -n "$MAGIC_CMD"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8299 $as_echo "$MAGIC_CMD" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8303 fi
8304
8305
8306 else
8307 MAGIC_CMD=:
8308 fi
8309 fi
8310
8311 fi
8312 ;;
8313 esac
8314
8315 # Use C for the default configuration in the libtool script
8316
8317 lt_save_CC="$CC"
8318 ac_ext=c
8319 ac_cpp='$CPP $CPPFLAGS'
8320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8323
8324
8325 # Source file extension for C test sources.
8326 ac_ext=c
8327
8328 # Object file extension for compiled C test sources.
8329 objext=o
8330 objext=$objext
8331
8332 # Code to be used in simple compile tests
8333 lt_simple_compile_test_code="int some_variable = 0;"
8334
8335 # Code to be used in simple link tests
8336 lt_simple_link_test_code='int main(){return(0);}'
8337
8338
8339
8340
8341
8342
8343
8344 # If no C compiler was specified, use CC.
8345 LTCC=${LTCC-"$CC"}
8346
8347 # If no C compiler flags were specified, use CFLAGS.
8348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8349
8350 # Allow CC to be a program name with arguments.
8351 compiler=$CC
8352
8353 # Save the default compiler, since it gets overwritten when the other
8354 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8355 compiler_DEFAULT=$CC
8356
8357 # save warnings/boilerplate of simple test code
8358 ac_outfile=conftest.$ac_objext
8359 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8360 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8361 _lt_compiler_boilerplate=`cat conftest.err`
8362 $RM conftest*
8363
8364 ac_outfile=conftest.$ac_objext
8365 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8366 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8367 _lt_linker_boilerplate=`cat conftest.err`
8368 $RM -r conftest*
8369
8370
8371 ## CAVEAT EMPTOR:
8372 ## There is no encapsulation within the following macros, do not change
8373 ## the running order or otherwise move them around unless you know exactly
8374 ## what you are doing...
8375 if test -n "$compiler"; then
8376
8377 lt_prog_compiler_no_builtin_flag=
8378
8379 if test "$GCC" = yes; then
8380 case $cc_basename in
8381 nvcc*)
8382 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8383 *)
8384 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8385 esac
8386
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8388 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8389 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 lt_cv_prog_compiler_rtti_exceptions=no
8393 ac_outfile=conftest.$ac_objext
8394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8395 lt_compiler_flag="-fno-rtti -fno-exceptions"
8396 # Insert the option either (1) after the last *FLAGS variable, or
8397 # (2) before a word containing "conftest.", or (3) at the end.
8398 # Note that $ac_compile itself does not contain backslashes and begins
8399 # with a dollar sign (not a hyphen), so the echo should work correctly.
8400 # The option is referenced via a variable to avoid confusing sed.
8401 lt_compile=`echo "$ac_compile" | $SED \
8402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8404 -e 's:$: $lt_compiler_flag:'`
8405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8406 (eval "$lt_compile" 2>conftest.err)
8407 ac_status=$?
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 if (exit $ac_status) && test -s "$ac_outfile"; then
8411 # The compiler can only warn and ignore the option if not recognized
8412 # So say no if there are warnings other than the usual output.
8413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8416 lt_cv_prog_compiler_rtti_exceptions=yes
8417 fi
8418 fi
8419 $RM conftest*
8420
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8423 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8424
8425 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8426 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8427 else
8428 :
8429 fi
8430
8431 fi
8432
8433
8434
8435
8436
8437
8438 lt_prog_compiler_wl=
8439 lt_prog_compiler_pic=
8440 lt_prog_compiler_static=
8441
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8443 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8444
8445 if test "$GCC" = yes; then
8446 lt_prog_compiler_wl='-Wl,'
8447 lt_prog_compiler_static='-static'
8448
8449 case $host_os in
8450 aix*)
8451 # All AIX code is PIC.
8452 if test "$host_cpu" = ia64; then
8453 # AIX 5 now supports IA64 processor
8454 lt_prog_compiler_static='-Bstatic'
8455 fi
8456 lt_prog_compiler_pic='-fPIC'
8457 ;;
8458
8459 amigaos*)
8460 case $host_cpu in
8461 powerpc)
8462 # see comment about AmigaOS4 .so support
8463 lt_prog_compiler_pic='-fPIC'
8464 ;;
8465 m68k)
8466 # FIXME: we need at least 68020 code to build shared libraries, but
8467 # adding the `-m68020' flag to GCC prevents building anything better,
8468 # like `-m68040'.
8469 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8470 ;;
8471 esac
8472 ;;
8473
8474 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8475 # PIC is the default for these OSes.
8476 ;;
8477
8478 mingw* | cygwin* | pw32* | os2* | cegcc*)
8479 # This hack is so that the source file can tell whether it is being
8480 # built for inclusion in a dll (and should export symbols for example).
8481 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8482 # (--disable-auto-import) libraries
8483 lt_prog_compiler_pic='-DDLL_EXPORT'
8484 ;;
8485
8486 darwin* | rhapsody*)
8487 # PIC is the default on this platform
8488 # Common symbols not allowed in MH_DYLIB files
8489 lt_prog_compiler_pic='-fno-common'
8490 ;;
8491
8492 haiku*)
8493 # PIC is the default for Haiku.
8494 # The "-static" flag exists, but is broken.
8495 lt_prog_compiler_static=
8496 ;;
8497
8498 hpux*)
8499 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8500 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8501 # sets the default TLS model and affects inlining.
8502 case $host_cpu in
8503 hppa*64*)
8504 # +Z the default
8505 ;;
8506 *)
8507 lt_prog_compiler_pic='-fPIC'
8508 ;;
8509 esac
8510 ;;
8511
8512 interix[3-9]*)
8513 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8514 # Instead, we relocate shared libraries at runtime.
8515 ;;
8516
8517 msdosdjgpp*)
8518 # Just because we use GCC doesn't mean we suddenly get shared libraries
8519 # on systems that don't support them.
8520 lt_prog_compiler_can_build_shared=no
8521 enable_shared=no
8522 ;;
8523
8524 *nto* | *qnx*)
8525 # QNX uses GNU C++, but need to define -shared option too, otherwise
8526 # it will coredump.
8527 lt_prog_compiler_pic='-fPIC -shared'
8528 ;;
8529
8530 sysv4*MP*)
8531 if test -d /usr/nec; then
8532 lt_prog_compiler_pic=-Kconform_pic
8533 fi
8534 ;;
8535
8536 *)
8537 lt_prog_compiler_pic='-fPIC'
8538 ;;
8539 esac
8540
8541 case $cc_basename in
8542 nvcc*) # Cuda Compiler Driver 2.2
8543 lt_prog_compiler_wl='-Xlinker '
8544 lt_prog_compiler_pic='-Xcompiler -fPIC'
8545 ;;
8546 esac
8547 else
8548 # PORTME Check for flag to pass linker flags through the system compiler.
8549 case $host_os in
8550 aix*)
8551 lt_prog_compiler_wl='-Wl,'
8552 if test "$host_cpu" = ia64; then
8553 # AIX 5 now supports IA64 processor
8554 lt_prog_compiler_static='-Bstatic'
8555 else
8556 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8557 fi
8558 ;;
8559
8560 mingw* | cygwin* | pw32* | os2* | cegcc*)
8561 # This hack is so that the source file can tell whether it is being
8562 # built for inclusion in a dll (and should export symbols for example).
8563 lt_prog_compiler_pic='-DDLL_EXPORT'
8564 ;;
8565
8566 hpux9* | hpux10* | hpux11*)
8567 lt_prog_compiler_wl='-Wl,'
8568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8569 # not for PA HP-UX.
8570 case $host_cpu in
8571 hppa*64*|ia64*)
8572 # +Z the default
8573 ;;
8574 *)
8575 lt_prog_compiler_pic='+Z'
8576 ;;
8577 esac
8578 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8579 lt_prog_compiler_static='${wl}-a ${wl}archive'
8580 ;;
8581
8582 irix5* | irix6* | nonstopux*)
8583 lt_prog_compiler_wl='-Wl,'
8584 # PIC (with -KPIC) is the default.
8585 lt_prog_compiler_static='-non_shared'
8586 ;;
8587
8588 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8589 case $cc_basename in
8590 # old Intel for x86_64 which still supported -KPIC.
8591 ecc*)
8592 lt_prog_compiler_wl='-Wl,'
8593 lt_prog_compiler_pic='-KPIC'
8594 lt_prog_compiler_static='-static'
8595 ;;
8596 # icc used to be incompatible with GCC.
8597 # ICC 10 doesn't accept -KPIC any more.
8598 icc* | ifort*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-fPIC'
8601 lt_prog_compiler_static='-static'
8602 ;;
8603 # Lahey Fortran 8.1.
8604 lf95*)
8605 lt_prog_compiler_wl='-Wl,'
8606 lt_prog_compiler_pic='--shared'
8607 lt_prog_compiler_static='--static'
8608 ;;
8609 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8610 # Portland Group compilers (*not* the Pentium gcc compiler,
8611 # which looks to be a dead project)
8612 lt_prog_compiler_wl='-Wl,'
8613 lt_prog_compiler_pic='-fpic'
8614 lt_prog_compiler_static='-Bstatic'
8615 ;;
8616 ccc*)
8617 lt_prog_compiler_wl='-Wl,'
8618 # All Alpha code is PIC.
8619 lt_prog_compiler_static='-non_shared'
8620 ;;
8621 xl* | bgxl* | bgf* | mpixl*)
8622 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_pic='-qpic'
8625 lt_prog_compiler_static='-qstaticlink'
8626 ;;
8627 *)
8628 case `$CC -V 2>&1 | sed 5q` in
8629 *Sun\ F* | *Sun*Fortran*)
8630 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 lt_prog_compiler_wl=''
8634 ;;
8635 *Sun\ C*)
8636 # Sun C 5.9
8637 lt_prog_compiler_pic='-KPIC'
8638 lt_prog_compiler_static='-Bstatic'
8639 lt_prog_compiler_wl='-Wl,'
8640 ;;
8641 esac
8642 ;;
8643 esac
8644 ;;
8645
8646 newsos6)
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650
8651 *nto* | *qnx*)
8652 # QNX uses GNU C++, but need to define -shared option too, otherwise
8653 # it will coredump.
8654 lt_prog_compiler_pic='-fPIC -shared'
8655 ;;
8656
8657 osf3* | osf4* | osf5*)
8658 lt_prog_compiler_wl='-Wl,'
8659 # All OSF/1 code is PIC.
8660 lt_prog_compiler_static='-non_shared'
8661 ;;
8662
8663 rdos*)
8664 lt_prog_compiler_static='-non_shared'
8665 ;;
8666
8667 solaris*)
8668 lt_prog_compiler_pic='-KPIC'
8669 lt_prog_compiler_static='-Bstatic'
8670 case $cc_basename in
8671 f77* | f90* | f95*)
8672 lt_prog_compiler_wl='-Qoption ld ';;
8673 *)
8674 lt_prog_compiler_wl='-Wl,';;
8675 esac
8676 ;;
8677
8678 sunos4*)
8679 lt_prog_compiler_wl='-Qoption ld '
8680 lt_prog_compiler_pic='-PIC'
8681 lt_prog_compiler_static='-Bstatic'
8682 ;;
8683
8684 sysv4 | sysv4.2uw2* | sysv4.3*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-KPIC'
8687 lt_prog_compiler_static='-Bstatic'
8688 ;;
8689
8690 sysv4*MP*)
8691 if test -d /usr/nec ;then
8692 lt_prog_compiler_pic='-Kconform_pic'
8693 lt_prog_compiler_static='-Bstatic'
8694 fi
8695 ;;
8696
8697 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-KPIC'
8700 lt_prog_compiler_static='-Bstatic'
8701 ;;
8702
8703 unicos*)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_can_build_shared=no
8706 ;;
8707
8708 uts4*)
8709 lt_prog_compiler_pic='-pic'
8710 lt_prog_compiler_static='-Bstatic'
8711 ;;
8712
8713 *)
8714 lt_prog_compiler_can_build_shared=no
8715 ;;
8716 esac
8717 fi
8718
8719 case $host_os in
8720 # For platforms which do not support PIC, -DPIC is meaningless:
8721 *djgpp*)
8722 lt_prog_compiler_pic=
8723 ;;
8724 *)
8725 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8726 ;;
8727 esac
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8729 $as_echo "$lt_prog_compiler_pic" >&6; }
8730
8731
8732
8733
8734
8735
8736 #
8737 # Check to make sure the PIC flag actually works.
8738 #
8739 if test -n "$lt_prog_compiler_pic"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8741 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8742 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745 lt_cv_prog_compiler_pic_works=no
8746 ac_outfile=conftest.$ac_objext
8747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8748 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8749 # Insert the option either (1) after the last *FLAGS variable, or
8750 # (2) before a word containing "conftest.", or (3) at the end.
8751 # Note that $ac_compile itself does not contain backslashes and begins
8752 # with a dollar sign (not a hyphen), so the echo should work correctly.
8753 # The option is referenced via a variable to avoid confusing sed.
8754 lt_compile=`echo "$ac_compile" | $SED \
8755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757 -e 's:$: $lt_compiler_flag:'`
8758 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759 (eval "$lt_compile" 2>conftest.err)
8760 ac_status=$?
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 if (exit $ac_status) && test -s "$ac_outfile"; then
8764 # The compiler can only warn and ignore the option if not recognized
8765 # So say no if there are warnings other than the usual output.
8766 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8769 lt_cv_prog_compiler_pic_works=yes
8770 fi
8771 fi
8772 $RM conftest*
8773
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8776 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8777
8778 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8779 case $lt_prog_compiler_pic in
8780 "" | " "*) ;;
8781 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8782 esac
8783 else
8784 lt_prog_compiler_pic=
8785 lt_prog_compiler_can_build_shared=no
8786 fi
8787
8788 fi
8789
8790
8791
8792
8793
8794
8795 #
8796 # Check to make sure the static flag actually works.
8797 #
8798 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8800 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8801 if ${lt_cv_prog_compiler_static_works+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 lt_cv_prog_compiler_static_works=no
8805 save_LDFLAGS="$LDFLAGS"
8806 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8807 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8809 # The linker can only warn and ignore the option if not recognized
8810 # So say no if there are warnings
8811 if test -s conftest.err; then
8812 # Append any errors to the config.log.
8813 cat conftest.err 1>&5
8814 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8816 if diff conftest.exp conftest.er2 >/dev/null; then
8817 lt_cv_prog_compiler_static_works=yes
8818 fi
8819 else
8820 lt_cv_prog_compiler_static_works=yes
8821 fi
8822 fi
8823 $RM -r conftest*
8824 LDFLAGS="$save_LDFLAGS"
8825
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8828 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8829
8830 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8831 :
8832 else
8833 lt_prog_compiler_static=
8834 fi
8835
8836
8837
8838
8839
8840
8841
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8843 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8844 if ${lt_cv_prog_compiler_c_o+:} false; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 lt_cv_prog_compiler_c_o=no
8848 $RM -r conftest 2>/dev/null
8849 mkdir conftest
8850 cd conftest
8851 mkdir out
8852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8853
8854 lt_compiler_flag="-o out/conftest2.$ac_objext"
8855 # Insert the option either (1) after the last *FLAGS variable, or
8856 # (2) before a word containing "conftest.", or (3) at the end.
8857 # Note that $ac_compile itself does not contain backslashes and begins
8858 # with a dollar sign (not a hyphen), so the echo should work correctly.
8859 lt_compile=`echo "$ac_compile" | $SED \
8860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8862 -e 's:$: $lt_compiler_flag:'`
8863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8864 (eval "$lt_compile" 2>out/conftest.err)
8865 ac_status=$?
8866 cat out/conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8869 then
8870 # The compiler can only warn and ignore the option if not recognized
8871 # So say no if there are warnings
8872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8875 lt_cv_prog_compiler_c_o=yes
8876 fi
8877 fi
8878 chmod u+w . 2>&5
8879 $RM conftest*
8880 # SGI C++ compiler will create directory out/ii_files/ for
8881 # template instantiation
8882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8883 $RM out/* && rmdir out
8884 cd ..
8885 $RM -r conftest
8886 $RM conftest*
8887
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8890 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8891
8892
8893
8894
8895
8896
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8899 if ${lt_cv_prog_compiler_c_o+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 lt_cv_prog_compiler_c_o=no
8903 $RM -r conftest 2>/dev/null
8904 mkdir conftest
8905 cd conftest
8906 mkdir out
8907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8908
8909 lt_compiler_flag="-o out/conftest2.$ac_objext"
8910 # Insert the option either (1) after the last *FLAGS variable, or
8911 # (2) before a word containing "conftest.", or (3) at the end.
8912 # Note that $ac_compile itself does not contain backslashes and begins
8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
8914 lt_compile=`echo "$ac_compile" | $SED \
8915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917 -e 's:$: $lt_compiler_flag:'`
8918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8919 (eval "$lt_compile" 2>out/conftest.err)
8920 ac_status=$?
8921 cat out/conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8924 then
8925 # The compiler can only warn and ignore the option if not recognized
8926 # So say no if there are warnings
8927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8930 lt_cv_prog_compiler_c_o=yes
8931 fi
8932 fi
8933 chmod u+w . 2>&5
8934 $RM conftest*
8935 # SGI C++ compiler will create directory out/ii_files/ for
8936 # template instantiation
8937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8938 $RM out/* && rmdir out
8939 cd ..
8940 $RM -r conftest
8941 $RM conftest*
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8946
8947
8948
8949
8950 hard_links="nottested"
8951 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8952 # do not overwrite the value of need_locks provided by the user
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8954 $as_echo_n "checking if we can lock with hard links... " >&6; }
8955 hard_links=yes
8956 $RM conftest*
8957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8958 touch conftest.a
8959 ln conftest.a conftest.b 2>&5 || hard_links=no
8960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8962 $as_echo "$hard_links" >&6; }
8963 if test "$hard_links" = no; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8965 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8966 need_locks=warn
8967 fi
8968 else
8969 need_locks=no
8970 fi
8971
8972
8973
8974
8975
8976
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8978 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8979
8980 runpath_var=
8981 allow_undefined_flag=
8982 always_export_symbols=no
8983 archive_cmds=
8984 archive_expsym_cmds=
8985 compiler_needs_object=no
8986 enable_shared_with_static_runtimes=no
8987 export_dynamic_flag_spec=
8988 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8989 hardcode_automatic=no
8990 hardcode_direct=no
8991 hardcode_direct_absolute=no
8992 hardcode_libdir_flag_spec=
8993 hardcode_libdir_flag_spec_ld=
8994 hardcode_libdir_separator=
8995 hardcode_minus_L=no
8996 hardcode_shlibpath_var=unsupported
8997 inherit_rpath=no
8998 link_all_deplibs=unknown
8999 module_cmds=
9000 module_expsym_cmds=
9001 old_archive_from_new_cmds=
9002 old_archive_from_expsyms_cmds=
9003 thread_safe_flag_spec=
9004 whole_archive_flag_spec=
9005 # include_expsyms should be a list of space-separated symbols to be *always*
9006 # included in the symbol list
9007 include_expsyms=
9008 # exclude_expsyms can be an extended regexp of symbols to exclude
9009 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9011 # as well as any symbol that contains `d'.
9012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9014 # platforms (ab)use it in PIC code, but their linkers get confused if
9015 # the symbol is explicitly referenced. Since portable code cannot
9016 # rely on this symbol name, it's probably fine to never include it in
9017 # preloaded symbol tables.
9018 # Exclude shared library initialization/finalization symbols.
9019 extract_expsyms_cmds=
9020
9021 case $host_os in
9022 cygwin* | mingw* | pw32* | cegcc*)
9023 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9024 # When not using gcc, we currently assume that we are using
9025 # Microsoft Visual C++.
9026 if test "$GCC" != yes; then
9027 with_gnu_ld=no
9028 fi
9029 ;;
9030 interix*)
9031 # we just hope/assume this is gcc and not c89 (= MSVC++)
9032 with_gnu_ld=yes
9033 ;;
9034 openbsd*)
9035 with_gnu_ld=no
9036 ;;
9037 esac
9038
9039 ld_shlibs=yes
9040
9041 # On some targets, GNU ld is compatible enough with the native linker
9042 # that we're better off using the native interface for both.
9043 lt_use_gnu_ld_interface=no
9044 if test "$with_gnu_ld" = yes; then
9045 case $host_os in
9046 aix*)
9047 # The AIX port of GNU ld has always aspired to compatibility
9048 # with the native linker. However, as the warning in the GNU ld
9049 # block says, versions before 2.19.5* couldn't really create working
9050 # shared libraries, regardless of the interface used.
9051 case `$LD -v 2>&1` in
9052 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9053 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9054 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9055 *)
9056 lt_use_gnu_ld_interface=yes
9057 ;;
9058 esac
9059 ;;
9060 *)
9061 lt_use_gnu_ld_interface=yes
9062 ;;
9063 esac
9064 fi
9065
9066 if test "$lt_use_gnu_ld_interface" = yes; then
9067 # If archive_cmds runs LD, not CC, wlarc should be empty
9068 wlarc='${wl}'
9069
9070 # Set some defaults for GNU ld with shared library support. These
9071 # are reset later if shared libraries are not supported. Putting them
9072 # here allows them to be overridden if necessary.
9073 runpath_var=LD_RUN_PATH
9074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9075 export_dynamic_flag_spec='${wl}--export-dynamic'
9076 # ancient GNU ld didn't support --whole-archive et. al.
9077 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9078 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9079 else
9080 whole_archive_flag_spec=
9081 fi
9082 supports_anon_versioning=no
9083 case `$LD -v 2>&1` in
9084 *GNU\ gold*) supports_anon_versioning=yes ;;
9085 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9088 *\ 2.11.*) ;; # other 2.11 versions
9089 *) supports_anon_versioning=yes ;;
9090 esac
9091
9092 # See if GNU ld supports shared libraries.
9093 case $host_os in
9094 aix[3-9]*)
9095 # On AIX/PPC, the GNU linker is very broken
9096 if test "$host_cpu" != ia64; then
9097 ld_shlibs=no
9098 cat <<_LT_EOF 1>&2
9099
9100 *** Warning: the GNU linker, at least up to release 2.19, is reported
9101 *** to be unable to reliably create shared libraries on AIX.
9102 *** Therefore, libtool is disabling shared libraries support. If you
9103 *** really care for shared libraries, you may want to install binutils
9104 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9105 *** You will then need to restart the configuration process.
9106
9107 _LT_EOF
9108 fi
9109 ;;
9110
9111 amigaos*)
9112 case $host_cpu in
9113 powerpc)
9114 # see comment about AmigaOS4 .so support
9115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116 archive_expsym_cmds=''
9117 ;;
9118 m68k)
9119 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)'
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 hardcode_minus_L=yes
9122 ;;
9123 esac
9124 ;;
9125
9126 beos*)
9127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9128 allow_undefined_flag=unsupported
9129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9130 # support --undefined. This deserves some investigation. FIXME
9131 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 else
9133 ld_shlibs=no
9134 fi
9135 ;;
9136
9137 cygwin* | mingw* | pw32* | cegcc*)
9138 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9139 # as there is no search path for DLLs.
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 export_dynamic_flag_spec='${wl}--export-all-symbols'
9142 allow_undefined_flag=unsupported
9143 always_export_symbols=no
9144 enable_shared_with_static_runtimes=yes
9145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9146
9147 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9149 # If the export-symbols file already is a .def file (1st line
9150 # is EXPORTS), use it as is; otherwise, prepend...
9151 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9152 cp $export_symbols $output_objdir/$soname.def;
9153 else
9154 echo EXPORTS > $output_objdir/$soname.def;
9155 cat $export_symbols >> $output_objdir/$soname.def;
9156 fi~
9157 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9158 else
9159 ld_shlibs=no
9160 fi
9161 ;;
9162
9163 haiku*)
9164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9165 link_all_deplibs=yes
9166 ;;
9167
9168 interix[3-9]*)
9169 hardcode_direct=no
9170 hardcode_shlibpath_var=no
9171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9172 export_dynamic_flag_spec='${wl}-E'
9173 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9174 # Instead, shared libraries are loaded at an image base (0x10000000 by
9175 # default) and relocated if they conflict, which is a slow very memory
9176 # consuming and fragmenting process. To avoid this, we pick a random,
9177 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9178 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9179 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9180 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'
9181 ;;
9182
9183 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9184 tmp_diet=no
9185 if test "$host_os" = linux-dietlibc; then
9186 case $cc_basename in
9187 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9188 esac
9189 fi
9190 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9191 && test "$tmp_diet" = no
9192 then
9193 tmp_addflag=' $pic_flag'
9194 tmp_sharedflag='-shared'
9195 case $cc_basename,$host_cpu in
9196 pgcc*) # Portland Group C compiler
9197 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'
9198 tmp_addflag=' $pic_flag'
9199 ;;
9200 pgf77* | pgf90* | pgf95* | pgfortran*)
9201 # Portland Group f77 and f90 compilers
9202 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'
9203 tmp_addflag=' $pic_flag -Mnomain' ;;
9204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9205 tmp_addflag=' -i_dynamic' ;;
9206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9207 tmp_addflag=' -i_dynamic -nofor_main' ;;
9208 ifc* | ifort*) # Intel Fortran compiler
9209 tmp_addflag=' -nofor_main' ;;
9210 lf95*) # Lahey Fortran 8.1
9211 whole_archive_flag_spec=
9212 tmp_sharedflag='--shared' ;;
9213 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9214 tmp_sharedflag='-qmkshrobj'
9215 tmp_addflag= ;;
9216 nvcc*) # Cuda Compiler Driver 2.2
9217 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'
9218 compiler_needs_object=yes
9219 ;;
9220 esac
9221 case `$CC -V 2>&1 | sed 5q` in
9222 *Sun\ C*) # Sun C 5.9
9223 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'
9224 compiler_needs_object=yes
9225 tmp_sharedflag='-G' ;;
9226 *Sun\ F*) # Sun Fortran 8.3
9227 tmp_sharedflag='-G' ;;
9228 esac
9229 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230
9231 if test "x$supports_anon_versioning" = xyes; then
9232 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9234 echo "local: *; };" >> $output_objdir/$libname.ver~
9235 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9236 fi
9237
9238 case $cc_basename in
9239 xlf* | bgf* | bgxlf* | mpixlf*)
9240 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9241 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9242 hardcode_libdir_flag_spec=
9243 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9244 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9245 if test "x$supports_anon_versioning" = xyes; then
9246 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9248 echo "local: *; };" >> $output_objdir/$libname.ver~
9249 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9250 fi
9251 ;;
9252 esac
9253 else
9254 ld_shlibs=no
9255 fi
9256 ;;
9257
9258 netbsd*)
9259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9260 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9261 wlarc=
9262 else
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9265 fi
9266 ;;
9267
9268 solaris*)
9269 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9270 ld_shlibs=no
9271 cat <<_LT_EOF 1>&2
9272
9273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9274 *** create shared libraries on Solaris systems. Therefore, libtool
9275 *** is disabling shared libraries support. We urge you to upgrade GNU
9276 *** binutils to release 2.9.1 or newer. Another option is to modify
9277 *** your PATH or compiler configuration so that the native linker is
9278 *** used, and then restart.
9279
9280 _LT_EOF
9281 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9284 else
9285 ld_shlibs=no
9286 fi
9287 ;;
9288
9289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9290 case `$LD -v 2>&1` in
9291 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9292 ld_shlibs=no
9293 cat <<_LT_EOF 1>&2
9294
9295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9296 *** reliably create shared libraries on SCO systems. Therefore, libtool
9297 *** is disabling shared libraries support. We urge you to upgrade GNU
9298 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9299 *** your PATH or compiler configuration so that the native linker is
9300 *** used, and then restart.
9301
9302 _LT_EOF
9303 ;;
9304 *)
9305 # For security reasons, it is highly recommended that you always
9306 # use absolute paths for naming shared libraries, and exclude the
9307 # DT_RUNPATH tag from executables and libraries. But doing so
9308 # requires that you compile everything twice, which is a pain.
9309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9313 else
9314 ld_shlibs=no
9315 fi
9316 ;;
9317 esac
9318 ;;
9319
9320 sunos4*)
9321 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322 wlarc=
9323 hardcode_direct=yes
9324 hardcode_shlibpath_var=no
9325 ;;
9326
9327 *)
9328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9331 else
9332 ld_shlibs=no
9333 fi
9334 ;;
9335 esac
9336
9337 if test "$ld_shlibs" = no; then
9338 runpath_var=
9339 hardcode_libdir_flag_spec=
9340 export_dynamic_flag_spec=
9341 whole_archive_flag_spec=
9342 fi
9343 else
9344 # PORTME fill in a description of your system's linker (not GNU ld)
9345 case $host_os in
9346 aix3*)
9347 allow_undefined_flag=unsupported
9348 always_export_symbols=yes
9349 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'
9350 # Note: this linker hardcodes the directories in LIBPATH if there
9351 # are no directories specified by -L.
9352 hardcode_minus_L=yes
9353 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9354 # Neither direct hardcoding nor static linking is supported with a
9355 # broken collect2.
9356 hardcode_direct=unsupported
9357 fi
9358 ;;
9359
9360 aix[4-9]*)
9361 if test "$host_cpu" = ia64; then
9362 # On IA64, the linker does run time linking by default, so we don't
9363 # have to do anything special.
9364 aix_use_runtimelinking=no
9365 exp_sym_flag='-Bexport'
9366 no_entry_flag=""
9367 else
9368 # If we're using GNU nm, then we don't want the "-C" option.
9369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9370 # Also, AIX nm treats weak defined symbols like other global
9371 # defined symbols, whereas GNU nm marks them as "W".
9372 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9373 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'
9374 else
9375 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'
9376 fi
9377 aix_use_runtimelinking=no
9378
9379 # Test if we are trying to use run time linking or normal
9380 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9381 # need to do runtime linking.
9382 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9383 for ld_flag in $LDFLAGS; do
9384 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9385 aix_use_runtimelinking=yes
9386 break
9387 fi
9388 done
9389 ;;
9390 esac
9391
9392 exp_sym_flag='-bexport'
9393 no_entry_flag='-bnoentry'
9394 fi
9395
9396 # When large executables or shared objects are built, AIX ld can
9397 # have problems creating the table of contents. If linking a library
9398 # or program results in "error TOC overflow" add -mminimal-toc to
9399 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9400 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9401
9402 archive_cmds=''
9403 hardcode_direct=yes
9404 hardcode_direct_absolute=yes
9405 hardcode_libdir_separator=':'
9406 link_all_deplibs=yes
9407 file_list_spec='${wl}-f,'
9408
9409 if test "$GCC" = yes; then
9410 case $host_os in aix4.[012]|aix4.[012].*)
9411 # We only want to do this on AIX 4.2 and lower, the check
9412 # below for broken collect2 doesn't work under 4.3+
9413 collect2name=`${CC} -print-prog-name=collect2`
9414 if test -f "$collect2name" &&
9415 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9416 then
9417 # We have reworked collect2
9418 :
9419 else
9420 # We have old collect2
9421 hardcode_direct=unsupported
9422 # It fails to find uninstalled libraries when the uninstalled
9423 # path is not listed in the libpath. Setting hardcode_minus_L
9424 # to unsupported forces relinking
9425 hardcode_minus_L=yes
9426 hardcode_libdir_flag_spec='-L$libdir'
9427 hardcode_libdir_separator=
9428 fi
9429 ;;
9430 esac
9431 shared_flag='-shared'
9432 if test "$aix_use_runtimelinking" = yes; then
9433 shared_flag="$shared_flag "'${wl}-G'
9434 fi
9435 else
9436 # not using gcc
9437 if test "$host_cpu" = ia64; then
9438 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9439 # chokes on -Wl,-G. The following line is correct:
9440 shared_flag='-G'
9441 else
9442 if test "$aix_use_runtimelinking" = yes; then
9443 shared_flag='${wl}-G'
9444 else
9445 shared_flag='${wl}-bM:SRE'
9446 fi
9447 fi
9448 fi
9449
9450 export_dynamic_flag_spec='${wl}-bexpall'
9451 # It seems that -bexpall does not export symbols beginning with
9452 # underscore (_), so it is better to generate a list of symbols to export.
9453 always_export_symbols=yes
9454 if test "$aix_use_runtimelinking" = yes; then
9455 # Warning - without using the other runtime loading flags (-brtl),
9456 # -berok will link without error, but may produce a broken library.
9457 allow_undefined_flag='-berok'
9458 # Determine the default libpath from the value encoded in an
9459 # empty executable.
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462
9463 int
9464 main ()
9465 {
9466
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 if ac_fn_c_try_link "$LINENO"; then :
9472
9473 lt_aix_libpath_sed='
9474 /Import File Strings/,/^$/ {
9475 /^0/ {
9476 s/^0 *\(.*\)$/\1/
9477 p
9478 }
9479 }'
9480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9481 # Check for a 64-bit object if we didn't find anything.
9482 if test -z "$aix_libpath"; then
9483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9484 fi
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9489
9490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9491 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"
9492 else
9493 if test "$host_cpu" = ia64; then
9494 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9495 allow_undefined_flag="-z nodefs"
9496 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"
9497 else
9498 # Determine the default libpath from the value encoded in an
9499 # empty executable.
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502
9503 int
9504 main ()
9505 {
9506
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 if ac_fn_c_try_link "$LINENO"; then :
9512
9513 lt_aix_libpath_sed='
9514 /Import File Strings/,/^$/ {
9515 /^0/ {
9516 s/^0 *\(.*\)$/\1/
9517 p
9518 }
9519 }'
9520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521 # Check for a 64-bit object if we didn't find anything.
9522 if test -z "$aix_libpath"; then
9523 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9524 fi
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9529
9530 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9531 # Warning - without using the other run time loading flags,
9532 # -berok will link without error, but may produce a broken library.
9533 no_undefined_flag=' ${wl}-bernotok'
9534 allow_undefined_flag=' ${wl}-berok'
9535 if test "$with_gnu_ld" = yes; then
9536 # We only use this code for GNU lds that support --whole-archive.
9537 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9538 else
9539 # Exported symbols can be pulled into shared objects from archives
9540 whole_archive_flag_spec='$convenience'
9541 fi
9542 archive_cmds_need_lc=yes
9543 # This is similar to how AIX traditionally builds its shared libraries.
9544 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'
9545 fi
9546 fi
9547 ;;
9548
9549 amigaos*)
9550 case $host_cpu in
9551 powerpc)
9552 # see comment about AmigaOS4 .so support
9553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 archive_expsym_cmds=''
9555 ;;
9556 m68k)
9557 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)'
9558 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_minus_L=yes
9560 ;;
9561 esac
9562 ;;
9563
9564 bsdi[45]*)
9565 export_dynamic_flag_spec=-rdynamic
9566 ;;
9567
9568 cygwin* | mingw* | pw32* | cegcc*)
9569 # When not using gcc, we currently assume that we are using
9570 # Microsoft Visual C++.
9571 # hardcode_libdir_flag_spec is actually meaningless, as there is
9572 # no search path for DLLs.
9573 hardcode_libdir_flag_spec=' '
9574 allow_undefined_flag=unsupported
9575 # Tell ltmain to make .lib files, not .a files.
9576 libext=lib
9577 # Tell ltmain to make .dll files, not .so files.
9578 shrext_cmds=".dll"
9579 # FIXME: Setting linknames here is a bad hack.
9580 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9581 # The linker will automatically build a .lib file if we build a DLL.
9582 old_archive_from_new_cmds='true'
9583 # FIXME: Should let the user specify the lib program.
9584 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9585 fix_srcfile_path='`cygpath -w "$srcfile"`'
9586 enable_shared_with_static_runtimes=yes
9587 ;;
9588
9589 darwin* | rhapsody*)
9590
9591
9592 archive_cmds_need_lc=no
9593 hardcode_direct=no
9594 hardcode_automatic=yes
9595 hardcode_shlibpath_var=unsupported
9596 if test "$lt_cv_ld_force_load" = "yes"; then
9597 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\"`'
9598 else
9599 whole_archive_flag_spec=''
9600 fi
9601 link_all_deplibs=yes
9602 allow_undefined_flag="$_lt_dar_allow_undefined"
9603 case $cc_basename in
9604 ifort*) _lt_dar_can_shared=yes ;;
9605 *) _lt_dar_can_shared=$GCC ;;
9606 esac
9607 if test "$_lt_dar_can_shared" = "yes"; then
9608 output_verbose_link_cmd=func_echo_all
9609 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9610 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9611 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}"
9612 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}"
9613
9614 else
9615 ld_shlibs=no
9616 fi
9617
9618 ;;
9619
9620 dgux*)
9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_libdir_flag_spec='-L$libdir'
9623 hardcode_shlibpath_var=no
9624 ;;
9625
9626 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9627 # support. Future versions do this automatically, but an explicit c++rt0.o
9628 # does not break anything, and helps significantly (at the cost of a little
9629 # extra space).
9630 freebsd2.2*)
9631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9632 hardcode_libdir_flag_spec='-R$libdir'
9633 hardcode_direct=yes
9634 hardcode_shlibpath_var=no
9635 ;;
9636
9637 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9638 freebsd2.*)
9639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_direct=yes
9641 hardcode_minus_L=yes
9642 hardcode_shlibpath_var=no
9643 ;;
9644
9645 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9646 freebsd* | dragonfly*)
9647 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9648 hardcode_libdir_flag_spec='-R$libdir'
9649 hardcode_direct=yes
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 hpux9*)
9654 if test "$GCC" = yes; then
9655 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'
9656 else
9657 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'
9658 fi
9659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9660 hardcode_libdir_separator=:
9661 hardcode_direct=yes
9662
9663 # hardcode_minus_L: Not really in the search PATH,
9664 # but as the default location of the library.
9665 hardcode_minus_L=yes
9666 export_dynamic_flag_spec='${wl}-E'
9667 ;;
9668
9669 hpux10*)
9670 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9671 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9672 else
9673 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9674 fi
9675 if test "$with_gnu_ld" = no; then
9676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9677 hardcode_libdir_flag_spec_ld='+b $libdir'
9678 hardcode_libdir_separator=:
9679 hardcode_direct=yes
9680 hardcode_direct_absolute=yes
9681 export_dynamic_flag_spec='${wl}-E'
9682 # hardcode_minus_L: Not really in the search PATH,
9683 # but as the default location of the library.
9684 hardcode_minus_L=yes
9685 fi
9686 ;;
9687
9688 hpux11*)
9689 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9690 case $host_cpu in
9691 hppa*64*)
9692 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 ;;
9694 ia64*)
9695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9696 ;;
9697 *)
9698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 ;;
9700 esac
9701 else
9702 case $host_cpu in
9703 hppa*64*)
9704 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 ;;
9706 ia64*)
9707 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9708 ;;
9709 *)
9710
9711 # Older versions of the 11.00 compiler do not understand -b yet
9712 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9714 $as_echo_n "checking if $CC understands -b... " >&6; }
9715 if ${lt_cv_prog_compiler__b+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 lt_cv_prog_compiler__b=no
9719 save_LDFLAGS="$LDFLAGS"
9720 LDFLAGS="$LDFLAGS -b"
9721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9723 # The linker can only warn and ignore the option if not recognized
9724 # So say no if there are warnings
9725 if test -s conftest.err; then
9726 # Append any errors to the config.log.
9727 cat conftest.err 1>&5
9728 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9730 if diff conftest.exp conftest.er2 >/dev/null; then
9731 lt_cv_prog_compiler__b=yes
9732 fi
9733 else
9734 lt_cv_prog_compiler__b=yes
9735 fi
9736 fi
9737 $RM -r conftest*
9738 LDFLAGS="$save_LDFLAGS"
9739
9740 fi
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9742 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9743
9744 if test x"$lt_cv_prog_compiler__b" = xyes; then
9745 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9746 else
9747 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9748 fi
9749
9750 ;;
9751 esac
9752 fi
9753 if test "$with_gnu_ld" = no; then
9754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9755 hardcode_libdir_separator=:
9756
9757 case $host_cpu in
9758 hppa*64*|ia64*)
9759 hardcode_direct=no
9760 hardcode_shlibpath_var=no
9761 ;;
9762 *)
9763 hardcode_direct=yes
9764 hardcode_direct_absolute=yes
9765 export_dynamic_flag_spec='${wl}-E'
9766
9767 # hardcode_minus_L: Not really in the search PATH,
9768 # but as the default location of the library.
9769 hardcode_minus_L=yes
9770 ;;
9771 esac
9772 fi
9773 ;;
9774
9775 irix5* | irix6* | nonstopux*)
9776 if test "$GCC" = yes; then
9777 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'
9778 # Try to use the -exported_symbol ld option, if it does not
9779 # work, assume that -exports_file does not work either and
9780 # implicitly export all symbols.
9781 save_LDFLAGS="$LDFLAGS"
9782 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 int foo(void) {}
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"; then :
9788 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'
9789
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext conftest.$ac_ext
9793 LDFLAGS="$save_LDFLAGS"
9794 else
9795 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'
9796 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'
9797 fi
9798 archive_cmds_need_lc='no'
9799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9800 hardcode_libdir_separator=:
9801 inherit_rpath=yes
9802 link_all_deplibs=yes
9803 ;;
9804
9805 netbsd*)
9806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9808 else
9809 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9810 fi
9811 hardcode_libdir_flag_spec='-R$libdir'
9812 hardcode_direct=yes
9813 hardcode_shlibpath_var=no
9814 ;;
9815
9816 newsos6)
9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818 hardcode_direct=yes
9819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9820 hardcode_libdir_separator=:
9821 hardcode_shlibpath_var=no
9822 ;;
9823
9824 *nto* | *qnx*)
9825 ;;
9826
9827 openbsd*)
9828 if test -f /usr/libexec/ld.so; then
9829 hardcode_direct=yes
9830 hardcode_shlibpath_var=no
9831 hardcode_direct_absolute=yes
9832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9836 export_dynamic_flag_spec='${wl}-E'
9837 else
9838 case $host_os in
9839 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_libdir_flag_spec='-R$libdir'
9842 ;;
9843 *)
9844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9846 ;;
9847 esac
9848 fi
9849 else
9850 ld_shlibs=no
9851 fi
9852 ;;
9853
9854 os2*)
9855 hardcode_libdir_flag_spec='-L$libdir'
9856 hardcode_minus_L=yes
9857 allow_undefined_flag=unsupported
9858 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'
9859 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9860 ;;
9861
9862 osf3*)
9863 if test "$GCC" = yes; then
9864 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9865 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'
9866 else
9867 allow_undefined_flag=' -expect_unresolved \*'
9868 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'
9869 fi
9870 archive_cmds_need_lc='no'
9871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9872 hardcode_libdir_separator=:
9873 ;;
9874
9875 osf4* | osf5*) # as osf3* with the addition of -msym flag
9876 if test "$GCC" = yes; then
9877 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9878 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'
9879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9880 else
9881 allow_undefined_flag=' -expect_unresolved \*'
9882 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'
9883 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~
9884 $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'
9885
9886 # Both c and cxx compiler support -rpath directly
9887 hardcode_libdir_flag_spec='-rpath $libdir'
9888 fi
9889 archive_cmds_need_lc='no'
9890 hardcode_libdir_separator=:
9891 ;;
9892
9893 solaris*)
9894 no_undefined_flag=' -z defs'
9895 if test "$GCC" = yes; then
9896 wlarc='${wl}'
9897 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9898 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9899 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9900 else
9901 case `$CC -V 2>&1` in
9902 *"Compilers 5.0"*)
9903 wlarc=''
9904 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9907 ;;
9908 *)
9909 wlarc='${wl}'
9910 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9911 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9912 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9913 ;;
9914 esac
9915 fi
9916 hardcode_libdir_flag_spec='-R$libdir'
9917 hardcode_shlibpath_var=no
9918 case $host_os in
9919 solaris2.[0-5] | solaris2.[0-5].*) ;;
9920 *)
9921 # The compiler driver will combine and reorder linker options,
9922 # but understands `-z linker_flag'. GCC discards it without `$wl',
9923 # but is careful enough not to reorder.
9924 # Supported since Solaris 2.6 (maybe 2.5.1?)
9925 if test "$GCC" = yes; then
9926 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9927 else
9928 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9929 fi
9930 ;;
9931 esac
9932 link_all_deplibs=yes
9933 ;;
9934
9935 sunos4*)
9936 if test "x$host_vendor" = xsequent; then
9937 # Use $CC to link under sequent, because it throws in some extra .o
9938 # files that make .init and .fini sections work.
9939 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9940 else
9941 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9942 fi
9943 hardcode_libdir_flag_spec='-L$libdir'
9944 hardcode_direct=yes
9945 hardcode_minus_L=yes
9946 hardcode_shlibpath_var=no
9947 ;;
9948
9949 sysv4)
9950 case $host_vendor in
9951 sni)
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_direct=yes # is this really true???
9954 ;;
9955 siemens)
9956 ## LD is ld it makes a PLAMLIB
9957 ## CC just makes a GrossModule.
9958 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9959 reload_cmds='$CC -r -o $output$reload_objs'
9960 hardcode_direct=no
9961 ;;
9962 motorola)
9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9965 ;;
9966 esac
9967 runpath_var='LD_RUN_PATH'
9968 hardcode_shlibpath_var=no
9969 ;;
9970
9971 sysv4.3*)
9972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_shlibpath_var=no
9974 export_dynamic_flag_spec='-Bexport'
9975 ;;
9976
9977 sysv4*MP*)
9978 if test -d /usr/nec; then
9979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980 hardcode_shlibpath_var=no
9981 runpath_var=LD_RUN_PATH
9982 hardcode_runpath_var=yes
9983 ld_shlibs=yes
9984 fi
9985 ;;
9986
9987 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9988 no_undefined_flag='${wl}-z,text'
9989 archive_cmds_need_lc=no
9990 hardcode_shlibpath_var=no
9991 runpath_var='LD_RUN_PATH'
9992
9993 if test "$GCC" = yes; then
9994 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 else
9997 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 fi
10000 ;;
10001
10002 sysv5* | sco3.2v5* | sco5v6*)
10003 # Note: We can NOT use -z defs as we might desire, because we do not
10004 # link with -lc, and that would cause any symbols used from libc to
10005 # always be unresolved, which means just about no library would
10006 # ever link correctly. If we're not using GNU ld we use -z text
10007 # though, which does catch some bad symbols but isn't as heavy-handed
10008 # as -z defs.
10009 no_undefined_flag='${wl}-z,text'
10010 allow_undefined_flag='${wl}-z,nodefs'
10011 archive_cmds_need_lc=no
10012 hardcode_shlibpath_var=no
10013 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10014 hardcode_libdir_separator=':'
10015 link_all_deplibs=yes
10016 export_dynamic_flag_spec='${wl}-Bexport'
10017 runpath_var='LD_RUN_PATH'
10018
10019 if test "$GCC" = yes; then
10020 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 else
10023 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 fi
10026 ;;
10027
10028 uts4*)
10029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030 hardcode_libdir_flag_spec='-L$libdir'
10031 hardcode_shlibpath_var=no
10032 ;;
10033
10034 *)
10035 ld_shlibs=no
10036 ;;
10037 esac
10038
10039 if test x$host_vendor = xsni; then
10040 case $host in
10041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10042 export_dynamic_flag_spec='${wl}-Blargedynsym'
10043 ;;
10044 esac
10045 fi
10046 fi
10047
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10049 $as_echo "$ld_shlibs" >&6; }
10050 test "$ld_shlibs" = no && can_build_shared=no
10051
10052 with_gnu_ld=$with_gnu_ld
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068 #
10069 # Do we need to explicitly link libc?
10070 #
10071 case "x$archive_cmds_need_lc" in
10072 x|xyes)
10073 # Assume -lc should be added
10074 archive_cmds_need_lc=yes
10075
10076 if test "$enable_shared" = yes && test "$GCC" = yes; then
10077 case $archive_cmds in
10078 *'~'*)
10079 # FIXME: we may have to deal with multi-command sequences.
10080 ;;
10081 '$CC '*)
10082 # Test whether the compiler implicitly links with -lc since on some
10083 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10084 # to ld, don't add -lc before -lgcc.
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10086 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10087 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 $RM conftest*
10091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10092
10093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10094 (eval $ac_compile) 2>&5
10095 ac_status=$?
10096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097 test $ac_status = 0; } 2>conftest.err; then
10098 soname=conftest
10099 lib=conftest
10100 libobjs=conftest.$ac_objext
10101 deplibs=
10102 wl=$lt_prog_compiler_wl
10103 pic_flag=$lt_prog_compiler_pic
10104 compiler_flags=-v
10105 linker_flags=-v
10106 verstring=
10107 output_objdir=.
10108 libname=conftest
10109 lt_save_allow_undefined_flag=$allow_undefined_flag
10110 allow_undefined_flag=
10111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10112 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10113 ac_status=$?
10114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10115 test $ac_status = 0; }
10116 then
10117 lt_cv_archive_cmds_need_lc=no
10118 else
10119 lt_cv_archive_cmds_need_lc=yes
10120 fi
10121 allow_undefined_flag=$lt_save_allow_undefined_flag
10122 else
10123 cat conftest.err 1>&5
10124 fi
10125 $RM conftest*
10126
10127 fi
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10129 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10130 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10131 ;;
10132 esac
10133 fi
10134 ;;
10135 esac
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10294 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10295
10296 if test "$GCC" = yes; then
10297 case $host_os in
10298 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10299 *) lt_awk_arg="/^libraries:/" ;;
10300 esac
10301 case $host_os in
10302 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10303 *) lt_sed_strip_eq="s,=/,/,g" ;;
10304 esac
10305 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10306 case $lt_search_path_spec in
10307 *\;*)
10308 # if the path contains ";" then we assume it to be the separator
10309 # otherwise default to the standard path separator (i.e. ":") - it is
10310 # assumed that no part of a normal pathname contains ";" but that should
10311 # okay in the real world where ";" in dirpaths is itself problematic.
10312 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10313 ;;
10314 *)
10315 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10316 ;;
10317 esac
10318 # Ok, now we have the path, separated by spaces, we can step through it
10319 # and add multilib dir if necessary.
10320 lt_tmp_lt_search_path_spec=
10321 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10322 for lt_sys_path in $lt_search_path_spec; do
10323 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10324 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10325 else
10326 test -d "$lt_sys_path" && \
10327 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10328 fi
10329 done
10330 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10331 BEGIN {RS=" "; FS="/|\n";} {
10332 lt_foo="";
10333 lt_count=0;
10334 for (lt_i = NF; lt_i > 0; lt_i--) {
10335 if ($lt_i != "" && $lt_i != ".") {
10336 if ($lt_i == "..") {
10337 lt_count++;
10338 } else {
10339 if (lt_count == 0) {
10340 lt_foo="/" $lt_i lt_foo;
10341 } else {
10342 lt_count--;
10343 }
10344 }
10345 }
10346 }
10347 if (lt_foo != "") { lt_freq[lt_foo]++; }
10348 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10349 }'`
10350 # AWK program above erroneously prepends '/' to C:/dos/paths
10351 # for these hosts.
10352 case $host_os in
10353 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10354 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10355 esac
10356 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10357 else
10358 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10359 fi
10360 library_names_spec=
10361 libname_spec='lib$name'
10362 soname_spec=
10363 shrext_cmds=".so"
10364 postinstall_cmds=
10365 postuninstall_cmds=
10366 finish_cmds=
10367 finish_eval=
10368 shlibpath_var=
10369 shlibpath_overrides_runpath=unknown
10370 version_type=none
10371 dynamic_linker="$host_os ld.so"
10372 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10373 need_lib_prefix=unknown
10374 hardcode_into_libs=no
10375
10376 # when you set need_version to no, make sure it does not cause -set_version
10377 # flags to be left without arguments
10378 need_version=unknown
10379
10380 case $host_os in
10381 aix3*)
10382 version_type=linux
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10384 shlibpath_var=LIBPATH
10385
10386 # AIX 3 has no versioning support, so we append a major version to the name.
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 ;;
10389
10390 aix[4-9]*)
10391 version_type=linux
10392 need_lib_prefix=no
10393 need_version=no
10394 hardcode_into_libs=yes
10395 if test "$host_cpu" = ia64; then
10396 # AIX 5 supports IA64
10397 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 else
10400 # With GCC up to 2.95.x, collect2 would create an import file
10401 # for dependence libraries. The import file would start with
10402 # the line `#! .'. This would cause the generated library to
10403 # depend on `.', always an invalid library. This was fixed in
10404 # development snapshots of GCC prior to 3.0.
10405 case $host_os in
10406 aix4 | aix4.[01] | aix4.[01].*)
10407 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10408 echo ' yes '
10409 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10410 :
10411 else
10412 can_build_shared=no
10413 fi
10414 ;;
10415 esac
10416 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10417 # soname into executable. Probably we can add versioning support to
10418 # collect2, so additional links can be useful in future.
10419 if test "$aix_use_runtimelinking" = yes; then
10420 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10421 # instead of lib<name>.a to let people know that these are not
10422 # typical AIX shared libraries.
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 else
10425 # We preserve .a as extension for shared libraries through AIX4.2
10426 # and later when we are not doing run time linking.
10427 library_names_spec='${libname}${release}.a $libname.a'
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 fi
10430 shlibpath_var=LIBPATH
10431 fi
10432 ;;
10433
10434 amigaos*)
10435 case $host_cpu in
10436 powerpc)
10437 # Since July 2007 AmigaOS4 officially supports .so libraries.
10438 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 ;;
10441 m68k)
10442 library_names_spec='$libname.ixlibrary $libname.a'
10443 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10444 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'
10445 ;;
10446 esac
10447 ;;
10448
10449 beos*)
10450 library_names_spec='${libname}${shared_ext}'
10451 dynamic_linker="$host_os ld.so"
10452 shlibpath_var=LIBRARY_PATH
10453 ;;
10454
10455 bsdi[45]*)
10456 version_type=linux
10457 need_version=no
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10463 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10464 # the default ld.so.conf also contains /usr/contrib/lib and
10465 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10466 # libtool to hard-code these into programs
10467 ;;
10468
10469 cygwin* | mingw* | pw32* | cegcc*)
10470 version_type=windows
10471 shrext_cmds=".dll"
10472 need_version=no
10473 need_lib_prefix=no
10474
10475 case $GCC,$host_os in
10476 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10477 library_names_spec='$libname.dll.a'
10478 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10479 postinstall_cmds='base_file=`basename \${file}`~
10480 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10481 dldir=$destdir/`dirname \$dlpath`~
10482 test -d \$dldir || mkdir -p \$dldir~
10483 $install_prog $dir/$dlname \$dldir/$dlname~
10484 chmod a+x \$dldir/$dlname~
10485 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10486 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10487 fi'
10488 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10489 dlpath=$dir/\$dldll~
10490 $RM \$dlpath'
10491 shlibpath_overrides_runpath=yes
10492
10493 case $host_os in
10494 cygwin*)
10495 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10496 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10497
10498 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10499 ;;
10500 mingw* | cegcc*)
10501 # MinGW DLLs use traditional 'lib' prefix
10502 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10503 ;;
10504 pw32*)
10505 # pw32 DLLs use 'pw' prefix rather than 'lib'
10506 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10507 ;;
10508 esac
10509 ;;
10510
10511 *)
10512 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10513 ;;
10514 esac
10515 dynamic_linker='Win32 ld.exe'
10516 # FIXME: first we should search . and the directory the executable is in
10517 shlibpath_var=PATH
10518 ;;
10519
10520 darwin* | rhapsody*)
10521 dynamic_linker="$host_os dyld"
10522 version_type=darwin
10523 need_lib_prefix=no
10524 need_version=no
10525 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10526 soname_spec='${libname}${release}${major}$shared_ext'
10527 shlibpath_overrides_runpath=yes
10528 shlibpath_var=DYLD_LIBRARY_PATH
10529 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10530
10531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10532 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10533 ;;
10534
10535 dgux*)
10536 version_type=linux
10537 need_lib_prefix=no
10538 need_version=no
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10540 soname_spec='${libname}${release}${shared_ext}$major'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 ;;
10543
10544 freebsd* | dragonfly*)
10545 # DragonFly does not have aout. When/if they implement a new
10546 # versioning mechanism, adjust this.
10547 if test -x /usr/bin/objformat; then
10548 objformat=`/usr/bin/objformat`
10549 else
10550 case $host_os in
10551 freebsd[23].*) objformat=aout ;;
10552 *) objformat=elf ;;
10553 esac
10554 fi
10555 version_type=freebsd-$objformat
10556 case $version_type in
10557 freebsd-elf*)
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10559 need_version=no
10560 need_lib_prefix=no
10561 ;;
10562 freebsd-*)
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10564 need_version=yes
10565 ;;
10566 esac
10567 shlibpath_var=LD_LIBRARY_PATH
10568 case $host_os in
10569 freebsd2.*)
10570 shlibpath_overrides_runpath=yes
10571 ;;
10572 freebsd3.[01]* | freebsdelf3.[01]*)
10573 shlibpath_overrides_runpath=yes
10574 hardcode_into_libs=yes
10575 ;;
10576 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10577 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10578 shlibpath_overrides_runpath=no
10579 hardcode_into_libs=yes
10580 ;;
10581 *) # from 4.6 on, and DragonFly
10582 shlibpath_overrides_runpath=yes
10583 hardcode_into_libs=yes
10584 ;;
10585 esac
10586 ;;
10587
10588 gnu*)
10589 version_type=linux
10590 need_lib_prefix=no
10591 need_version=no
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 hardcode_into_libs=yes
10596 ;;
10597
10598 haiku*)
10599 version_type=linux
10600 need_lib_prefix=no
10601 need_version=no
10602 dynamic_linker="$host_os runtime_loader"
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 shlibpath_var=LIBRARY_PATH
10606 shlibpath_overrides_runpath=yes
10607 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10608 hardcode_into_libs=yes
10609 ;;
10610
10611 hpux9* | hpux10* | hpux11*)
10612 # Give a soname corresponding to the major version so that dld.sl refuses to
10613 # link against other versions.
10614 version_type=sunos
10615 need_lib_prefix=no
10616 need_version=no
10617 case $host_cpu in
10618 ia64*)
10619 shrext_cmds='.so'
10620 hardcode_into_libs=yes
10621 dynamic_linker="$host_os dld.so"
10622 shlibpath_var=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 if test "X$HPUX_IA64_MODE" = X32; then
10627 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10628 else
10629 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10630 fi
10631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10632 ;;
10633 hppa*64*)
10634 shrext_cmds='.sl'
10635 hardcode_into_libs=yes
10636 dynamic_linker="$host_os dld.sl"
10637 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10643 ;;
10644 *)
10645 shrext_cmds='.sl'
10646 dynamic_linker="$host_os dld.sl"
10647 shlibpath_var=SHLIB_PATH
10648 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 ;;
10652 esac
10653 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10654 postinstall_cmds='chmod 555 $lib'
10655 # or fails outright, so override atomically:
10656 install_override_mode=555
10657 ;;
10658
10659 interix[3-9]*)
10660 version_type=linux
10661 need_lib_prefix=no
10662 need_version=no
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 shlibpath_overrides_runpath=no
10668 hardcode_into_libs=yes
10669 ;;
10670
10671 irix5* | irix6* | nonstopux*)
10672 case $host_os in
10673 nonstopux*) version_type=nonstopux ;;
10674 *)
10675 if test "$lt_cv_prog_gnu_ld" = yes; then
10676 version_type=linux
10677 else
10678 version_type=irix
10679 fi ;;
10680 esac
10681 need_lib_prefix=no
10682 need_version=no
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10685 case $host_os in
10686 irix5* | nonstopux*)
10687 libsuff= shlibsuff=
10688 ;;
10689 *)
10690 case $LD in # libtool.m4 will add one of these switches to LD
10691 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10692 libsuff= shlibsuff= libmagic=32-bit;;
10693 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10694 libsuff=32 shlibsuff=N32 libmagic=N32;;
10695 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10696 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10697 *) libsuff= shlibsuff= libmagic=never-match;;
10698 esac
10699 ;;
10700 esac
10701 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10702 shlibpath_overrides_runpath=no
10703 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10704 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10705 hardcode_into_libs=yes
10706 ;;
10707
10708 # No shared lib support for Linux oldld, aout, or coff.
10709 linux*oldld* | linux*aout* | linux*coff*)
10710 dynamic_linker=no
10711 ;;
10712
10713 # This must be Linux ELF.
10714
10715 # uclinux* changes (here and below) have been submitted to the libtool
10716 # project, but have not yet been accepted: they are GCC-local changes
10717 # for the time being. (See
10718 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10719 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10720 version_type=linux
10721 need_lib_prefix=no
10722 need_version=no
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=no
10728
10729 # Some binutils ld are patched to set DT_RUNPATH
10730 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 lt_cv_shlibpath_overrides_runpath=no
10734 save_LDFLAGS=$LDFLAGS
10735 save_libdir=$libdir
10736 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10737 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740
10741 int
10742 main ()
10743 {
10744
10745 ;
10746 return 0;
10747 }
10748 _ACEOF
10749 if ac_fn_c_try_link "$LINENO"; then :
10750 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10751 lt_cv_shlibpath_overrides_runpath=yes
10752 fi
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LDFLAGS=$save_LDFLAGS
10757 libdir=$save_libdir
10758
10759 fi
10760
10761 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10762
10763 # This implies no fast_install, which is unacceptable.
10764 # Some rework will be needed to allow for fast_install
10765 # before this can be enabled.
10766 hardcode_into_libs=yes
10767
10768 # Append ld.so.conf contents to the search path
10769 if test -f /etc/ld.so.conf; then
10770 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' ' '`
10771 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10772 fi
10773
10774 # We used to test for /lib/ld.so.1 and disable shared libraries on
10775 # powerpc, because MkLinux only supported shared libraries with the
10776 # GNU dynamic linker. Since this was broken with cross compilers,
10777 # most powerpc-linux boxes support dynamic linking these days and
10778 # people can always --disable-shared, the test was removed, and we
10779 # assume the GNU/Linux dynamic linker is in use.
10780 dynamic_linker='GNU/Linux ld.so'
10781 ;;
10782
10783 netbsd*)
10784 version_type=sunos
10785 need_lib_prefix=no
10786 need_version=no
10787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10790 dynamic_linker='NetBSD (a.out) ld.so'
10791 else
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10793 soname_spec='${libname}${release}${shared_ext}$major'
10794 dynamic_linker='NetBSD ld.elf_so'
10795 fi
10796 shlibpath_var=LD_LIBRARY_PATH
10797 shlibpath_overrides_runpath=yes
10798 hardcode_into_libs=yes
10799 ;;
10800
10801 newsos6)
10802 version_type=linux
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath=yes
10806 ;;
10807
10808 *nto* | *qnx*)
10809 version_type=qnx
10810 need_lib_prefix=no
10811 need_version=no
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=no
10816 hardcode_into_libs=yes
10817 dynamic_linker='ldqnx.so'
10818 ;;
10819
10820 openbsd*)
10821 version_type=sunos
10822 sys_lib_dlsearch_path_spec="/usr/lib"
10823 need_lib_prefix=no
10824 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10825 case $host_os in
10826 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10827 *) need_version=no ;;
10828 esac
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10833 case $host_os in
10834 openbsd2.[89] | openbsd2.[89].*)
10835 shlibpath_overrides_runpath=no
10836 ;;
10837 *)
10838 shlibpath_overrides_runpath=yes
10839 ;;
10840 esac
10841 else
10842 shlibpath_overrides_runpath=yes
10843 fi
10844 ;;
10845
10846 os2*)
10847 libname_spec='$name'
10848 shrext_cmds=".dll"
10849 need_lib_prefix=no
10850 library_names_spec='$libname${shared_ext} $libname.a'
10851 dynamic_linker='OS/2 ld.exe'
10852 shlibpath_var=LIBPATH
10853 ;;
10854
10855 osf3* | osf4* | osf5*)
10856 version_type=osf
10857 need_lib_prefix=no
10858 need_version=no
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10863 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10864 ;;
10865
10866 rdos*)
10867 dynamic_linker=no
10868 ;;
10869
10870 solaris*)
10871 version_type=linux
10872 need_lib_prefix=no
10873 need_version=no
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=yes
10878 hardcode_into_libs=yes
10879 # ldd complains unless libraries are executable
10880 postinstall_cmds='chmod +x $lib'
10881 ;;
10882
10883 sunos4*)
10884 version_type=sunos
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath=yes
10889 if test "$with_gnu_ld" = yes; then
10890 need_lib_prefix=no
10891 fi
10892 need_version=yes
10893 ;;
10894
10895 sysv4 | sysv4.3*)
10896 version_type=linux
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 case $host_vendor in
10901 sni)
10902 shlibpath_overrides_runpath=no
10903 need_lib_prefix=no
10904 runpath_var=LD_RUN_PATH
10905 ;;
10906 siemens)
10907 need_lib_prefix=no
10908 ;;
10909 motorola)
10910 need_lib_prefix=no
10911 need_version=no
10912 shlibpath_overrides_runpath=no
10913 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10914 ;;
10915 esac
10916 ;;
10917
10918 sysv4*MP*)
10919 if test -d /usr/nec ;then
10920 version_type=linux
10921 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10922 soname_spec='$libname${shared_ext}.$major'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 fi
10925 ;;
10926
10927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10928 version_type=freebsd-elf
10929 need_lib_prefix=no
10930 need_version=no
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=yes
10935 hardcode_into_libs=yes
10936 if test "$with_gnu_ld" = yes; then
10937 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10938 else
10939 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10940 case $host_os in
10941 sco3.2v5*)
10942 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10943 ;;
10944 esac
10945 fi
10946 sys_lib_dlsearch_path_spec='/usr/lib'
10947 ;;
10948
10949 tpf*)
10950 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10951 version_type=linux
10952 need_lib_prefix=no
10953 need_version=no
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath=no
10957 hardcode_into_libs=yes
10958 ;;
10959
10960 uts4*)
10961 version_type=linux
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 ;;
10966
10967 *)
10968 dynamic_linker=no
10969 ;;
10970 esac
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10972 $as_echo "$dynamic_linker" >&6; }
10973 test "$dynamic_linker" = no && can_build_shared=no
10974
10975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10976 if test "$GCC" = yes; then
10977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10978 fi
10979
10980 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10981 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10982 fi
10983 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10984 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10985 fi
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11079 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11080 hardcode_action=
11081 if test -n "$hardcode_libdir_flag_spec" ||
11082 test -n "$runpath_var" ||
11083 test "X$hardcode_automatic" = "Xyes" ; then
11084
11085 # We can hardcode non-existent directories.
11086 if test "$hardcode_direct" != no &&
11087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11088 # have to relink, otherwise we might link with an installed library
11089 # when we should be linking with a yet-to-be-installed one
11090 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11091 test "$hardcode_minus_L" != no; then
11092 # Linking always hardcodes the temporary library directory.
11093 hardcode_action=relink
11094 else
11095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11096 hardcode_action=immediate
11097 fi
11098 else
11099 # We cannot hardcode anything, or else we can only hardcode existing
11100 # directories.
11101 hardcode_action=unsupported
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11104 $as_echo "$hardcode_action" >&6; }
11105
11106 if test "$hardcode_action" = relink ||
11107 test "$inherit_rpath" = yes; then
11108 # Fast installation is not supported
11109 enable_fast_install=no
11110 elif test "$shlibpath_overrides_runpath" = yes ||
11111 test "$enable_shared" = no; then
11112 # Fast installation is not necessary
11113 enable_fast_install=needless
11114 fi
11115
11116
11117
11118
11119
11120
11121 if test "x$enable_dlopen" != xyes; then
11122 enable_dlopen=unknown
11123 enable_dlopen_self=unknown
11124 enable_dlopen_self_static=unknown
11125 else
11126 lt_cv_dlopen=no
11127 lt_cv_dlopen_libs=
11128
11129 case $host_os in
11130 beos*)
11131 lt_cv_dlopen="load_add_on"
11132 lt_cv_dlopen_libs=
11133 lt_cv_dlopen_self=yes
11134 ;;
11135
11136 mingw* | pw32* | cegcc*)
11137 lt_cv_dlopen="LoadLibrary"
11138 lt_cv_dlopen_libs=
11139 ;;
11140
11141 cygwin*)
11142 lt_cv_dlopen="dlopen"
11143 lt_cv_dlopen_libs=
11144 ;;
11145
11146 darwin*)
11147 # if libdl is installed we need to link against it
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11149 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11150 if ${ac_cv_lib_dl_dlopen+:} false; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 ac_check_lib_save_LIBS=$LIBS
11154 LIBS="-ldl $LIBS"
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char dlopen ();
11165 int
11166 main ()
11167 {
11168 return dlopen ();
11169 ;
11170 return 0;
11171 }
11172 _ACEOF
11173 if ac_fn_c_try_link "$LINENO"; then :
11174 ac_cv_lib_dl_dlopen=yes
11175 else
11176 ac_cv_lib_dl_dlopen=no
11177 fi
11178 rm -f core conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11181 fi
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11184 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11186 else
11187
11188 lt_cv_dlopen="dyld"
11189 lt_cv_dlopen_libs=
11190 lt_cv_dlopen_self=yes
11191
11192 fi
11193
11194 ;;
11195
11196 *)
11197 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11198 if test "x$ac_cv_func_shl_load" = xyes; then :
11199 lt_cv_dlopen="shl_load"
11200 else
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11202 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11203 if ${ac_cv_lib_dld_shl_load+:} false; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 ac_check_lib_save_LIBS=$LIBS
11207 LIBS="-ldld $LIBS"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210
11211 /* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11214 #ifdef __cplusplus
11215 extern "C"
11216 #endif
11217 char shl_load ();
11218 int
11219 main ()
11220 {
11221 return shl_load ();
11222 ;
11223 return 0;
11224 }
11225 _ACEOF
11226 if ac_fn_c_try_link "$LINENO"; then :
11227 ac_cv_lib_dld_shl_load=yes
11228 else
11229 ac_cv_lib_dld_shl_load=no
11230 fi
11231 rm -f core conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11234 fi
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11236 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11237 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11238 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11239 else
11240 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11241 if test "x$ac_cv_func_dlopen" = xyes; then :
11242 lt_cv_dlopen="dlopen"
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11245 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11246 if ${ac_cv_lib_dl_dlopen+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 ac_check_lib_save_LIBS=$LIBS
11250 LIBS="-ldl $LIBS"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11253
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11257 #ifdef __cplusplus
11258 extern "C"
11259 #endif
11260 char dlopen ();
11261 int
11262 main ()
11263 {
11264 return dlopen ();
11265 ;
11266 return 0;
11267 }
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270 ac_cv_lib_dl_dlopen=yes
11271 else
11272 ac_cv_lib_dl_dlopen=no
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11276 LIBS=$ac_check_lib_save_LIBS
11277 fi
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11279 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11280 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11281 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11284 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11285 if ${ac_cv_lib_svld_dlopen+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 ac_check_lib_save_LIBS=$LIBS
11289 LIBS="-lsvld $LIBS"
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11292
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11296 #ifdef __cplusplus
11297 extern "C"
11298 #endif
11299 char dlopen ();
11300 int
11301 main ()
11302 {
11303 return dlopen ();
11304 ;
11305 return 0;
11306 }
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"; then :
11309 ac_cv_lib_svld_dlopen=yes
11310 else
11311 ac_cv_lib_svld_dlopen=no
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext \
11314 conftest$ac_exeext conftest.$ac_ext
11315 LIBS=$ac_check_lib_save_LIBS
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11318 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11319 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11323 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11324 if ${ac_cv_lib_dld_dld_link+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-ldld $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char dld_link ();
11339 int
11340 main ()
11341 {
11342 return dld_link ();
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 ac_cv_lib_dld_dld_link=yes
11349 else
11350 ac_cv_lib_dld_dld_link=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11357 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11358 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11359 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11360 fi
11361
11362
11363 fi
11364
11365
11366 fi
11367
11368
11369 fi
11370
11371
11372 fi
11373
11374
11375 fi
11376
11377 ;;
11378 esac
11379
11380 if test "x$lt_cv_dlopen" != xno; then
11381 enable_dlopen=yes
11382 else
11383 enable_dlopen=no
11384 fi
11385
11386 case $lt_cv_dlopen in
11387 dlopen)
11388 save_CPPFLAGS="$CPPFLAGS"
11389 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11390
11391 save_LDFLAGS="$LDFLAGS"
11392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11393
11394 save_LIBS="$LIBS"
11395 LIBS="$lt_cv_dlopen_libs $LIBS"
11396
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11398 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11399 if ${lt_cv_dlopen_self+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 if test "$cross_compiling" = yes; then :
11403 lt_cv_dlopen_self=cross
11404 else
11405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11406 lt_status=$lt_dlunknown
11407 cat > conftest.$ac_ext <<_LT_EOF
11408 #line 11408 "configure"
11409 #include "confdefs.h"
11410
11411 #if HAVE_DLFCN_H
11412 #include <dlfcn.h>
11413 #endif
11414
11415 #include <stdio.h>
11416
11417 #ifdef RTLD_GLOBAL
11418 # define LT_DLGLOBAL RTLD_GLOBAL
11419 #else
11420 # ifdef DL_GLOBAL
11421 # define LT_DLGLOBAL DL_GLOBAL
11422 # else
11423 # define LT_DLGLOBAL 0
11424 # endif
11425 #endif
11426
11427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11428 find out it does not work in some platform. */
11429 #ifndef LT_DLLAZY_OR_NOW
11430 # ifdef RTLD_LAZY
11431 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11432 # else
11433 # ifdef DL_LAZY
11434 # define LT_DLLAZY_OR_NOW DL_LAZY
11435 # else
11436 # ifdef RTLD_NOW
11437 # define LT_DLLAZY_OR_NOW RTLD_NOW
11438 # else
11439 # ifdef DL_NOW
11440 # define LT_DLLAZY_OR_NOW DL_NOW
11441 # else
11442 # define LT_DLLAZY_OR_NOW 0
11443 # endif
11444 # endif
11445 # endif
11446 # endif
11447 #endif
11448
11449 /* When -fvisbility=hidden is used, assume the code has been annotated
11450 correspondingly for the symbols needed. */
11451 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11452 void fnord () __attribute__((visibility("default")));
11453 #endif
11454
11455 void fnord () { int i=42; }
11456 int main ()
11457 {
11458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11459 int status = $lt_dlunknown;
11460
11461 if (self)
11462 {
11463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11464 else
11465 {
11466 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11467 else puts (dlerror ());
11468 }
11469 /* dlclose (self); */
11470 }
11471 else
11472 puts (dlerror ());
11473
11474 return status;
11475 }
11476 _LT_EOF
11477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11478 (eval $ac_link) 2>&5
11479 ac_status=$?
11480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11481 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11482 (./conftest; exit; ) >&5 2>/dev/null
11483 lt_status=$?
11484 case x$lt_status in
11485 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11486 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11487 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11488 esac
11489 else :
11490 # compilation failed
11491 lt_cv_dlopen_self=no
11492 fi
11493 fi
11494 rm -fr conftest*
11495
11496
11497 fi
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11499 $as_echo "$lt_cv_dlopen_self" >&6; }
11500
11501 if test "x$lt_cv_dlopen_self" = xyes; then
11502 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11504 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11505 if ${lt_cv_dlopen_self_static+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 if test "$cross_compiling" = yes; then :
11509 lt_cv_dlopen_self_static=cross
11510 else
11511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11512 lt_status=$lt_dlunknown
11513 cat > conftest.$ac_ext <<_LT_EOF
11514 #line 11514 "configure"
11515 #include "confdefs.h"
11516
11517 #if HAVE_DLFCN_H
11518 #include <dlfcn.h>
11519 #endif
11520
11521 #include <stdio.h>
11522
11523 #ifdef RTLD_GLOBAL
11524 # define LT_DLGLOBAL RTLD_GLOBAL
11525 #else
11526 # ifdef DL_GLOBAL
11527 # define LT_DLGLOBAL DL_GLOBAL
11528 # else
11529 # define LT_DLGLOBAL 0
11530 # endif
11531 #endif
11532
11533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11534 find out it does not work in some platform. */
11535 #ifndef LT_DLLAZY_OR_NOW
11536 # ifdef RTLD_LAZY
11537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11538 # else
11539 # ifdef DL_LAZY
11540 # define LT_DLLAZY_OR_NOW DL_LAZY
11541 # else
11542 # ifdef RTLD_NOW
11543 # define LT_DLLAZY_OR_NOW RTLD_NOW
11544 # else
11545 # ifdef DL_NOW
11546 # define LT_DLLAZY_OR_NOW DL_NOW
11547 # else
11548 # define LT_DLLAZY_OR_NOW 0
11549 # endif
11550 # endif
11551 # endif
11552 # endif
11553 #endif
11554
11555 /* When -fvisbility=hidden is used, assume the code has been annotated
11556 correspondingly for the symbols needed. */
11557 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11558 void fnord () __attribute__((visibility("default")));
11559 #endif
11560
11561 void fnord () { int i=42; }
11562 int main ()
11563 {
11564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11565 int status = $lt_dlunknown;
11566
11567 if (self)
11568 {
11569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11570 else
11571 {
11572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11573 else puts (dlerror ());
11574 }
11575 /* dlclose (self); */
11576 }
11577 else
11578 puts (dlerror ());
11579
11580 return status;
11581 }
11582 _LT_EOF
11583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11584 (eval $ac_link) 2>&5
11585 ac_status=$?
11586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11587 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11588 (./conftest; exit; ) >&5 2>/dev/null
11589 lt_status=$?
11590 case x$lt_status in
11591 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11592 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11593 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11594 esac
11595 else :
11596 # compilation failed
11597 lt_cv_dlopen_self_static=no
11598 fi
11599 fi
11600 rm -fr conftest*
11601
11602
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11605 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11606 fi
11607
11608 CPPFLAGS="$save_CPPFLAGS"
11609 LDFLAGS="$save_LDFLAGS"
11610 LIBS="$save_LIBS"
11611 ;;
11612 esac
11613
11614 case $lt_cv_dlopen_self in
11615 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11616 *) enable_dlopen_self=unknown ;;
11617 esac
11618
11619 case $lt_cv_dlopen_self_static in
11620 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11621 *) enable_dlopen_self_static=unknown ;;
11622 esac
11623 fi
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 striplib=
11642 old_striplib=
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11644 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11645 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11646 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11647 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649 $as_echo "yes" >&6; }
11650 else
11651 # FIXME - insert some real tests, host_os isn't really good enough
11652 case $host_os in
11653 darwin*)
11654 if test -n "$STRIP" ; then
11655 striplib="$STRIP -x"
11656 old_striplib="$STRIP -S"
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658 $as_echo "yes" >&6; }
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11662 fi
11663 ;;
11664 *)
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11667 ;;
11668 esac
11669 fi
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682 # Report which library types will actually be built
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11684 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11686 $as_echo "$can_build_shared" >&6; }
11687
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11689 $as_echo_n "checking whether to build shared libraries... " >&6; }
11690 test "$can_build_shared" = "no" && enable_shared=no
11691
11692 # On AIX, shared libraries and static libraries use the same namespace, and
11693 # are all built from PIC.
11694 case $host_os in
11695 aix3*)
11696 test "$enable_shared" = yes && enable_static=no
11697 if test -n "$RANLIB"; then
11698 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11699 postinstall_cmds='$RANLIB $lib'
11700 fi
11701 ;;
11702
11703 aix[4-9]*)
11704 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11705 test "$enable_shared" = yes && enable_static=no
11706 fi
11707 ;;
11708 esac
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11710 $as_echo "$enable_shared" >&6; }
11711
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11713 $as_echo_n "checking whether to build static libraries... " >&6; }
11714 # Make sure either enable_shared or enable_static is yes.
11715 test "$enable_shared" = yes || enable_static=yes
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11717 $as_echo "$enable_static" >&6; }
11718
11719
11720
11721
11722 fi
11723 ac_ext=c
11724 ac_cpp='$CPP $CPPFLAGS'
11725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11728
11729 CC="$lt_save_CC"
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743 ac_config_commands="$ac_config_commands libtool"
11744
11745
11746
11747
11748 # Only expand once:
11749
11750
11751
11752
11753
11754 case $host in
11755 *-cygwin* | *-mingw*)
11756 # 'host' will be top-level target in the case of a target lib,
11757 # we must compare to with_cross_host to decide if this is a native
11758 # or cross-compiler and select where to install dlls appropriately.
11759 if test -n "$with_cross_host" &&
11760 test x"$with_cross_host" != x"no"; then
11761 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11762 else
11763 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11764 fi
11765 ;;
11766 *)
11767 lt_host_flags=
11768 ;;
11769 esac
11770
11771
11772
11773
11774
11775
11776
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11778 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11779 # Check whether --enable-maintainer-mode was given.
11780 if test "${enable_maintainer_mode+set}" = set; then :
11781 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11782 else
11783 USE_MAINTAINER_MODE=no
11784 fi
11785
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11787 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11788 if test $USE_MAINTAINER_MODE = yes; then
11789 MAINTAINER_MODE_TRUE=
11790 MAINTAINER_MODE_FALSE='#'
11791 else
11792 MAINTAINER_MODE_TRUE='#'
11793 MAINTAINER_MODE_FALSE=
11794 fi
11795
11796 MAINT=$MAINTAINER_MODE_TRUE
11797
11798
11799
11800 # Create a spec file, so that compile/link tests don't fail
11801 test -f libgfortran.spec || touch libgfortran.spec
11802 FCFLAGS="$FCFLAGS -L."
11803
11804 # We need gfortran to compile parts of the library
11805 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11806 #AC_PROG_FC(gfortran)
11807 case `echo $GFORTRAN` in
11808 -* | no* )
11809 FC=no ;;
11810 *)
11811 set dummy $GFORTRAN; ac_word=$2
11812 if test -x "$ac_word"; then
11813 FC="$GFORTRAN"
11814 else
11815 FC=no
11816 fi ;;
11817 esac
11818 ac_ext=${ac_fc_srcext-f}
11819 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11820 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11821 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11822 if test -n "$ac_tool_prefix"; then
11823 for ac_prog in gfortran
11824 do
11825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828 $as_echo_n "checking for $ac_word... " >&6; }
11829 if ${ac_cv_prog_FC+:} false; then :
11830 $as_echo_n "(cached) " >&6
11831 else
11832 if test -n "$FC"; then
11833 ac_cv_prog_FC="$FC" # Let the user override the test.
11834 else
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11837 do
11838 IFS=$as_save_IFS
11839 test -z "$as_dir" && as_dir=.
11840 for ac_exec_ext in '' $ac_executable_extensions; do
11841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11842 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11844 break 2
11845 fi
11846 done
11847 done
11848 IFS=$as_save_IFS
11849
11850 fi
11851 fi
11852 FC=$ac_cv_prog_FC
11853 if test -n "$FC"; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11855 $as_echo "$FC" >&6; }
11856 else
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11859 fi
11860
11861
11862 test -n "$FC" && break
11863 done
11864 fi
11865 if test -z "$FC"; then
11866 ac_ct_FC=$FC
11867 for ac_prog in gfortran
11868 do
11869 # Extract the first word of "$ac_prog", so it can be a program name with args.
11870 set dummy $ac_prog; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 $as_echo_n "checking for $ac_word... " >&6; }
11873 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 if test -n "$ac_ct_FC"; then
11877 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11878 else
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11881 do
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886 ac_cv_prog_ac_ct_FC="$ac_prog"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 break 2
11889 fi
11890 done
11891 done
11892 IFS=$as_save_IFS
11893
11894 fi
11895 fi
11896 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11897 if test -n "$ac_ct_FC"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11899 $as_echo "$ac_ct_FC" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11903 fi
11904
11905
11906 test -n "$ac_ct_FC" && break
11907 done
11908
11909 if test "x$ac_ct_FC" = x; then
11910 FC=""
11911 else
11912 case $cross_compiling:$ac_tool_warned in
11913 yes:)
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11916 ac_tool_warned=yes ;;
11917 esac
11918 FC=$ac_ct_FC
11919 fi
11920 fi
11921
11922
11923 # Provide some information about the compiler.
11924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11925 set X $ac_compile
11926 ac_compiler=$2
11927 for ac_option in --version -v -V -qversion; do
11928 { { ac_try="$ac_compiler $ac_option >&5"
11929 case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932 esac
11933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11934 $as_echo "$ac_try_echo"; } >&5
11935 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11936 ac_status=$?
11937 if test -s conftest.err; then
11938 sed '10a\
11939 ... rest of stderr output deleted ...
11940 10q' conftest.err >conftest.er1
11941 cat conftest.er1 >&5
11942 fi
11943 rm -f conftest.er1 conftest.err
11944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11945 test $ac_status = 0; }
11946 done
11947 rm -f a.out
11948
11949 # If we don't use `.F' as extension, the preprocessor is not run on the
11950 # input file. (Note that this only needs to work for GNU compilers.)
11951 ac_save_ext=$ac_ext
11952 ac_ext=F
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11954 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11955 if ${ac_cv_fc_compiler_gnu+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 cat > conftest.$ac_ext <<_ACEOF
11959 program main
11960 #ifndef __GNUC__
11961 choke me
11962 #endif
11963
11964 end
11965 _ACEOF
11966 if ac_fn_fc_try_compile "$LINENO"; then :
11967 ac_compiler_gnu=yes
11968 else
11969 ac_compiler_gnu=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11973
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11976 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11977 ac_ext=$ac_save_ext
11978 ac_test_FCFLAGS=${FCFLAGS+set}
11979 ac_save_FCFLAGS=$FCFLAGS
11980 FCFLAGS=
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11982 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11983 if ${ac_cv_prog_fc_g+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 FCFLAGS=-g
11987 cat > conftest.$ac_ext <<_ACEOF
11988 program main
11989
11990 end
11991 _ACEOF
11992 if ac_fn_fc_try_compile "$LINENO"; then :
11993 ac_cv_prog_fc_g=yes
11994 else
11995 ac_cv_prog_fc_g=no
11996 fi
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998
11999 fi
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12001 $as_echo "$ac_cv_prog_fc_g" >&6; }
12002 if test "$ac_test_FCFLAGS" = set; then
12003 FCFLAGS=$ac_save_FCFLAGS
12004 elif test $ac_cv_prog_fc_g = yes; then
12005 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12006 FCFLAGS="-g -O2"
12007 else
12008 FCFLAGS="-g"
12009 fi
12010 else
12011 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12012 FCFLAGS="-O2"
12013 else
12014 FCFLAGS=
12015 fi
12016 fi
12017
12018 if test $ac_compiler_gnu = yes; then
12019 GFC=yes
12020 else
12021 GFC=
12022 fi
12023 ac_ext=c
12024 ac_cpp='$CPP $CPPFLAGS'
12025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12028
12029 ac_ext=${ac_fc_srcext-f}
12030 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12031 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12032 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12033
12034
12035 if test -z "$FC" || test "X$FC" = "Xno"; then
12036 _lt_disable_FC=yes
12037 fi
12038
12039 archive_cmds_need_lc_FC=no
12040 allow_undefined_flag_FC=
12041 always_export_symbols_FC=no
12042 archive_expsym_cmds_FC=
12043 export_dynamic_flag_spec_FC=
12044 hardcode_direct_FC=no
12045 hardcode_direct_absolute_FC=no
12046 hardcode_libdir_flag_spec_FC=
12047 hardcode_libdir_flag_spec_ld_FC=
12048 hardcode_libdir_separator_FC=
12049 hardcode_minus_L_FC=no
12050 hardcode_automatic_FC=no
12051 inherit_rpath_FC=no
12052 module_cmds_FC=
12053 module_expsym_cmds_FC=
12054 link_all_deplibs_FC=unknown
12055 old_archive_cmds_FC=$old_archive_cmds
12056 reload_flag_FC=$reload_flag
12057 reload_cmds_FC=$reload_cmds
12058 no_undefined_flag_FC=
12059 whole_archive_flag_spec_FC=
12060 enable_shared_with_static_runtimes_FC=no
12061
12062 # Source file extension for fc test sources.
12063 ac_ext=${ac_fc_srcext-f}
12064
12065 # Object file extension for compiled fc test sources.
12066 objext=o
12067 objext_FC=$objext
12068
12069 # No sense in running all these tests if we already determined that
12070 # the FC compiler isn't working. Some variables (like enable_shared)
12071 # are currently assumed to apply to all compilers on this platform,
12072 # and will be corrupted by setting them based on a non-working compiler.
12073 if test "$_lt_disable_FC" != yes; then
12074 # Code to be used in simple compile tests
12075 lt_simple_compile_test_code="\
12076 subroutine t
12077 return
12078 end
12079 "
12080
12081 # Code to be used in simple link tests
12082 lt_simple_link_test_code="\
12083 program t
12084 end
12085 "
12086
12087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12088
12089
12090
12091
12092
12093
12094 # If no C compiler was specified, use CC.
12095 LTCC=${LTCC-"$CC"}
12096
12097 # If no C compiler flags were specified, use CFLAGS.
12098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12099
12100 # Allow CC to be a program name with arguments.
12101 compiler=$CC
12102
12103
12104 # save warnings/boilerplate of simple test code
12105 ac_outfile=conftest.$ac_objext
12106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12108 _lt_compiler_boilerplate=`cat conftest.err`
12109 $RM conftest*
12110
12111 ac_outfile=conftest.$ac_objext
12112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12114 _lt_linker_boilerplate=`cat conftest.err`
12115 $RM -r conftest*
12116
12117
12118 # Allow CC to be a program name with arguments.
12119 lt_save_CC="$CC"
12120 lt_save_GCC=$GCC
12121 CC=${FC-"f95"}
12122 compiler=$CC
12123 GCC=$ac_cv_fc_compiler_gnu
12124
12125 compiler_FC=$CC
12126 for cc_temp in $compiler""; do
12127 case $cc_temp in
12128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12130 \-*) ;;
12131 *) break;;
12132 esac
12133 done
12134 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12135
12136
12137 if test -n "$compiler"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12139 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12141 $as_echo "$can_build_shared" >&6; }
12142
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12144 $as_echo_n "checking whether to build shared libraries... " >&6; }
12145 test "$can_build_shared" = "no" && enable_shared=no
12146
12147 # On AIX, shared libraries and static libraries use the same namespace, and
12148 # are all built from PIC.
12149 case $host_os in
12150 aix3*)
12151 test "$enable_shared" = yes && enable_static=no
12152 if test -n "$RANLIB"; then
12153 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12154 postinstall_cmds='$RANLIB $lib'
12155 fi
12156 ;;
12157 aix[4-9]*)
12158 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12159 test "$enable_shared" = yes && enable_static=no
12160 fi
12161 ;;
12162 esac
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12164 $as_echo "$enable_shared" >&6; }
12165
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12167 $as_echo_n "checking whether to build static libraries... " >&6; }
12168 # Make sure either enable_shared or enable_static is yes.
12169 test "$enable_shared" = yes || enable_static=yes
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12171 $as_echo "$enable_static" >&6; }
12172
12173 GCC_FC="$ac_cv_fc_compiler_gnu"
12174 LD_FC="$LD"
12175
12176 ## CAVEAT EMPTOR:
12177 ## There is no encapsulation within the following macros, do not change
12178 ## the running order or otherwise move them around unless you know exactly
12179 ## what you are doing...
12180 # Dependencies to place before and after the object being linked:
12181 predep_objects_FC=
12182 postdep_objects_FC=
12183 predeps_FC=
12184 postdeps_FC=
12185 compiler_lib_search_path_FC=
12186
12187 cat > conftest.$ac_ext <<_LT_EOF
12188 subroutine foo
12189 implicit none
12190 integer a
12191 a=0
12192 return
12193 end
12194 _LT_EOF
12195
12196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12197 (eval $ac_compile) 2>&5
12198 ac_status=$?
12199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12200 test $ac_status = 0; }; then
12201 # Parse the compiler output and extract the necessary
12202 # objects, libraries and library flags.
12203
12204 # Sentinel used to keep track of whether or not we are before
12205 # the conftest object file.
12206 pre_test_object_deps_done=no
12207
12208 for p in `eval "$output_verbose_link_cmd"`; do
12209 case $p in
12210
12211 -L* | -R* | -l*)
12212 # Some compilers place space between "-{L,R}" and the path.
12213 # Remove the space.
12214 if test $p = "-L" ||
12215 test $p = "-R"; then
12216 prev=$p
12217 continue
12218 else
12219 prev=
12220 fi
12221
12222 if test "$pre_test_object_deps_done" = no; then
12223 case $p in
12224 -L* | -R*)
12225 # Internal compiler library paths should come after those
12226 # provided the user. The postdeps already come after the
12227 # user supplied libs so there is no need to process them.
12228 if test -z "$compiler_lib_search_path_FC"; then
12229 compiler_lib_search_path_FC="${prev}${p}"
12230 else
12231 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12232 fi
12233 ;;
12234 # The "-l" case would never come before the object being
12235 # linked, so don't bother handling this case.
12236 esac
12237 else
12238 if test -z "$postdeps_FC"; then
12239 postdeps_FC="${prev}${p}"
12240 else
12241 postdeps_FC="${postdeps_FC} ${prev}${p}"
12242 fi
12243 fi
12244 ;;
12245
12246 *.$objext)
12247 # This assumes that the test object file only shows up
12248 # once in the compiler output.
12249 if test "$p" = "conftest.$objext"; then
12250 pre_test_object_deps_done=yes
12251 continue
12252 fi
12253
12254 if test "$pre_test_object_deps_done" = no; then
12255 if test -z "$predep_objects_FC"; then
12256 predep_objects_FC="$p"
12257 else
12258 predep_objects_FC="$predep_objects_FC $p"
12259 fi
12260 else
12261 if test -z "$postdep_objects_FC"; then
12262 postdep_objects_FC="$p"
12263 else
12264 postdep_objects_FC="$postdep_objects_FC $p"
12265 fi
12266 fi
12267 ;;
12268
12269 *) ;; # Ignore the rest.
12270
12271 esac
12272 done
12273
12274 # Clean up.
12275 rm -f a.out a.exe
12276 else
12277 echo "libtool.m4: error: problem compiling FC test program"
12278 fi
12279
12280 $RM -f confest.$objext
12281
12282 # PORTME: override above test on systems where it is broken
12283
12284
12285 case " $postdeps_FC " in
12286 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12287 esac
12288 compiler_lib_search_dirs_FC=
12289 if test -n "${compiler_lib_search_path_FC}"; then
12290 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12291 fi
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323 lt_prog_compiler_wl_FC=
12324 lt_prog_compiler_pic_FC=
12325 lt_prog_compiler_static_FC=
12326
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12328 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12329
12330 if test "$GCC" = yes; then
12331 lt_prog_compiler_wl_FC='-Wl,'
12332 lt_prog_compiler_static_FC='-static'
12333
12334 case $host_os in
12335 aix*)
12336 # All AIX code is PIC.
12337 if test "$host_cpu" = ia64; then
12338 # AIX 5 now supports IA64 processor
12339 lt_prog_compiler_static_FC='-Bstatic'
12340 fi
12341 lt_prog_compiler_pic_FC='-fPIC'
12342 ;;
12343
12344 amigaos*)
12345 case $host_cpu in
12346 powerpc)
12347 # see comment about AmigaOS4 .so support
12348 lt_prog_compiler_pic_FC='-fPIC'
12349 ;;
12350 m68k)
12351 # FIXME: we need at least 68020 code to build shared libraries, but
12352 # adding the `-m68020' flag to GCC prevents building anything better,
12353 # like `-m68040'.
12354 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12355 ;;
12356 esac
12357 ;;
12358
12359 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12360 # PIC is the default for these OSes.
12361 ;;
12362
12363 mingw* | cygwin* | pw32* | os2* | cegcc*)
12364 # This hack is so that the source file can tell whether it is being
12365 # built for inclusion in a dll (and should export symbols for example).
12366 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12367 # (--disable-auto-import) libraries
12368 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12369 ;;
12370
12371 darwin* | rhapsody*)
12372 # PIC is the default on this platform
12373 # Common symbols not allowed in MH_DYLIB files
12374 lt_prog_compiler_pic_FC='-fno-common'
12375 ;;
12376
12377 haiku*)
12378 # PIC is the default for Haiku.
12379 # The "-static" flag exists, but is broken.
12380 lt_prog_compiler_static_FC=
12381 ;;
12382
12383 hpux*)
12384 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12385 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12386 # sets the default TLS model and affects inlining.
12387 case $host_cpu in
12388 hppa*64*)
12389 # +Z the default
12390 ;;
12391 *)
12392 lt_prog_compiler_pic_FC='-fPIC'
12393 ;;
12394 esac
12395 ;;
12396
12397 interix[3-9]*)
12398 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12399 # Instead, we relocate shared libraries at runtime.
12400 ;;
12401
12402 msdosdjgpp*)
12403 # Just because we use GCC doesn't mean we suddenly get shared libraries
12404 # on systems that don't support them.
12405 lt_prog_compiler_can_build_shared_FC=no
12406 enable_shared=no
12407 ;;
12408
12409 *nto* | *qnx*)
12410 # QNX uses GNU C++, but need to define -shared option too, otherwise
12411 # it will coredump.
12412 lt_prog_compiler_pic_FC='-fPIC -shared'
12413 ;;
12414
12415 sysv4*MP*)
12416 if test -d /usr/nec; then
12417 lt_prog_compiler_pic_FC=-Kconform_pic
12418 fi
12419 ;;
12420
12421 *)
12422 lt_prog_compiler_pic_FC='-fPIC'
12423 ;;
12424 esac
12425
12426 case $cc_basename in
12427 nvcc*) # Cuda Compiler Driver 2.2
12428 lt_prog_compiler_wl_FC='-Xlinker '
12429 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12430 ;;
12431 esac
12432 else
12433 # PORTME Check for flag to pass linker flags through the system compiler.
12434 case $host_os in
12435 aix*)
12436 lt_prog_compiler_wl_FC='-Wl,'
12437 if test "$host_cpu" = ia64; then
12438 # AIX 5 now supports IA64 processor
12439 lt_prog_compiler_static_FC='-Bstatic'
12440 else
12441 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12442 fi
12443 ;;
12444
12445 mingw* | cygwin* | pw32* | os2* | cegcc*)
12446 # This hack is so that the source file can tell whether it is being
12447 # built for inclusion in a dll (and should export symbols for example).
12448 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12449 ;;
12450
12451 hpux9* | hpux10* | hpux11*)
12452 lt_prog_compiler_wl_FC='-Wl,'
12453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12454 # not for PA HP-UX.
12455 case $host_cpu in
12456 hppa*64*|ia64*)
12457 # +Z the default
12458 ;;
12459 *)
12460 lt_prog_compiler_pic_FC='+Z'
12461 ;;
12462 esac
12463 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12464 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12465 ;;
12466
12467 irix5* | irix6* | nonstopux*)
12468 lt_prog_compiler_wl_FC='-Wl,'
12469 # PIC (with -KPIC) is the default.
12470 lt_prog_compiler_static_FC='-non_shared'
12471 ;;
12472
12473 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12474 case $cc_basename in
12475 # old Intel for x86_64 which still supported -KPIC.
12476 ecc*)
12477 lt_prog_compiler_wl_FC='-Wl,'
12478 lt_prog_compiler_pic_FC='-KPIC'
12479 lt_prog_compiler_static_FC='-static'
12480 ;;
12481 # icc used to be incompatible with GCC.
12482 # ICC 10 doesn't accept -KPIC any more.
12483 icc* | ifort*)
12484 lt_prog_compiler_wl_FC='-Wl,'
12485 lt_prog_compiler_pic_FC='-fPIC'
12486 lt_prog_compiler_static_FC='-static'
12487 ;;
12488 # Lahey Fortran 8.1.
12489 lf95*)
12490 lt_prog_compiler_wl_FC='-Wl,'
12491 lt_prog_compiler_pic_FC='--shared'
12492 lt_prog_compiler_static_FC='--static'
12493 ;;
12494 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12495 # Portland Group compilers (*not* the Pentium gcc compiler,
12496 # which looks to be a dead project)
12497 lt_prog_compiler_wl_FC='-Wl,'
12498 lt_prog_compiler_pic_FC='-fpic'
12499 lt_prog_compiler_static_FC='-Bstatic'
12500 ;;
12501 ccc*)
12502 lt_prog_compiler_wl_FC='-Wl,'
12503 # All Alpha code is PIC.
12504 lt_prog_compiler_static_FC='-non_shared'
12505 ;;
12506 xl* | bgxl* | bgf* | mpixl*)
12507 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12508 lt_prog_compiler_wl_FC='-Wl,'
12509 lt_prog_compiler_pic_FC='-qpic'
12510 lt_prog_compiler_static_FC='-qstaticlink'
12511 ;;
12512 *)
12513 case `$CC -V 2>&1 | sed 5q` in
12514 *Sun\ F* | *Sun*Fortran*)
12515 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12516 lt_prog_compiler_pic_FC='-KPIC'
12517 lt_prog_compiler_static_FC='-Bstatic'
12518 lt_prog_compiler_wl_FC=''
12519 ;;
12520 *Sun\ C*)
12521 # Sun C 5.9
12522 lt_prog_compiler_pic_FC='-KPIC'
12523 lt_prog_compiler_static_FC='-Bstatic'
12524 lt_prog_compiler_wl_FC='-Wl,'
12525 ;;
12526 esac
12527 ;;
12528 esac
12529 ;;
12530
12531 newsos6)
12532 lt_prog_compiler_pic_FC='-KPIC'
12533 lt_prog_compiler_static_FC='-Bstatic'
12534 ;;
12535
12536 *nto* | *qnx*)
12537 # QNX uses GNU C++, but need to define -shared option too, otherwise
12538 # it will coredump.
12539 lt_prog_compiler_pic_FC='-fPIC -shared'
12540 ;;
12541
12542 osf3* | osf4* | osf5*)
12543 lt_prog_compiler_wl_FC='-Wl,'
12544 # All OSF/1 code is PIC.
12545 lt_prog_compiler_static_FC='-non_shared'
12546 ;;
12547
12548 rdos*)
12549 lt_prog_compiler_static_FC='-non_shared'
12550 ;;
12551
12552 solaris*)
12553 lt_prog_compiler_pic_FC='-KPIC'
12554 lt_prog_compiler_static_FC='-Bstatic'
12555 case $cc_basename in
12556 f77* | f90* | f95*)
12557 lt_prog_compiler_wl_FC='-Qoption ld ';;
12558 *)
12559 lt_prog_compiler_wl_FC='-Wl,';;
12560 esac
12561 ;;
12562
12563 sunos4*)
12564 lt_prog_compiler_wl_FC='-Qoption ld '
12565 lt_prog_compiler_pic_FC='-PIC'
12566 lt_prog_compiler_static_FC='-Bstatic'
12567 ;;
12568
12569 sysv4 | sysv4.2uw2* | sysv4.3*)
12570 lt_prog_compiler_wl_FC='-Wl,'
12571 lt_prog_compiler_pic_FC='-KPIC'
12572 lt_prog_compiler_static_FC='-Bstatic'
12573 ;;
12574
12575 sysv4*MP*)
12576 if test -d /usr/nec ;then
12577 lt_prog_compiler_pic_FC='-Kconform_pic'
12578 lt_prog_compiler_static_FC='-Bstatic'
12579 fi
12580 ;;
12581
12582 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12583 lt_prog_compiler_wl_FC='-Wl,'
12584 lt_prog_compiler_pic_FC='-KPIC'
12585 lt_prog_compiler_static_FC='-Bstatic'
12586 ;;
12587
12588 unicos*)
12589 lt_prog_compiler_wl_FC='-Wl,'
12590 lt_prog_compiler_can_build_shared_FC=no
12591 ;;
12592
12593 uts4*)
12594 lt_prog_compiler_pic_FC='-pic'
12595 lt_prog_compiler_static_FC='-Bstatic'
12596 ;;
12597
12598 *)
12599 lt_prog_compiler_can_build_shared_FC=no
12600 ;;
12601 esac
12602 fi
12603
12604 case $host_os in
12605 # For platforms which do not support PIC, -DPIC is meaningless:
12606 *djgpp*)
12607 lt_prog_compiler_pic_FC=
12608 ;;
12609 *)
12610 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12611 ;;
12612 esac
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12614 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12615
12616
12617
12618 #
12619 # Check to make sure the PIC flag actually works.
12620 #
12621 if test -n "$lt_prog_compiler_pic_FC"; then
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12623 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12624 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12625 $as_echo_n "(cached) " >&6
12626 else
12627 lt_cv_prog_compiler_pic_works_FC=no
12628 ac_outfile=conftest.$ac_objext
12629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12630 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12631 # Insert the option either (1) after the last *FLAGS variable, or
12632 # (2) before a word containing "conftest.", or (3) at the end.
12633 # Note that $ac_compile itself does not contain backslashes and begins
12634 # with a dollar sign (not a hyphen), so the echo should work correctly.
12635 # The option is referenced via a variable to avoid confusing sed.
12636 lt_compile=`echo "$ac_compile" | $SED \
12637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12639 -e 's:$: $lt_compiler_flag:'`
12640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12641 (eval "$lt_compile" 2>conftest.err)
12642 ac_status=$?
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 if (exit $ac_status) && test -s "$ac_outfile"; then
12646 # The compiler can only warn and ignore the option if not recognized
12647 # So say no if there are warnings other than the usual output.
12648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12651 lt_cv_prog_compiler_pic_works_FC=yes
12652 fi
12653 fi
12654 $RM conftest*
12655
12656 fi
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12658 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12659
12660 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12661 case $lt_prog_compiler_pic_FC in
12662 "" | " "*) ;;
12663 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12664 esac
12665 else
12666 lt_prog_compiler_pic_FC=
12667 lt_prog_compiler_can_build_shared_FC=no
12668 fi
12669
12670 fi
12671
12672
12673
12674 #
12675 # Check to make sure the static flag actually works.
12676 #
12677 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12679 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12680 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 lt_cv_prog_compiler_static_works_FC=no
12684 save_LDFLAGS="$LDFLAGS"
12685 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12686 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12687 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12688 # The linker can only warn and ignore the option if not recognized
12689 # So say no if there are warnings
12690 if test -s conftest.err; then
12691 # Append any errors to the config.log.
12692 cat conftest.err 1>&5
12693 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12695 if diff conftest.exp conftest.er2 >/dev/null; then
12696 lt_cv_prog_compiler_static_works_FC=yes
12697 fi
12698 else
12699 lt_cv_prog_compiler_static_works_FC=yes
12700 fi
12701 fi
12702 $RM -r conftest*
12703 LDFLAGS="$save_LDFLAGS"
12704
12705 fi
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12707 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12708
12709 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12710 :
12711 else
12712 lt_prog_compiler_static_FC=
12713 fi
12714
12715
12716
12717
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12719 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12720 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 lt_cv_prog_compiler_c_o_FC=no
12724 $RM -r conftest 2>/dev/null
12725 mkdir conftest
12726 cd conftest
12727 mkdir out
12728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12729
12730 lt_compiler_flag="-o out/conftest2.$ac_objext"
12731 # Insert the option either (1) after the last *FLAGS variable, or
12732 # (2) before a word containing "conftest.", or (3) at the end.
12733 # Note that $ac_compile itself does not contain backslashes and begins
12734 # with a dollar sign (not a hyphen), so the echo should work correctly.
12735 lt_compile=`echo "$ac_compile" | $SED \
12736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12738 -e 's:$: $lt_compiler_flag:'`
12739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12740 (eval "$lt_compile" 2>out/conftest.err)
12741 ac_status=$?
12742 cat out/conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12745 then
12746 # The compiler can only warn and ignore the option if not recognized
12747 # So say no if there are warnings
12748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12751 lt_cv_prog_compiler_c_o_FC=yes
12752 fi
12753 fi
12754 chmod u+w . 2>&5
12755 $RM conftest*
12756 # SGI C++ compiler will create directory out/ii_files/ for
12757 # template instantiation
12758 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12759 $RM out/* && rmdir out
12760 cd ..
12761 $RM -r conftest
12762 $RM conftest*
12763
12764 fi
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12766 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12767
12768
12769
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12771 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12772 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 lt_cv_prog_compiler_c_o_FC=no
12776 $RM -r conftest 2>/dev/null
12777 mkdir conftest
12778 cd conftest
12779 mkdir out
12780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12781
12782 lt_compiler_flag="-o out/conftest2.$ac_objext"
12783 # Insert the option either (1) after the last *FLAGS variable, or
12784 # (2) before a word containing "conftest.", or (3) at the end.
12785 # Note that $ac_compile itself does not contain backslashes and begins
12786 # with a dollar sign (not a hyphen), so the echo should work correctly.
12787 lt_compile=`echo "$ac_compile" | $SED \
12788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12790 -e 's:$: $lt_compiler_flag:'`
12791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12792 (eval "$lt_compile" 2>out/conftest.err)
12793 ac_status=$?
12794 cat out/conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12797 then
12798 # The compiler can only warn and ignore the option if not recognized
12799 # So say no if there are warnings
12800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12803 lt_cv_prog_compiler_c_o_FC=yes
12804 fi
12805 fi
12806 chmod u+w . 2>&5
12807 $RM conftest*
12808 # SGI C++ compiler will create directory out/ii_files/ for
12809 # template instantiation
12810 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12811 $RM out/* && rmdir out
12812 cd ..
12813 $RM -r conftest
12814 $RM conftest*
12815
12816 fi
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12818 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12819
12820
12821
12822
12823 hard_links="nottested"
12824 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12825 # do not overwrite the value of need_locks provided by the user
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12827 $as_echo_n "checking if we can lock with hard links... " >&6; }
12828 hard_links=yes
12829 $RM conftest*
12830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12831 touch conftest.a
12832 ln conftest.a conftest.b 2>&5 || hard_links=no
12833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12835 $as_echo "$hard_links" >&6; }
12836 if test "$hard_links" = no; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12838 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12839 need_locks=warn
12840 fi
12841 else
12842 need_locks=no
12843 fi
12844
12845
12846
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12848 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12849
12850 runpath_var=
12851 allow_undefined_flag_FC=
12852 always_export_symbols_FC=no
12853 archive_cmds_FC=
12854 archive_expsym_cmds_FC=
12855 compiler_needs_object_FC=no
12856 enable_shared_with_static_runtimes_FC=no
12857 export_dynamic_flag_spec_FC=
12858 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12859 hardcode_automatic_FC=no
12860 hardcode_direct_FC=no
12861 hardcode_direct_absolute_FC=no
12862 hardcode_libdir_flag_spec_FC=
12863 hardcode_libdir_flag_spec_ld_FC=
12864 hardcode_libdir_separator_FC=
12865 hardcode_minus_L_FC=no
12866 hardcode_shlibpath_var_FC=unsupported
12867 inherit_rpath_FC=no
12868 link_all_deplibs_FC=unknown
12869 module_cmds_FC=
12870 module_expsym_cmds_FC=
12871 old_archive_from_new_cmds_FC=
12872 old_archive_from_expsyms_cmds_FC=
12873 thread_safe_flag_spec_FC=
12874 whole_archive_flag_spec_FC=
12875 # include_expsyms should be a list of space-separated symbols to be *always*
12876 # included in the symbol list
12877 include_expsyms_FC=
12878 # exclude_expsyms can be an extended regexp of symbols to exclude
12879 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12881 # as well as any symbol that contains `d'.
12882 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12884 # platforms (ab)use it in PIC code, but their linkers get confused if
12885 # the symbol is explicitly referenced. Since portable code cannot
12886 # rely on this symbol name, it's probably fine to never include it in
12887 # preloaded symbol tables.
12888 # Exclude shared library initialization/finalization symbols.
12889 extract_expsyms_cmds=
12890
12891 case $host_os in
12892 cygwin* | mingw* | pw32* | cegcc*)
12893 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12894 # When not using gcc, we currently assume that we are using
12895 # Microsoft Visual C++.
12896 if test "$GCC" != yes; then
12897 with_gnu_ld=no
12898 fi
12899 ;;
12900 interix*)
12901 # we just hope/assume this is gcc and not c89 (= MSVC++)
12902 with_gnu_ld=yes
12903 ;;
12904 openbsd*)
12905 with_gnu_ld=no
12906 ;;
12907 esac
12908
12909 ld_shlibs_FC=yes
12910
12911 # On some targets, GNU ld is compatible enough with the native linker
12912 # that we're better off using the native interface for both.
12913 lt_use_gnu_ld_interface=no
12914 if test "$with_gnu_ld" = yes; then
12915 case $host_os in
12916 aix*)
12917 # The AIX port of GNU ld has always aspired to compatibility
12918 # with the native linker. However, as the warning in the GNU ld
12919 # block says, versions before 2.19.5* couldn't really create working
12920 # shared libraries, regardless of the interface used.
12921 case `$LD -v 2>&1` in
12922 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12923 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12924 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12925 *)
12926 lt_use_gnu_ld_interface=yes
12927 ;;
12928 esac
12929 ;;
12930 *)
12931 lt_use_gnu_ld_interface=yes
12932 ;;
12933 esac
12934 fi
12935
12936 if test "$lt_use_gnu_ld_interface" = yes; then
12937 # If archive_cmds runs LD, not CC, wlarc should be empty
12938 wlarc='${wl}'
12939
12940 # Set some defaults for GNU ld with shared library support. These
12941 # are reset later if shared libraries are not supported. Putting them
12942 # here allows them to be overridden if necessary.
12943 runpath_var=LD_RUN_PATH
12944 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12945 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12946 # ancient GNU ld didn't support --whole-archive et. al.
12947 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12948 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12949 else
12950 whole_archive_flag_spec_FC=
12951 fi
12952 supports_anon_versioning=no
12953 case `$LD -v 2>&1` in
12954 *GNU\ gold*) supports_anon_versioning=yes ;;
12955 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12956 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12957 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12958 *\ 2.11.*) ;; # other 2.11 versions
12959 *) supports_anon_versioning=yes ;;
12960 esac
12961
12962 # See if GNU ld supports shared libraries.
12963 case $host_os in
12964 aix[3-9]*)
12965 # On AIX/PPC, the GNU linker is very broken
12966 if test "$host_cpu" != ia64; then
12967 ld_shlibs_FC=no
12968 cat <<_LT_EOF 1>&2
12969
12970 *** Warning: the GNU linker, at least up to release 2.19, is reported
12971 *** to be unable to reliably create shared libraries on AIX.
12972 *** Therefore, libtool is disabling shared libraries support. If you
12973 *** really care for shared libraries, you may want to install binutils
12974 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12975 *** You will then need to restart the configuration process.
12976
12977 _LT_EOF
12978 fi
12979 ;;
12980
12981 amigaos*)
12982 case $host_cpu in
12983 powerpc)
12984 # see comment about AmigaOS4 .so support
12985 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986 archive_expsym_cmds_FC=''
12987 ;;
12988 m68k)
12989 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)'
12990 hardcode_libdir_flag_spec_FC='-L$libdir'
12991 hardcode_minus_L_FC=yes
12992 ;;
12993 esac
12994 ;;
12995
12996 beos*)
12997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12998 allow_undefined_flag_FC=unsupported
12999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13000 # support --undefined. This deserves some investigation. FIXME
13001 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13002 else
13003 ld_shlibs_FC=no
13004 fi
13005 ;;
13006
13007 cygwin* | mingw* | pw32* | cegcc*)
13008 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13009 # as there is no search path for DLLs.
13010 hardcode_libdir_flag_spec_FC='-L$libdir'
13011 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13012 allow_undefined_flag_FC=unsupported
13013 always_export_symbols_FC=no
13014 enable_shared_with_static_runtimes_FC=yes
13015 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13016
13017 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13018 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13019 # If the export-symbols file already is a .def file (1st line
13020 # is EXPORTS), use it as is; otherwise, prepend...
13021 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13022 cp $export_symbols $output_objdir/$soname.def;
13023 else
13024 echo EXPORTS > $output_objdir/$soname.def;
13025 cat $export_symbols >> $output_objdir/$soname.def;
13026 fi~
13027 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13028 else
13029 ld_shlibs_FC=no
13030 fi
13031 ;;
13032
13033 haiku*)
13034 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13035 link_all_deplibs_FC=yes
13036 ;;
13037
13038 interix[3-9]*)
13039 hardcode_direct_FC=no
13040 hardcode_shlibpath_var_FC=no
13041 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13042 export_dynamic_flag_spec_FC='${wl}-E'
13043 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13044 # Instead, shared libraries are loaded at an image base (0x10000000 by
13045 # default) and relocated if they conflict, which is a slow very memory
13046 # consuming and fragmenting process. To avoid this, we pick a random,
13047 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13048 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13049 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'
13050 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'
13051 ;;
13052
13053 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13054 tmp_diet=no
13055 if test "$host_os" = linux-dietlibc; then
13056 case $cc_basename in
13057 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13058 esac
13059 fi
13060 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13061 && test "$tmp_diet" = no
13062 then
13063 tmp_addflag=' $pic_flag'
13064 tmp_sharedflag='-shared'
13065 case $cc_basename,$host_cpu in
13066 pgcc*) # Portland Group C compiler
13067 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'
13068 tmp_addflag=' $pic_flag'
13069 ;;
13070 pgf77* | pgf90* | pgf95* | pgfortran*)
13071 # Portland Group f77 and f90 compilers
13072 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'
13073 tmp_addflag=' $pic_flag -Mnomain' ;;
13074 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13075 tmp_addflag=' -i_dynamic' ;;
13076 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13077 tmp_addflag=' -i_dynamic -nofor_main' ;;
13078 ifc* | ifort*) # Intel Fortran compiler
13079 tmp_addflag=' -nofor_main' ;;
13080 lf95*) # Lahey Fortran 8.1
13081 whole_archive_flag_spec_FC=
13082 tmp_sharedflag='--shared' ;;
13083 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13084 tmp_sharedflag='-qmkshrobj'
13085 tmp_addflag= ;;
13086 nvcc*) # Cuda Compiler Driver 2.2
13087 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'
13088 compiler_needs_object_FC=yes
13089 ;;
13090 esac
13091 case `$CC -V 2>&1 | sed 5q` in
13092 *Sun\ C*) # Sun C 5.9
13093 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'
13094 compiler_needs_object_FC=yes
13095 tmp_sharedflag='-G' ;;
13096 *Sun\ F*) # Sun Fortran 8.3
13097 tmp_sharedflag='-G' ;;
13098 esac
13099 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13100
13101 if test "x$supports_anon_versioning" = xyes; then
13102 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13103 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13104 echo "local: *; };" >> $output_objdir/$libname.ver~
13105 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13106 fi
13107
13108 case $cc_basename in
13109 xlf* | bgf* | bgxlf* | mpixlf*)
13110 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13111 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13112 hardcode_libdir_flag_spec_FC=
13113 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13114 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13115 if test "x$supports_anon_versioning" = xyes; then
13116 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13118 echo "local: *; };" >> $output_objdir/$libname.ver~
13119 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13120 fi
13121 ;;
13122 esac
13123 else
13124 ld_shlibs_FC=no
13125 fi
13126 ;;
13127
13128 netbsd*)
13129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13130 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13131 wlarc=
13132 else
13133 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13135 fi
13136 ;;
13137
13138 solaris*)
13139 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13140 ld_shlibs_FC=no
13141 cat <<_LT_EOF 1>&2
13142
13143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13144 *** create shared libraries on Solaris systems. Therefore, libtool
13145 *** is disabling shared libraries support. We urge you to upgrade GNU
13146 *** binutils to release 2.9.1 or newer. Another option is to modify
13147 *** your PATH or compiler configuration so that the native linker is
13148 *** used, and then restart.
13149
13150 _LT_EOF
13151 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13152 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13154 else
13155 ld_shlibs_FC=no
13156 fi
13157 ;;
13158
13159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13160 case `$LD -v 2>&1` in
13161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13162 ld_shlibs_FC=no
13163 cat <<_LT_EOF 1>&2
13164
13165 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13166 *** reliably create shared libraries on SCO systems. Therefore, libtool
13167 *** is disabling shared libraries support. We urge you to upgrade GNU
13168 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13169 *** your PATH or compiler configuration so that the native linker is
13170 *** used, and then restart.
13171
13172 _LT_EOF
13173 ;;
13174 *)
13175 # For security reasons, it is highly recommended that you always
13176 # use absolute paths for naming shared libraries, and exclude the
13177 # DT_RUNPATH tag from executables and libraries. But doing so
13178 # requires that you compile everything twice, which is a pain.
13179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13180 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13181 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13182 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13183 else
13184 ld_shlibs_FC=no
13185 fi
13186 ;;
13187 esac
13188 ;;
13189
13190 sunos4*)
13191 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13192 wlarc=
13193 hardcode_direct_FC=yes
13194 hardcode_shlibpath_var_FC=no
13195 ;;
13196
13197 *)
13198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13199 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13200 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13201 else
13202 ld_shlibs_FC=no
13203 fi
13204 ;;
13205 esac
13206
13207 if test "$ld_shlibs_FC" = no; then
13208 runpath_var=
13209 hardcode_libdir_flag_spec_FC=
13210 export_dynamic_flag_spec_FC=
13211 whole_archive_flag_spec_FC=
13212 fi
13213 else
13214 # PORTME fill in a description of your system's linker (not GNU ld)
13215 case $host_os in
13216 aix3*)
13217 allow_undefined_flag_FC=unsupported
13218 always_export_symbols_FC=yes
13219 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'
13220 # Note: this linker hardcodes the directories in LIBPATH if there
13221 # are no directories specified by -L.
13222 hardcode_minus_L_FC=yes
13223 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13224 # Neither direct hardcoding nor static linking is supported with a
13225 # broken collect2.
13226 hardcode_direct_FC=unsupported
13227 fi
13228 ;;
13229
13230 aix[4-9]*)
13231 if test "$host_cpu" = ia64; then
13232 # On IA64, the linker does run time linking by default, so we don't
13233 # have to do anything special.
13234 aix_use_runtimelinking=no
13235 exp_sym_flag='-Bexport'
13236 no_entry_flag=""
13237 else
13238 # If we're using GNU nm, then we don't want the "-C" option.
13239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13240 # Also, AIX nm treats weak defined symbols like other global
13241 # defined symbols, whereas GNU nm marks them as "W".
13242 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13243 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'
13244 else
13245 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'
13246 fi
13247 aix_use_runtimelinking=no
13248
13249 # Test if we are trying to use run time linking or normal
13250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13251 # need to do runtime linking.
13252 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13253 for ld_flag in $LDFLAGS; do
13254 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13255 aix_use_runtimelinking=yes
13256 break
13257 fi
13258 done
13259 ;;
13260 esac
13261
13262 exp_sym_flag='-bexport'
13263 no_entry_flag='-bnoentry'
13264 fi
13265
13266 # When large executables or shared objects are built, AIX ld can
13267 # have problems creating the table of contents. If linking a library
13268 # or program results in "error TOC overflow" add -mminimal-toc to
13269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13271
13272 archive_cmds_FC=''
13273 hardcode_direct_FC=yes
13274 hardcode_direct_absolute_FC=yes
13275 hardcode_libdir_separator_FC=':'
13276 link_all_deplibs_FC=yes
13277 file_list_spec_FC='${wl}-f,'
13278
13279 if test "$GCC" = yes; then
13280 case $host_os in aix4.[012]|aix4.[012].*)
13281 # We only want to do this on AIX 4.2 and lower, the check
13282 # below for broken collect2 doesn't work under 4.3+
13283 collect2name=`${CC} -print-prog-name=collect2`
13284 if test -f "$collect2name" &&
13285 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13286 then
13287 # We have reworked collect2
13288 :
13289 else
13290 # We have old collect2
13291 hardcode_direct_FC=unsupported
13292 # It fails to find uninstalled libraries when the uninstalled
13293 # path is not listed in the libpath. Setting hardcode_minus_L
13294 # to unsupported forces relinking
13295 hardcode_minus_L_FC=yes
13296 hardcode_libdir_flag_spec_FC='-L$libdir'
13297 hardcode_libdir_separator_FC=
13298 fi
13299 ;;
13300 esac
13301 shared_flag='-shared'
13302 if test "$aix_use_runtimelinking" = yes; then
13303 shared_flag="$shared_flag "'${wl}-G'
13304 fi
13305 else
13306 # not using gcc
13307 if test "$host_cpu" = ia64; then
13308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13309 # chokes on -Wl,-G. The following line is correct:
13310 shared_flag='-G'
13311 else
13312 if test "$aix_use_runtimelinking" = yes; then
13313 shared_flag='${wl}-G'
13314 else
13315 shared_flag='${wl}-bM:SRE'
13316 fi
13317 fi
13318 fi
13319
13320 export_dynamic_flag_spec_FC='${wl}-bexpall'
13321 # It seems that -bexpall does not export symbols beginning with
13322 # underscore (_), so it is better to generate a list of symbols to export.
13323 always_export_symbols_FC=yes
13324 if test "$aix_use_runtimelinking" = yes; then
13325 # Warning - without using the other runtime loading flags (-brtl),
13326 # -berok will link without error, but may produce a broken library.
13327 allow_undefined_flag_FC='-berok'
13328 # Determine the default libpath from the value encoded in an
13329 # empty executable.
13330 cat > conftest.$ac_ext <<_ACEOF
13331 program main
13332
13333 end
13334 _ACEOF
13335 if ac_fn_fc_try_link "$LINENO"; then :
13336
13337 lt_aix_libpath_sed='
13338 /Import File Strings/,/^$/ {
13339 /^0/ {
13340 s/^0 *\(.*\)$/\1/
13341 p
13342 }
13343 }'
13344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13345 # Check for a 64-bit object if we didn't find anything.
13346 if test -z "$aix_libpath"; then
13347 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13348 fi
13349 fi
13350 rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13353
13354 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13355 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"
13356 else
13357 if test "$host_cpu" = ia64; then
13358 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13359 allow_undefined_flag_FC="-z nodefs"
13360 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"
13361 else
13362 # Determine the default libpath from the value encoded in an
13363 # empty executable.
13364 cat > conftest.$ac_ext <<_ACEOF
13365 program main
13366
13367 end
13368 _ACEOF
13369 if ac_fn_fc_try_link "$LINENO"; then :
13370
13371 lt_aix_libpath_sed='
13372 /Import File Strings/,/^$/ {
13373 /^0/ {
13374 s/^0 *\(.*\)$/\1/
13375 p
13376 }
13377 }'
13378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13379 # Check for a 64-bit object if we didn't find anything.
13380 if test -z "$aix_libpath"; then
13381 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13382 fi
13383 fi
13384 rm -f core conftest.err conftest.$ac_objext \
13385 conftest$ac_exeext conftest.$ac_ext
13386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13387
13388 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13389 # Warning - without using the other run time loading flags,
13390 # -berok will link without error, but may produce a broken library.
13391 no_undefined_flag_FC=' ${wl}-bernotok'
13392 allow_undefined_flag_FC=' ${wl}-berok'
13393 if test "$with_gnu_ld" = yes; then
13394 # We only use this code for GNU lds that support --whole-archive.
13395 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13396 else
13397 # Exported symbols can be pulled into shared objects from archives
13398 whole_archive_flag_spec_FC='$convenience'
13399 fi
13400 archive_cmds_need_lc_FC=yes
13401 # This is similar to how AIX traditionally builds its shared libraries.
13402 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'
13403 fi
13404 fi
13405 ;;
13406
13407 amigaos*)
13408 case $host_cpu in
13409 powerpc)
13410 # see comment about AmigaOS4 .so support
13411 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13412 archive_expsym_cmds_FC=''
13413 ;;
13414 m68k)
13415 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)'
13416 hardcode_libdir_flag_spec_FC='-L$libdir'
13417 hardcode_minus_L_FC=yes
13418 ;;
13419 esac
13420 ;;
13421
13422 bsdi[45]*)
13423 export_dynamic_flag_spec_FC=-rdynamic
13424 ;;
13425
13426 cygwin* | mingw* | pw32* | cegcc*)
13427 # When not using gcc, we currently assume that we are using
13428 # Microsoft Visual C++.
13429 # hardcode_libdir_flag_spec is actually meaningless, as there is
13430 # no search path for DLLs.
13431 hardcode_libdir_flag_spec_FC=' '
13432 allow_undefined_flag_FC=unsupported
13433 # Tell ltmain to make .lib files, not .a files.
13434 libext=lib
13435 # Tell ltmain to make .dll files, not .so files.
13436 shrext_cmds=".dll"
13437 # FIXME: Setting linknames here is a bad hack.
13438 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13439 # The linker will automatically build a .lib file if we build a DLL.
13440 old_archive_from_new_cmds_FC='true'
13441 # FIXME: Should let the user specify the lib program.
13442 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13443 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13444 enable_shared_with_static_runtimes_FC=yes
13445 ;;
13446
13447 darwin* | rhapsody*)
13448
13449
13450 archive_cmds_need_lc_FC=no
13451 hardcode_direct_FC=no
13452 hardcode_automatic_FC=yes
13453 hardcode_shlibpath_var_FC=unsupported
13454 if test "$lt_cv_ld_force_load" = "yes"; then
13455 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\"`'
13456 else
13457 whole_archive_flag_spec_FC=''
13458 fi
13459 link_all_deplibs_FC=yes
13460 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13461 case $cc_basename in
13462 ifort*) _lt_dar_can_shared=yes ;;
13463 *) _lt_dar_can_shared=$GCC ;;
13464 esac
13465 if test "$_lt_dar_can_shared" = "yes"; then
13466 output_verbose_link_cmd=func_echo_all
13467 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}"
13468 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13469 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}"
13470 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}"
13471
13472 else
13473 ld_shlibs_FC=no
13474 fi
13475
13476 ;;
13477
13478 dgux*)
13479 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_libdir_flag_spec_FC='-L$libdir'
13481 hardcode_shlibpath_var_FC=no
13482 ;;
13483
13484 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13485 # support. Future versions do this automatically, but an explicit c++rt0.o
13486 # does not break anything, and helps significantly (at the cost of a little
13487 # extra space).
13488 freebsd2.2*)
13489 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13490 hardcode_libdir_flag_spec_FC='-R$libdir'
13491 hardcode_direct_FC=yes
13492 hardcode_shlibpath_var_FC=no
13493 ;;
13494
13495 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13496 freebsd2.*)
13497 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13498 hardcode_direct_FC=yes
13499 hardcode_minus_L_FC=yes
13500 hardcode_shlibpath_var_FC=no
13501 ;;
13502
13503 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13504 freebsd* | dragonfly*)
13505 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13506 hardcode_libdir_flag_spec_FC='-R$libdir'
13507 hardcode_direct_FC=yes
13508 hardcode_shlibpath_var_FC=no
13509 ;;
13510
13511 hpux9*)
13512 if test "$GCC" = yes; then
13513 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'
13514 else
13515 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'
13516 fi
13517 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13518 hardcode_libdir_separator_FC=:
13519 hardcode_direct_FC=yes
13520
13521 # hardcode_minus_L: Not really in the search PATH,
13522 # but as the default location of the library.
13523 hardcode_minus_L_FC=yes
13524 export_dynamic_flag_spec_FC='${wl}-E'
13525 ;;
13526
13527 hpux10*)
13528 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13529 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13530 else
13531 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13532 fi
13533 if test "$with_gnu_ld" = no; then
13534 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13535 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13536 hardcode_libdir_separator_FC=:
13537 hardcode_direct_FC=yes
13538 hardcode_direct_absolute_FC=yes
13539 export_dynamic_flag_spec_FC='${wl}-E'
13540 # hardcode_minus_L: Not really in the search PATH,
13541 # but as the default location of the library.
13542 hardcode_minus_L_FC=yes
13543 fi
13544 ;;
13545
13546 hpux11*)
13547 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13548 case $host_cpu in
13549 hppa*64*)
13550 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 ;;
13552 ia64*)
13553 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13554 ;;
13555 *)
13556 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13557 ;;
13558 esac
13559 else
13560 case $host_cpu in
13561 hppa*64*)
13562 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13563 ;;
13564 ia64*)
13565 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13566 ;;
13567 *)
13568 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13569 ;;
13570 esac
13571 fi
13572 if test "$with_gnu_ld" = no; then
13573 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13574 hardcode_libdir_separator_FC=:
13575
13576 case $host_cpu in
13577 hppa*64*|ia64*)
13578 hardcode_direct_FC=no
13579 hardcode_shlibpath_var_FC=no
13580 ;;
13581 *)
13582 hardcode_direct_FC=yes
13583 hardcode_direct_absolute_FC=yes
13584 export_dynamic_flag_spec_FC='${wl}-E'
13585
13586 # hardcode_minus_L: Not really in the search PATH,
13587 # but as the default location of the library.
13588 hardcode_minus_L_FC=yes
13589 ;;
13590 esac
13591 fi
13592 ;;
13593
13594 irix5* | irix6* | nonstopux*)
13595 if test "$GCC" = yes; then
13596 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'
13597 # Try to use the -exported_symbol ld option, if it does not
13598 # work, assume that -exports_file does not work either and
13599 # implicitly export all symbols.
13600 save_LDFLAGS="$LDFLAGS"
13601 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13602 cat > conftest.$ac_ext <<_ACEOF
13603 int foo(void) {}
13604 _ACEOF
13605 if ac_fn_fc_try_link "$LINENO"; then :
13606 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'
13607
13608 fi
13609 rm -f core conftest.err conftest.$ac_objext \
13610 conftest$ac_exeext conftest.$ac_ext
13611 LDFLAGS="$save_LDFLAGS"
13612 else
13613 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'
13614 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'
13615 fi
13616 archive_cmds_need_lc_FC='no'
13617 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13618 hardcode_libdir_separator_FC=:
13619 inherit_rpath_FC=yes
13620 link_all_deplibs_FC=yes
13621 ;;
13622
13623 netbsd*)
13624 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13625 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13626 else
13627 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13628 fi
13629 hardcode_libdir_flag_spec_FC='-R$libdir'
13630 hardcode_direct_FC=yes
13631 hardcode_shlibpath_var_FC=no
13632 ;;
13633
13634 newsos6)
13635 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13636 hardcode_direct_FC=yes
13637 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13638 hardcode_libdir_separator_FC=:
13639 hardcode_shlibpath_var_FC=no
13640 ;;
13641
13642 *nto* | *qnx*)
13643 ;;
13644
13645 openbsd*)
13646 if test -f /usr/libexec/ld.so; then
13647 hardcode_direct_FC=yes
13648 hardcode_shlibpath_var_FC=no
13649 hardcode_direct_absolute_FC=yes
13650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13651 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13653 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13654 export_dynamic_flag_spec_FC='${wl}-E'
13655 else
13656 case $host_os in
13657 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13658 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13659 hardcode_libdir_flag_spec_FC='-R$libdir'
13660 ;;
13661 *)
13662 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13663 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13664 ;;
13665 esac
13666 fi
13667 else
13668 ld_shlibs_FC=no
13669 fi
13670 ;;
13671
13672 os2*)
13673 hardcode_libdir_flag_spec_FC='-L$libdir'
13674 hardcode_minus_L_FC=yes
13675 allow_undefined_flag_FC=unsupported
13676 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'
13677 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13678 ;;
13679
13680 osf3*)
13681 if test "$GCC" = yes; then
13682 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13683 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'
13684 else
13685 allow_undefined_flag_FC=' -expect_unresolved \*'
13686 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'
13687 fi
13688 archive_cmds_need_lc_FC='no'
13689 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13690 hardcode_libdir_separator_FC=:
13691 ;;
13692
13693 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-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'
13697 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13698 else
13699 allow_undefined_flag_FC=' -expect_unresolved \*'
13700 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'
13701 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~
13702 $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'
13703
13704 # Both c and cxx compiler support -rpath directly
13705 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13706 fi
13707 archive_cmds_need_lc_FC='no'
13708 hardcode_libdir_separator_FC=:
13709 ;;
13710
13711 solaris*)
13712 no_undefined_flag_FC=' -z defs'
13713 if test "$GCC" = yes; then
13714 wlarc='${wl}'
13715 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13716 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13717 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13718 else
13719 case `$CC -V 2>&1` in
13720 *"Compilers 5.0"*)
13721 wlarc=''
13722 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13723 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13724 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13725 ;;
13726 *)
13727 wlarc='${wl}'
13728 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13731 ;;
13732 esac
13733 fi
13734 hardcode_libdir_flag_spec_FC='-R$libdir'
13735 hardcode_shlibpath_var_FC=no
13736 case $host_os in
13737 solaris2.[0-5] | solaris2.[0-5].*) ;;
13738 *)
13739 # The compiler driver will combine and reorder linker options,
13740 # but understands `-z linker_flag'. GCC discards it without `$wl',
13741 # but is careful enough not to reorder.
13742 # Supported since Solaris 2.6 (maybe 2.5.1?)
13743 if test "$GCC" = yes; then
13744 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13745 else
13746 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13747 fi
13748 ;;
13749 esac
13750 link_all_deplibs_FC=yes
13751 ;;
13752
13753 sunos4*)
13754 if test "x$host_vendor" = xsequent; then
13755 # Use $CC to link under sequent, because it throws in some extra .o
13756 # files that make .init and .fini sections work.
13757 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13758 else
13759 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13760 fi
13761 hardcode_libdir_flag_spec_FC='-L$libdir'
13762 hardcode_direct_FC=yes
13763 hardcode_minus_L_FC=yes
13764 hardcode_shlibpath_var_FC=no
13765 ;;
13766
13767 sysv4)
13768 case $host_vendor in
13769 sni)
13770 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_direct_FC=yes # is this really true???
13772 ;;
13773 siemens)
13774 ## LD is ld it makes a PLAMLIB
13775 ## CC just makes a GrossModule.
13776 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13777 reload_cmds_FC='$CC -r -o $output$reload_objs'
13778 hardcode_direct_FC=no
13779 ;;
13780 motorola)
13781 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13783 ;;
13784 esac
13785 runpath_var='LD_RUN_PATH'
13786 hardcode_shlibpath_var_FC=no
13787 ;;
13788
13789 sysv4.3*)
13790 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13791 hardcode_shlibpath_var_FC=no
13792 export_dynamic_flag_spec_FC='-Bexport'
13793 ;;
13794
13795 sysv4*MP*)
13796 if test -d /usr/nec; then
13797 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 hardcode_shlibpath_var_FC=no
13799 runpath_var=LD_RUN_PATH
13800 hardcode_runpath_var=yes
13801 ld_shlibs_FC=yes
13802 fi
13803 ;;
13804
13805 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13806 no_undefined_flag_FC='${wl}-z,text'
13807 archive_cmds_need_lc_FC=no
13808 hardcode_shlibpath_var_FC=no
13809 runpath_var='LD_RUN_PATH'
13810
13811 if test "$GCC" = yes; then
13812 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814 else
13815 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13816 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13817 fi
13818 ;;
13819
13820 sysv5* | sco3.2v5* | sco5v6*)
13821 # Note: We can NOT use -z defs as we might desire, because we do not
13822 # link with -lc, and that would cause any symbols used from libc to
13823 # always be unresolved, which means just about no library would
13824 # ever link correctly. If we're not using GNU ld we use -z text
13825 # though, which does catch some bad symbols but isn't as heavy-handed
13826 # as -z defs.
13827 no_undefined_flag_FC='${wl}-z,text'
13828 allow_undefined_flag_FC='${wl}-z,nodefs'
13829 archive_cmds_need_lc_FC=no
13830 hardcode_shlibpath_var_FC=no
13831 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13832 hardcode_libdir_separator_FC=':'
13833 link_all_deplibs_FC=yes
13834 export_dynamic_flag_spec_FC='${wl}-Bexport'
13835 runpath_var='LD_RUN_PATH'
13836
13837 if test "$GCC" = yes; then
13838 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13839 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 else
13841 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843 fi
13844 ;;
13845
13846 uts4*)
13847 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13848 hardcode_libdir_flag_spec_FC='-L$libdir'
13849 hardcode_shlibpath_var_FC=no
13850 ;;
13851
13852 *)
13853 ld_shlibs_FC=no
13854 ;;
13855 esac
13856
13857 if test x$host_vendor = xsni; then
13858 case $host in
13859 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13860 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13861 ;;
13862 esac
13863 fi
13864 fi
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13867 $as_echo "$ld_shlibs_FC" >&6; }
13868 test "$ld_shlibs_FC" = no && can_build_shared=no
13869
13870 with_gnu_ld_FC=$with_gnu_ld
13871
13872
13873
13874
13875
13876
13877 #
13878 # Do we need to explicitly link libc?
13879 #
13880 case "x$archive_cmds_need_lc_FC" in
13881 x|xyes)
13882 # Assume -lc should be added
13883 archive_cmds_need_lc_FC=yes
13884
13885 if test "$enable_shared" = yes && test "$GCC" = yes; then
13886 case $archive_cmds_FC in
13887 *'~'*)
13888 # FIXME: we may have to deal with multi-command sequences.
13889 ;;
13890 '$CC '*)
13891 # Test whether the compiler implicitly links with -lc since on some
13892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13893 # to ld, don't add -lc before -lgcc.
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13895 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13896 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899 $RM conftest*
13900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13901
13902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13903 (eval $ac_compile) 2>&5
13904 ac_status=$?
13905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13906 test $ac_status = 0; } 2>conftest.err; then
13907 soname=conftest
13908 lib=conftest
13909 libobjs=conftest.$ac_objext
13910 deplibs=
13911 wl=$lt_prog_compiler_wl_FC
13912 pic_flag=$lt_prog_compiler_pic_FC
13913 compiler_flags=-v
13914 linker_flags=-v
13915 verstring=
13916 output_objdir=.
13917 libname=conftest
13918 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13919 allow_undefined_flag_FC=
13920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13921 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13922 ac_status=$?
13923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }
13925 then
13926 lt_cv_archive_cmds_need_lc_FC=no
13927 else
13928 lt_cv_archive_cmds_need_lc_FC=yes
13929 fi
13930 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13931 else
13932 cat conftest.err 1>&5
13933 fi
13934 $RM conftest*
13935
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13938 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13939 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13940 ;;
13941 esac
13942 fi
13943 ;;
13944 esac
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14010 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14011
14012 library_names_spec=
14013 libname_spec='lib$name'
14014 soname_spec=
14015 shrext_cmds=".so"
14016 postinstall_cmds=
14017 postuninstall_cmds=
14018 finish_cmds=
14019 finish_eval=
14020 shlibpath_var=
14021 shlibpath_overrides_runpath=unknown
14022 version_type=none
14023 dynamic_linker="$host_os ld.so"
14024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14025 need_lib_prefix=unknown
14026 hardcode_into_libs=no
14027
14028 # when you set need_version to no, make sure it does not cause -set_version
14029 # flags to be left without arguments
14030 need_version=unknown
14031
14032 case $host_os in
14033 aix3*)
14034 version_type=linux
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14036 shlibpath_var=LIBPATH
14037
14038 # AIX 3 has no versioning support, so we append a major version to the name.
14039 soname_spec='${libname}${release}${shared_ext}$major'
14040 ;;
14041
14042 aix[4-9]*)
14043 version_type=linux
14044 need_lib_prefix=no
14045 need_version=no
14046 hardcode_into_libs=yes
14047 if test "$host_cpu" = ia64; then
14048 # AIX 5 supports IA64
14049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14050 shlibpath_var=LD_LIBRARY_PATH
14051 else
14052 # With GCC up to 2.95.x, collect2 would create an import file
14053 # for dependence libraries. The import file would start with
14054 # the line `#! .'. This would cause the generated library to
14055 # depend on `.', always an invalid library. This was fixed in
14056 # development snapshots of GCC prior to 3.0.
14057 case $host_os in
14058 aix4 | aix4.[01] | aix4.[01].*)
14059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14060 echo ' yes '
14061 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14062 :
14063 else
14064 can_build_shared=no
14065 fi
14066 ;;
14067 esac
14068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14069 # soname into executable. Probably we can add versioning support to
14070 # collect2, so additional links can be useful in future.
14071 if test "$aix_use_runtimelinking" = yes; then
14072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14073 # instead of lib<name>.a to let people know that these are not
14074 # typical AIX shared libraries.
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 else
14077 # We preserve .a as extension for shared libraries through AIX4.2
14078 # and later when we are not doing run time linking.
14079 library_names_spec='${libname}${release}.a $libname.a'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 fi
14082 shlibpath_var=LIBPATH
14083 fi
14084 ;;
14085
14086 amigaos*)
14087 case $host_cpu in
14088 powerpc)
14089 # Since July 2007 AmigaOS4 officially supports .so libraries.
14090 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14092 ;;
14093 m68k)
14094 library_names_spec='$libname.ixlibrary $libname.a'
14095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14096 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'
14097 ;;
14098 esac
14099 ;;
14100
14101 beos*)
14102 library_names_spec='${libname}${shared_ext}'
14103 dynamic_linker="$host_os ld.so"
14104 shlibpath_var=LIBRARY_PATH
14105 ;;
14106
14107 bsdi[45]*)
14108 version_type=linux
14109 need_version=no
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111 soname_spec='${libname}${release}${shared_ext}$major'
14112 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14115 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14116 # the default ld.so.conf also contains /usr/contrib/lib and
14117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14118 # libtool to hard-code these into programs
14119 ;;
14120
14121 cygwin* | mingw* | pw32* | cegcc*)
14122 version_type=windows
14123 shrext_cmds=".dll"
14124 need_version=no
14125 need_lib_prefix=no
14126
14127 case $GCC,$host_os in
14128 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14129 library_names_spec='$libname.dll.a'
14130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14131 postinstall_cmds='base_file=`basename \${file}`~
14132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14133 dldir=$destdir/`dirname \$dlpath`~
14134 test -d \$dldir || mkdir -p \$dldir~
14135 $install_prog $dir/$dlname \$dldir/$dlname~
14136 chmod a+x \$dldir/$dlname~
14137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14139 fi'
14140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14141 dlpath=$dir/\$dldll~
14142 $RM \$dlpath'
14143 shlibpath_overrides_runpath=yes
14144
14145 case $host_os in
14146 cygwin*)
14147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14149
14150 ;;
14151 mingw* | cegcc*)
14152 # MinGW DLLs use traditional 'lib' prefix
14153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14154 ;;
14155 pw32*)
14156 # pw32 DLLs use 'pw' prefix rather than 'lib'
14157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14158 ;;
14159 esac
14160 ;;
14161
14162 *)
14163 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14164 ;;
14165 esac
14166 dynamic_linker='Win32 ld.exe'
14167 # FIXME: first we should search . and the directory the executable is in
14168 shlibpath_var=PATH
14169 ;;
14170
14171 darwin* | rhapsody*)
14172 dynamic_linker="$host_os dyld"
14173 version_type=darwin
14174 need_lib_prefix=no
14175 need_version=no
14176 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14177 soname_spec='${libname}${release}${major}$shared_ext'
14178 shlibpath_overrides_runpath=yes
14179 shlibpath_var=DYLD_LIBRARY_PATH
14180 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14181
14182 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14183 ;;
14184
14185 dgux*)
14186 version_type=linux
14187 need_lib_prefix=no
14188 need_version=no
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14190 soname_spec='${libname}${release}${shared_ext}$major'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 ;;
14193
14194 freebsd* | dragonfly*)
14195 # DragonFly does not have aout. When/if they implement a new
14196 # versioning mechanism, adjust this.
14197 if test -x /usr/bin/objformat; then
14198 objformat=`/usr/bin/objformat`
14199 else
14200 case $host_os in
14201 freebsd[23].*) objformat=aout ;;
14202 *) objformat=elf ;;
14203 esac
14204 fi
14205 version_type=freebsd-$objformat
14206 case $version_type in
14207 freebsd-elf*)
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14209 need_version=no
14210 need_lib_prefix=no
14211 ;;
14212 freebsd-*)
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14214 need_version=yes
14215 ;;
14216 esac
14217 shlibpath_var=LD_LIBRARY_PATH
14218 case $host_os in
14219 freebsd2.*)
14220 shlibpath_overrides_runpath=yes
14221 ;;
14222 freebsd3.[01]* | freebsdelf3.[01]*)
14223 shlibpath_overrides_runpath=yes
14224 hardcode_into_libs=yes
14225 ;;
14226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14228 shlibpath_overrides_runpath=no
14229 hardcode_into_libs=yes
14230 ;;
14231 *) # from 4.6 on, and DragonFly
14232 shlibpath_overrides_runpath=yes
14233 hardcode_into_libs=yes
14234 ;;
14235 esac
14236 ;;
14237
14238 gnu*)
14239 version_type=linux
14240 need_lib_prefix=no
14241 need_version=no
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 shlibpath_var=LD_LIBRARY_PATH
14245 hardcode_into_libs=yes
14246 ;;
14247
14248 haiku*)
14249 version_type=linux
14250 need_lib_prefix=no
14251 need_version=no
14252 dynamic_linker="$host_os runtime_loader"
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14254 soname_spec='${libname}${release}${shared_ext}$major'
14255 shlibpath_var=LIBRARY_PATH
14256 shlibpath_overrides_runpath=yes
14257 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14258 hardcode_into_libs=yes
14259 ;;
14260
14261 hpux9* | hpux10* | hpux11*)
14262 # Give a soname corresponding to the major version so that dld.sl refuses to
14263 # link against other versions.
14264 version_type=sunos
14265 need_lib_prefix=no
14266 need_version=no
14267 case $host_cpu in
14268 ia64*)
14269 shrext_cmds='.so'
14270 hardcode_into_libs=yes
14271 dynamic_linker="$host_os dld.so"
14272 shlibpath_var=LD_LIBRARY_PATH
14273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 soname_spec='${libname}${release}${shared_ext}$major'
14276 if test "X$HPUX_IA64_MODE" = X32; then
14277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14278 else
14279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14280 fi
14281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14282 ;;
14283 hppa*64*)
14284 shrext_cmds='.sl'
14285 hardcode_into_libs=yes
14286 dynamic_linker="$host_os dld.sl"
14287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14290 soname_spec='${libname}${release}${shared_ext}$major'
14291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14293 ;;
14294 *)
14295 shrext_cmds='.sl'
14296 dynamic_linker="$host_os dld.sl"
14297 shlibpath_var=SHLIB_PATH
14298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 ;;
14302 esac
14303 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14304 postinstall_cmds='chmod 555 $lib'
14305 # or fails outright, so override atomically:
14306 install_override_mode=555
14307 ;;
14308
14309 interix[3-9]*)
14310 version_type=linux
14311 need_lib_prefix=no
14312 need_version=no
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14314 soname_spec='${libname}${release}${shared_ext}$major'
14315 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14316 shlibpath_var=LD_LIBRARY_PATH
14317 shlibpath_overrides_runpath=no
14318 hardcode_into_libs=yes
14319 ;;
14320
14321 irix5* | irix6* | nonstopux*)
14322 case $host_os in
14323 nonstopux*) version_type=nonstopux ;;
14324 *)
14325 if test "$lt_cv_prog_gnu_ld" = yes; then
14326 version_type=linux
14327 else
14328 version_type=irix
14329 fi ;;
14330 esac
14331 need_lib_prefix=no
14332 need_version=no
14333 soname_spec='${libname}${release}${shared_ext}$major'
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14335 case $host_os in
14336 irix5* | nonstopux*)
14337 libsuff= shlibsuff=
14338 ;;
14339 *)
14340 case $LD in # libtool.m4 will add one of these switches to LD
14341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14342 libsuff= shlibsuff= libmagic=32-bit;;
14343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14344 libsuff=32 shlibsuff=N32 libmagic=N32;;
14345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14347 *) libsuff= shlibsuff= libmagic=never-match;;
14348 esac
14349 ;;
14350 esac
14351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14352 shlibpath_overrides_runpath=no
14353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14355 hardcode_into_libs=yes
14356 ;;
14357
14358 # No shared lib support for Linux oldld, aout, or coff.
14359 linux*oldld* | linux*aout* | linux*coff*)
14360 dynamic_linker=no
14361 ;;
14362
14363 # This must be Linux ELF.
14364
14365 # uclinux* changes (here and below) have been submitted to the libtool
14366 # project, but have not yet been accepted: they are GCC-local changes
14367 # for the time being. (See
14368 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14369 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14370 version_type=linux
14371 need_lib_prefix=no
14372 need_version=no
14373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374 soname_spec='${libname}${release}${shared_ext}$major'
14375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14376 shlibpath_var=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath=no
14378
14379 # Some binutils ld are patched to set DT_RUNPATH
14380 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 lt_cv_shlibpath_overrides_runpath=no
14384 save_LDFLAGS=$LDFLAGS
14385 save_libdir=$libdir
14386 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14387 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14388 cat > conftest.$ac_ext <<_ACEOF
14389 program main
14390
14391 end
14392 _ACEOF
14393 if ac_fn_fc_try_link "$LINENO"; then :
14394 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14395 lt_cv_shlibpath_overrides_runpath=yes
14396 fi
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext \
14399 conftest$ac_exeext conftest.$ac_ext
14400 LDFLAGS=$save_LDFLAGS
14401 libdir=$save_libdir
14402
14403 fi
14404
14405 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14406
14407 # This implies no fast_install, which is unacceptable.
14408 # Some rework will be needed to allow for fast_install
14409 # before this can be enabled.
14410 hardcode_into_libs=yes
14411
14412 # Append ld.so.conf contents to the search path
14413 if test -f /etc/ld.so.conf; then
14414 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' ' '`
14415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14416 fi
14417
14418 # We used to test for /lib/ld.so.1 and disable shared libraries on
14419 # powerpc, because MkLinux only supported shared libraries with the
14420 # GNU dynamic linker. Since this was broken with cross compilers,
14421 # most powerpc-linux boxes support dynamic linking these days and
14422 # people can always --disable-shared, the test was removed, and we
14423 # assume the GNU/Linux dynamic linker is in use.
14424 dynamic_linker='GNU/Linux ld.so'
14425 ;;
14426
14427 netbsd*)
14428 version_type=sunos
14429 need_lib_prefix=no
14430 need_version=no
14431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14434 dynamic_linker='NetBSD (a.out) ld.so'
14435 else
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 dynamic_linker='NetBSD ld.elf_so'
14439 fi
14440 shlibpath_var=LD_LIBRARY_PATH
14441 shlibpath_overrides_runpath=yes
14442 hardcode_into_libs=yes
14443 ;;
14444
14445 newsos6)
14446 version_type=linux
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 shlibpath_var=LD_LIBRARY_PATH
14449 shlibpath_overrides_runpath=yes
14450 ;;
14451
14452 *nto* | *qnx*)
14453 version_type=qnx
14454 need_lib_prefix=no
14455 need_version=no
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457 soname_spec='${libname}${release}${shared_ext}$major'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 shlibpath_overrides_runpath=no
14460 hardcode_into_libs=yes
14461 dynamic_linker='ldqnx.so'
14462 ;;
14463
14464 openbsd*)
14465 version_type=sunos
14466 sys_lib_dlsearch_path_spec="/usr/lib"
14467 need_lib_prefix=no
14468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14469 case $host_os in
14470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14471 *) need_version=no ;;
14472 esac
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14477 case $host_os in
14478 openbsd2.[89] | openbsd2.[89].*)
14479 shlibpath_overrides_runpath=no
14480 ;;
14481 *)
14482 shlibpath_overrides_runpath=yes
14483 ;;
14484 esac
14485 else
14486 shlibpath_overrides_runpath=yes
14487 fi
14488 ;;
14489
14490 os2*)
14491 libname_spec='$name'
14492 shrext_cmds=".dll"
14493 need_lib_prefix=no
14494 library_names_spec='$libname${shared_ext} $libname.a'
14495 dynamic_linker='OS/2 ld.exe'
14496 shlibpath_var=LIBPATH
14497 ;;
14498
14499 osf3* | osf4* | osf5*)
14500 version_type=osf
14501 need_lib_prefix=no
14502 need_version=no
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14508 ;;
14509
14510 rdos*)
14511 dynamic_linker=no
14512 ;;
14513
14514 solaris*)
14515 version_type=linux
14516 need_lib_prefix=no
14517 need_version=no
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 shlibpath_overrides_runpath=yes
14522 hardcode_into_libs=yes
14523 # ldd complains unless libraries are executable
14524 postinstall_cmds='chmod +x $lib'
14525 ;;
14526
14527 sunos4*)
14528 version_type=sunos
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14531 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=yes
14533 if test "$with_gnu_ld" = yes; then
14534 need_lib_prefix=no
14535 fi
14536 need_version=yes
14537 ;;
14538
14539 sysv4 | sysv4.3*)
14540 version_type=linux
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 soname_spec='${libname}${release}${shared_ext}$major'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 case $host_vendor in
14545 sni)
14546 shlibpath_overrides_runpath=no
14547 need_lib_prefix=no
14548 runpath_var=LD_RUN_PATH
14549 ;;
14550 siemens)
14551 need_lib_prefix=no
14552 ;;
14553 motorola)
14554 need_lib_prefix=no
14555 need_version=no
14556 shlibpath_overrides_runpath=no
14557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14558 ;;
14559 esac
14560 ;;
14561
14562 sysv4*MP*)
14563 if test -d /usr/nec ;then
14564 version_type=linux
14565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14566 soname_spec='$libname${shared_ext}.$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 fi
14569 ;;
14570
14571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14572 version_type=freebsd-elf
14573 need_lib_prefix=no
14574 need_version=no
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 shlibpath_overrides_runpath=yes
14579 hardcode_into_libs=yes
14580 if test "$with_gnu_ld" = yes; then
14581 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14582 else
14583 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14584 case $host_os in
14585 sco3.2v5*)
14586 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14587 ;;
14588 esac
14589 fi
14590 sys_lib_dlsearch_path_spec='/usr/lib'
14591 ;;
14592
14593 tpf*)
14594 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14595 version_type=linux
14596 need_lib_prefix=no
14597 need_version=no
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=no
14601 hardcode_into_libs=yes
14602 ;;
14603
14604 uts4*)
14605 version_type=linux
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 ;;
14610
14611 *)
14612 dynamic_linker=no
14613 ;;
14614 esac
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14616 $as_echo "$dynamic_linker" >&6; }
14617 test "$dynamic_linker" = no && can_build_shared=no
14618
14619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14620 if test "$GCC" = yes; then
14621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14622 fi
14623
14624 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14625 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14626 fi
14627 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14628 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14629 fi
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14669 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14670 hardcode_action_FC=
14671 if test -n "$hardcode_libdir_flag_spec_FC" ||
14672 test -n "$runpath_var_FC" ||
14673 test "X$hardcode_automatic_FC" = "Xyes" ; then
14674
14675 # We can hardcode non-existent directories.
14676 if test "$hardcode_direct_FC" != no &&
14677 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14678 # have to relink, otherwise we might link with an installed library
14679 # when we should be linking with a yet-to-be-installed one
14680 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14681 test "$hardcode_minus_L_FC" != no; then
14682 # Linking always hardcodes the temporary library directory.
14683 hardcode_action_FC=relink
14684 else
14685 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14686 hardcode_action_FC=immediate
14687 fi
14688 else
14689 # We cannot hardcode anything, or else we can only hardcode existing
14690 # directories.
14691 hardcode_action_FC=unsupported
14692 fi
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14694 $as_echo "$hardcode_action_FC" >&6; }
14695
14696 if test "$hardcode_action_FC" = relink ||
14697 test "$inherit_rpath_FC" = yes; then
14698 # Fast installation is not supported
14699 enable_fast_install=no
14700 elif test "$shlibpath_overrides_runpath" = yes ||
14701 test "$enable_shared" = no; then
14702 # Fast installation is not necessary
14703 enable_fast_install=needless
14704 fi
14705
14706
14707
14708
14709
14710
14711
14712 fi # test -n "$compiler"
14713
14714 GCC=$lt_save_GCC
14715 CC="$lt_save_CC"
14716 fi # test "$_lt_disable_FC" != yes
14717
14718 ac_ext=c
14719 ac_cpp='$CPP $CPPFLAGS'
14720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14723
14724
14725 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14726
14727 # For libtool versioning info, format is CURRENT:REVISION:AGE
14728 libtool_VERSION=1:0:0
14729
14730
14731 # Check header files.
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14733 $as_echo_n "checking for ANSI C header files... " >&6; }
14734 if ${ac_cv_header_stdc+:} false; then :
14735 $as_echo_n "(cached) " >&6
14736 else
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14739 #include <stdlib.h>
14740 #include <stdarg.h>
14741 #include <string.h>
14742 #include <float.h>
14743
14744 int
14745 main ()
14746 {
14747
14748 ;
14749 return 0;
14750 }
14751 _ACEOF
14752 if ac_fn_c_try_compile "$LINENO"; then :
14753 ac_cv_header_stdc=yes
14754 else
14755 ac_cv_header_stdc=no
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758
14759 if test $ac_cv_header_stdc = yes; then
14760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 #include <string.h>
14764
14765 _ACEOF
14766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14767 $EGREP "memchr" >/dev/null 2>&1; then :
14768
14769 else
14770 ac_cv_header_stdc=no
14771 fi
14772 rm -f conftest*
14773
14774 fi
14775
14776 if test $ac_cv_header_stdc = yes; then
14777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14780 #include <stdlib.h>
14781
14782 _ACEOF
14783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14784 $EGREP "free" >/dev/null 2>&1; then :
14785
14786 else
14787 ac_cv_header_stdc=no
14788 fi
14789 rm -f conftest*
14790
14791 fi
14792
14793 if test $ac_cv_header_stdc = yes; then
14794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14795 if test "$cross_compiling" = yes; then :
14796 :
14797 else
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14800 #include <ctype.h>
14801 #include <stdlib.h>
14802 #if ((' ' & 0x0FF) == 0x020)
14803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14805 #else
14806 # define ISLOWER(c) \
14807 (('a' <= (c) && (c) <= 'i') \
14808 || ('j' <= (c) && (c) <= 'r') \
14809 || ('s' <= (c) && (c) <= 'z'))
14810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14811 #endif
14812
14813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14814 int
14815 main ()
14816 {
14817 int i;
14818 for (i = 0; i < 256; i++)
14819 if (XOR (islower (i), ISLOWER (i))
14820 || toupper (i) != TOUPPER (i))
14821 return 2;
14822 return 0;
14823 }
14824 _ACEOF
14825 if ac_fn_c_try_run "$LINENO"; then :
14826
14827 else
14828 ac_cv_header_stdc=no
14829 fi
14830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14831 conftest.$ac_objext conftest.beam conftest.$ac_ext
14832 fi
14833
14834 fi
14835 fi
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14837 $as_echo "$ac_cv_header_stdc" >&6; }
14838 if test $ac_cv_header_stdc = yes; then
14839
14840 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14841
14842 fi
14843
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14845 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14846 if ${ac_cv_header_time+:} false; then :
14847 $as_echo_n "(cached) " >&6
14848 else
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14851 #include <sys/types.h>
14852 #include <sys/time.h>
14853 #include <time.h>
14854
14855 int
14856 main ()
14857 {
14858 if ((struct tm *) 0)
14859 return 0;
14860 ;
14861 return 0;
14862 }
14863 _ACEOF
14864 if ac_fn_c_try_compile "$LINENO"; then :
14865 ac_cv_header_time=yes
14866 else
14867 ac_cv_header_time=no
14868 fi
14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14870 fi
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14872 $as_echo "$ac_cv_header_time" >&6; }
14873 if test $ac_cv_header_time = yes; then
14874
14875 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14876
14877 fi
14878
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14880 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14881 if ${gcc_cv_header_string+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 #include <string.h>
14887 #include <strings.h>
14888 int
14889 main ()
14890 {
14891
14892 ;
14893 return 0;
14894 }
14895 _ACEOF
14896 if ac_fn_c_try_compile "$LINENO"; then :
14897 gcc_cv_header_string=yes
14898 else
14899 gcc_cv_header_string=no
14900 fi
14901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902 fi
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14904 $as_echo "$gcc_cv_header_string" >&6; }
14905 if test $gcc_cv_header_string = yes; then
14906
14907 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14908
14909 fi
14910
14911 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14912 do :
14913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14914 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14915 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14916 cat >>confdefs.h <<_ACEOF
14917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14918 _ACEOF
14919
14920 fi
14921
14922 done
14923
14924
14925 XPCFLAGS=""
14926 case "$host" in
14927 *-*-rtems*)
14928 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14929 ;;
14930 nvptx*-*-* | amdgcn*-*-*)
14931 # NVPTX does not support Pthreads, has its own code replacement.
14932 libgomp_use_pthreads=no
14933 # NVPTX is an accelerator-only target
14934 libgomp_offloaded_only=yes
14935 ;;
14936 *)
14937 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14938 # In case the pthread.h system header is not found, this test will fail.
14939 CFLAGS="$CFLAGS -pthread"
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942 #include <pthread.h>
14943 void *g(void *d) { return NULL; }
14944 int
14945 main ()
14946 {
14947 pthread_t t; pthread_create(&t,NULL,g,NULL);
14948 ;
14949 return 0;
14950 }
14951 _ACEOF
14952 if ac_fn_c_try_link "$LINENO"; then :
14953 XPCFLAGS=" -Wc,-pthread"
14954 else
14955 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958 #include <pthread.h>
14959 void *g(void *d) { return NULL; }
14960 int
14961 main ()
14962 {
14963 pthread_t t; pthread_create(&t,NULL,g,NULL);
14964 ;
14965 return 0;
14966 }
14967 _ACEOF
14968 if ac_fn_c_try_link "$LINENO"; then :
14969
14970 else
14971 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
14972 fi
14973 rm -f core conftest.err conftest.$ac_objext \
14974 conftest$ac_exeext conftest.$ac_ext
14975 fi
14976 rm -f core conftest.err conftest.$ac_objext \
14977 conftest$ac_exeext conftest.$ac_ext
14978 esac
14979
14980 if test x$libgomp_use_pthreads != xno; then
14981
14982 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
14983
14984 fi
14985
14986 if test x$libgomp_offloaded_only = xyes; then
14987
14988 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
14989
14990 fi
14991
14992 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
14993 #
14994 # Copyright (C) 2014-2019 Free Software Foundation, Inc.
14995 #
14996 # Contributed by Mentor Embedded.
14997 #
14998 # This file is part of the GNU Offloading and Multi Processing Library
14999 # (libgomp).
15000 #
15001 # Libgomp is free software; you can redistribute it and/or modify it
15002 # under the terms of the GNU General Public License as published by
15003 # the Free Software Foundation; either version 3, or (at your option)
15004 # any later version.
15005 #
15006 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15007 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15008 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15009 # more details.
15010 #
15011 # Under Section 7 of GPL version 3, you are granted additional
15012 # permissions described in the GCC Runtime Library Exception, version
15013 # 3.1, as published by the Free Software Foundation.
15014 #
15015 # You should have received a copy of the GNU General Public License and
15016 # a copy of the GCC Runtime Library Exception along with this program;
15017 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15018 # <http://www.gnu.org/licenses/>.
15019
15020 plugin_support=yes
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15022 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15023 if ${ac_cv_lib_dl_dlsym+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 ac_check_lib_save_LIBS=$LIBS
15027 LIBS="-ldl $LIBS"
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15034 #ifdef __cplusplus
15035 extern "C"
15036 #endif
15037 char dlsym ();
15038 int
15039 main ()
15040 {
15041 return dlsym ();
15042 ;
15043 return 0;
15044 }
15045 _ACEOF
15046 if ac_fn_c_try_link "$LINENO"; then :
15047 ac_cv_lib_dl_dlsym=yes
15048 else
15049 ac_cv_lib_dl_dlsym=no
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext conftest.$ac_ext
15053 LIBS=$ac_check_lib_save_LIBS
15054 fi
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15056 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15057 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15058 cat >>confdefs.h <<_ACEOF
15059 #define HAVE_LIBDL 1
15060 _ACEOF
15061
15062 LIBS="-ldl $LIBS"
15063
15064 else
15065 plugin_support=no
15066 fi
15067
15068 if test x"$plugin_support" = xyes; then
15069
15070 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15071
15072 elif test "x${enable_offload_targets-no}" != xno; then
15073 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15074 fi
15075
15076
15077
15078 for ac_header in $ac_header_list
15079 do :
15080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15081 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15082 "
15083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15084 cat >>confdefs.h <<_ACEOF
15085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15086 _ACEOF
15087
15088 fi
15089
15090 done
15091
15092
15093
15094
15095
15096
15097
15098 for ac_func in $ac_func_list
15099 do :
15100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15102 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15103 cat >>confdefs.h <<_ACEOF
15104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15105 _ACEOF
15106
15107 fi
15108 done
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125 # Look for the CUDA driver package.
15126 CUDA_DRIVER_INCLUDE=
15127 CUDA_DRIVER_LIB=
15128
15129
15130 CUDA_DRIVER_CPPFLAGS=
15131 CUDA_DRIVER_LDFLAGS=
15132
15133 # Check whether --with-cuda-driver was given.
15134 if test "${with_cuda_driver+set}" = set; then :
15135 withval=$with_cuda_driver;
15136 fi
15137
15138
15139 # Check whether --with-cuda-driver-include was given.
15140 if test "${with_cuda_driver_include+set}" = set; then :
15141 withval=$with_cuda_driver_include;
15142 fi
15143
15144
15145 # Check whether --with-cuda-driver-lib was given.
15146 if test "${with_cuda_driver_lib+set}" = set; then :
15147 withval=$with_cuda_driver_lib;
15148 fi
15149
15150 case "x$with_cuda_driver" in
15151 x) ;;
15152 xno)
15153 CUDA_DRIVER_INCLUDE=no
15154 CUDA_DRIVER_LIB=no
15155 ;;
15156 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15157 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15158 ;;
15159 esac
15160 if test "x$with_cuda_driver_include" != x; then
15161 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15162 fi
15163 if test "x$with_cuda_driver_lib" != x; then
15164 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15165 fi
15166 if test "x$CUDA_DRIVER_INCLUDE" != x \
15167 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15168 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15169 fi
15170 if test "x$CUDA_DRIVER_LIB" != x \
15171 && test "x$CUDA_DRIVER_LIB" != xno; then
15172 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15173 fi
15174
15175 PLUGIN_NVPTX=0
15176 PLUGIN_NVPTX_CPPFLAGS=
15177 PLUGIN_NVPTX_LDFLAGS=
15178 PLUGIN_NVPTX_LIBS=
15179 PLUGIN_NVPTX_DYNAMIC=0
15180
15181
15182
15183
15184
15185 # Look for HSA run-time, its includes and libraries
15186
15187 HSA_RUNTIME_INCLUDE=
15188 HSA_RUNTIME_LIB=
15189
15190
15191 HSA_RUNTIME_CPPFLAGS=
15192 HSA_RUNTIME_LDFLAGS=
15193
15194
15195 # Check whether --with-hsa-runtime was given.
15196 if test "${with_hsa_runtime+set}" = set; then :
15197 withval=$with_hsa_runtime;
15198 fi
15199
15200
15201 # Check whether --with-hsa-runtime-include was given.
15202 if test "${with_hsa_runtime_include+set}" = set; then :
15203 withval=$with_hsa_runtime_include;
15204 fi
15205
15206
15207 # Check whether --with-hsa-runtime-lib was given.
15208 if test "${with_hsa_runtime_lib+set}" = set; then :
15209 withval=$with_hsa_runtime_lib;
15210 fi
15211
15212 if test "x$with_hsa_runtime" != x; then
15213 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15214 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15215 fi
15216 if test "x$with_hsa_runtime_include" != x; then
15217 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15218 fi
15219 if test "x$with_hsa_runtime_lib" != x; then
15220 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15221 fi
15222 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15223 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15224 fi
15225 if test "x$HSA_RUNTIME_LIB" != x; then
15226 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15227 fi
15228
15229 PLUGIN_HSA=0
15230 PLUGIN_HSA_CPPFLAGS=
15231 PLUGIN_HSA_LDFLAGS=
15232 PLUGIN_HSA_LIBS=
15233
15234
15235
15236
15237
15238 PLUGIN_GCN=0
15239 PLUGIN_GCN_CPPFLAGS=
15240 PLUGIN_GCN_LDFLAGS=
15241 PLUGIN_GCN_LIBS=
15242
15243
15244
15245
15246
15247 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15248 # plugins, and configure to find the corresponding offload compilers.
15249 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15250 offload_plugins=
15251 offload_targets=
15252
15253
15254 offload_additional_options=
15255 offload_additional_lib_paths=
15256
15257
15258 if test x"$enable_offload_targets" != x; then
15259 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15260 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15261 tgt=`echo $tgt | sed 's/=.*//'`
15262 tgt_plugin=
15263 case $tgt in
15264 *-intelmic-* | *-intelmicemul-*)
15265 tgt_plugin=intelmic
15266 ;;
15267 nvptx*)
15268 tgt_plugin=nvptx
15269 PLUGIN_NVPTX=$tgt
15270 if test "x$CUDA_DRIVER_LIB" != xno \
15271 && test "x$CUDA_DRIVER_LIB" != xno; then
15272 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15273 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15274 PLUGIN_NVPTX_LIBS='-lcuda'
15275
15276 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15277 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15278 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15279 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15280 PLUGIN_NVPTX_save_LIBS=$LIBS
15281 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 #include "cuda.h"
15285 int
15286 main ()
15287 {
15288 CUresult r = cuCtxPushCurrent (NULL);
15289 ;
15290 return 0;
15291 }
15292 _ACEOF
15293 if ac_fn_c_try_link "$LINENO"; then :
15294 PLUGIN_NVPTX=1
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15299 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15300 LIBS=$PLUGIN_NVPTX_save_LIBS
15301 fi
15302 case $PLUGIN_NVPTX in
15303 nvptx*)
15304 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15305 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15306 && (test "x$CUDA_DRIVER_LIB" = x \
15307 || test "x$CUDA_DRIVER_LIB" = xno); then
15308 PLUGIN_NVPTX=1
15309 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15310 PLUGIN_NVPTX_LIBS='-ldl'
15311 PLUGIN_NVPTX_DYNAMIC=1
15312 else
15313 PLUGIN_NVPTX=0
15314 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15315 fi
15316 ;;
15317 esac
15318 ;;
15319 hsa*)
15320 case "${target}" in
15321 x86_64-*-*)
15322 case " ${CC} ${CFLAGS} " in
15323 *" -m32 "*)
15324 PLUGIN_HSA=0
15325 ;;
15326 *)
15327 tgt_plugin=hsa
15328 PLUGIN_HSA=$tgt
15329 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15330 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15331 PLUGIN_HSA_LIBS="-ldl"
15332
15333 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15334 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15335 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15336 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15337 PLUGIN_HSA_save_LIBS=$LIBS
15338 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15339
15340 PLUGIN_HSA=1
15341 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15342 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15343 LIBS=$PLUGIN_HSA_save_LIBS
15344 case $PLUGIN_HSA in
15345 hsa*)
15346 HSA_PLUGIN=0
15347 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5
15348 ;;
15349 esac
15350 ;;
15351 esac
15352 ;;
15353 *-*-*)
15354 PLUGIN_HSA=0
15355 ;;
15356 esac
15357 ;;
15358
15359 amdgcn*)
15360 case "${target}" in
15361 x86_64-*-*)
15362 case " ${CC} ${CFLAGS} " in
15363 *" -m32 "*)
15364 PLUGIN_GCN=0
15365 ;;
15366 *)
15367 tgt_plugin=gcn
15368 PLUGIN_GCN=$tgt
15369 PLUGIN_GCN_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15370 PLUGIN_GCN_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15371 PLUGIN_GCN_LIBS="-ldl"
15372 PLUGIN_GCN=1
15373 ;;
15374 esac
15375 ;;
15376 *-*-*)
15377 PLUGIN_GCN=0
15378 ;;
15379 esac
15380 ;;
15381 *)
15382 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15383 ;;
15384 esac
15385 if test x"$tgt_plugin" = x; then
15386 # Not configuring libgomp for this offload target if we're not building
15387 # the corresponding offload plugin.
15388 continue
15389 elif test x"$offload_plugins" = x; then
15390 offload_plugins=$tgt_plugin
15391 offload_targets=$tgt
15392 else
15393 offload_plugins=$offload_plugins,$tgt_plugin
15394 offload_targets=$offload_targets,$tgt
15395 fi
15396 # Configure additional search paths.
15397 if test "$tgt_plugin" = hsa; then
15398 # Offloading compilation is all handled by the target compiler.
15399 :
15400 elif test x"$tgt_dir" != x; then
15401 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15402 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15403 else
15404 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15405 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15406 fi
15407 done
15408 fi
15409
15410 cat >>confdefs.h <<_ACEOF
15411 #define OFFLOAD_PLUGINS "$offload_plugins"
15412 _ACEOF
15413
15414 if test $PLUGIN_NVPTX = 1; then
15415 PLUGIN_NVPTX_TRUE=
15416 PLUGIN_NVPTX_FALSE='#'
15417 else
15418 PLUGIN_NVPTX_TRUE='#'
15419 PLUGIN_NVPTX_FALSE=
15420 fi
15421
15422
15423 cat >>confdefs.h <<_ACEOF
15424 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15425 _ACEOF
15426
15427
15428 cat >>confdefs.h <<_ACEOF
15429 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15430 _ACEOF
15431
15432 if test $PLUGIN_HSA = 1; then
15433 PLUGIN_HSA_TRUE=
15434 PLUGIN_HSA_FALSE='#'
15435 else
15436 PLUGIN_HSA_TRUE='#'
15437 PLUGIN_HSA_FALSE=
15438 fi
15439
15440
15441 cat >>confdefs.h <<_ACEOF
15442 #define PLUGIN_HSA $PLUGIN_HSA
15443 _ACEOF
15444
15445 if test $PLUGIN_GCN = 1; then
15446 PLUGIN_GCN_TRUE=
15447 PLUGIN_GCN_FALSE='#'
15448 else
15449 PLUGIN_GCN_TRUE='#'
15450 PLUGIN_GCN_FALSE=
15451 fi
15452
15453
15454 cat >>confdefs.h <<_ACEOF
15455 #define PLUGIN_GCN $PLUGIN_GCN
15456 _ACEOF
15457
15458
15459 if test "$HSA_RUNTIME_LIB" != ""; then
15460 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15461 fi
15462
15463
15464 cat >>confdefs.h <<_ACEOF
15465 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15466 _ACEOF
15467
15468
15469
15470 # Check for functions needed.
15471 for ac_func in getloadavg clock_gettime strtoull
15472 do :
15473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15474 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15475 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15476 cat >>confdefs.h <<_ACEOF
15477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15478 _ACEOF
15479
15480 fi
15481 done
15482
15483 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15484 do :
15485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15488 cat >>confdefs.h <<_ACEOF
15489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15490 _ACEOF
15491
15492 fi
15493 done
15494
15495
15496 # Check for broken semaphore implementation on darwin.
15497 # sem_init returns: sem_init error: Function not implemented.
15498 case "$host" in
15499 *-darwin*)
15500
15501 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15502
15503 ;;
15504 esac
15505
15506 # RTEMS specific checks
15507 case "$host" in
15508 *-*-rtems*)
15509 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15510 "
15511 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15512
15513 cat >>confdefs.h <<_ACEOF
15514 #define HAVE_STRUCT__MUTEX_CONTROL 1
15515 _ACEOF
15516
15517
15518 fi
15519
15520 ;;
15521 esac
15522
15523 # Check whether --enable-linux-futex was given.
15524 if test "${enable_linux_futex+set}" = set; then :
15525 enableval=$enable_linux_futex;
15526 case "$enableval" in
15527 yes|no|default) ;;
15528 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15529 esac
15530
15531 else
15532 enable_linux_futex=default
15533 fi
15534
15535
15536 case "$target" in
15537 *-linux* | *-uclinux*)
15538 case "$enable_linux_futex" in
15539 default)
15540 # If headers don't have gettid/futex syscalls definition, then
15541 # default to no, otherwise there will be compile time failures.
15542 # Otherwise, default to yes. If we don't detect we are
15543 # compiled/linked against NPTL and not cross-compiling, check
15544 # if programs are run by default against NPTL and if not, issue
15545 # a warning.
15546 enable_linux_futex=no
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549 #include <sys/syscall.h>
15550 #include <unistd.h>
15551 int lk;
15552 int
15553 main ()
15554 {
15555 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15556 ;
15557 return 0;
15558 }
15559 _ACEOF
15560 if ac_fn_c_try_link "$LINENO"; then :
15561 save_LIBS="$LIBS"
15562 LIBS="-lpthread $LIBS"
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 #ifndef _GNU_SOURCE
15566 #define _GNU_SOURCE 1
15567 #endif
15568 #include <pthread.h>
15569 pthread_t th; void *status;
15570 int
15571 main ()
15572 {
15573 pthread_tryjoin_np (th, &status);
15574 ;
15575 return 0;
15576 }
15577 _ACEOF
15578 if ac_fn_c_try_link "$LINENO"; then :
15579 enable_linux_futex=yes
15580 else
15581 if test x$cross_compiling = xno; then
15582 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15583 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15585 If so, please configure with --disable-linux-futex" >&5
15586 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15587 If so, please configure with --disable-linux-futex" >&2;}
15588 fi
15589 fi
15590 enable_linux_futex=yes
15591 fi
15592 rm -f core conftest.err conftest.$ac_objext \
15593 conftest$ac_exeext conftest.$ac_ext
15594 LIBS="$save_LIBS"
15595 fi
15596 rm -f core conftest.err conftest.$ac_objext \
15597 conftest$ac_exeext conftest.$ac_ext
15598 ;;
15599 yes)
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 #include <sys/syscall.h>
15603 #include <unistd.h>
15604 int lk;
15605 int
15606 main ()
15607 {
15608 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15609 ;
15610 return 0;
15611 }
15612 _ACEOF
15613 if ac_fn_c_try_link "$LINENO"; then :
15614
15615 else
15616 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15617 fi
15618 rm -f core conftest.err conftest.$ac_objext \
15619 conftest$ac_exeext conftest.$ac_ext
15620 ;;
15621 esac
15622 ;;
15623 *)
15624 enable_linux_futex=no
15625 ;;
15626 esac
15627 if test x$enable_linux_futex = xyes; then
15628 :
15629 fi
15630
15631
15632 # Check for pthread_{,attr_}[sg]etaffinity_np.
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 #define _GNU_SOURCE
15636 #include <pthread.h>
15637 int
15638 main ()
15639 {
15640 cpu_set_t cpuset;
15641 pthread_attr_t attr;
15642 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15643 if (CPU_ISSET (0, &cpuset))
15644 CPU_SET (1, &cpuset);
15645 else
15646 CPU_ZERO (&cpuset);
15647 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15648 pthread_attr_init (&attr);
15649 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15650 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15651 ;
15652 return 0;
15653 }
15654 _ACEOF
15655 if ac_fn_c_try_link "$LINENO"; then :
15656
15657 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15658
15659 fi
15660 rm -f core conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662
15663 # At least for glibc, clock_gettime is in librt. But don't pull that
15664 # in if it still doesn't give us the function we want.
15665 if test $ac_cv_func_clock_gettime = no; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15667 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15668 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15669 $as_echo_n "(cached) " >&6
15670 else
15671 ac_check_lib_save_LIBS=$LIBS
15672 LIBS="-lrt $LIBS"
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675
15676 /* Override any GCC internal prototype to avoid an error.
15677 Use char because int might match the return type of a GCC
15678 builtin and then its argument prototype would still apply. */
15679 #ifdef __cplusplus
15680 extern "C"
15681 #endif
15682 char clock_gettime ();
15683 int
15684 main ()
15685 {
15686 return clock_gettime ();
15687 ;
15688 return 0;
15689 }
15690 _ACEOF
15691 if ac_fn_c_try_link "$LINENO"; then :
15692 ac_cv_lib_rt_clock_gettime=yes
15693 else
15694 ac_cv_lib_rt_clock_gettime=no
15695 fi
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15698 LIBS=$ac_check_lib_save_LIBS
15699 fi
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15701 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15702 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15703 LIBS="-lrt $LIBS"
15704
15705 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15706
15707 fi
15708
15709 fi
15710
15711 # Check for uname.
15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15714 #include <string.h>
15715 #include <stdlib.h>
15716 #include <sys/utsname.h>
15717 int
15718 main ()
15719 {
15720 struct utsname buf;
15721 volatile size_t len = 0;
15722 if (!uname (buf))
15723 len = strlen (buf.nodename);
15724 ;
15725 return 0;
15726 }
15727 _ACEOF
15728 if ac_fn_c_try_compile "$LINENO"; then :
15729
15730 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15731
15732 fi
15733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15734
15735 # Check for gethostname.
15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15738 #include <unistd.h>
15739 int
15740 main ()
15741 {
15742
15743 char buf[256];
15744 if (gethostname (buf, sizeof (buf) - 1) == 0)
15745 buf[255] = '\0';
15746
15747 ;
15748 return 0;
15749 }
15750 _ACEOF
15751 if ac_fn_c_try_compile "$LINENO"; then :
15752
15753 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15754
15755 fi
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757
15758 # Check for getpid.
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 #include <unistd.h>
15762 int
15763 main ()
15764 {
15765 int pid = getpid ();
15766 ;
15767 return 0;
15768 }
15769 _ACEOF
15770 if ac_fn_c_try_compile "$LINENO"; then :
15771
15772 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15773
15774 fi
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776
15777 # See if we support thread-local storage.
15778
15779
15780 # Check whether --enable-tls was given.
15781 if test "${enable_tls+set}" = set; then :
15782 enableval=$enable_tls;
15783 case "$enableval" in
15784 yes|no) ;;
15785 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15786 esac
15787
15788 else
15789 enable_tls=yes
15790 fi
15791
15792
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15794 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15795 if ${gcc_cv_have_tls+:} false; then :
15796 $as_echo_n "(cached) " >&6
15797 else
15798
15799 if test "$cross_compiling" = yes; then :
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15802 __thread int a; int b; int main() { return a = b; }
15803 _ACEOF
15804 if ac_fn_c_try_link "$LINENO"; then :
15805 chktls_save_LDFLAGS="$LDFLAGS"
15806 case $host in
15807 *-*-linux* | -*-uclinuxfdpic*)
15808 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15809 ;;
15810 esac
15811 chktls_save_CFLAGS="$CFLAGS"
15812 CFLAGS="-fPIC $CFLAGS"
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15815 int f() { return 0; }
15816 _ACEOF
15817 if ac_fn_c_try_link "$LINENO"; then :
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15820 __thread int a; int b; int f() { return a = b; }
15821 _ACEOF
15822 if ac_fn_c_try_link "$LINENO"; then :
15823 gcc_cv_have_tls=yes
15824 else
15825 gcc_cv_have_tls=no
15826 fi
15827 rm -f core conftest.err conftest.$ac_objext \
15828 conftest$ac_exeext conftest.$ac_ext
15829 else
15830 gcc_cv_have_tls=yes
15831 fi
15832 rm -f core conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834 CFLAGS="$chktls_save_CFLAGS"
15835 LDFLAGS="$chktls_save_LDFLAGS"
15836 else
15837 gcc_cv_have_tls=no
15838 fi
15839 rm -f core conftest.err conftest.$ac_objext \
15840 conftest$ac_exeext conftest.$ac_ext
15841
15842
15843 else
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15846 __thread int a; int b; int main() { return a = b; }
15847 _ACEOF
15848 if ac_fn_c_try_run "$LINENO"; then :
15849 chktls_save_LDFLAGS="$LDFLAGS"
15850 LDFLAGS="-static $LDFLAGS"
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853 int main() { return 0; }
15854 _ACEOF
15855 if ac_fn_c_try_link "$LINENO"; then :
15856 if test "$cross_compiling" = yes; then :
15857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15859 as_fn_error $? "cannot run test program while cross compiling
15860 See \`config.log' for more details" "$LINENO" 5; }
15861 else
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 __thread int a; int b; int main() { return a = b; }
15865 _ACEOF
15866 if ac_fn_c_try_run "$LINENO"; then :
15867 gcc_cv_have_tls=yes
15868 else
15869 gcc_cv_have_tls=no
15870 fi
15871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15872 conftest.$ac_objext conftest.beam conftest.$ac_ext
15873 fi
15874
15875 else
15876 gcc_cv_have_tls=yes
15877 fi
15878 rm -f core conftest.err conftest.$ac_objext \
15879 conftest$ac_exeext conftest.$ac_ext
15880 LDFLAGS="$chktls_save_LDFLAGS"
15881 if test $gcc_cv_have_tls = yes; then
15882 chktls_save_CFLAGS="$CFLAGS"
15883 thread_CFLAGS=failed
15884 for flag in '' '-pthread' '-lpthread'; do
15885 CFLAGS="$flag $chktls_save_CFLAGS"
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 #include <pthread.h>
15889 void *g(void *d) { return NULL; }
15890 int
15891 main ()
15892 {
15893 pthread_t t; pthread_create(&t,NULL,g,NULL);
15894 ;
15895 return 0;
15896 }
15897 _ACEOF
15898 if ac_fn_c_try_link "$LINENO"; then :
15899 thread_CFLAGS="$flag"
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext \
15902 conftest$ac_exeext conftest.$ac_ext
15903 if test "X$thread_CFLAGS" != Xfailed; then
15904 break
15905 fi
15906 done
15907 CFLAGS="$chktls_save_CFLAGS"
15908 if test "X$thread_CFLAGS" != Xfailed; then
15909 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15910 if test "$cross_compiling" = yes; then :
15911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15913 as_fn_error $? "cannot run test program while cross compiling
15914 See \`config.log' for more details" "$LINENO" 5; }
15915 else
15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15918 #include <pthread.h>
15919 __thread int a;
15920 static int *volatile a_in_other_thread;
15921 static void *
15922 thread_func (void *arg)
15923 {
15924 a_in_other_thread = &a;
15925 return (void *)0;
15926 }
15927 int
15928 main ()
15929 {
15930 pthread_t thread;
15931 void *thread_retval;
15932 int *volatile a_in_main_thread;
15933 a_in_main_thread = &a;
15934 if (pthread_create (&thread, (pthread_attr_t *)0,
15935 thread_func, (void *)0))
15936 return 0;
15937 if (pthread_join (thread, &thread_retval))
15938 return 0;
15939 return (a_in_other_thread == a_in_main_thread);
15940 ;
15941 return 0;
15942 }
15943 _ACEOF
15944 if ac_fn_c_try_run "$LINENO"; then :
15945 gcc_cv_have_tls=yes
15946 else
15947 gcc_cv_have_tls=no
15948 fi
15949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15950 conftest.$ac_objext conftest.beam conftest.$ac_ext
15951 fi
15952
15953 CFLAGS="$chktls_save_CFLAGS"
15954 fi
15955 fi
15956 else
15957 gcc_cv_have_tls=no
15958 fi
15959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15960 conftest.$ac_objext conftest.beam conftest.$ac_ext
15961 fi
15962
15963 fi
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15965 $as_echo "$gcc_cv_have_tls" >&6; }
15966 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15967
15968 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15969
15970 fi
15971
15972 # See if we have emulated thread-local storage.
15973
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15975 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15976 if ${gcc_cv_use_emutls+:} false; then :
15977 $as_echo_n "(cached) " >&6
15978 else
15979
15980 gcc_cv_use_emutls=no
15981 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15982 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15987 test $ac_status = 0; }; }; then
15988 if grep __emutls_get_address conftest.s > /dev/null; then
15989 gcc_cv_use_emutls=yes
15990 fi
15991 fi
15992 rm -f conftest.*
15993
15994 fi
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15996 $as_echo "$gcc_cv_use_emutls" >&6; }
15997 if test "$gcc_cv_use_emutls" = "yes" ; then
15998
15999 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16000
16001 fi
16002
16003 # See what sort of export controls are available.
16004
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16006 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16007 if ${libgomp_cv_have_attribute_visibility+:} false; then :
16008 $as_echo_n "(cached) " >&6
16009 else
16010
16011 save_CFLAGS="$CFLAGS"
16012 CFLAGS="$CFLAGS -Werror"
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 void __attribute__((visibility("hidden"))) foo(void) { }
16016 int
16017 main ()
16018 {
16019
16020 ;
16021 return 0;
16022 }
16023 _ACEOF
16024 if ac_fn_c_try_compile "$LINENO"; then :
16025 libgomp_cv_have_attribute_visibility=yes
16026 else
16027 libgomp_cv_have_attribute_visibility=no
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030 CFLAGS="$save_CFLAGS"
16031 fi
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16033 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16034 if test $libgomp_cv_have_attribute_visibility = yes; then
16035
16036 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16037
16038 fi
16039
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16041 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16042 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16043 $as_echo_n "(cached) " >&6
16044 else
16045
16046 save_CFLAGS="$CFLAGS"
16047 CFLAGS="$CFLAGS -Werror"
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16050 void __attribute__((dllexport)) foo(void) { }
16051 int
16052 main ()
16053 {
16054
16055 ;
16056 return 0;
16057 }
16058 _ACEOF
16059 if ac_fn_c_try_compile "$LINENO"; then :
16060 libgomp_cv_have_attribute_dllexport=yes
16061 else
16062 libgomp_cv_have_attribute_dllexport=no
16063 fi
16064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16065 CFLAGS="$save_CFLAGS"
16066 fi
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16068 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16069 if test $libgomp_cv_have_attribute_dllexport = yes; then
16070
16071 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16072
16073 fi
16074
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16076 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16077 if ${libgomp_cv_have_attribute_alias+:} false; then :
16078 $as_echo_n "(cached) " >&6
16079 else
16080
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083
16084 void foo(void) { }
16085 extern void bar(void) __attribute__((alias("foo")));
16086 int
16087 main ()
16088 {
16089 bar();
16090 ;
16091 return 0;
16092 }
16093 _ACEOF
16094 if ac_fn_c_try_link "$LINENO"; then :
16095 libgomp_cv_have_attribute_alias=yes
16096 else
16097 libgomp_cv_have_attribute_alias=no
16098 fi
16099 rm -f core conftest.err conftest.$ac_objext \
16100 conftest$ac_exeext conftest.$ac_ext
16101 fi
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16103 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16104 if test $libgomp_cv_have_attribute_alias = yes; then
16105
16106 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16107
16108 fi
16109
16110
16111 # Check whether --with-gnu-ld was given.
16112 if test "${with_gnu_ld+set}" = set; then :
16113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16114 else
16115 with_gnu_ld=no
16116 fi
16117
16118 ac_prog=ld
16119 if test "$GCC" = yes; then
16120 # Check if gcc -print-prog-name=ld gives a path.
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16122 $as_echo_n "checking for ld used by $CC... " >&6; }
16123 case $host in
16124 *-*-mingw*)
16125 # gcc leaves a trailing carriage return which upsets mingw
16126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16127 *)
16128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16129 esac
16130 case $ac_prog in
16131 # Accept absolute paths.
16132 [\\/]* | ?:[\\/]*)
16133 re_direlt='/[^/][^/]*/\.\./'
16134 # Canonicalize the pathname of ld
16135 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16136 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16137 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16138 done
16139 test -z "$LD" && LD="$ac_prog"
16140 ;;
16141 "")
16142 # If it fails, then pretend we aren't using GCC.
16143 ac_prog=ld
16144 ;;
16145 *)
16146 # If it is relative, then search for the first ld in PATH.
16147 with_gnu_ld=unknown
16148 ;;
16149 esac
16150 elif test "$with_gnu_ld" = yes; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16152 $as_echo_n "checking for GNU ld... " >&6; }
16153 else
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16155 $as_echo_n "checking for non-GNU ld... " >&6; }
16156 fi
16157 if ${lt_cv_path_LD+:} false; then :
16158 $as_echo_n "(cached) " >&6
16159 else
16160 if test -z "$LD"; then
16161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16162 for ac_dir in $PATH; do
16163 IFS="$lt_save_ifs"
16164 test -z "$ac_dir" && ac_dir=.
16165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16166 lt_cv_path_LD="$ac_dir/$ac_prog"
16167 # Check to see if the program is GNU ld. I'd rather use --version,
16168 # but apparently some variants of GNU ld only accept -v.
16169 # Break only if it was the GNU/non-GNU ld that we prefer.
16170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16171 *GNU* | *'with BFD'*)
16172 test "$with_gnu_ld" != no && break
16173 ;;
16174 *)
16175 test "$with_gnu_ld" != yes && break
16176 ;;
16177 esac
16178 fi
16179 done
16180 IFS="$lt_save_ifs"
16181 else
16182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16183 fi
16184 fi
16185
16186 LD="$lt_cv_path_LD"
16187 if test -n "$LD"; then
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16189 $as_echo "$LD" >&6; }
16190 else
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192 $as_echo "no" >&6; }
16193 fi
16194 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16196 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16197 if ${lt_cv_prog_gnu_ld+:} false; then :
16198 $as_echo_n "(cached) " >&6
16199 else
16200 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16201 case `$LD -v 2>&1 </dev/null` in
16202 *GNU* | *'with BFD'*)
16203 lt_cv_prog_gnu_ld=yes
16204 ;;
16205 *)
16206 lt_cv_prog_gnu_ld=no
16207 ;;
16208 esac
16209 fi
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16211 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16212 with_gnu_ld=$lt_cv_prog_gnu_ld
16213
16214
16215
16216
16217
16218
16219
16220 # If we're not using GNU ld, then there's no point in even trying these
16221 # tests. Check for that first. We should have already tested for gld
16222 # by now (in libtool), but require it now just to be safe...
16223 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16224 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16225
16226
16227
16228 # The name set by libtool depends on the version of libtool. Shame on us
16229 # for depending on an impl detail, but c'est la vie. Older versions used
16230 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16231 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16232 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16233 # set (hence we're using an older libtool), then set it.
16234 if test x${with_gnu_ld+set} != xset; then
16235 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16236 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16237 with_gnu_ld=no
16238 else
16239 with_gnu_ld=$ac_cv_prog_gnu_ld
16240 fi
16241 fi
16242
16243 # Start by getting the version number. I think the libtool test already
16244 # does some of this, but throws away the result.
16245 libgomp_ld_is_gold=no
16246 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16247 libgomp_ld_is_gold=yes
16248 fi
16249
16250 ldver=`$LD --version 2>/dev/null |
16251 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16252
16253 libgomp_gnu_ld_version=`echo $ldver | \
16254 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16255
16256 # Set --gc-sections.
16257 if test "$with_gnu_ld" = "notbroken"; then
16258 # GNU ld it is! Joy and bunny rabbits!
16259
16260 # All these tests are for C++; save the language and the compiler flags.
16261 # Need to do this so that g++ won't try to link in libstdc++
16262 ac_test_CFLAGS="${CFLAGS+set}"
16263 ac_save_CFLAGS="$CFLAGS"
16264 CFLAGS='-x c++ -Wl,--gc-sections'
16265
16266 # Check for -Wl,--gc-sections
16267 # XXX This test is broken at the moment, as symbols required for linking
16268 # are now in libsupc++ (not built yet). In addition, this test has
16269 # cored on solaris in the past. In addition, --gc-sections doesn't
16270 # really work at the moment (keeps on discarding used sections, first
16271 # .eh_frame and now some of the glibc sections for iconv).
16272 # Bzzzzt. Thanks for playing, maybe next time.
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16274 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16275 if test "$cross_compiling" = yes; then :
16276 ac_sectionLDflags=yes
16277 else
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280
16281 int main(void)
16282 {
16283 try { throw 1; }
16284 catch (...) { };
16285 return 0;
16286 }
16287
16288 _ACEOF
16289 if ac_fn_c_try_run "$LINENO"; then :
16290 ac_sectionLDflags=yes
16291 else
16292 ac_sectionLDflags=no
16293 fi
16294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16295 conftest.$ac_objext conftest.beam conftest.$ac_ext
16296 fi
16297
16298 if test "$ac_test_CFLAGS" = set; then
16299 CFLAGS="$ac_save_CFLAGS"
16300 else
16301 # this is the suspicious part
16302 CFLAGS=''
16303 fi
16304 if test "$ac_sectionLDflags" = "yes"; then
16305 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16306 fi
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16308 $as_echo "$ac_sectionLDflags" >&6; }
16309 fi
16310
16311 # Set linker optimization flags.
16312 if test x"$with_gnu_ld" = x"yes"; then
16313 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16314 fi
16315
16316
16317
16318
16319
16320
16321 # Check whether --enable-symvers was given.
16322 if test "${enable_symvers+set}" = set; then :
16323 enableval=$enable_symvers;
16324 case "$enableval" in
16325 yes|no|gnu*|sun) ;;
16326 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16327 esac
16328
16329 else
16330 enable_symvers=yes
16331 fi
16332
16333
16334
16335 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16336 # don't know enough about $LD to do tricks...
16337
16338
16339 # Turn a 'yes' into a suitable default.
16340 if test x$enable_symvers = xyes ; then
16341 # FIXME The following test is too strict, in theory.
16342 if test $enable_shared = no || test "x$LD" = x; then
16343 enable_symvers=no
16344 else
16345 if test $with_gnu_ld = yes ; then
16346 enable_symvers=gnu
16347 else
16348 case ${target_os} in
16349 # Sun symbol versioning exists since Solaris 2.5.
16350 solaris2.[5-9]* | solaris2.1[0-9]*)
16351 enable_symvers=sun ;;
16352 *)
16353 enable_symvers=no ;;
16354 esac
16355 fi
16356 fi
16357 fi
16358
16359 # Check if 'sun' was requested on non-Solaris 2 platforms.
16360 if test x$enable_symvers = xsun ; then
16361 case ${target_os} in
16362 solaris2*)
16363 # All fine.
16364 ;;
16365 *)
16366 # Unlikely to work.
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16368 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16370 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16372 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16373 enable_symvers=no
16374 ;;
16375 esac
16376 fi
16377
16378 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16379 if test $enable_symvers != no; then
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16381 $as_echo_n "checking for shared libgcc... " >&6; }
16382 ac_save_CFLAGS="$CFLAGS"
16383 CFLAGS=' -lgcc_s'
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16386
16387 int
16388 main ()
16389 {
16390 return 0;
16391 ;
16392 return 0;
16393 }
16394 _ACEOF
16395 if ac_fn_c_try_link "$LINENO"; then :
16396 libgomp_shared_libgcc=yes
16397 else
16398 libgomp_shared_libgcc=no
16399 fi
16400 rm -f core conftest.err conftest.$ac_objext \
16401 conftest$ac_exeext conftest.$ac_ext
16402 CFLAGS="$ac_save_CFLAGS"
16403 if test $libgomp_shared_libgcc = no; then
16404 cat > conftest.c <<EOF
16405 int main (void) { return 0; }
16406 EOF
16407 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16408 -shared -shared-libgcc -o conftest.so \
16409 conftest.c -v 2>&1 >/dev/null \
16410 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16411 rm -f conftest.c conftest.so
16412 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16413 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416
16417 int
16418 main ()
16419 {
16420 return 0;
16421 ;
16422 return 0;
16423 }
16424 _ACEOF
16425 if ac_fn_c_try_link "$LINENO"; then :
16426 libgomp_shared_libgcc=yes
16427 fi
16428 rm -f core conftest.err conftest.$ac_objext \
16429 conftest$ac_exeext conftest.$ac_ext
16430 CFLAGS="$ac_save_CFLAGS"
16431 fi
16432 fi
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16434 $as_echo "$libgomp_shared_libgcc" >&6; }
16435 fi
16436
16437 # For GNU ld, we need at least this version. The format is described in
16438 # LIBGOMP_CHECK_LINKER_FEATURES above.
16439 libgomp_min_gnu_ld_version=21400
16440 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16441
16442 # Check to see if unspecified "yes" value can win, given results above.
16443 # Change "yes" into either "no" or a style name.
16444 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16445 if test $with_gnu_ld = yes; then
16446 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16447 enable_symvers=gnu
16448 elif test $libgomp_ld_is_gold = yes ; then
16449 enable_symvers=gnu
16450 else
16451 # The right tools, the right setup, but too old. Fallbacks?
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16453 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16455 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16457 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16459 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16460 if test $libgomp_gnu_ld_version -ge 21200 ; then
16461 # Globbing fix is present, proper block support is not.
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16463 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16464 enable_symvers=no
16465 else
16466 # 2.11 or older.
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16468 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16469 enable_symvers=no
16470 fi
16471 fi
16472 elif test $enable_symvers = sun; then
16473 : All interesting versions of Sun ld support sun style symbol versioning.
16474 else
16475 # just fail for now
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16477 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16479 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16481 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16483 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16484 enable_symvers=no
16485 fi
16486 fi
16487
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16489 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16490 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492 else
16493
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16496 void foo (void); __asm (".symver foo, bar@SYMVER");
16497 int
16498 main ()
16499 {
16500
16501 ;
16502 return 0;
16503 }
16504 _ACEOF
16505 if ac_fn_c_try_compile "$LINENO"; then :
16506 libgomp_cv_have_as_symver_directive=yes
16507 else
16508 libgomp_cv_have_as_symver_directive=no
16509 fi
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 fi
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16513 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16514 if test $libgomp_cv_have_as_symver_directive = yes; then
16515
16516 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16517
16518 fi
16519
16520 if test $enable_symvers != no; then
16521 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16522 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16523 else
16524 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16525 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16526 fi
16527
16528 if test $enable_symvers = gnu; then
16529 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16530 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16531 else
16532 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16533 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16534 fi
16535
16536 if test $enable_symvers = sun; then
16537 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16538 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16539 else
16540 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16541 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16542 fi
16543
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16545 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16546
16547 if test $enable_symvers != no ; then
16548 case ${target_os} in
16549 # The Solaris 2 runtime linker doesn't support the GNU extension of
16550 # binding the same symbol to different versions
16551 solaris2*)
16552 ;;
16553 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16554 *)
16555
16556 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16557
16558 ;;
16559 esac
16560 fi
16561
16562
16563 if test $enable_symvers = gnu; then
16564
16565 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16566
16567 fi
16568
16569 # Determine cpu count to limit testsuite parallelism.
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16571 $as_echo_n "checking the number of available CPUs... " >&6; }
16572 CPU_COUNT="0"
16573
16574 # Try generic methods
16575
16576 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16577 # 'NPROCESSORS_ONLN' are platform-specific
16578 command -v getconf >/dev/null 2>&1 && \
16579 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16580 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16581 : # empty
16582 else
16583 # 'nproc' is part of GNU Coreutils and is widely available
16584 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16585
16586 fi
16587 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16588 : # empty
16589 else
16590 # Try platform-specific preferred methods
16591 case $host_os in #(
16592 *linux*) :
16593 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16594 *darwin*) :
16595 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16596 freebsd*) :
16597 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16598 netbsd*) :
16599 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16600 solaris*) :
16601 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" ;; #(
16602 mingw*) :
16603 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16604 msys*) :
16605 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16606 cygwin*) :
16607 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16608 *) :
16609 ;;
16610 esac
16611 fi
16612 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16613 : # empty
16614 else
16615 # Try less preferred generic method
16616 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16617 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16618
16619 fi
16620 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16621 : # empty
16622 else
16623 # Try platform-specific fallback methods
16624 # They can be less accurate and slower then preferred methods
16625 case $host_os in #(
16626 *linux*) :
16627 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16628 *darwin*) :
16629 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16630 freebsd*) :
16631 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16632 netbsd*) :
16633 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16634 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16635 solaris*) :
16636 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16637 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16638 mingw*) :
16639 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16640 : # empty
16641 else
16642 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16643 fi ;; #(
16644 msys*) :
16645 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16646 cygwin*) :
16647 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16648 *) :
16649 ;;
16650 esac
16651 fi
16652 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16654 $as_echo "$CPU_COUNT" >&6; }
16655
16656 else
16657 CPU_COUNT="1"
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16659 $as_echo "unable to detect (assuming 1)" >&6; }
16660
16661 fi
16662
16663
16664 # Get target configury.
16665 . ${srcdir}/configure.tgt
16666 CFLAGS="$save_CFLAGS $XCFLAGS"
16667
16668 # Check for __sync_val_compare_and_swap, but only after the target has
16669 # had a chance to set XCFLAGS.
16670
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16672 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16673 if ${libgomp_cv_have_sync_builtins+:} false; then :
16674 $as_echo_n "(cached) " >&6
16675 else
16676
16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16679
16680 int
16681 main ()
16682 {
16683 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16684 ;
16685 return 0;
16686 }
16687 _ACEOF
16688 if ac_fn_c_try_link "$LINENO"; then :
16689 libgomp_cv_have_sync_builtins=yes
16690 else
16691 libgomp_cv_have_sync_builtins=no
16692 fi
16693 rm -f core conftest.err conftest.$ac_objext \
16694 conftest$ac_exeext conftest.$ac_ext
16695 fi
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16697 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16698 if test $libgomp_cv_have_sync_builtins = yes; then
16699
16700 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16701
16702 fi
16703
16704 XCFLAGS="$XCFLAGS$XPCFLAGS"
16705
16706 # Add CET specific flags if CET is enabled
16707 # Check whether --enable-cet was given.
16708 if test "${enable_cet+set}" = set; then :
16709 enableval=$enable_cet;
16710 case "$enableval" in
16711 yes|no|auto) ;;
16712 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16713 esac
16714
16715 else
16716 enable_cet=no
16717 fi
16718
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16721 $as_echo_n "checking for CET support... " >&6; }
16722
16723 case "$host" in
16724 i[34567]86-*-linux* | x86_64-*-linux*)
16725 case "$enable_cet" in
16726 auto)
16727 # Check if target supports multi-byte NOPs
16728 # and if assembler supports CET insn.
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16731
16732 int
16733 main ()
16734 {
16735
16736 #if !defined(__SSE2__)
16737 #error target does not support multi-byte NOPs
16738 #else
16739 asm ("setssbsy");
16740 #endif
16741
16742 ;
16743 return 0;
16744 }
16745 _ACEOF
16746 if ac_fn_c_try_compile "$LINENO"; then :
16747 enable_cet=yes
16748 else
16749 enable_cet=no
16750 fi
16751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16752 ;;
16753 yes)
16754 # Check if assembler supports CET.
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757
16758 int
16759 main ()
16760 {
16761 asm ("setssbsy");
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 if ac_fn_c_try_compile "$LINENO"; then :
16767
16768 else
16769 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16770 fi
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 ;;
16773 esac
16774 ;;
16775 *)
16776 enable_cet=no
16777 ;;
16778 esac
16779 if test x$enable_cet = xyes; then
16780 CET_FLAGS="-fcf-protection -mshstk"
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16782 $as_echo "yes" >&6; }
16783 else
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16785 $as_echo "no" >&6; }
16786 fi
16787
16788 XCFLAGS="$XCFLAGS $CET_FLAGS"
16789 FCFLAGS="$FCFLAGS $CET_FLAGS"
16790
16791
16792
16793
16794
16795 # Cleanup and exit.
16796 CFLAGS="$save_CFLAGS"
16797 cat >confcache <<\_ACEOF
16798 # This file is a shell script that caches the results of configure
16799 # tests run on this system so they can be shared between configure
16800 # scripts and configure runs, see configure's option --config-cache.
16801 # It is not useful on other systems. If it contains results you don't
16802 # want to keep, you may remove or edit it.
16803 #
16804 # config.status only pays attention to the cache file if you give it
16805 # the --recheck option to rerun configure.
16806 #
16807 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16808 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16809 # following values.
16810
16811 _ACEOF
16812
16813 # The following way of writing the cache mishandles newlines in values,
16814 # but we know of no workaround that is simple, portable, and efficient.
16815 # So, we kill variables containing newlines.
16816 # Ultrix sh set writes to stderr and can't be redirected directly,
16817 # and sets the high bit in the cache file unless we assign to the vars.
16818 (
16819 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16820 eval ac_val=\$$ac_var
16821 case $ac_val in #(
16822 *${as_nl}*)
16823 case $ac_var in #(
16824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16826 esac
16827 case $ac_var in #(
16828 _ | IFS | as_nl) ;; #(
16829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16830 *) { eval $ac_var=; unset $ac_var;} ;;
16831 esac ;;
16832 esac
16833 done
16834
16835 (set) 2>&1 |
16836 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16837 *${as_nl}ac_space=\ *)
16838 # `set' does not quote correctly, so add quotes: double-quote
16839 # substitution turns \\\\ into \\, and sed turns \\ into \.
16840 sed -n \
16841 "s/'/'\\\\''/g;
16842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16843 ;; #(
16844 *)
16845 # `set' quotes correctly as required by POSIX, so do not add quotes.
16846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16847 ;;
16848 esac |
16849 sort
16850 ) |
16851 sed '
16852 /^ac_cv_env_/b end
16853 t clear
16854 :clear
16855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16856 t end
16857 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16858 :end' >>confcache
16859 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16860 if test -w "$cache_file"; then
16861 if test "x$cache_file" != "x/dev/null"; then
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16863 $as_echo "$as_me: updating cache $cache_file" >&6;}
16864 if test ! -f "$cache_file" || test -h "$cache_file"; then
16865 cat confcache >"$cache_file"
16866 else
16867 case $cache_file in #(
16868 */* | ?:*)
16869 mv -f confcache "$cache_file"$$ &&
16870 mv -f "$cache_file"$$ "$cache_file" ;; #(
16871 *)
16872 mv -f confcache "$cache_file" ;;
16873 esac
16874 fi
16875 fi
16876 else
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16878 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16879 fi
16880 fi
16881 rm -f confcache
16882
16883 if test ${multilib} = yes; then
16884 multilib_arg="--enable-multilib"
16885 else
16886 multilib_arg=
16887 fi
16888
16889 # Set up the set of libraries that we need to link against for libgomp.
16890 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16891 # which will force linkage against -lpthread (or equivalent for the system).
16892 # That's not 100% ideal, but about the best we can do easily.
16893 if test $enable_shared = yes; then
16894 link_gomp="-lgomp %{static: $LIBS}"
16895 else
16896 link_gomp="-lgomp $LIBS"
16897 fi
16898
16899
16900 if test "$ac_cv_fc_compiler_gnu" = yes; then
16901 USE_FORTRAN_TRUE=
16902 USE_FORTRAN_FALSE='#'
16903 else
16904 USE_FORTRAN_TRUE='#'
16905 USE_FORTRAN_FALSE=
16906 fi
16907
16908
16909 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16910 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16911 # the underscore here and update the PREREQ. If it doesn't, then we'll
16912 # need to copy this macro to our acinclude.m4.
16913 save_CFLAGS="$CFLAGS"
16914 for i in $config_path; do
16915 if test -f $srcdir/config/$i/omp-lock.h; then
16916 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16917 break
16918 fi
16919 done
16920
16921 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16922
16923 else
16924 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16925 fi
16926
16927
16928 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16929
16930 fi
16931
16932
16933 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16934
16935 fi
16936
16937
16938 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16939
16940 fi
16941
16942
16943 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16944
16945 else
16946 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16947 fi
16948
16949
16950 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16951
16952 fi
16953
16954
16955 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16956
16957 fi
16958
16959
16960 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16961
16962 fi
16963
16964
16965
16966 # If the lock fits in an integer, then arrange for Fortran to use that
16967 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16968 # Except that we don't have a way at present to multi-lib the installed
16969 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16970 # actual target.
16971 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16972 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16973 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16974 OMP_LOCK_KIND=8
16975 fi
16976 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16977 OMP_NEST_LOCK_KIND=8
16978 fi
16979 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16980 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16981 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16982 OMP_LOCK_25_KIND=8
16983 fi
16984 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16985 OMP_NEST_LOCK_25_KIND=8
16986 fi
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000 CFLAGS="$save_CFLAGS"
17001
17002 # Determine what GCC version number to use in filesystem paths.
17003
17004 get_gcc_base_ver="cat"
17005
17006 # Check whether --with-gcc-major-version-only was given.
17007 if test "${with_gcc_major_version_only+set}" = set; then :
17008 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17009 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17010 fi
17011
17012 fi
17013
17014
17015
17016
17017 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17018
17019 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17020
17021 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17022
17023 cat >confcache <<\_ACEOF
17024 # This file is a shell script that caches the results of configure
17025 # tests run on this system so they can be shared between configure
17026 # scripts and configure runs, see configure's option --config-cache.
17027 # It is not useful on other systems. If it contains results you don't
17028 # want to keep, you may remove or edit it.
17029 #
17030 # config.status only pays attention to the cache file if you give it
17031 # the --recheck option to rerun configure.
17032 #
17033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17035 # following values.
17036
17037 _ACEOF
17038
17039 # The following way of writing the cache mishandles newlines in values,
17040 # but we know of no workaround that is simple, portable, and efficient.
17041 # So, we kill variables containing newlines.
17042 # Ultrix sh set writes to stderr and can't be redirected directly,
17043 # and sets the high bit in the cache file unless we assign to the vars.
17044 (
17045 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17046 eval ac_val=\$$ac_var
17047 case $ac_val in #(
17048 *${as_nl}*)
17049 case $ac_var in #(
17050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17052 esac
17053 case $ac_var in #(
17054 _ | IFS | as_nl) ;; #(
17055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17056 *) { eval $ac_var=; unset $ac_var;} ;;
17057 esac ;;
17058 esac
17059 done
17060
17061 (set) 2>&1 |
17062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17063 *${as_nl}ac_space=\ *)
17064 # `set' does not quote correctly, so add quotes: double-quote
17065 # substitution turns \\\\ into \\, and sed turns \\ into \.
17066 sed -n \
17067 "s/'/'\\\\''/g;
17068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17069 ;; #(
17070 *)
17071 # `set' quotes correctly as required by POSIX, so do not add quotes.
17072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17073 ;;
17074 esac |
17075 sort
17076 ) |
17077 sed '
17078 /^ac_cv_env_/b end
17079 t clear
17080 :clear
17081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17082 t end
17083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17084 :end' >>confcache
17085 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17086 if test -w "$cache_file"; then
17087 if test "x$cache_file" != "x/dev/null"; then
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17089 $as_echo "$as_me: updating cache $cache_file" >&6;}
17090 if test ! -f "$cache_file" || test -h "$cache_file"; then
17091 cat confcache >"$cache_file"
17092 else
17093 case $cache_file in #(
17094 */* | ?:*)
17095 mv -f confcache "$cache_file"$$ &&
17096 mv -f "$cache_file"$$ "$cache_file" ;; #(
17097 *)
17098 mv -f confcache "$cache_file" ;;
17099 esac
17100 fi
17101 fi
17102 else
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17104 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17105 fi
17106 fi
17107 rm -f confcache
17108
17109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17110 # Let make expand exec_prefix.
17111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17112
17113 DEFS=-DHAVE_CONFIG_H
17114
17115 ac_libobjs=
17116 ac_ltlibobjs=
17117 U=
17118 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17119 # 1. Remove the extension, and $U if already installed.
17120 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17121 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17122 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17123 # will be set to the directory where LIBOBJS objects are built.
17124 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17125 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17126 done
17127 LIBOBJS=$ac_libobjs
17128
17129 LTLIBOBJS=$ac_ltlibobjs
17130
17131
17132 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17133 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17135 fi
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17137 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17138 if test -n "$am_sleep_pid"; then
17139 # Hide warnings about reused PIDs.
17140 wait $am_sleep_pid 2>/dev/null
17141 fi
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17143 $as_echo "done" >&6; }
17144 if test -n "$EXEEXT"; then
17145 am__EXEEXT_TRUE=
17146 am__EXEEXT_FALSE='#'
17147 else
17148 am__EXEEXT_TRUE='#'
17149 am__EXEEXT_FALSE=
17150 fi
17151
17152 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17153 as_fn_error $? "conditional \"AMDEP\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17155 fi
17156 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17157 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17159 fi
17160 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17161 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17163 fi
17164 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17165 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17167 fi
17168 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17169 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17171 fi
17172 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17173 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined.
17174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17175 fi
17176 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17177 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17179 fi
17180 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17181 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17183 fi
17184 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17185 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17187 fi
17188 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17189 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17191 fi
17192 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17193 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17195 fi
17196
17197 : "${CONFIG_STATUS=./config.status}"
17198 ac_write_fail=0
17199 ac_clean_files_save=$ac_clean_files
17200 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17202 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17203 as_write_fail=0
17204 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17205 #! $SHELL
17206 # Generated by $as_me.
17207 # Run this file to recreate the current configuration.
17208 # Compiler output produced by configure, useful for debugging
17209 # configure, is in config.log if it exists.
17210
17211 debug=false
17212 ac_cs_recheck=false
17213 ac_cs_silent=false
17214
17215 SHELL=\${CONFIG_SHELL-$SHELL}
17216 export SHELL
17217 _ASEOF
17218 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17219 ## -------------------- ##
17220 ## M4sh Initialization. ##
17221 ## -------------------- ##
17222
17223 # Be more Bourne compatible
17224 DUALCASE=1; export DUALCASE # for MKS sh
17225 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17226 emulate sh
17227 NULLCMD=:
17228 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17229 # is contrary to our usage. Disable this feature.
17230 alias -g '${1+"$@"}'='"$@"'
17231 setopt NO_GLOB_SUBST
17232 else
17233 case `(set -o) 2>/dev/null` in #(
17234 *posix*) :
17235 set -o posix ;; #(
17236 *) :
17237 ;;
17238 esac
17239 fi
17240
17241
17242 as_nl='
17243 '
17244 export as_nl
17245 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17246 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17249 # Prefer a ksh shell builtin over an external printf program on Solaris,
17250 # but without wasting forks for bash or zsh.
17251 if test -z "$BASH_VERSION$ZSH_VERSION" \
17252 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17253 as_echo='print -r --'
17254 as_echo_n='print -rn --'
17255 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17256 as_echo='printf %s\n'
17257 as_echo_n='printf %s'
17258 else
17259 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17260 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17261 as_echo_n='/usr/ucb/echo -n'
17262 else
17263 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17264 as_echo_n_body='eval
17265 arg=$1;
17266 case $arg in #(
17267 *"$as_nl"*)
17268 expr "X$arg" : "X\\(.*\\)$as_nl";
17269 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17270 esac;
17271 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17272 '
17273 export as_echo_n_body
17274 as_echo_n='sh -c $as_echo_n_body as_echo'
17275 fi
17276 export as_echo_body
17277 as_echo='sh -c $as_echo_body as_echo'
17278 fi
17279
17280 # The user is always right.
17281 if test "${PATH_SEPARATOR+set}" != set; then
17282 PATH_SEPARATOR=:
17283 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17284 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17285 PATH_SEPARATOR=';'
17286 }
17287 fi
17288
17289
17290 # IFS
17291 # We need space, tab and new line, in precisely that order. Quoting is
17292 # there to prevent editors from complaining about space-tab.
17293 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17294 # splitting by setting IFS to empty value.)
17295 IFS=" "" $as_nl"
17296
17297 # Find who we are. Look in the path if we contain no directory separator.
17298 as_myself=
17299 case $0 in #((
17300 *[\\/]* ) as_myself=$0 ;;
17301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17302 for as_dir in $PATH
17303 do
17304 IFS=$as_save_IFS
17305 test -z "$as_dir" && as_dir=.
17306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17307 done
17308 IFS=$as_save_IFS
17309
17310 ;;
17311 esac
17312 # We did not find ourselves, most probably we were run as `sh COMMAND'
17313 # in which case we are not to be found in the path.
17314 if test "x$as_myself" = x; then
17315 as_myself=$0
17316 fi
17317 if test ! -f "$as_myself"; then
17318 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17319 exit 1
17320 fi
17321
17322 # Unset variables that we do not need and which cause bugs (e.g. in
17323 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17324 # suppresses any "Segmentation fault" message there. '((' could
17325 # trigger a bug in pdksh 5.2.14.
17326 for as_var in BASH_ENV ENV MAIL MAILPATH
17327 do eval test x\${$as_var+set} = xset \
17328 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17329 done
17330 PS1='$ '
17331 PS2='> '
17332 PS4='+ '
17333
17334 # NLS nuisances.
17335 LC_ALL=C
17336 export LC_ALL
17337 LANGUAGE=C
17338 export LANGUAGE
17339
17340 # CDPATH.
17341 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17342
17343
17344 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17345 # ----------------------------------------
17346 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17347 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17348 # script with STATUS, using 1 if that was 0.
17349 as_fn_error ()
17350 {
17351 as_status=$1; test $as_status -eq 0 && as_status=1
17352 if test "$4"; then
17353 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17354 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17355 fi
17356 $as_echo "$as_me: error: $2" >&2
17357 as_fn_exit $as_status
17358 } # as_fn_error
17359
17360
17361 # as_fn_set_status STATUS
17362 # -----------------------
17363 # Set $? to STATUS, without forking.
17364 as_fn_set_status ()
17365 {
17366 return $1
17367 } # as_fn_set_status
17368
17369 # as_fn_exit STATUS
17370 # -----------------
17371 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17372 as_fn_exit ()
17373 {
17374 set +e
17375 as_fn_set_status $1
17376 exit $1
17377 } # as_fn_exit
17378
17379 # as_fn_unset VAR
17380 # ---------------
17381 # Portably unset VAR.
17382 as_fn_unset ()
17383 {
17384 { eval $1=; unset $1;}
17385 }
17386 as_unset=as_fn_unset
17387 # as_fn_append VAR VALUE
17388 # ----------------------
17389 # Append the text in VALUE to the end of the definition contained in VAR. Take
17390 # advantage of any shell optimizations that allow amortized linear growth over
17391 # repeated appends, instead of the typical quadratic growth present in naive
17392 # implementations.
17393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17394 eval 'as_fn_append ()
17395 {
17396 eval $1+=\$2
17397 }'
17398 else
17399 as_fn_append ()
17400 {
17401 eval $1=\$$1\$2
17402 }
17403 fi # as_fn_append
17404
17405 # as_fn_arith ARG...
17406 # ------------------
17407 # Perform arithmetic evaluation on the ARGs, and store the result in the
17408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17409 # must be portable across $(()) and expr.
17410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17411 eval 'as_fn_arith ()
17412 {
17413 as_val=$(( $* ))
17414 }'
17415 else
17416 as_fn_arith ()
17417 {
17418 as_val=`expr "$@" || test $? -eq 1`
17419 }
17420 fi # as_fn_arith
17421
17422
17423 if expr a : '\(a\)' >/dev/null 2>&1 &&
17424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17425 as_expr=expr
17426 else
17427 as_expr=false
17428 fi
17429
17430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17431 as_basename=basename
17432 else
17433 as_basename=false
17434 fi
17435
17436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17437 as_dirname=dirname
17438 else
17439 as_dirname=false
17440 fi
17441
17442 as_me=`$as_basename -- "$0" ||
17443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17444 X"$0" : 'X\(//\)$' \| \
17445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17446 $as_echo X/"$0" |
17447 sed '/^.*\/\([^/][^/]*\)\/*$/{
17448 s//\1/
17449 q
17450 }
17451 /^X\/\(\/\/\)$/{
17452 s//\1/
17453 q
17454 }
17455 /^X\/\(\/\).*/{
17456 s//\1/
17457 q
17458 }
17459 s/.*/./; q'`
17460
17461 # Avoid depending upon Character Ranges.
17462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17465 as_cr_digits='0123456789'
17466 as_cr_alnum=$as_cr_Letters$as_cr_digits
17467
17468 ECHO_C= ECHO_N= ECHO_T=
17469 case `echo -n x` in #(((((
17470 -n*)
17471 case `echo 'xy\c'` in
17472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17473 xy) ECHO_C='\c';;
17474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17475 ECHO_T=' ';;
17476 esac;;
17477 *)
17478 ECHO_N='-n';;
17479 esac
17480
17481 rm -f conf$$ conf$$.exe conf$$.file
17482 if test -d conf$$.dir; then
17483 rm -f conf$$.dir/conf$$.file
17484 else
17485 rm -f conf$$.dir
17486 mkdir conf$$.dir 2>/dev/null
17487 fi
17488 if (echo >conf$$.file) 2>/dev/null; then
17489 if ln -s conf$$.file conf$$ 2>/dev/null; then
17490 as_ln_s='ln -s'
17491 # ... but there are two gotchas:
17492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17494 # In both cases, we have to default to `cp -pR'.
17495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17496 as_ln_s='cp -pR'
17497 elif ln conf$$.file conf$$ 2>/dev/null; then
17498 as_ln_s=ln
17499 else
17500 as_ln_s='cp -pR'
17501 fi
17502 else
17503 as_ln_s='cp -pR'
17504 fi
17505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17506 rmdir conf$$.dir 2>/dev/null
17507
17508
17509 # as_fn_mkdir_p
17510 # -------------
17511 # Create "$as_dir" as a directory, including parents if necessary.
17512 as_fn_mkdir_p ()
17513 {
17514
17515 case $as_dir in #(
17516 -*) as_dir=./$as_dir;;
17517 esac
17518 test -d "$as_dir" || eval $as_mkdir_p || {
17519 as_dirs=
17520 while :; do
17521 case $as_dir in #(
17522 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17523 *) as_qdir=$as_dir;;
17524 esac
17525 as_dirs="'$as_qdir' $as_dirs"
17526 as_dir=`$as_dirname -- "$as_dir" ||
17527 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17528 X"$as_dir" : 'X\(//\)[^/]' \| \
17529 X"$as_dir" : 'X\(//\)$' \| \
17530 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17531 $as_echo X"$as_dir" |
17532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17533 s//\1/
17534 q
17535 }
17536 /^X\(\/\/\)[^/].*/{
17537 s//\1/
17538 q
17539 }
17540 /^X\(\/\/\)$/{
17541 s//\1/
17542 q
17543 }
17544 /^X\(\/\).*/{
17545 s//\1/
17546 q
17547 }
17548 s/.*/./; q'`
17549 test -d "$as_dir" && break
17550 done
17551 test -z "$as_dirs" || eval "mkdir $as_dirs"
17552 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17553
17554
17555 } # as_fn_mkdir_p
17556 if mkdir -p . 2>/dev/null; then
17557 as_mkdir_p='mkdir -p "$as_dir"'
17558 else
17559 test -d ./-p && rmdir ./-p
17560 as_mkdir_p=false
17561 fi
17562
17563
17564 # as_fn_executable_p FILE
17565 # -----------------------
17566 # Test if FILE is an executable regular file.
17567 as_fn_executable_p ()
17568 {
17569 test -f "$1" && test -x "$1"
17570 } # as_fn_executable_p
17571 as_test_x='test -x'
17572 as_executable_p=as_fn_executable_p
17573
17574 # Sed expression to map a string onto a valid CPP name.
17575 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17576
17577 # Sed expression to map a string onto a valid variable name.
17578 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17579
17580
17581 exec 6>&1
17582 ## ----------------------------------- ##
17583 ## Main body of $CONFIG_STATUS script. ##
17584 ## ----------------------------------- ##
17585 _ASEOF
17586 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17587
17588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17589 # Save the log message, to keep $0 and so on meaningful, and to
17590 # report actual input values of CONFIG_FILES etc. instead of their
17591 # values after options handling.
17592 ac_log="
17593 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17594 generated by GNU Autoconf 2.69. Invocation command line was
17595
17596 CONFIG_FILES = $CONFIG_FILES
17597 CONFIG_HEADERS = $CONFIG_HEADERS
17598 CONFIG_LINKS = $CONFIG_LINKS
17599 CONFIG_COMMANDS = $CONFIG_COMMANDS
17600 $ $0 $@
17601
17602 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17603 "
17604
17605 _ACEOF
17606
17607 case $ac_config_files in *"
17608 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17609 esac
17610
17611 case $ac_config_headers in *"
17612 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17613 esac
17614
17615
17616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17617 # Files that config.status was made for.
17618 config_files="$ac_config_files"
17619 config_headers="$ac_config_headers"
17620 config_commands="$ac_config_commands"
17621
17622 _ACEOF
17623
17624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17625 ac_cs_usage="\
17626 \`$as_me' instantiates files and other configuration actions
17627 from templates according to the current configuration. Unless the files
17628 and actions are specified as TAGs, all are instantiated by default.
17629
17630 Usage: $0 [OPTION]... [TAG]...
17631
17632 -h, --help print this help, then exit
17633 -V, --version print version number and configuration settings, then exit
17634 --config print configuration, then exit
17635 -q, --quiet, --silent
17636 do not print progress messages
17637 -d, --debug don't remove temporary files
17638 --recheck update $as_me by reconfiguring in the same conditions
17639 --file=FILE[:TEMPLATE]
17640 instantiate the configuration file FILE
17641 --header=FILE[:TEMPLATE]
17642 instantiate the configuration header FILE
17643
17644 Configuration files:
17645 $config_files
17646
17647 Configuration headers:
17648 $config_headers
17649
17650 Configuration commands:
17651 $config_commands
17652
17653 Report bugs to the package provider.
17654 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17655 General help using GNU software: <http://www.gnu.org/gethelp/>."
17656
17657 _ACEOF
17658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17659 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17660 ac_cs_version="\\
17661 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17662 configured by $0, generated by GNU Autoconf 2.69,
17663 with options \\"\$ac_cs_config\\"
17664
17665 Copyright (C) 2012 Free Software Foundation, Inc.
17666 This config.status script is free software; the Free Software Foundation
17667 gives unlimited permission to copy, distribute and modify it."
17668
17669 ac_pwd='$ac_pwd'
17670 srcdir='$srcdir'
17671 INSTALL='$INSTALL'
17672 MKDIR_P='$MKDIR_P'
17673 AWK='$AWK'
17674 test -n "\$AWK" || AWK=awk
17675 _ACEOF
17676
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 # The default lists apply if the user does not specify any file.
17679 ac_need_defaults=:
17680 while test $# != 0
17681 do
17682 case $1 in
17683 --*=?*)
17684 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17685 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17686 ac_shift=:
17687 ;;
17688 --*=)
17689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17690 ac_optarg=
17691 ac_shift=:
17692 ;;
17693 *)
17694 ac_option=$1
17695 ac_optarg=$2
17696 ac_shift=shift
17697 ;;
17698 esac
17699
17700 case $ac_option in
17701 # Handling of the options.
17702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17703 ac_cs_recheck=: ;;
17704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17705 $as_echo "$ac_cs_version"; exit ;;
17706 --config | --confi | --conf | --con | --co | --c )
17707 $as_echo "$ac_cs_config"; exit ;;
17708 --debug | --debu | --deb | --de | --d | -d )
17709 debug=: ;;
17710 --file | --fil | --fi | --f )
17711 $ac_shift
17712 case $ac_optarg in
17713 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17714 '') as_fn_error $? "missing file argument" ;;
17715 esac
17716 as_fn_append CONFIG_FILES " '$ac_optarg'"
17717 ac_need_defaults=false;;
17718 --header | --heade | --head | --hea )
17719 $ac_shift
17720 case $ac_optarg in
17721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17722 esac
17723 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17724 ac_need_defaults=false;;
17725 --he | --h)
17726 # Conflict between --help and --header
17727 as_fn_error $? "ambiguous option: \`$1'
17728 Try \`$0 --help' for more information.";;
17729 --help | --hel | -h )
17730 $as_echo "$ac_cs_usage"; exit ;;
17731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17732 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17733 ac_cs_silent=: ;;
17734
17735 # This is an error.
17736 -*) as_fn_error $? "unrecognized option: \`$1'
17737 Try \`$0 --help' for more information." ;;
17738
17739 *) as_fn_append ac_config_targets " $1"
17740 ac_need_defaults=false ;;
17741
17742 esac
17743 shift
17744 done
17745
17746 ac_configure_extra_args=
17747
17748 if $ac_cs_silent; then
17749 exec 6>/dev/null
17750 ac_configure_extra_args="$ac_configure_extra_args --silent"
17751 fi
17752
17753 _ACEOF
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755 if \$ac_cs_recheck; then
17756 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17757 shift
17758 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17759 CONFIG_SHELL='$SHELL'
17760 export CONFIG_SHELL
17761 exec "\$@"
17762 fi
17763
17764 _ACEOF
17765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17766 exec 5>>config.log
17767 {
17768 echo
17769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17770 ## Running $as_me. ##
17771 _ASBOX
17772 $as_echo "$ac_log"
17773 } >&5
17774
17775 _ACEOF
17776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17777 #
17778 # INIT-COMMANDS
17779 #
17780
17781 srcdir="$srcdir"
17782 host="$host"
17783 target="$target"
17784 with_multisubdir="$with_multisubdir"
17785 with_multisrctop="$with_multisrctop"
17786 with_target_subdir="$with_target_subdir"
17787 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17788 multi_basedir="$multi_basedir"
17789 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17790 CC="$CC"
17791 CXX="$CXX"
17792 GFORTRAN="$GFORTRAN"
17793 GDC="$GDC"
17794 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17795
17796
17797 # The HP-UX ksh and POSIX shell print the target directory to stdout
17798 # if CDPATH is set.
17799 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17800
17801 sed_quote_subst='$sed_quote_subst'
17802 double_quote_subst='$double_quote_subst'
17803 delay_variable_subst='$delay_variable_subst'
17804 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17805 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17806 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17807 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17808 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17809 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17810 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17811 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17812 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17813 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17814 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17815 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17816 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17817 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17818 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17819 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17820 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17821 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17822 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17823 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17824 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17825 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17826 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17827 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17828 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17829 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17830 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17831 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17832 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17833 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17834 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17835 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17836 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17837 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17838 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17839 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17840 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17841 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17842 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17843 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17844 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17845 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17846 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17847 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17848 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17849 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17850 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17851 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17852 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"`'
17853 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17854 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17855 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17856 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17857 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17858 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17859 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17860 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17861 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17862 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17863 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17864 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17865 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17866 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17867 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17868 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17869 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17870 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17871 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17872 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17873 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17874 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17875 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17876 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17877 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17878 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17879 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17880 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17881 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17882 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17883 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17884 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17885 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17886 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17887 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17888 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17889 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17890 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17891 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17892 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17893 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17894 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17895 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17896 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17897 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17898 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17899 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17900 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17901 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17902 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17903 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17904 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17905 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17906 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17907 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17908 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17909 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17910 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17911 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17912 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17913 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17914 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17915 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17916 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17917 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17918 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17919 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17920 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17921 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17922 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17923 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17924 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17925 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17926 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17927 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17928 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17929 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17930 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17931 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17932 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17933 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17934 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17935 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17936 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17937 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17938 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17939 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17940 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17941 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17942 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17943 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17944 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17945 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17946 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17947 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17948 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17949 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17950 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17951 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17952 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17953 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17954 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17955 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17956 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17957 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17958 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17959 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17960 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17961 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17962 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17963 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17964 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17965 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17966 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17967 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17968 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17969 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17970 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17971 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17972 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17973 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17974 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17975 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17976 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17977 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17978 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17979
17980 LTCC='$LTCC'
17981 LTCFLAGS='$LTCFLAGS'
17982 compiler='$compiler_DEFAULT'
17983
17984 # A function that is used when there is no print builtin or printf.
17985 func_fallback_echo ()
17986 {
17987 eval 'cat <<_LTECHO_EOF
17988 \$1
17989 _LTECHO_EOF'
17990 }
17991
17992 # Quote evaled strings.
17993 for var in SHELL \
17994 ECHO \
17995 SED \
17996 GREP \
17997 EGREP \
17998 FGREP \
17999 LD \
18000 NM \
18001 LN_S \
18002 lt_SP2NL \
18003 lt_NL2SP \
18004 reload_flag \
18005 OBJDUMP \
18006 deplibs_check_method \
18007 file_magic_cmd \
18008 AR \
18009 AR_FLAGS \
18010 STRIP \
18011 RANLIB \
18012 CC \
18013 CFLAGS \
18014 compiler \
18015 lt_cv_sys_global_symbol_pipe \
18016 lt_cv_sys_global_symbol_to_cdecl \
18017 lt_cv_sys_global_symbol_to_c_name_address \
18018 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18019 lt_prog_compiler_no_builtin_flag \
18020 lt_prog_compiler_wl \
18021 lt_prog_compiler_pic \
18022 lt_prog_compiler_static \
18023 lt_cv_prog_compiler_c_o \
18024 need_locks \
18025 DSYMUTIL \
18026 NMEDIT \
18027 LIPO \
18028 OTOOL \
18029 OTOOL64 \
18030 shrext_cmds \
18031 export_dynamic_flag_spec \
18032 whole_archive_flag_spec \
18033 compiler_needs_object \
18034 with_gnu_ld \
18035 allow_undefined_flag \
18036 no_undefined_flag \
18037 hardcode_libdir_flag_spec \
18038 hardcode_libdir_flag_spec_ld \
18039 hardcode_libdir_separator \
18040 fix_srcfile_path \
18041 exclude_expsyms \
18042 include_expsyms \
18043 file_list_spec \
18044 variables_saved_for_relink \
18045 libname_spec \
18046 library_names_spec \
18047 soname_spec \
18048 install_override_mode \
18049 finish_eval \
18050 old_striplib \
18051 striplib \
18052 compiler_lib_search_dirs \
18053 predep_objects \
18054 postdep_objects \
18055 predeps \
18056 postdeps \
18057 compiler_lib_search_path \
18058 LD_FC \
18059 reload_flag_FC \
18060 compiler_FC \
18061 lt_prog_compiler_no_builtin_flag_FC \
18062 lt_prog_compiler_wl_FC \
18063 lt_prog_compiler_pic_FC \
18064 lt_prog_compiler_static_FC \
18065 lt_cv_prog_compiler_c_o_FC \
18066 export_dynamic_flag_spec_FC \
18067 whole_archive_flag_spec_FC \
18068 compiler_needs_object_FC \
18069 with_gnu_ld_FC \
18070 allow_undefined_flag_FC \
18071 no_undefined_flag_FC \
18072 hardcode_libdir_flag_spec_FC \
18073 hardcode_libdir_flag_spec_ld_FC \
18074 hardcode_libdir_separator_FC \
18075 fix_srcfile_path_FC \
18076 exclude_expsyms_FC \
18077 include_expsyms_FC \
18078 file_list_spec_FC \
18079 compiler_lib_search_dirs_FC \
18080 predep_objects_FC \
18081 postdep_objects_FC \
18082 predeps_FC \
18083 postdeps_FC \
18084 compiler_lib_search_path_FC; do
18085 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18086 *[\\\\\\\`\\"\\\$]*)
18087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18088 ;;
18089 *)
18090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18091 ;;
18092 esac
18093 done
18094
18095 # Double-quote double-evaled strings.
18096 for var in reload_cmds \
18097 old_postinstall_cmds \
18098 old_postuninstall_cmds \
18099 old_archive_cmds \
18100 extract_expsyms_cmds \
18101 old_archive_from_new_cmds \
18102 old_archive_from_expsyms_cmds \
18103 archive_cmds \
18104 archive_expsym_cmds \
18105 module_cmds \
18106 module_expsym_cmds \
18107 export_symbols_cmds \
18108 prelink_cmds \
18109 postinstall_cmds \
18110 postuninstall_cmds \
18111 finish_cmds \
18112 sys_lib_search_path_spec \
18113 sys_lib_dlsearch_path_spec \
18114 reload_cmds_FC \
18115 old_archive_cmds_FC \
18116 old_archive_from_new_cmds_FC \
18117 old_archive_from_expsyms_cmds_FC \
18118 archive_cmds_FC \
18119 archive_expsym_cmds_FC \
18120 module_cmds_FC \
18121 module_expsym_cmds_FC \
18122 export_symbols_cmds_FC \
18123 prelink_cmds_FC; do
18124 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18125 *[\\\\\\\`\\"\\\$]*)
18126 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18127 ;;
18128 *)
18129 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18130 ;;
18131 esac
18132 done
18133
18134 ac_aux_dir='$ac_aux_dir'
18135 xsi_shell='$xsi_shell'
18136 lt_shell_append='$lt_shell_append'
18137
18138 # See if we are running on zsh, and set the options which allow our
18139 # commands through without removal of \ escapes INIT.
18140 if test -n "\${ZSH_VERSION+set}" ; then
18141 setopt NO_GLOB_SUBST
18142 fi
18143
18144
18145 PACKAGE='$PACKAGE'
18146 VERSION='$VERSION'
18147 TIMESTAMP='$TIMESTAMP'
18148 RM='$RM'
18149 ofile='$ofile'
18150
18151
18152
18153
18154
18155
18156 _ACEOF
18157
18158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18159
18160 # Handling of arguments.
18161 for ac_config_target in $ac_config_targets
18162 do
18163 case $ac_config_target in
18164 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18165 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18166 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18167 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18168 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18169 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18170 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18171 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18172 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18173 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18174 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18175 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18176
18177 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18178 esac
18179 done
18180
18181
18182 # If the user did not use the arguments to specify the items to instantiate,
18183 # then the envvar interface is used. Set only those that are not.
18184 # We use the long form for the default assignment because of an extremely
18185 # bizarre bug on SunOS 4.1.3.
18186 if $ac_need_defaults; then
18187 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18188 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18190 fi
18191
18192 # Have a temporary directory for convenience. Make it in the build tree
18193 # simply because there is no reason against having it here, and in addition,
18194 # creating and moving files from /tmp can sometimes cause problems.
18195 # Hook for its removal unless debugging.
18196 # Note that there is a small window in which the directory will not be cleaned:
18197 # after its creation but before its name has been assigned to `$tmp'.
18198 $debug ||
18199 {
18200 tmp= ac_tmp=
18201 trap 'exit_status=$?
18202 : "${ac_tmp:=$tmp}"
18203 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18204 ' 0
18205 trap 'as_fn_exit 1' 1 2 13 15
18206 }
18207 # Create a (secure) tmp directory for tmp files.
18208
18209 {
18210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18211 test -d "$tmp"
18212 } ||
18213 {
18214 tmp=./conf$$-$RANDOM
18215 (umask 077 && mkdir "$tmp")
18216 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18217 ac_tmp=$tmp
18218
18219 # Set up the scripts for CONFIG_FILES section.
18220 # No need to generate them if there are no CONFIG_FILES.
18221 # This happens for instance with `./config.status config.h'.
18222 if test -n "$CONFIG_FILES"; then
18223
18224
18225 ac_cr=`echo X | tr X '\015'`
18226 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18227 # But we know of no other shell where ac_cr would be empty at this
18228 # point, so we can use a bashism as a fallback.
18229 if test "x$ac_cr" = x; then
18230 eval ac_cr=\$\'\\r\'
18231 fi
18232 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18233 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18234 ac_cs_awk_cr='\\r'
18235 else
18236 ac_cs_awk_cr=$ac_cr
18237 fi
18238
18239 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18240 _ACEOF
18241
18242
18243 {
18244 echo "cat >conf$$subs.awk <<_ACEOF" &&
18245 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18246 echo "_ACEOF"
18247 } >conf$$subs.sh ||
18248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18249 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18250 ac_delim='%!_!# '
18251 for ac_last_try in false false false false false :; do
18252 . ./conf$$subs.sh ||
18253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18254
18255 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18256 if test $ac_delim_n = $ac_delim_num; then
18257 break
18258 elif $ac_last_try; then
18259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18260 else
18261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18262 fi
18263 done
18264 rm -f conf$$subs.sh
18265
18266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18267 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18268 _ACEOF
18269 sed -n '
18270 h
18271 s/^/S["/; s/!.*/"]=/
18272 p
18273 g
18274 s/^[^!]*!//
18275 :repl
18276 t repl
18277 s/'"$ac_delim"'$//
18278 t delim
18279 :nl
18280 h
18281 s/\(.\{148\}\)..*/\1/
18282 t more1
18283 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18284 p
18285 n
18286 b repl
18287 :more1
18288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18289 p
18290 g
18291 s/.\{148\}//
18292 t nl
18293 :delim
18294 h
18295 s/\(.\{148\}\)..*/\1/
18296 t more2
18297 s/["\\]/\\&/g; s/^/"/; s/$/"/
18298 p
18299 b
18300 :more2
18301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18302 p
18303 g
18304 s/.\{148\}//
18305 t delim
18306 ' <conf$$subs.awk | sed '
18307 /^[^""]/{
18308 N
18309 s/\n//
18310 }
18311 ' >>$CONFIG_STATUS || ac_write_fail=1
18312 rm -f conf$$subs.awk
18313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18314 _ACAWK
18315 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18316 for (key in S) S_is_set[key] = 1
18317 FS = "\a"
18318
18319 }
18320 {
18321 line = $ 0
18322 nfields = split(line, field, "@")
18323 substed = 0
18324 len = length(field[1])
18325 for (i = 2; i < nfields; i++) {
18326 key = field[i]
18327 keylen = length(key)
18328 if (S_is_set[key]) {
18329 value = S[key]
18330 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18331 len += length(value) + length(field[++i])
18332 substed = 1
18333 } else
18334 len += 1 + keylen
18335 }
18336
18337 print line
18338 }
18339
18340 _ACAWK
18341 _ACEOF
18342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18343 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18344 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18345 else
18346 cat
18347 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18348 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18349 _ACEOF
18350
18351 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18352 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18353 # trailing colons and then remove the whole line if VPATH becomes empty
18354 # (actually we leave an empty line to preserve line numbers).
18355 if test "x$srcdir" = x.; then
18356 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18357 h
18358 s///
18359 s/^/:/
18360 s/[ ]*$/:/
18361 s/:\$(srcdir):/:/g
18362 s/:\${srcdir}:/:/g
18363 s/:@srcdir@:/:/g
18364 s/^:*//
18365 s/:*$//
18366 x
18367 s/\(=[ ]*\).*/\1/
18368 G
18369 s/\n//
18370 s/^[^=]*=[ ]*$//
18371 }'
18372 fi
18373
18374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18375 fi # test -n "$CONFIG_FILES"
18376
18377 # Set up the scripts for CONFIG_HEADERS section.
18378 # No need to generate them if there are no CONFIG_HEADERS.
18379 # This happens for instance with `./config.status Makefile'.
18380 if test -n "$CONFIG_HEADERS"; then
18381 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18382 BEGIN {
18383 _ACEOF
18384
18385 # Transform confdefs.h into an awk script `defines.awk', embedded as
18386 # here-document in config.status, that substitutes the proper values into
18387 # config.h.in to produce config.h.
18388
18389 # Create a delimiter string that does not exist in confdefs.h, to ease
18390 # handling of long lines.
18391 ac_delim='%!_!# '
18392 for ac_last_try in false false :; do
18393 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18394 if test -z "$ac_tt"; then
18395 break
18396 elif $ac_last_try; then
18397 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18398 else
18399 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18400 fi
18401 done
18402
18403 # For the awk script, D is an array of macro values keyed by name,
18404 # likewise P contains macro parameters if any. Preserve backslash
18405 # newline sequences.
18406
18407 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18408 sed -n '
18409 s/.\{148\}/&'"$ac_delim"'/g
18410 t rset
18411 :rset
18412 s/^[ ]*#[ ]*define[ ][ ]*/ /
18413 t def
18414 d
18415 :def
18416 s/\\$//
18417 t bsnl
18418 s/["\\]/\\&/g
18419 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18420 D["\1"]=" \3"/p
18421 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18422 d
18423 :bsnl
18424 s/["\\]/\\&/g
18425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18426 D["\1"]=" \3\\\\\\n"\\/p
18427 t cont
18428 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18429 t cont
18430 d
18431 :cont
18432 n
18433 s/.\{148\}/&'"$ac_delim"'/g
18434 t clear
18435 :clear
18436 s/\\$//
18437 t bsnlc
18438 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18439 d
18440 :bsnlc
18441 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18442 b cont
18443 ' <confdefs.h | sed '
18444 s/'"$ac_delim"'/"\\\
18445 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18446
18447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18448 for (key in D) D_is_set[key] = 1
18449 FS = "\a"
18450 }
18451 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18452 line = \$ 0
18453 split(line, arg, " ")
18454 if (arg[1] == "#") {
18455 defundef = arg[2]
18456 mac1 = arg[3]
18457 } else {
18458 defundef = substr(arg[1], 2)
18459 mac1 = arg[2]
18460 }
18461 split(mac1, mac2, "(") #)
18462 macro = mac2[1]
18463 prefix = substr(line, 1, index(line, defundef) - 1)
18464 if (D_is_set[macro]) {
18465 # Preserve the white space surrounding the "#".
18466 print prefix "define", macro P[macro] D[macro]
18467 next
18468 } else {
18469 # Replace #undef with comments. This is necessary, for example,
18470 # in the case of _POSIX_SOURCE, which is predefined and required
18471 # on some systems where configure will not decide to define it.
18472 if (defundef == "undef") {
18473 print "/*", prefix defundef, macro, "*/"
18474 next
18475 }
18476 }
18477 }
18478 { print }
18479 _ACAWK
18480 _ACEOF
18481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18482 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18483 fi # test -n "$CONFIG_HEADERS"
18484
18485
18486 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18487 shift
18488 for ac_tag
18489 do
18490 case $ac_tag in
18491 :[FHLC]) ac_mode=$ac_tag; continue;;
18492 esac
18493 case $ac_mode$ac_tag in
18494 :[FHL]*:*);;
18495 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18496 :[FH]-) ac_tag=-:-;;
18497 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18498 esac
18499 ac_save_IFS=$IFS
18500 IFS=:
18501 set x $ac_tag
18502 IFS=$ac_save_IFS
18503 shift
18504 ac_file=$1
18505 shift
18506
18507 case $ac_mode in
18508 :L) ac_source=$1;;
18509 :[FH])
18510 ac_file_inputs=
18511 for ac_f
18512 do
18513 case $ac_f in
18514 -) ac_f="$ac_tmp/stdin";;
18515 *) # Look for the file first in the build tree, then in the source tree
18516 # (if the path is not absolute). The absolute path cannot be DOS-style,
18517 # because $ac_f cannot contain `:'.
18518 test -f "$ac_f" ||
18519 case $ac_f in
18520 [\\/$]*) false;;
18521 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18522 esac ||
18523 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18524 esac
18525 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18526 as_fn_append ac_file_inputs " '$ac_f'"
18527 done
18528
18529 # Let's still pretend it is `configure' which instantiates (i.e., don't
18530 # use $as_me), people would be surprised to read:
18531 # /* config.h. Generated by config.status. */
18532 configure_input='Generated from '`
18533 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18534 `' by configure.'
18535 if test x"$ac_file" != x-; then
18536 configure_input="$ac_file. $configure_input"
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18538 $as_echo "$as_me: creating $ac_file" >&6;}
18539 fi
18540 # Neutralize special characters interpreted by sed in replacement strings.
18541 case $configure_input in #(
18542 *\&* | *\|* | *\\* )
18543 ac_sed_conf_input=`$as_echo "$configure_input" |
18544 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18545 *) ac_sed_conf_input=$configure_input;;
18546 esac
18547
18548 case $ac_tag in
18549 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18550 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18551 esac
18552 ;;
18553 esac
18554
18555 ac_dir=`$as_dirname -- "$ac_file" ||
18556 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18557 X"$ac_file" : 'X\(//\)[^/]' \| \
18558 X"$ac_file" : 'X\(//\)$' \| \
18559 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18560 $as_echo X"$ac_file" |
18561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18562 s//\1/
18563 q
18564 }
18565 /^X\(\/\/\)[^/].*/{
18566 s//\1/
18567 q
18568 }
18569 /^X\(\/\/\)$/{
18570 s//\1/
18571 q
18572 }
18573 /^X\(\/\).*/{
18574 s//\1/
18575 q
18576 }
18577 s/.*/./; q'`
18578 as_dir="$ac_dir"; as_fn_mkdir_p
18579 ac_builddir=.
18580
18581 case "$ac_dir" in
18582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18583 *)
18584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18585 # A ".." for each directory in $ac_dir_suffix.
18586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18587 case $ac_top_builddir_sub in
18588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18590 esac ;;
18591 esac
18592 ac_abs_top_builddir=$ac_pwd
18593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18594 # for backward compatibility:
18595 ac_top_builddir=$ac_top_build_prefix
18596
18597 case $srcdir in
18598 .) # We are building in place.
18599 ac_srcdir=.
18600 ac_top_srcdir=$ac_top_builddir_sub
18601 ac_abs_top_srcdir=$ac_pwd ;;
18602 [\\/]* | ?:[\\/]* ) # Absolute name.
18603 ac_srcdir=$srcdir$ac_dir_suffix;
18604 ac_top_srcdir=$srcdir
18605 ac_abs_top_srcdir=$srcdir ;;
18606 *) # Relative name.
18607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18608 ac_top_srcdir=$ac_top_build_prefix$srcdir
18609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18610 esac
18611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18612
18613
18614 case $ac_mode in
18615 :F)
18616 #
18617 # CONFIG_FILE
18618 #
18619
18620 case $INSTALL in
18621 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18622 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18623 esac
18624 ac_MKDIR_P=$MKDIR_P
18625 case $MKDIR_P in
18626 [\\/$]* | ?:[\\/]* ) ;;
18627 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18628 esac
18629 _ACEOF
18630
18631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18632 # If the template does not know about datarootdir, expand it.
18633 # FIXME: This hack should be removed a few years after 2.60.
18634 ac_datarootdir_hack=; ac_datarootdir_seen=
18635 ac_sed_dataroot='
18636 /datarootdir/ {
18637 p
18638 q
18639 }
18640 /@datadir@/p
18641 /@docdir@/p
18642 /@infodir@/p
18643 /@localedir@/p
18644 /@mandir@/p'
18645 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18646 *datarootdir*) ac_datarootdir_seen=yes;;
18647 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18649 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18650 _ACEOF
18651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18652 ac_datarootdir_hack='
18653 s&@datadir@&$datadir&g
18654 s&@docdir@&$docdir&g
18655 s&@infodir@&$infodir&g
18656 s&@localedir@&$localedir&g
18657 s&@mandir@&$mandir&g
18658 s&\\\${datarootdir}&$datarootdir&g' ;;
18659 esac
18660 _ACEOF
18661
18662 # Neutralize VPATH when `$srcdir' = `.'.
18663 # Shell code in configure.ac might set extrasub.
18664 # FIXME: do we really want to maintain this feature?
18665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18666 ac_sed_extra="$ac_vpsub
18667 $extrasub
18668 _ACEOF
18669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18670 :t
18671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18672 s|@configure_input@|$ac_sed_conf_input|;t t
18673 s&@top_builddir@&$ac_top_builddir_sub&;t t
18674 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18675 s&@srcdir@&$ac_srcdir&;t t
18676 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18677 s&@top_srcdir@&$ac_top_srcdir&;t t
18678 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18679 s&@builddir@&$ac_builddir&;t t
18680 s&@abs_builddir@&$ac_abs_builddir&;t t
18681 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18682 s&@INSTALL@&$ac_INSTALL&;t t
18683 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18684 $ac_datarootdir_hack
18685 "
18686 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18687 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18688
18689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18690 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18691 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18692 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18694 which seems to be undefined. Please make sure it is defined" >&5
18695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18696 which seems to be undefined. Please make sure it is defined" >&2;}
18697
18698 rm -f "$ac_tmp/stdin"
18699 case $ac_file in
18700 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18701 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18702 esac \
18703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18704 ;;
18705 :H)
18706 #
18707 # CONFIG_HEADER
18708 #
18709 if test x"$ac_file" != x-; then
18710 {
18711 $as_echo "/* $configure_input */" \
18712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18713 } >"$ac_tmp/config.h" \
18714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18715 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18717 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18718 else
18719 rm -f "$ac_file"
18720 mv "$ac_tmp/config.h" "$ac_file" \
18721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18722 fi
18723 else
18724 $as_echo "/* $configure_input */" \
18725 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18726 || as_fn_error $? "could not create -" "$LINENO" 5
18727 fi
18728 # Compute "$ac_file"'s index in $config_headers.
18729 _am_arg="$ac_file"
18730 _am_stamp_count=1
18731 for _am_header in $config_headers :; do
18732 case $_am_header in
18733 $_am_arg | $_am_arg:* )
18734 break ;;
18735 * )
18736 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18737 esac
18738 done
18739 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18740 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18741 X"$_am_arg" : 'X\(//\)[^/]' \| \
18742 X"$_am_arg" : 'X\(//\)$' \| \
18743 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18744 $as_echo X"$_am_arg" |
18745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18746 s//\1/
18747 q
18748 }
18749 /^X\(\/\/\)[^/].*/{
18750 s//\1/
18751 q
18752 }
18753 /^X\(\/\/\)$/{
18754 s//\1/
18755 q
18756 }
18757 /^X\(\/\).*/{
18758 s//\1/
18759 q
18760 }
18761 s/.*/./; q'`/stamp-h$_am_stamp_count
18762 ;;
18763
18764 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18765 $as_echo "$as_me: executing $ac_file commands" >&6;}
18766 ;;
18767 esac
18768
18769
18770 case $ac_file$ac_mode in
18771 "default-1":C)
18772 # Only add multilib support code if we just rebuilt the top-level
18773 # Makefile.
18774 case " $CONFIG_FILES " in
18775 *" Makefile "*)
18776 ac_file=Makefile . ${multi_basedir}/config-ml.in
18777 ;;
18778 esac ;;
18779 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18780 # Older Autoconf quotes --file arguments for eval, but not when files
18781 # are listed without --file. Let's play safe and only enable the eval
18782 # if we detect the quoting.
18783 case $CONFIG_FILES in
18784 *\'*) eval set x "$CONFIG_FILES" ;;
18785 *) set x $CONFIG_FILES ;;
18786 esac
18787 shift
18788 for mf
18789 do
18790 # Strip MF so we end up with the name of the file.
18791 mf=`echo "$mf" | sed -e 's/:.*$//'`
18792 # Check whether this is an Automake generated Makefile or not.
18793 # We used to match only the files named 'Makefile.in', but
18794 # some people rename them; so instead we look at the file content.
18795 # Grep'ing the first line is not enough: some people post-process
18796 # each Makefile.in and add a new line on top of each file to say so.
18797 # Grep'ing the whole file is not good either: AIX grep has a line
18798 # limit of 2048, but all sed's we know have understand at least 4000.
18799 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18800 dirpart=`$as_dirname -- "$mf" ||
18801 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18802 X"$mf" : 'X\(//\)[^/]' \| \
18803 X"$mf" : 'X\(//\)$' \| \
18804 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18805 $as_echo X"$mf" |
18806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18807 s//\1/
18808 q
18809 }
18810 /^X\(\/\/\)[^/].*/{
18811 s//\1/
18812 q
18813 }
18814 /^X\(\/\/\)$/{
18815 s//\1/
18816 q
18817 }
18818 /^X\(\/\).*/{
18819 s//\1/
18820 q
18821 }
18822 s/.*/./; q'`
18823 else
18824 continue
18825 fi
18826 # Extract the definition of DEPDIR, am__include, and am__quote
18827 # from the Makefile without running 'make'.
18828 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18829 test -z "$DEPDIR" && continue
18830 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18831 test -z "$am__include" && continue
18832 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18833 # Find all dependency output files, they are included files with
18834 # $(DEPDIR) in their names. We invoke sed twice because it is the
18835 # simplest approach to changing $(DEPDIR) to its actual value in the
18836 # expansion.
18837 for file in `sed -n "
18838 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18839 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18840 # Make sure the directory exists.
18841 test -f "$dirpart/$file" && continue
18842 fdir=`$as_dirname -- "$file" ||
18843 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18844 X"$file" : 'X\(//\)[^/]' \| \
18845 X"$file" : 'X\(//\)$' \| \
18846 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18847 $as_echo X"$file" |
18848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18849 s//\1/
18850 q
18851 }
18852 /^X\(\/\/\)[^/].*/{
18853 s//\1/
18854 q
18855 }
18856 /^X\(\/\/\)$/{
18857 s//\1/
18858 q
18859 }
18860 /^X\(\/\).*/{
18861 s//\1/
18862 q
18863 }
18864 s/.*/./; q'`
18865 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18866 # echo "creating $dirpart/$file"
18867 echo '# dummy' > "$dirpart/$file"
18868 done
18869 done
18870 }
18871 ;;
18872 "libtool":C)
18873
18874 # See if we are running on zsh, and set the options which allow our
18875 # commands through without removal of \ escapes.
18876 if test -n "${ZSH_VERSION+set}" ; then
18877 setopt NO_GLOB_SUBST
18878 fi
18879
18880 cfgfile="${ofile}T"
18881 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18882 $RM "$cfgfile"
18883
18884 cat <<_LT_EOF >> "$cfgfile"
18885 #! $SHELL
18886
18887 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18888 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18890 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18891 #
18892 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18893 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18894 # Written by Gordon Matzigkeit, 1996
18895 #
18896 # This file is part of GNU Libtool.
18897 #
18898 # GNU Libtool is free software; you can redistribute it and/or
18899 # modify it under the terms of the GNU General Public License as
18900 # published by the Free Software Foundation; either version 2 of
18901 # the License, or (at your option) any later version.
18902 #
18903 # As a special exception to the GNU General Public License,
18904 # if you distribute this file as part of a program or library that
18905 # is built using GNU Libtool, you may include this file under the
18906 # same distribution terms that you use for the rest of that program.
18907 #
18908 # GNU Libtool is distributed in the hope that it will be useful,
18909 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18910 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18911 # GNU General Public License for more details.
18912 #
18913 # You should have received a copy of the GNU General Public License
18914 # along with GNU Libtool; see the file COPYING. If not, a copy
18915 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18916 # obtained by writing to the Free Software Foundation, Inc.,
18917 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18918
18919
18920 # The names of the tagged configurations supported by this script.
18921 available_tags="FC "
18922
18923 # ### BEGIN LIBTOOL CONFIG
18924
18925 # Which release of libtool.m4 was used?
18926 macro_version=$macro_version
18927 macro_revision=$macro_revision
18928
18929 # Whether or not to build shared libraries.
18930 build_libtool_libs=$enable_shared
18931
18932 # Whether or not to build static libraries.
18933 build_old_libs=$enable_static
18934
18935 # What type of objects to build.
18936 pic_mode=$pic_mode
18937
18938 # Whether or not to optimize for fast installation.
18939 fast_install=$enable_fast_install
18940
18941 # Shell to use when invoking shell scripts.
18942 SHELL=$lt_SHELL
18943
18944 # An echo program that protects backslashes.
18945 ECHO=$lt_ECHO
18946
18947 # The host system.
18948 host_alias=$host_alias
18949 host=$host
18950 host_os=$host_os
18951
18952 # The build system.
18953 build_alias=$build_alias
18954 build=$build
18955 build_os=$build_os
18956
18957 # A sed program that does not truncate output.
18958 SED=$lt_SED
18959
18960 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18961 Xsed="\$SED -e 1s/^X//"
18962
18963 # A grep program that handles long lines.
18964 GREP=$lt_GREP
18965
18966 # An ERE matcher.
18967 EGREP=$lt_EGREP
18968
18969 # A literal string matcher.
18970 FGREP=$lt_FGREP
18971
18972 # A BSD- or MS-compatible name lister.
18973 NM=$lt_NM
18974
18975 # Whether we need soft or hard links.
18976 LN_S=$lt_LN_S
18977
18978 # What is the maximum length of a command?
18979 max_cmd_len=$max_cmd_len
18980
18981 # Object file suffix (normally "o").
18982 objext=$ac_objext
18983
18984 # Executable file suffix (normally "").
18985 exeext=$exeext
18986
18987 # whether the shell understands "unset".
18988 lt_unset=$lt_unset
18989
18990 # turn spaces into newlines.
18991 SP2NL=$lt_lt_SP2NL
18992
18993 # turn newlines into spaces.
18994 NL2SP=$lt_lt_NL2SP
18995
18996 # An object symbol dumper.
18997 OBJDUMP=$lt_OBJDUMP
18998
18999 # Method to check whether dependent libraries are shared objects.
19000 deplibs_check_method=$lt_deplibs_check_method
19001
19002 # Command to use when deplibs_check_method == "file_magic".
19003 file_magic_cmd=$lt_file_magic_cmd
19004
19005 # The archiver.
19006 AR=$lt_AR
19007 AR_FLAGS=$lt_AR_FLAGS
19008
19009 # A symbol stripping program.
19010 STRIP=$lt_STRIP
19011
19012 # Commands used to install an old-style archive.
19013 RANLIB=$lt_RANLIB
19014 old_postinstall_cmds=$lt_old_postinstall_cmds
19015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19016
19017 # Whether to use a lock for old archive extraction.
19018 lock_old_archive_extraction=$lock_old_archive_extraction
19019
19020 # A C compiler.
19021 LTCC=$lt_CC
19022
19023 # LTCC compiler flags.
19024 LTCFLAGS=$lt_CFLAGS
19025
19026 # Take the output of nm and produce a listing of raw symbols and C names.
19027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19028
19029 # Transform the output of nm in a proper C declaration.
19030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19031
19032 # Transform the output of nm in a C name address pair.
19033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19034
19035 # Transform the output of nm in a C name address pair when lib prefix is needed.
19036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19037
19038 # The name of the directory that contains temporary libtool files.
19039 objdir=$objdir
19040
19041 # Used to examine libraries when file_magic_cmd begins with "file".
19042 MAGIC_CMD=$MAGIC_CMD
19043
19044 # Must we lock files when doing compilation?
19045 need_locks=$lt_need_locks
19046
19047 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19048 DSYMUTIL=$lt_DSYMUTIL
19049
19050 # Tool to change global to local symbols on Mac OS X.
19051 NMEDIT=$lt_NMEDIT
19052
19053 # Tool to manipulate fat objects and archives on Mac OS X.
19054 LIPO=$lt_LIPO
19055
19056 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19057 OTOOL=$lt_OTOOL
19058
19059 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19060 OTOOL64=$lt_OTOOL64
19061
19062 # Old archive suffix (normally "a").
19063 libext=$libext
19064
19065 # Shared library suffix (normally ".so").
19066 shrext_cmds=$lt_shrext_cmds
19067
19068 # The commands to extract the exported symbol list from a shared archive.
19069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19070
19071 # Variables whose values should be saved in libtool wrapper scripts and
19072 # restored at link time.
19073 variables_saved_for_relink=$lt_variables_saved_for_relink
19074
19075 # Do we need the "lib" prefix for modules?
19076 need_lib_prefix=$need_lib_prefix
19077
19078 # Do we need a version for libraries?
19079 need_version=$need_version
19080
19081 # Library versioning type.
19082 version_type=$version_type
19083
19084 # Shared library runtime path variable.
19085 runpath_var=$runpath_var
19086
19087 # Shared library path variable.
19088 shlibpath_var=$shlibpath_var
19089
19090 # Is shlibpath searched before the hard-coded library search path?
19091 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19092
19093 # Format of library name prefix.
19094 libname_spec=$lt_libname_spec
19095
19096 # List of archive names. First name is the real one, the rest are links.
19097 # The last name is the one that the linker finds with -lNAME
19098 library_names_spec=$lt_library_names_spec
19099
19100 # The coded name of the library, if different from the real name.
19101 soname_spec=$lt_soname_spec
19102
19103 # Permission mode override for installation of shared libraries.
19104 install_override_mode=$lt_install_override_mode
19105
19106 # Command to use after installation of a shared archive.
19107 postinstall_cmds=$lt_postinstall_cmds
19108
19109 # Command to use after uninstallation of a shared archive.
19110 postuninstall_cmds=$lt_postuninstall_cmds
19111
19112 # Commands used to finish a libtool library installation in a directory.
19113 finish_cmds=$lt_finish_cmds
19114
19115 # As "finish_cmds", except a single script fragment to be evaled but
19116 # not shown.
19117 finish_eval=$lt_finish_eval
19118
19119 # Whether we should hardcode library paths into libraries.
19120 hardcode_into_libs=$hardcode_into_libs
19121
19122 # Compile-time system search path for libraries.
19123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19124
19125 # Run-time system search path for libraries.
19126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19127
19128 # Whether dlopen is supported.
19129 dlopen_support=$enable_dlopen
19130
19131 # Whether dlopen of programs is supported.
19132 dlopen_self=$enable_dlopen_self
19133
19134 # Whether dlopen of statically linked programs is supported.
19135 dlopen_self_static=$enable_dlopen_self_static
19136
19137 # Commands to strip libraries.
19138 old_striplib=$lt_old_striplib
19139 striplib=$lt_striplib
19140
19141
19142 # The linker used to build libraries.
19143 LD=$lt_LD
19144
19145 # How to create reloadable object files.
19146 reload_flag=$lt_reload_flag
19147 reload_cmds=$lt_reload_cmds
19148
19149 # Commands used to build an old-style archive.
19150 old_archive_cmds=$lt_old_archive_cmds
19151
19152 # A language specific compiler.
19153 CC=$lt_compiler
19154
19155 # Is the compiler the GNU compiler?
19156 with_gcc=$GCC
19157
19158 # Compiler flag to turn off builtin functions.
19159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19160
19161 # How to pass a linker flag through the compiler.
19162 wl=$lt_lt_prog_compiler_wl
19163
19164 # Additional compiler flags for building library objects.
19165 pic_flag=$lt_lt_prog_compiler_pic
19166
19167 # Compiler flag to prevent dynamic linking.
19168 link_static_flag=$lt_lt_prog_compiler_static
19169
19170 # Does compiler simultaneously support -c and -o options?
19171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19172
19173 # Whether or not to add -lc for building shared libraries.
19174 build_libtool_need_lc=$archive_cmds_need_lc
19175
19176 # Whether or not to disallow shared libs when runtime libs are static.
19177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19178
19179 # Compiler flag to allow reflexive dlopens.
19180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19181
19182 # Compiler flag to generate shared objects directly from archives.
19183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19184
19185 # Whether the compiler copes with passing no objects directly.
19186 compiler_needs_object=$lt_compiler_needs_object
19187
19188 # Create an old-style archive from a shared archive.
19189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19190
19191 # Create a temporary old-style archive to link instead of a shared archive.
19192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19193
19194 # Commands used to build a shared archive.
19195 archive_cmds=$lt_archive_cmds
19196 archive_expsym_cmds=$lt_archive_expsym_cmds
19197
19198 # Commands used to build a loadable module if different from building
19199 # a shared archive.
19200 module_cmds=$lt_module_cmds
19201 module_expsym_cmds=$lt_module_expsym_cmds
19202
19203 # Whether we are building with GNU ld or not.
19204 with_gnu_ld=$lt_with_gnu_ld
19205
19206 # Flag that allows shared libraries with undefined symbols to be built.
19207 allow_undefined_flag=$lt_allow_undefined_flag
19208
19209 # Flag that enforces no undefined symbols.
19210 no_undefined_flag=$lt_no_undefined_flag
19211
19212 # Flag to hardcode \$libdir into a binary during linking.
19213 # This must work even if \$libdir does not exist
19214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19215
19216 # If ld is used when linking, flag to hardcode \$libdir into a binary
19217 # during linking. This must work even if \$libdir does not exist.
19218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19219
19220 # Whether we need a single "-rpath" flag with a separated argument.
19221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19222
19223 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19224 # DIR into the resulting binary.
19225 hardcode_direct=$hardcode_direct
19226
19227 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19228 # DIR into the resulting binary and the resulting library dependency is
19229 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19230 # library is relocated.
19231 hardcode_direct_absolute=$hardcode_direct_absolute
19232
19233 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19234 # into the resulting binary.
19235 hardcode_minus_L=$hardcode_minus_L
19236
19237 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19238 # into the resulting binary.
19239 hardcode_shlibpath_var=$hardcode_shlibpath_var
19240
19241 # Set to "yes" if building a shared library automatically hardcodes DIR
19242 # into the library and all subsequent libraries and executables linked
19243 # against it.
19244 hardcode_automatic=$hardcode_automatic
19245
19246 # Set to yes if linker adds runtime paths of dependent libraries
19247 # to runtime path list.
19248 inherit_rpath=$inherit_rpath
19249
19250 # Whether libtool must link a program against all its dependency libraries.
19251 link_all_deplibs=$link_all_deplibs
19252
19253 # Fix the shell variable \$srcfile for the compiler.
19254 fix_srcfile_path=$lt_fix_srcfile_path
19255
19256 # Set to "yes" if exported symbols are required.
19257 always_export_symbols=$always_export_symbols
19258
19259 # The commands to list exported symbols.
19260 export_symbols_cmds=$lt_export_symbols_cmds
19261
19262 # Symbols that should not be listed in the preloaded symbols.
19263 exclude_expsyms=$lt_exclude_expsyms
19264
19265 # Symbols that must always be exported.
19266 include_expsyms=$lt_include_expsyms
19267
19268 # Commands necessary for linking programs (against libraries) with templates.
19269 prelink_cmds=$lt_prelink_cmds
19270
19271 # Specify filename containing input files.
19272 file_list_spec=$lt_file_list_spec
19273
19274 # How to hardcode a shared library path into an executable.
19275 hardcode_action=$hardcode_action
19276
19277 # The directories searched by this compiler when creating a shared library.
19278 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19279
19280 # Dependencies to place before and after the objects being linked to
19281 # create a shared library.
19282 predep_objects=$lt_predep_objects
19283 postdep_objects=$lt_postdep_objects
19284 predeps=$lt_predeps
19285 postdeps=$lt_postdeps
19286
19287 # The library search path used internally by the compiler when linking
19288 # a shared library.
19289 compiler_lib_search_path=$lt_compiler_lib_search_path
19290
19291 # ### END LIBTOOL CONFIG
19292
19293 _LT_EOF
19294
19295 case $host_os in
19296 aix3*)
19297 cat <<\_LT_EOF >> "$cfgfile"
19298 # AIX sometimes has problems with the GCC collect2 program. For some
19299 # reason, if we set the COLLECT_NAMES environment variable, the problems
19300 # vanish in a puff of smoke.
19301 if test "X${COLLECT_NAMES+set}" != Xset; then
19302 COLLECT_NAMES=
19303 export COLLECT_NAMES
19304 fi
19305 _LT_EOF
19306 ;;
19307 esac
19308
19309
19310 ltmain="$ac_aux_dir/ltmain.sh"
19311
19312
19313 # We use sed instead of cat because bash on DJGPP gets confused if
19314 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19315 # text mode, it properly converts lines to CR/LF. This bash problem
19316 # is reportedly fixed, but why not run on old versions too?
19317 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19318 || (rm -f "$cfgfile"; exit 1)
19319
19320 case $xsi_shell in
19321 yes)
19322 cat << \_LT_EOF >> "$cfgfile"
19323
19324 # func_dirname file append nondir_replacement
19325 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19326 # otherwise set result to NONDIR_REPLACEMENT.
19327 func_dirname ()
19328 {
19329 case ${1} in
19330 */*) func_dirname_result="${1%/*}${2}" ;;
19331 * ) func_dirname_result="${3}" ;;
19332 esac
19333 }
19334
19335 # func_basename file
19336 func_basename ()
19337 {
19338 func_basename_result="${1##*/}"
19339 }
19340
19341 # func_dirname_and_basename file append nondir_replacement
19342 # perform func_basename and func_dirname in a single function
19343 # call:
19344 # dirname: Compute the dirname of FILE. If nonempty,
19345 # add APPEND to the result, otherwise set result
19346 # to NONDIR_REPLACEMENT.
19347 # value returned in "$func_dirname_result"
19348 # basename: Compute filename of FILE.
19349 # value retuned in "$func_basename_result"
19350 # Implementation must be kept synchronized with func_dirname
19351 # and func_basename. For efficiency, we do not delegate to
19352 # those functions but instead duplicate the functionality here.
19353 func_dirname_and_basename ()
19354 {
19355 case ${1} in
19356 */*) func_dirname_result="${1%/*}${2}" ;;
19357 * ) func_dirname_result="${3}" ;;
19358 esac
19359 func_basename_result="${1##*/}"
19360 }
19361
19362 # func_stripname prefix suffix name
19363 # strip PREFIX and SUFFIX off of NAME.
19364 # PREFIX and SUFFIX must not contain globbing or regex special
19365 # characters, hashes, percent signs, but SUFFIX may contain a leading
19366 # dot (in which case that matches only a dot).
19367 func_stripname ()
19368 {
19369 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19370 # positional parameters, so assign one to ordinary parameter first.
19371 func_stripname_result=${3}
19372 func_stripname_result=${func_stripname_result#"${1}"}
19373 func_stripname_result=${func_stripname_result%"${2}"}
19374 }
19375
19376 # func_opt_split
19377 func_opt_split ()
19378 {
19379 func_opt_split_opt=${1%%=*}
19380 func_opt_split_arg=${1#*=}
19381 }
19382
19383 # func_lo2o object
19384 func_lo2o ()
19385 {
19386 case ${1} in
19387 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19388 *) func_lo2o_result=${1} ;;
19389 esac
19390 }
19391
19392 # func_xform libobj-or-source
19393 func_xform ()
19394 {
19395 func_xform_result=${1%.*}.lo
19396 }
19397
19398 # func_arith arithmetic-term...
19399 func_arith ()
19400 {
19401 func_arith_result=$(( $* ))
19402 }
19403
19404 # func_len string
19405 # STRING may not start with a hyphen.
19406 func_len ()
19407 {
19408 func_len_result=${#1}
19409 }
19410
19411 _LT_EOF
19412 ;;
19413 *) # Bourne compatible functions.
19414 cat << \_LT_EOF >> "$cfgfile"
19415
19416 # func_dirname file append nondir_replacement
19417 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19418 # otherwise set result to NONDIR_REPLACEMENT.
19419 func_dirname ()
19420 {
19421 # Extract subdirectory from the argument.
19422 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19423 if test "X$func_dirname_result" = "X${1}"; then
19424 func_dirname_result="${3}"
19425 else
19426 func_dirname_result="$func_dirname_result${2}"
19427 fi
19428 }
19429
19430 # func_basename file
19431 func_basename ()
19432 {
19433 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19434 }
19435
19436
19437 # func_stripname prefix suffix name
19438 # strip PREFIX and SUFFIX off of NAME.
19439 # PREFIX and SUFFIX must not contain globbing or regex special
19440 # characters, hashes, percent signs, but SUFFIX may contain a leading
19441 # dot (in which case that matches only a dot).
19442 # func_strip_suffix prefix name
19443 func_stripname ()
19444 {
19445 case ${2} in
19446 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19447 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19448 esac
19449 }
19450
19451 # sed scripts:
19452 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19453 my_sed_long_arg='1s/^-[^=]*=//'
19454
19455 # func_opt_split
19456 func_opt_split ()
19457 {
19458 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19459 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19460 }
19461
19462 # func_lo2o object
19463 func_lo2o ()
19464 {
19465 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19466 }
19467
19468 # func_xform libobj-or-source
19469 func_xform ()
19470 {
19471 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19472 }
19473
19474 # func_arith arithmetic-term...
19475 func_arith ()
19476 {
19477 func_arith_result=`expr "$@"`
19478 }
19479
19480 # func_len string
19481 # STRING may not start with a hyphen.
19482 func_len ()
19483 {
19484 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19485 }
19486
19487 _LT_EOF
19488 esac
19489
19490 case $lt_shell_append in
19491 yes)
19492 cat << \_LT_EOF >> "$cfgfile"
19493
19494 # func_append var value
19495 # Append VALUE to the end of shell variable VAR.
19496 func_append ()
19497 {
19498 eval "$1+=\$2"
19499 }
19500 _LT_EOF
19501 ;;
19502 *)
19503 cat << \_LT_EOF >> "$cfgfile"
19504
19505 # func_append var value
19506 # Append VALUE to the end of shell variable VAR.
19507 func_append ()
19508 {
19509 eval "$1=\$$1\$2"
19510 }
19511
19512 _LT_EOF
19513 ;;
19514 esac
19515
19516
19517 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19518 || (rm -f "$cfgfile"; exit 1)
19519
19520 mv -f "$cfgfile" "$ofile" ||
19521 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19522 chmod +x "$ofile"
19523
19524
19525 cat <<_LT_EOF >> "$ofile"
19526
19527 # ### BEGIN LIBTOOL TAG CONFIG: FC
19528
19529 # The linker used to build libraries.
19530 LD=$lt_LD_FC
19531
19532 # How to create reloadable object files.
19533 reload_flag=$lt_reload_flag_FC
19534 reload_cmds=$lt_reload_cmds_FC
19535
19536 # Commands used to build an old-style archive.
19537 old_archive_cmds=$lt_old_archive_cmds_FC
19538
19539 # A language specific compiler.
19540 CC=$lt_compiler_FC
19541
19542 # Is the compiler the GNU compiler?
19543 with_gcc=$GCC_FC
19544
19545 # Compiler flag to turn off builtin functions.
19546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19547
19548 # How to pass a linker flag through the compiler.
19549 wl=$lt_lt_prog_compiler_wl_FC
19550
19551 # Additional compiler flags for building library objects.
19552 pic_flag=$lt_lt_prog_compiler_pic_FC
19553
19554 # Compiler flag to prevent dynamic linking.
19555 link_static_flag=$lt_lt_prog_compiler_static_FC
19556
19557 # Does compiler simultaneously support -c and -o options?
19558 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19559
19560 # Whether or not to add -lc for building shared libraries.
19561 build_libtool_need_lc=$archive_cmds_need_lc_FC
19562
19563 # Whether or not to disallow shared libs when runtime libs are static.
19564 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19565
19566 # Compiler flag to allow reflexive dlopens.
19567 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19568
19569 # Compiler flag to generate shared objects directly from archives.
19570 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19571
19572 # Whether the compiler copes with passing no objects directly.
19573 compiler_needs_object=$lt_compiler_needs_object_FC
19574
19575 # Create an old-style archive from a shared archive.
19576 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19577
19578 # Create a temporary old-style archive to link instead of a shared archive.
19579 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19580
19581 # Commands used to build a shared archive.
19582 archive_cmds=$lt_archive_cmds_FC
19583 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19584
19585 # Commands used to build a loadable module if different from building
19586 # a shared archive.
19587 module_cmds=$lt_module_cmds_FC
19588 module_expsym_cmds=$lt_module_expsym_cmds_FC
19589
19590 # Whether we are building with GNU ld or not.
19591 with_gnu_ld=$lt_with_gnu_ld_FC
19592
19593 # Flag that allows shared libraries with undefined symbols to be built.
19594 allow_undefined_flag=$lt_allow_undefined_flag_FC
19595
19596 # Flag that enforces no undefined symbols.
19597 no_undefined_flag=$lt_no_undefined_flag_FC
19598
19599 # Flag to hardcode \$libdir into a binary during linking.
19600 # This must work even if \$libdir does not exist
19601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19602
19603 # If ld is used when linking, flag to hardcode \$libdir into a binary
19604 # during linking. This must work even if \$libdir does not exist.
19605 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19606
19607 # Whether we need a single "-rpath" flag with a separated argument.
19608 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19609
19610 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19611 # DIR into the resulting binary.
19612 hardcode_direct=$hardcode_direct_FC
19613
19614 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19615 # DIR into the resulting binary and the resulting library dependency is
19616 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19617 # library is relocated.
19618 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19619
19620 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19621 # into the resulting binary.
19622 hardcode_minus_L=$hardcode_minus_L_FC
19623
19624 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19625 # into the resulting binary.
19626 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19627
19628 # Set to "yes" if building a shared library automatically hardcodes DIR
19629 # into the library and all subsequent libraries and executables linked
19630 # against it.
19631 hardcode_automatic=$hardcode_automatic_FC
19632
19633 # Set to yes if linker adds runtime paths of dependent libraries
19634 # to runtime path list.
19635 inherit_rpath=$inherit_rpath_FC
19636
19637 # Whether libtool must link a program against all its dependency libraries.
19638 link_all_deplibs=$link_all_deplibs_FC
19639
19640 # Fix the shell variable \$srcfile for the compiler.
19641 fix_srcfile_path=$lt_fix_srcfile_path_FC
19642
19643 # Set to "yes" if exported symbols are required.
19644 always_export_symbols=$always_export_symbols_FC
19645
19646 # The commands to list exported symbols.
19647 export_symbols_cmds=$lt_export_symbols_cmds_FC
19648
19649 # Symbols that should not be listed in the preloaded symbols.
19650 exclude_expsyms=$lt_exclude_expsyms_FC
19651
19652 # Symbols that must always be exported.
19653 include_expsyms=$lt_include_expsyms_FC
19654
19655 # Commands necessary for linking programs (against libraries) with templates.
19656 prelink_cmds=$lt_prelink_cmds_FC
19657
19658 # Specify filename containing input files.
19659 file_list_spec=$lt_file_list_spec_FC
19660
19661 # How to hardcode a shared library path into an executable.
19662 hardcode_action=$hardcode_action_FC
19663
19664 # The directories searched by this compiler when creating a shared library.
19665 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19666
19667 # Dependencies to place before and after the objects being linked to
19668 # create a shared library.
19669 predep_objects=$lt_predep_objects_FC
19670 postdep_objects=$lt_postdep_objects_FC
19671 predeps=$lt_predeps_FC
19672 postdeps=$lt_postdeps_FC
19673
19674 # The library search path used internally by the compiler when linking
19675 # a shared library.
19676 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19677
19678 # ### END LIBTOOL TAG CONFIG: FC
19679 _LT_EOF
19680
19681 ;;
19682
19683 esac
19684 done # for ac_tag
19685
19686
19687 as_fn_exit 0
19688 _ACEOF
19689 ac_clean_files=$ac_clean_files_save
19690
19691 test $ac_write_fail = 0 ||
19692 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19693
19694
19695 # configure is writing to config.log, and then calls config.status.
19696 # config.status does its own redirection, appending to config.log.
19697 # Unfortunately, on DOS this fails, as config.log is still kept open
19698 # by configure, so config.status won't be able to write to it; its
19699 # output is simply discarded. So we exec the FD to /dev/null,
19700 # effectively closing config.log, so it can be properly (re)opened and
19701 # appended to by config.status. When coming back to configure, we
19702 # need to make the FD available again.
19703 if test "$no_create" != yes; then
19704 ac_cs_success=:
19705 ac_config_status_args=
19706 test "$silent" = yes &&
19707 ac_config_status_args="$ac_config_status_args --quiet"
19708 exec 5>/dev/null
19709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19710 exec 5>>config.log
19711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19712 # would make configure fail if this is the last instruction.
19713 $ac_cs_success || as_fn_exit 1
19714 fi
19715 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19717 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19718 fi
19719