]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/configure
c58d6a01231c25131066a01fa70d0bf76d4823fa
[thirdparty/gcc.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME='libgomp'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_header_list=
632 ac_func_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 get_gcc_base_ver
638 OMP_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_HSA_FALSE
666 PLUGIN_HSA_TRUE
667 PLUGIN_NVPTX_FALSE
668 PLUGIN_NVPTX_TRUE
669 offload_additional_lib_paths
670 offload_additional_options
671 offload_targets
672 offload_plugins
673 PLUGIN_HSA_LIBS
674 PLUGIN_HSA_LDFLAGS
675 PLUGIN_HSA_CPPFLAGS
676 PLUGIN_HSA
677 HSA_RUNTIME_LIB
678 HSA_RUNTIME_INCLUDE
679 PLUGIN_NVPTX_LIBS
680 PLUGIN_NVPTX_LDFLAGS
681 PLUGIN_NVPTX_CPPFLAGS
682 PLUGIN_NVPTX
683 CUDA_DRIVER_LIB
684 CUDA_DRIVER_INCLUDE
685 libtool_VERSION
686 ac_ct_FC
687 FCFLAGS
688 FC
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 enable_static
693 enable_shared
694 lt_host_flags
695 CPP
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 OBJDUMP
702 LN_S
703 NM
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 EGREP
709 GREP
710 SED
711 LIBTOOL
712 BUILD_INFO_FALSE
713 BUILD_INFO_TRUE
714 PERL
715 RANLIB
716 AR
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 toolexeclibdir
735 toolexecdir
736 multi_basedir
737 AM_BACKSLASH
738 AM_DEFAULT_VERBOSITY
739 AM_DEFAULT_V
740 AM_V
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
746 AWK
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_os
765 target_vendor
766 target_cpu
767 target
768 host_os
769 host_vendor
770 host_cpu
771 host
772 build_os
773 build_vendor
774 build_cpu
775 build
776 GENINSRC_FALSE
777 GENINSRC_TRUE
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_version_specific_runtime_libs
820 enable_generated_files_in_srcdir
821 enable_silent_rules
822 enable_multilib
823 enable_dependency_tracking
824 enable_shared
825 enable_static
826 with_pic
827 enable_fast_install
828 with_gnu_ld
829 enable_libtool_lock
830 enable_maintainer_mode
831 with_cuda_driver
832 with_cuda_driver_include
833 with_cuda_driver_lib
834 with_hsa_runtime
835 with_hsa_runtime_include
836 with_hsa_runtime_lib
837 enable_linux_futex
838 enable_tls
839 enable_symvers
840 enable_cet
841 with_gcc_major_version_only
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CPP
847 CPPFLAGS
848 FC
849 FCFLAGS
850 LDFLAGS
851 LIBS'
852
853
854 # Initialize some variables set by options.
855 ac_init_help=
856 ac_init_version=false
857 ac_unrecognized_opts=
858 ac_unrecognized_sep=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
861 cache_file=/dev/null
862 exec_prefix=NONE
863 no_create=
864 no_recursion=
865 prefix=NONE
866 program_prefix=NONE
867 program_suffix=NONE
868 program_transform_name=s,x,x,
869 silent=
870 site=
871 srcdir=
872 verbose=
873 x_includes=NONE
874 x_libraries=NONE
875
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
894 htmldir='${docdir}'
895 dvidir='${docdir}'
896 pdfdir='${docdir}'
897 psdir='${docdir}'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
901
902 ac_prev=
903 ac_dashdash=
904 for ac_option
905 do
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
909 ac_prev=
910 continue
911 fi
912
913 case $ac_option in
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *=) ac_optarg= ;;
916 *) ac_optarg=yes ;;
917 esac
918
919 # Accept the important Cygnus configure options, so we can diagnose typos.
920
921 case $ac_dashdash$ac_option in
922 --)
923 ac_dashdash=yes ;;
924
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 bindir=$ac_optarg ;;
929
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
934
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
941
942 --config-cache | -C)
943 cache_file=config.cache ;;
944
945 -datadir | --datadir | --datadi | --datad)
946 ac_prev=datadir ;;
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
949
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
956
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
972
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
977
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
982
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=\$ac_optarg ;;
998
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1007
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1011
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1018
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1023
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1029
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1036
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1041
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1046
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1053
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1058
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1065
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1070
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1074
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1078
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1082
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1091
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1096
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1103
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1110
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1127
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1132
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1137
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1186
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1202
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257 ;;
1258
1259 esac
1260 done
1261
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1265 fi
1266
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1273 fi
1274
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1280 do
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1356 fi
1357 else
1358 ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1446
1447 cat <<\_ACEOF
1448
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-version-specific-runtime-libs
1472 Specify that runtime libraries should be installed
1473 in a compiler-specific directory [default=no]
1474 --enable-generated-files-in-srcdir
1475 put copies of generated files in source dir intended
1476 for creating source tarballs for users without
1477 texinfo bison or flex. [default=no]
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-multilib build many library versions (default)
1481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-linux-futex use the Linux futex system call [default=default]
1494 --enable-tls Use thread-local storage [default=yes]
1495 --enable-symvers=STYLE enables symbol versioning of the shared library
1496 [default=yes]
1497 --enable-cet enable Intel CET in target libraries [default=no]
1498
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1506 package. Equivalent to
1507 --with-cuda-driver-include=PATH/include plus
1508 --with-cuda-driver-lib=PATH/lib
1509 --with-cuda-driver-include=PATH
1510 specify directory for installed CUDA driver include
1511 files
1512 --with-cuda-driver-lib=PATH
1513 specify directory for the installed CUDA driver
1514 library
1515 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1516 package. Equivalent to
1517 --with-hsa-runtime-include=PATH/include plus
1518 --with-hsa-runtime-lib=PATH/lib
1519 --with-hsa-runtime-include=PATH
1520 specify directory for installed HSA run-time include
1521 files
1522 --with-hsa-runtime-lib=PATH
1523 specify directory for the installed HSA run-time
1524 library
1525 --with-gcc-major-version-only
1526 use only GCC major number in filesystem paths
1527
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 CPP C preprocessor
1537 FC Fortran compiler command
1538 FCFLAGS Fortran compiler flags
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to the package provider.
1544 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1545 General help using GNU software: <http://www.gnu.org/gethelp/>.
1546 _ACEOF
1547 ac_status=$?
1548 fi
1549
1550 if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553 test -d "$ac_dir" ||
1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 continue
1556 ac_builddir=.
1557
1558 case "$ac_dir" in
1559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *)
1561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562 # A ".." for each directory in $ac_dir_suffix.
1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564 case $ac_top_builddir_sub in
1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 esac ;;
1568 esac
1569 ac_abs_top_builddir=$ac_pwd
1570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571 # for backward compatibility:
1572 ac_top_builddir=$ac_top_build_prefix
1573
1574 case $srcdir in
1575 .) # We are building in place.
1576 ac_srcdir=.
1577 ac_top_srcdir=$ac_top_builddir_sub
1578 ac_abs_top_srcdir=$ac_pwd ;;
1579 [\\/]* | ?:[\\/]* ) # Absolute name.
1580 ac_srcdir=$srcdir$ac_dir_suffix;
1581 ac_top_srcdir=$srcdir
1582 ac_abs_top_srcdir=$srcdir ;;
1583 *) # Relative name.
1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585 ac_top_srcdir=$ac_top_build_prefix$srcdir
1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 esac
1588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589
1590 cd "$ac_dir" || { ac_status=$?; continue; }
1591 # Check for guested configure.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure" --help=recursive
1598 else
1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 fi || ac_status=$?
1601 cd "$ac_pwd" || { ac_status=$?; break; }
1602 done
1603 fi
1604
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1607 cat <<\_ACEOF
1608 GNU Offloading and Multi Processing Runtime Library configure 1.0
1609 generated by GNU Autoconf 2.69
1610
1611 Copyright (C) 2012 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615 exit
1616 fi
1617
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1621
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654 fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_compile
1659
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_link
1705
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 eval "$3=yes"
1725 else
1726 eval "$3=no"
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 fi
1730 eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735 } # ac_fn_c_check_header_compile
1736
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_cpp ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i && {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768 fi
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_cpp
1773
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1778 ac_fn_c_try_run ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=$ac_status
1809 fi
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_run
1815
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1832
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1837
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1843
1844 #undef $2
1845
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1859
1860 int
1861 main ()
1862 {
1863 return $2 ();
1864 ;
1865 return 0;
1866 }
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_func
1882
1883 # ac_fn_fc_try_compile LINENO
1884 # ---------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_fc_try_compile ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_fc_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1
1915 fi
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1918
1919 } # ac_fn_fc_try_compile
1920
1921 # ac_fn_fc_try_link LINENO
1922 # ------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_fc_try_link ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1941 fi
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_fc_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 test -x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_retval=1
1956 fi
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1964
1965 } # ac_fn_fc_try_link
1966
1967 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1971 # accordingly.
1972 ac_fn_c_check_header_mongrel ()
1973 {
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if eval \${$3+:} false; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1980 fi
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 else
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 $4
1991 #include <$2>
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_header_compiler=yes
1995 else
1996 ac_header_compiler=no
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2001
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_c_try_cpp "$LINENO"; then :
2010 ac_header_preproc=yes
2011 else
2012 ac_header_preproc=no
2013 fi
2014 rm -f conftest.err conftest.i conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2017
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2020 yes:no: )
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 ;;
2026 no:yes:* )
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 ;;
2038 esac
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 eval "$3=\$ac_header_compiler"
2045 fi
2046 eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 fi
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_check_header_mongrel
2053
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2059 {
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 eval "$3=no"
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 $4
2070 int
2071 main ()
2072 {
2073 if (sizeof ($2))
2074 return 0;
2075 ;
2076 return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 int
2084 main ()
2085 {
2086 if (sizeof (($2)))
2087 return 0;
2088 ;
2089 return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093
2094 else
2095 eval "$3=yes"
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106 } # ac_fn_c_check_type
2107
2108 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 # --------------------------------------------
2110 # Tries to find the compile-time value of EXPR in a program that includes
2111 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2112 # computed
2113 ac_fn_c_compute_int ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) >= 0)];
2125 test_array [0] = 0;
2126 return test_array [0];
2127
2128 ;
2129 return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=0 ac_mid=0
2134 while :; do
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $4
2138 int
2139 main ()
2140 {
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 test_array [0] = 0;
2143 return test_array [0];
2144
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid; break
2151 else
2152 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2153 if test $ac_lo -le $ac_mid; then
2154 ac_lo= ac_hi=
2155 break
2156 fi
2157 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2164 $4
2165 int
2166 main ()
2167 {
2168 static int test_array [1 - 2 * !(($2) < 0)];
2169 test_array [0] = 0;
2170 return test_array [0];
2171
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_hi=-1 ac_mid=-1
2178 while :; do
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $4
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186 test_array [0] = 0;
2187 return test_array [0];
2188
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_lo=$ac_mid; break
2195 else
2196 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2197 if test $ac_mid -le $ac_hi; then
2198 ac_lo= ac_hi=
2199 break
2200 fi
2201 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 done
2205 else
2206 ac_lo= ac_hi=
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 # Binary search between lo and hi bounds.
2212 while test "x$ac_lo" != "x$ac_hi"; do
2213 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 $4
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 test_array [0] = 0;
2222 return test_array [0];
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_hi=$ac_mid
2230 else
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 case $ac_lo in #((
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237 '') ac_retval=1 ;;
2238 esac
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 $4
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2245 #include <stdio.h>
2246 #include <stdlib.h>
2247 int
2248 main ()
2249 {
2250
2251 FILE *f = fopen ("conftest.val", "w");
2252 if (! f)
2253 return 1;
2254 if (($2) < 0)
2255 {
2256 long int i = longval ();
2257 if (i != ($2))
2258 return 1;
2259 fprintf (f, "%ld", i);
2260 }
2261 else
2262 {
2263 unsigned long int i = ulongval ();
2264 if (i != ($2))
2265 return 1;
2266 fprintf (f, "%lu", i);
2267 }
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
2271
2272 ;
2273 return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278 else
2279 ac_retval=1
2280 fi
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2283 rm -f conftest.val
2284
2285 fi
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2288
2289 } # ac_fn_c_compute_int
2290 cat >config.log <<_ACEOF
2291 This file contains any messages produced by compilers while
2292 running configure, to aid debugging if configure makes a mistake.
2293
2294 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2295 generated by GNU Autoconf 2.69. Invocation command line was
2296
2297 $ $0 $@
2298
2299 _ACEOF
2300 exec 5>>config.log
2301 {
2302 cat <<_ASUNAME
2303 ## --------- ##
2304 ## Platform. ##
2305 ## --------- ##
2306
2307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2312
2313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2315
2316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2323
2324 _ASUNAME
2325
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 $as_echo "PATH: $as_dir"
2332 done
2333 IFS=$as_save_IFS
2334
2335 } >&5
2336
2337 cat >&5 <<_ACEOF
2338
2339
2340 ## ----------- ##
2341 ## Core tests. ##
2342 ## ----------- ##
2343
2344 _ACEOF
2345
2346
2347 # Keep a trace of the command line.
2348 # Strip out --no-create and --no-recursion so they do not pile up.
2349 # Strip out --silent because we don't want to record it for future runs.
2350 # Also quote any args containing shell meta-characters.
2351 # Make two passes to allow for proper duplicate-argument suppression.
2352 ac_configure_args=
2353 ac_configure_args0=
2354 ac_configure_args1=
2355 ac_must_keep_next=false
2356 for ac_pass in 1 2
2357 do
2358 for ac_arg
2359 do
2360 case $ac_arg in
2361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2363 | -silent | --silent | --silen | --sile | --sil)
2364 continue ;;
2365 *\'*)
2366 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 esac
2368 case $ac_pass in
2369 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2370 2)
2371 as_fn_append ac_configure_args1 " '$ac_arg'"
2372 if test $ac_must_keep_next = true; then
2373 ac_must_keep_next=false # Got value, back to normal.
2374 else
2375 case $ac_arg in
2376 *=* | --config-cache | -C | -disable-* | --disable-* \
2377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2379 | -with-* | --with-* | -without-* | --without-* | --x)
2380 case "$ac_configure_args0 " in
2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2382 esac
2383 ;;
2384 -* ) ac_must_keep_next=true ;;
2385 esac
2386 fi
2387 as_fn_append ac_configure_args " '$ac_arg'"
2388 ;;
2389 esac
2390 done
2391 done
2392 { ac_configure_args0=; unset ac_configure_args0;}
2393 { ac_configure_args1=; unset ac_configure_args1;}
2394
2395 # When interrupted or exit'd, cleanup temporary files, and complete
2396 # config.log. We remove comments because anyway the quotes in there
2397 # would cause problems or look ugly.
2398 # WARNING: Use '\'' to represent an apostrophe within the trap.
2399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400 trap 'exit_status=$?
2401 # Save into config.log some information that might help in debugging.
2402 {
2403 echo
2404
2405 $as_echo "## ---------------- ##
2406 ## Cache variables. ##
2407 ## ---------------- ##"
2408 echo
2409 # The following way of writing the cache mishandles newlines in values,
2410 (
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in #(
2414 *${as_nl}*)
2415 case $ac_var in #(
2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2418 esac
2419 case $ac_var in #(
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422 *) { eval $ac_var=; unset $ac_var;} ;;
2423 esac ;;
2424 esac
2425 done
2426 (set) 2>&1 |
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2429 sed -n \
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2432 ;; #(
2433 *)
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2435 ;;
2436 esac |
2437 sort
2438 )
2439 echo
2440
2441 $as_echo "## ----------------- ##
2442 ## Output variables. ##
2443 ## ----------------- ##"
2444 echo
2445 for ac_var in $ac_subst_vars
2446 do
2447 eval ac_val=\$$ac_var
2448 case $ac_val in
2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450 esac
2451 $as_echo "$ac_var='\''$ac_val'\''"
2452 done | sort
2453 echo
2454
2455 if test -n "$ac_subst_files"; then
2456 $as_echo "## ------------------- ##
2457 ## File substitutions. ##
2458 ## ------------------- ##"
2459 echo
2460 for ac_var in $ac_subst_files
2461 do
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2469 fi
2470
2471 if test -s confdefs.h; then
2472 $as_echo "## ----------- ##
2473 ## confdefs.h. ##
2474 ## ----------- ##"
2475 echo
2476 cat confdefs.h
2477 echo
2478 fi
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2482 } >&5
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2485 exit $exit_status
2486 ' 0
2487 for ac_signal in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 done
2490 ac_signal=0
2491
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest* confdefs.h
2494
2495 $as_echo "/* confdefs.h */" > confdefs.h
2496
2497 # Predefined preprocessor variables.
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2509 _ACEOF
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2513 _ACEOF
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2517 _ACEOF
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2521 _ACEOF
2522
2523
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2526 ac_site_file1=NONE
2527 ac_site_file2=NONE
2528 if test -n "$CONFIG_SITE"; then
2529 # We do not want a PATH search for config.site.
2530 case $CONFIG_SITE in #((
2531 -*) ac_site_file1=./$CONFIG_SITE;;
2532 */*) ac_site_file1=$CONFIG_SITE;;
2533 *) ac_site_file1=./$CONFIG_SITE;;
2534 esac
2535 elif test "x$prefix" != xNONE; then
2536 ac_site_file1=$prefix/share/config.site
2537 ac_site_file2=$prefix/etc/config.site
2538 else
2539 ac_site_file1=$ac_default_prefix/share/config.site
2540 ac_site_file2=$ac_default_prefix/etc/config.site
2541 fi
2542 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2543 do
2544 test "x$ac_site_file" = xNONE && continue
2545 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548 sed 's/^/| /' "$ac_site_file" >&5
2549 . "$ac_site_file" \
2550 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 as_fn_error $? "failed to load site script $ac_site_file
2553 See \`config.log' for more details" "$LINENO" 5; }
2554 fi
2555 done
2556
2557 if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special files
2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2560 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562 $as_echo "$as_me: loading cache $cache_file" >&6;}
2563 case $cache_file in
2564 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565 *) . "./$cache_file";;
2566 esac
2567 fi
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570 $as_echo "$as_me: creating cache $cache_file" >&6;}
2571 >$cache_file
2572 fi
2573
2574 as_fn_append ac_header_list " unistd.h"
2575 as_fn_append ac_func_list " secure_getenv"
2576 as_fn_append ac_func_list " __secure_getenv"
2577 as_fn_append ac_func_list " getuid"
2578 as_fn_append ac_func_list " geteuid"
2579 as_fn_append ac_func_list " getgid"
2580 as_fn_append ac_func_list " getegid"
2581 # Check that the precious variables saved in the cache have kept the same
2582 # value.
2583 ac_cache_corrupted=false
2584 for ac_var in $ac_precious_vars; do
2585 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2586 eval ac_new_set=\$ac_env_${ac_var}_set
2587 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2588 eval ac_new_val=\$ac_env_${ac_var}_value
2589 case $ac_old_set,$ac_new_set in
2590 set,)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,set)
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2596 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2598 ,);;
2599 *)
2600 if test "x$ac_old_val" != "x$ac_new_val"; then
2601 # differences in whitespace do not lead to failure.
2602 ac_old_val_w=`echo x $ac_old_val`
2603 ac_new_val_w=`echo x $ac_new_val`
2604 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2606 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2607 ac_cache_corrupted=:
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2610 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2611 eval $ac_var=\$ac_old_val
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2614 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2616 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2617 fi;;
2618 esac
2619 # Pass precious variables to config.status.
2620 if test "$ac_new_set" = set; then
2621 case $ac_new_val in
2622 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2623 *) ac_arg=$ac_var=$ac_new_val ;;
2624 esac
2625 case " $ac_configure_args " in
2626 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2627 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2628 esac
2629 fi
2630 done
2631 if $ac_cache_corrupted; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2635 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2636 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2637 fi
2638 ## -------------------- ##
2639 ## Main body of script. ##
2640 ## -------------------- ##
2641
2642 ac_ext=c
2643 ac_cpp='$CPP $CPPFLAGS'
2644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647
2648
2649
2650
2651
2652 ac_config_headers="$ac_config_headers config.h"
2653
2654
2655 # -------
2656 # Options
2657 # -------
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2660 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2661 # Check whether --enable-version-specific-runtime-libs was given.
2662 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2663 enableval=$enable_version_specific_runtime_libs;
2664 case "$enableval" in
2665 yes|no) ;;
2666 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2667 esac
2668
2669 else
2670 enable_version_specific_runtime_libs=no
2671 fi
2672
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2675 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2676
2677 # We would like our source tree to be readonly. However when releases or
2678 # pre-releases are generated, the flex/bison generated files as well as the
2679 # various formats of manuals need to be included along with the rest of the
2680 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2681 # just that.
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2683 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2684 # Check whether --enable-generated-files-in-srcdir was given.
2685 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2686 enableval=$enable_generated_files_in_srcdir;
2687 case "$enableval" in
2688 yes|no) ;;
2689 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2690 esac
2691
2692 else
2693 enable_generated_files_in_srcdir=no
2694 fi
2695
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2698 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2699 if test "$enable_generated_files_in_srcdir" = yes; then
2700 GENINSRC_TRUE=
2701 GENINSRC_FALSE='#'
2702 else
2703 GENINSRC_TRUE='#'
2704 GENINSRC_FALSE=
2705 fi
2706
2707
2708
2709 # -------
2710 # -------
2711
2712 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2713 #
2714 # You will slowly go insane if you do not grok the following fact: when
2715 # building this library, the top-level /target/ becomes the library's /host/.
2716 #
2717 # configure then causes --target to default to --host, exactly like any
2718 # other package using autoconf. Therefore, 'target' and 'host' will
2719 # always be the same. This makes sense both for native and cross compilers
2720 # just think about it for a little while. :-)
2721 #
2722 # Also, if this library is being configured as part of a cross compiler, the
2723 # top-level configure script will pass the "real" host as $with_cross_host.
2724 #
2725 # Do not delete or change the following two lines. For why, see
2726 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2727 ac_aux_dir=
2728 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2729 if test -f "$ac_dir/install-sh"; then
2730 ac_aux_dir=$ac_dir
2731 ac_install_sh="$ac_aux_dir/install-sh -c"
2732 break
2733 elif test -f "$ac_dir/install.sh"; then
2734 ac_aux_dir=$ac_dir
2735 ac_install_sh="$ac_aux_dir/install.sh -c"
2736 break
2737 elif test -f "$ac_dir/shtool"; then
2738 ac_aux_dir=$ac_dir
2739 ac_install_sh="$ac_aux_dir/shtool install -c"
2740 break
2741 fi
2742 done
2743 if test -z "$ac_aux_dir"; then
2744 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2745 fi
2746
2747 # These three variables are undocumented and unsupported,
2748 # and are intended to be withdrawn in a future Autoconf release.
2749 # They can cause serious problems if a builder's source tree is in a directory
2750 # whose full name contains unusual characters.
2751 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2752 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2753 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2754
2755
2756 # Make sure we can run config.sub.
2757 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2758 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2759
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2761 $as_echo_n "checking build system type... " >&6; }
2762 if ${ac_cv_build+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 ac_build_alias=$build_alias
2766 test "x$ac_build_alias" = x &&
2767 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2768 test "x$ac_build_alias" = x &&
2769 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2770 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2772
2773 fi
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2775 $as_echo "$ac_cv_build" >&6; }
2776 case $ac_cv_build in
2777 *-*-*) ;;
2778 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2779 esac
2780 build=$ac_cv_build
2781 ac_save_IFS=$IFS; IFS='-'
2782 set x $ac_cv_build
2783 shift
2784 build_cpu=$1
2785 build_vendor=$2
2786 shift; shift
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2789 build_os=$*
2790 IFS=$ac_save_IFS
2791 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2792
2793
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2795 $as_echo_n "checking host system type... " >&6; }
2796 if ${ac_cv_host+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test "x$host_alias" = x; then
2800 ac_cv_host=$ac_cv_build
2801 else
2802 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2804 fi
2805
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2808 $as_echo "$ac_cv_host" >&6; }
2809 case $ac_cv_host in
2810 *-*-*) ;;
2811 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2812 esac
2813 host=$ac_cv_host
2814 ac_save_IFS=$IFS; IFS='-'
2815 set x $ac_cv_host
2816 shift
2817 host_cpu=$1
2818 host_vendor=$2
2819 shift; shift
2820 # Remember, the first character of IFS is used to create $*,
2821 # except with old shells:
2822 host_os=$*
2823 IFS=$ac_save_IFS
2824 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2825
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2828 $as_echo_n "checking target system type... " >&6; }
2829 if ${ac_cv_target+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test "x$target_alias" = x; then
2833 ac_cv_target=$ac_cv_host
2834 else
2835 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2836 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2837 fi
2838
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2841 $as_echo "$ac_cv_target" >&6; }
2842 case $ac_cv_target in
2843 *-*-*) ;;
2844 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2845 esac
2846 target=$ac_cv_target
2847 ac_save_IFS=$IFS; IFS='-'
2848 set x $ac_cv_target
2849 shift
2850 target_cpu=$1
2851 target_vendor=$2
2852 shift; shift
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2855 target_os=$*
2856 IFS=$ac_save_IFS
2857 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2858
2859
2860 # The aliases save the names the user supplied, while $host etc.
2861 # will get canonicalized.
2862 test -n "$target_alias" &&
2863 test "$program_prefix$program_suffix$program_transform_name" = \
2864 NONENONEs,x,x, &&
2865 program_prefix=${target_alias}-
2866
2867 target_alias=${target_alias-$host_alias}
2868
2869 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2870 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2871 # 1.9.0: minimum required version
2872 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2873 # of other PACKAGE_* variables will, however, and there's nothing
2874 # we can do about that; they come from AC_INIT).
2875 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2876 # file in the top srcdir, etc, etc), so stop complaining.
2877 # no-dist: we don't want 'dist' and related rules.
2878 # -Wall: turns on all automake warnings...
2879 # -Wno-portability: ...except this one, since GNU make is required.
2880 # -Wno-override: ... and this one, since we do want this in testsuite.
2881 am__api_version='1.15'
2882
2883 # Find a good install program. We prefer a C program (faster),
2884 # so one script is as good as another. But avoid the broken or
2885 # incompatible versions:
2886 # SysV /etc/install, /usr/sbin/install
2887 # SunOS /usr/etc/install
2888 # IRIX /sbin/install
2889 # AIX /bin/install
2890 # AmigaOS /C/install, which installs bootblocks on floppy discs
2891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2894 # OS/2's system install, which has a completely different semantic
2895 # ./install, which can be erroneously created by make from ./install.sh.
2896 # Reject install programs that cannot install multiple files.
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2898 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2899 if test -z "$INSTALL"; then
2900 if ${ac_cv_path_install+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 # Account for people who put trailing slashes in PATH elements.
2909 case $as_dir/ in #((
2910 ./ | .// | /[cC]/* | \
2911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2912 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2913 /usr/ucb/* ) ;;
2914 *)
2915 # OSF1 and SCO ODT 3.0 have their own names for install.
2916 # Don't use installbsd from OSF since it installs stuff as root
2917 # by default.
2918 for ac_prog in ginstall scoinst install; do
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2921 if test $ac_prog = install &&
2922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2923 # AIX install. It has an incompatible calling convention.
2924 :
2925 elif test $ac_prog = install &&
2926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2927 # program-specific install script used by HP pwplus--don't use.
2928 :
2929 else
2930 rm -rf conftest.one conftest.two conftest.dir
2931 echo one > conftest.one
2932 echo two > conftest.two
2933 mkdir conftest.dir
2934 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2935 test -s conftest.one && test -s conftest.two &&
2936 test -s conftest.dir/conftest.one &&
2937 test -s conftest.dir/conftest.two
2938 then
2939 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2940 break 3
2941 fi
2942 fi
2943 fi
2944 done
2945 done
2946 ;;
2947 esac
2948
2949 done
2950 IFS=$as_save_IFS
2951
2952 rm -rf conftest.one conftest.two conftest.dir
2953
2954 fi
2955 if test "${ac_cv_path_install+set}" = set; then
2956 INSTALL=$ac_cv_path_install
2957 else
2958 # As a last resort, use the slow shell script. Don't cache a
2959 # value for INSTALL within a source directory, because that will
2960 # break other packages using the cache if that directory is
2961 # removed, or if the value is a relative name.
2962 INSTALL=$ac_install_sh
2963 fi
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2966 $as_echo "$INSTALL" >&6; }
2967
2968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2969 # It thinks the first close brace ends the variable substitution.
2970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2971
2972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2973
2974 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2975
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2977 $as_echo_n "checking whether build environment is sane... " >&6; }
2978 # Reject unsafe characters in $srcdir or the absolute working directory
2979 # name. Accept space and tab only in the latter.
2980 am_lf='
2981 '
2982 case `pwd` in
2983 *[\\\"\#\$\&\'\`$am_lf]*)
2984 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2985 esac
2986 case $srcdir in
2987 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2988 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2989 esac
2990
2991 # Do 'set' in a subshell so we don't clobber the current shell's
2992 # arguments. Must try -L first in case configure is actually a
2993 # symlink; some systems play weird games with the mod time of symlinks
2994 # (eg FreeBSD returns the mod time of the symlink's containing
2995 # directory).
2996 if (
2997 am_has_slept=no
2998 for am_try in 1 2; do
2999 echo "timestamp, slept: $am_has_slept" > conftest.file
3000 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3001 if test "$*" = "X"; then
3002 # -L didn't work.
3003 set X `ls -t "$srcdir/configure" conftest.file`
3004 fi
3005 if test "$*" != "X $srcdir/configure conftest.file" \
3006 && test "$*" != "X conftest.file $srcdir/configure"; then
3007
3008 # If neither matched, then we have a broken ls. This can happen
3009 # if, for instance, CONFIG_SHELL is bash and it inherits a
3010 # broken ls alias from the environment. This has actually
3011 # happened. Such a system could not be considered "sane".
3012 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3013 alias in your environment" "$LINENO" 5
3014 fi
3015 if test "$2" = conftest.file || test $am_try -eq 2; then
3016 break
3017 fi
3018 # Just in case.
3019 sleep 1
3020 am_has_slept=yes
3021 done
3022 test "$2" = conftest.file
3023 )
3024 then
3025 # Ok.
3026 :
3027 else
3028 as_fn_error $? "newly created file is older than distributed files!
3029 Check your system clock" "$LINENO" 5
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3033 # If we didn't sleep, we still need to ensure time stamps of config.status and
3034 # generated files are strictly newer.
3035 am_sleep_pid=
3036 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3037 ( sleep 1 ) &
3038 am_sleep_pid=$!
3039 fi
3040
3041 rm -f conftest.file
3042
3043 test "$program_prefix" != NONE &&
3044 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3045 # Use a double $ so make ignores it.
3046 test "$program_suffix" != NONE &&
3047 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3048 # Double any \ or $.
3049 # By default was `s,x,x', remove it if useless.
3050 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3051 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3052
3053 # Expand $ac_aux_dir to an absolute path.
3054 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3055
3056 if test x"${MISSING+set}" != xset; then
3057 case $am_aux_dir in
3058 *\ * | *\ *)
3059 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3060 *)
3061 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3062 esac
3063 fi
3064 # Use eval to expand $SHELL
3065 if eval "$MISSING --is-lightweight"; then
3066 am_missing_run="$MISSING "
3067 else
3068 am_missing_run=
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3070 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3071 fi
3072
3073 if test x"${install_sh+set}" != xset; then
3074 case $am_aux_dir in
3075 *\ * | *\ *)
3076 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3077 *)
3078 install_sh="\${SHELL} $am_aux_dir/install-sh"
3079 esac
3080 fi
3081
3082 # Installed binaries are usually stripped using 'strip' when the user
3083 # run "make install-strip". However 'strip' might not be the right
3084 # tool to use in cross-compilation environments, therefore Automake
3085 # will honor the 'STRIP' environment variable to overrule this program.
3086 if test "$cross_compiling" != no; then
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}strip; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_STRIP+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$STRIP"; then
3096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 STRIP=$ac_cv_prog_STRIP
3116 if test -n "$STRIP"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3118 $as_echo "$STRIP" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125 fi
3126 if test -z "$ac_cv_prog_STRIP"; then
3127 ac_ct_STRIP=$STRIP
3128 # Extract the first word of "strip", so it can be a program name with args.
3129 set dummy strip; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$ac_ct_STRIP"; then
3136 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_STRIP="strip"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149 done
3150 done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3156 if test -n "$ac_ct_STRIP"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3158 $as_echo "$ac_ct_STRIP" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164 if test "x$ac_ct_STRIP" = x; then
3165 STRIP=":"
3166 else
3167 case $cross_compiling:$ac_tool_warned in
3168 yes:)
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3172 esac
3173 STRIP=$ac_ct_STRIP
3174 fi
3175 else
3176 STRIP="$ac_cv_prog_STRIP"
3177 fi
3178
3179 fi
3180 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3181
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3183 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3184 if test -z "$MKDIR_P"; then
3185 if ${ac_cv_path_mkdir+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3190 do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_prog in mkdir gmkdir; do
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3196 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3197 'mkdir (GNU coreutils) '* | \
3198 'mkdir (coreutils) '* | \
3199 'mkdir (fileutils) '4.1*)
3200 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3201 break 3;;
3202 esac
3203 done
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 fi
3209
3210 test -d ./--version && rmdir ./--version
3211 if test "${ac_cv_path_mkdir+set}" = set; then
3212 MKDIR_P="$ac_cv_path_mkdir -p"
3213 else
3214 # As a last resort, use the slow shell script. Don't cache a
3215 # value for MKDIR_P within a source directory, because that will
3216 # break other packages using the cache if that directory is
3217 # removed, or if the value is a relative name.
3218 MKDIR_P="$ac_install_sh -d"
3219 fi
3220 fi
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3222 $as_echo "$MKDIR_P" >&6; }
3223
3224 for ac_prog in gawk mawk nawk awk
3225 do
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227 set dummy $ac_prog; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_AWK+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$AWK"; then
3234 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_AWK="$ac_prog"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3246 fi
3247 done
3248 done
3249 IFS=$as_save_IFS
3250
3251 fi
3252 fi
3253 AWK=$ac_cv_prog_AWK
3254 if test -n "$AWK"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3256 $as_echo "$AWK" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 fi
3261
3262
3263 test -n "$AWK" && break
3264 done
3265
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3267 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3268 set x ${MAKE-make}
3269 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3270 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat >conftest.make <<\_ACEOF
3274 SHELL = /bin/sh
3275 all:
3276 @echo '@@@%%%=$(MAKE)=@@@%%%'
3277 _ACEOF
3278 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3279 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3280 *@@@%%%=?*=@@@%%%*)
3281 eval ac_cv_prog_make_${ac_make}_set=yes;;
3282 *)
3283 eval ac_cv_prog_make_${ac_make}_set=no;;
3284 esac
3285 rm -f conftest.make
3286 fi
3287 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289 $as_echo "yes" >&6; }
3290 SET_MAKE=
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 SET_MAKE="MAKE=${MAKE-make}"
3295 fi
3296
3297 rm -rf .tst 2>/dev/null
3298 mkdir .tst 2>/dev/null
3299 if test -d .tst; then
3300 am__leading_dot=.
3301 else
3302 am__leading_dot=_
3303 fi
3304 rmdir .tst 2>/dev/null
3305
3306 # Check whether --enable-silent-rules was given.
3307 if test "${enable_silent_rules+set}" = set; then :
3308 enableval=$enable_silent_rules;
3309 fi
3310
3311 case $enable_silent_rules in # (((
3312 yes) AM_DEFAULT_VERBOSITY=0;;
3313 no) AM_DEFAULT_VERBOSITY=1;;
3314 *) AM_DEFAULT_VERBOSITY=1;;
3315 esac
3316 am_make=${MAKE-make}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3318 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3319 if ${am_cv_make_support_nested_variables+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if $as_echo 'TRUE=$(BAR$(V))
3323 BAR0=false
3324 BAR1=true
3325 V=1
3326 am__doit:
3327 @$(TRUE)
3328 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3329 am_cv_make_support_nested_variables=yes
3330 else
3331 am_cv_make_support_nested_variables=no
3332 fi
3333 fi
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3335 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3336 if test $am_cv_make_support_nested_variables = yes; then
3337 AM_V='$(V)'
3338 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3339 else
3340 AM_V=$AM_DEFAULT_VERBOSITY
3341 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3342 fi
3343 AM_BACKSLASH='\'
3344
3345 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3346 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3347 # is not polluted with repeated "-I."
3348 am__isrc=' -I$(srcdir)'
3349 # test to see if srcdir already configured
3350 if test -f $srcdir/config.status; then
3351 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3352 fi
3353 fi
3354
3355 # test whether we have cygpath
3356 if test -z "$CYGPATH_W"; then
3357 if (cygpath --version) >/dev/null 2>/dev/null; then
3358 CYGPATH_W='cygpath -w'
3359 else
3360 CYGPATH_W=echo
3361 fi
3362 fi
3363
3364
3365 # Define the identity of the package.
3366 PACKAGE='libgomp'
3367 VERSION='1.0'
3368
3369
3370 cat >>confdefs.h <<_ACEOF
3371 #define PACKAGE "$PACKAGE"
3372 _ACEOF
3373
3374
3375 cat >>confdefs.h <<_ACEOF
3376 #define VERSION "$VERSION"
3377 _ACEOF
3378
3379 # Some tools Automake needs.
3380
3381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3382
3383
3384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3385
3386
3387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3388
3389
3390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3391
3392
3393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3394
3395 # For better backward compatibility. To be removed once Automake 1.9.x
3396 # dies out for good. For more background, see:
3397 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3398 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3399 mkdir_p='$(MKDIR_P)'
3400
3401 # We need awk for the "check" target (and possibly the TAP driver). The
3402 # system "awk" is bad on some platforms.
3403 # Always define AMTAR for backward compatibility. Yes, it's still used
3404 # in the wild :-( We should find a proper way to deprecate it ...
3405 AMTAR='$${TAR-tar}'
3406
3407
3408 # We'll loop over all known methods to create a tar archive until one works.
3409 _am_tools='gnutar pax cpio none'
3410
3411 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3412
3413
3414
3415
3416
3417
3418 # POSIX will say in a future version that running "rm -f" with no argument
3419 # is OK; and we want to be able to make that assumption in our Makefile
3420 # recipes. So use an aggressive probe to check that the usage we want is
3421 # actually supported "in the wild" to an acceptable degree.
3422 # See automake bug#10828.
3423 # To make any issue more visible, cause the running configure to be aborted
3424 # by default if the 'rm' program in use doesn't match our expectations; the
3425 # user can still override this though.
3426 if rm -f && rm -fr && rm -rf; then : OK; else
3427 cat >&2 <<'END'
3428 Oops!
3429
3430 Your 'rm' program seems unable to run without file operands specified
3431 on the command line, even when the '-f' option is present. This is contrary
3432 to the behaviour of most rm programs out there, and not conforming with
3433 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3434
3435 Please tell bug-automake@gnu.org about your system, including the value
3436 of your $PATH and any error possibly output before this message. This
3437 can help us improve future automake versions.
3438
3439 END
3440 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3441 echo 'Configuration will proceed anyway, since you have set the' >&2
3442 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3443 echo >&2
3444 else
3445 cat >&2 <<'END'
3446 Aborting the configuration process, to ensure you take notice of the issue.
3447
3448 You can download and install GNU coreutils to get an 'rm' implementation
3449 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3450
3451 If you want to complete the configuration process using your problematic
3452 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3453 to "yes", and re-run configure.
3454
3455 END
3456 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3457 fi
3458 fi
3459
3460 # Default to --enable-multilib
3461 # Check whether --enable-multilib was given.
3462 if test "${enable_multilib+set}" = set; then :
3463 enableval=$enable_multilib; case "$enableval" in
3464 yes) multilib=yes ;;
3465 no) multilib=no ;;
3466 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3467 esac
3468 else
3469 multilib=yes
3470 fi
3471
3472
3473 # We may get other options which we leave undocumented:
3474 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3475 # See config-ml.in if you want the gory details.
3476
3477 if test "$srcdir" = "."; then
3478 if test "$with_target_subdir" != "."; then
3479 multi_basedir="$srcdir/$with_multisrctop../.."
3480 else
3481 multi_basedir="$srcdir/$with_multisrctop.."
3482 fi
3483 else
3484 multi_basedir="$srcdir/.."
3485 fi
3486
3487
3488 # Even if the default multilib is not a cross compilation,
3489 # it may be that some of the other multilibs are.
3490 if test $cross_compiling = no && test $multilib = yes \
3491 && test "x${with_multisubdir}" != x ; then
3492 cross_compiling=maybe
3493 fi
3494
3495 ac_config_commands="$ac_config_commands default-1"
3496
3497
3498 # Calculate toolexeclibdir
3499 # Also toolexecdir, though it's only used in toolexeclibdir
3500 case ${enable_version_specific_runtime_libs} in
3501 yes)
3502 # Need the gcc compiler version to know where to install libraries
3503 # and header files if --enable-version-specific-runtime-libs option
3504 # is selected.
3505 toolexecdir='$(libdir)/gcc/$(target_alias)'
3506 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3507 ;;
3508 no)
3509 if test -n "$with_cross_host" &&
3510 test x"$with_cross_host" != x"no"; then
3511 # Install a library built with a cross compiler in tooldir, not libdir.
3512 toolexecdir='$(exec_prefix)/$(target_alias)'
3513 toolexeclibdir='$(toolexecdir)/lib'
3514 else
3515 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3516 toolexeclibdir='$(libdir)'
3517 fi
3518 multi_os_directory=`$CC -print-multi-os-directory`
3519 case $multi_os_directory in
3520 .) ;; # Avoid trailing /.
3521 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3522 esac
3523 ;;
3524 esac
3525
3526
3527
3528 # Check the compiler.
3529 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3530 # We must force CC to /not/ be precious variables; otherwise
3531 # the wrong, non-multilib-adjusted value will be used in multilibs.
3532 # As a side effect, we have to subst CFLAGS ourselves.
3533
3534
3535
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 if test -n "$ac_tool_prefix"; then
3542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_CC+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563 done
3564 done
3565 IFS=$as_save_IFS
3566
3567 fi
3568 fi
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 fi
3577
3578
3579 fi
3580 if test -z "$ac_cv_prog_CC"; then
3581 ac_ct_CC=$CC
3582 # Extract the first word of "gcc", so it can be a program name with args.
3583 set dummy gcc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 if test -n "$ac_ct_CC"; then
3590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_ac_ct_CC="gcc"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 break 2
3602 fi
3603 done
3604 done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3610 if test -n "$ac_ct_CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612 $as_echo "$ac_ct_CC" >&6; }
3613 else
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3616 fi
3617
3618 if test "x$ac_ct_CC" = x; then
3619 CC=""
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627 CC=$ac_ct_CC
3628 fi
3629 else
3630 CC="$ac_cv_prog_CC"
3631 fi
3632
3633 if test -z "$CC"; then
3634 if test -n "$ac_tool_prefix"; then
3635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3636 set dummy ${ac_tool_prefix}cc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if ${ac_cv_prog_CC+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_CC="${ac_tool_prefix}cc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 CC=$ac_cv_prog_CC
3663 if test -n "$CC"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665 $as_echo "$CC" >&6; }
3666 else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669 fi
3670
3671
3672 fi
3673 fi
3674 if test -z "$CC"; then
3675 # Extract the first word of "cc", so it can be a program name with args.
3676 set dummy cc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_CC+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 ac_prog_rejected=no
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3694 ac_prog_rejected=yes
3695 continue
3696 fi
3697 ac_cv_prog_CC="cc"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701 done
3702 done
3703 IFS=$as_save_IFS
3704
3705 if test $ac_prog_rejected = yes; then
3706 # We found a bogon in the path, so make sure we never use it.
3707 set dummy $ac_cv_prog_CC
3708 shift
3709 if test $# != 0; then
3710 # We chose a different compiler from the bogus one.
3711 # However, it has the same basename, so the bogon will be chosen
3712 # first if we set CC to just the basename; use the full file name.
3713 shift
3714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3715 fi
3716 fi
3717 fi
3718 fi
3719 CC=$ac_cv_prog_CC
3720 if test -n "$CC"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722 $as_echo "$CC" >&6; }
3723 else
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3726 fi
3727
3728
3729 fi
3730 if test -z "$CC"; then
3731 if test -n "$ac_tool_prefix"; then
3732 for ac_prog in cl.exe
3733 do
3734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_CC+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC="$CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3754 fi
3755 done
3756 done
3757 IFS=$as_save_IFS
3758
3759 fi
3760 fi
3761 CC=$ac_cv_prog_CC
3762 if test -n "$CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3764 $as_echo "$CC" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3768 fi
3769
3770
3771 test -n "$CC" && break
3772 done
3773 fi
3774 if test -z "$CC"; then
3775 ac_ct_CC=$CC
3776 for ac_prog in cl.exe
3777 do
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 if test -n "$ac_ct_CC"; then
3786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_ac_ct_CC="$ac_prog"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799 done
3800 done
3801 IFS=$as_save_IFS
3802
3803 fi
3804 fi
3805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3806 if test -n "$ac_ct_CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3808 $as_echo "$ac_ct_CC" >&6; }
3809 else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 fi
3813
3814
3815 test -n "$ac_ct_CC" && break
3816 done
3817
3818 if test "x$ac_ct_CC" = x; then
3819 CC=""
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822 yes:)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3826 esac
3827 CC=$ac_ct_CC
3828 fi
3829 fi
3830
3831 fi
3832
3833
3834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $? "no acceptable C compiler found in \$PATH
3837 See \`config.log' for more details" "$LINENO" 5; }
3838
3839 # Provide some information about the compiler.
3840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3841 set X $ac_compile
3842 ac_compiler=$2
3843 for ac_option in --version -v -V -qversion; do
3844 { { ac_try="$ac_compiler $ac_option >&5"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3852 ac_status=$?
3853 if test -s conftest.err; then
3854 sed '10a\
3855 ... rest of stderr output deleted ...
3856 10q' conftest.err >conftest.er1
3857 cat conftest.er1 >&5
3858 fi
3859 rm -f conftest.er1 conftest.err
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3862 done
3863
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866
3867 int
3868 main ()
3869 {
3870
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 ac_clean_files_save=$ac_clean_files
3876 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3877 # Try to create an executable without -o first, disregard a.out.
3878 # It will help us diagnose broken compilers, and finding out an intuition
3879 # of exeext.
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3881 $as_echo_n "checking whether the C compiler works... " >&6; }
3882 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3883
3884 # The possible output files:
3885 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3886
3887 ac_rmfiles=
3888 for ac_file in $ac_files
3889 do
3890 case $ac_file in
3891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3892 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3893 esac
3894 done
3895 rm -f $ac_rmfiles
3896
3897 if { { ac_try="$ac_link_default"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_link_default") 2>&5
3905 ac_status=$?
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }; then :
3908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3910 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3911 # so that the user can short-circuit this test for compilers unknown to
3912 # Autoconf.
3913 for ac_file in $ac_files ''
3914 do
3915 test -f "$ac_file" || continue
3916 case $ac_file in
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3918 ;;
3919 [ab].out )
3920 # We found the default executable, but exeext='' is most
3921 # certainly right.
3922 break;;
3923 *.* )
3924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3925 then :; else
3926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3927 fi
3928 # We set ac_cv_exeext here because the later test for it is not
3929 # safe: cross compilers may not add the suffix if given an `-o'
3930 # argument, so we may need to know it at that point already.
3931 # Even if this section looks crufty: it has the advantage of
3932 # actually working.
3933 break;;
3934 * )
3935 break;;
3936 esac
3937 done
3938 test "$ac_cv_exeext" = no && ac_cv_exeext=
3939
3940 else
3941 ac_file=''
3942 fi
3943 if test -z "$ac_file"; then :
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error 77 "C compiler cannot create executables
3952 See \`config.log' for more details" "$LINENO" 5; }
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3958 $as_echo_n "checking for C compiler default output file name... " >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3960 $as_echo "$ac_file" >&6; }
3961 ac_exeext=$ac_cv_exeext
3962
3963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3964 ac_clean_files=$ac_clean_files_save
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3966 $as_echo_n "checking for suffix of executables... " >&6; }
3967 if { { ac_try="$ac_link"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_link") 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3980 # work properly (i.e., refer to `conftest.exe'), while it won't with
3981 # `rm'.
3982 for ac_file in conftest.exe conftest conftest.*; do
3983 test -f "$ac_file" || continue
3984 case $ac_file in
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 break;;
3988 * ) break;;
3989 esac
3990 done
3991 else
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3995 See \`config.log' for more details" "$LINENO" 5; }
3996 fi
3997 rm -f conftest conftest$ac_cv_exeext
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3999 $as_echo "$ac_cv_exeext" >&6; }
4000
4001 rm -f conftest.$ac_ext
4002 EXEEXT=$ac_cv_exeext
4003 ac_exeext=$EXEEXT
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006 #include <stdio.h>
4007 int
4008 main ()
4009 {
4010 FILE *f = fopen ("conftest.out", "w");
4011 return ferror (f) || fclose (f) != 0;
4012
4013 ;
4014 return 0;
4015 }
4016 _ACEOF
4017 ac_clean_files="$ac_clean_files conftest.out"
4018 # Check that the compiler produces executables we can run. If not, either
4019 # the compiler is broken, or we cross compile.
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4021 $as_echo_n "checking whether we are cross compiling... " >&6; }
4022 if test "$cross_compiling" != yes; then
4023 { { ac_try="$ac_link"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 $as_echo "$ac_try_echo"; } >&5
4030 (eval "$ac_link") 2>&5
4031 ac_status=$?
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }
4034 if { ac_try='./conftest$ac_cv_exeext'
4035 { { case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_try") 2>&5
4042 ac_status=$?
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }; }; then
4045 cross_compiling=no
4046 else
4047 if test "$cross_compiling" = maybe; then
4048 cross_compiling=yes
4049 else
4050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 as_fn_error $? "cannot run C compiled programs.
4053 If you meant to cross compile, use \`--host'.
4054 See \`config.log' for more details" "$LINENO" 5; }
4055 fi
4056 fi
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4059 $as_echo "$cross_compiling" >&6; }
4060
4061 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4062 ac_clean_files=$ac_clean_files_save
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4064 $as_echo_n "checking for suffix of object files... " >&6; }
4065 if ${ac_cv_objext+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070
4071 int
4072 main ()
4073 {
4074
4075 ;
4076 return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.o conftest.obj
4080 if { { ac_try="$ac_compile"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compile") 2>&5
4088 ac_status=$?
4089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090 test $ac_status = 0; }; then :
4091 for ac_file in conftest.o conftest.obj conftest.*; do
4092 test -f "$ac_file" || continue;
4093 case $ac_file in
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4096 break;;
4097 esac
4098 done
4099 else
4100 $as_echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error $? "cannot compute suffix of object files: cannot compile
4106 See \`config.log' for more details" "$LINENO" 5; }
4107 fi
4108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4111 $as_echo "$ac_cv_objext" >&6; }
4112 OBJEXT=$ac_cv_objext
4113 ac_objext=$OBJEXT
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4116 if ${ac_cv_c_compiler_gnu+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125 #ifndef __GNUC__
4126 choke me
4127 #endif
4128
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_compiler_gnu=yes
4135 else
4136 ac_compiler_gnu=no
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4140
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4144 if test $ac_compiler_gnu = yes; then
4145 GCC=yes
4146 else
4147 GCC=
4148 fi
4149 ac_test_CFLAGS=${CFLAGS+set}
4150 ac_save_CFLAGS=$CFLAGS
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4153 if ${ac_cv_prog_cc_g+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 ac_save_c_werror_flag=$ac_c_werror_flag
4157 ac_c_werror_flag=yes
4158 ac_cv_prog_cc_g=no
4159 CFLAGS="-g"
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162
4163 int
4164 main ()
4165 {
4166
4167 ;
4168 return 0;
4169 }
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_g=yes
4173 else
4174 CFLAGS=""
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177
4178 int
4179 main ()
4180 {
4181
4182 ;
4183 return 0;
4184 }
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187
4188 else
4189 ac_c_werror_flag=$ac_save_c_werror_flag
4190 CFLAGS="-g"
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193
4194 int
4195 main ()
4196 {
4197
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 if ac_fn_c_try_compile "$LINENO"; then :
4203 ac_cv_prog_cc_g=yes
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4213 $as_echo "$ac_cv_prog_cc_g" >&6; }
4214 if test "$ac_test_CFLAGS" = set; then
4215 CFLAGS=$ac_save_CFLAGS
4216 elif test $ac_cv_prog_cc_g = yes; then
4217 if test "$GCC" = yes; then
4218 CFLAGS="-g -O2"
4219 else
4220 CFLAGS="-g"
4221 fi
4222 else
4223 if test "$GCC" = yes; then
4224 CFLAGS="-O2"
4225 else
4226 CFLAGS=
4227 fi
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4231 if ${ac_cv_prog_cc_c89+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 ac_cv_prog_cc_c89=no
4235 ac_save_CC=$CC
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <stdarg.h>
4239 #include <stdio.h>
4240 struct stat;
4241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4242 struct buf { int x; };
4243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4244 static char *e (p, i)
4245 char **p;
4246 int i;
4247 {
4248 return p[i];
4249 }
4250 static char *f (char * (*g) (char **, int), char **p, ...)
4251 {
4252 char *s;
4253 va_list v;
4254 va_start (v,p);
4255 s = g (p, va_arg (v,int));
4256 va_end (v);
4257 return s;
4258 }
4259
4260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4261 function prototypes and stuff, but not '\xHH' hex character constants.
4262 These don't provoke an error unfortunately, instead are silently treated
4263 as 'x'. The following induces an error, until -std is added to get
4264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4265 array size at least. It's necessary to write '\x00'==0 to get something
4266 that's true only with -std. */
4267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4268
4269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4270 inside strings and character constants. */
4271 #define FOO(x) 'x'
4272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4273
4274 int test (int i, double x);
4275 struct s1 {int (*f) (int a);};
4276 struct s2 {int (*f) (double a);};
4277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4278 int argc;
4279 char **argv;
4280 int
4281 main ()
4282 {
4283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4284 ;
4285 return 0;
4286 }
4287 _ACEOF
4288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4290 do
4291 CC="$ac_save_CC $ac_arg"
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_prog_cc_c89=$ac_arg
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext
4296 test "x$ac_cv_prog_cc_c89" != "xno" && break
4297 done
4298 rm -f conftest.$ac_ext
4299 CC=$ac_save_CC
4300
4301 fi
4302 # AC_CACHE_VAL
4303 case "x$ac_cv_prog_cc_c89" in
4304 x)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4306 $as_echo "none needed" >&6; } ;;
4307 xno)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4309 $as_echo "unsupported" >&6; } ;;
4310 *)
4311 CC="$CC $ac_cv_prog_cc_c89"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4314 esac
4315 if test "x$ac_cv_prog_cc_c89" != xno; then :
4316
4317 fi
4318
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4331 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4332 if ${am_cv_prog_cc_c_o+:} false; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337
4338 int
4339 main ()
4340 {
4341
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 # Make sure it works both with $CC and with simple cc.
4347 # Following AC_PROG_CC_C_O, we do the test twice because some
4348 # compilers refuse to overwrite an existing .o file with -o,
4349 # though they will create one.
4350 am_cv_prog_cc_c_o=yes
4351 for am_i in 1 2; do
4352 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4353 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } \
4357 && test -f conftest2.$ac_objext; then
4358 : OK
4359 else
4360 am_cv_prog_cc_c_o=no
4361 break
4362 fi
4363 done
4364 rm -f core conftest*
4365 unset am_i
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4368 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4369 if test "$am_cv_prog_cc_c_o" != yes; then
4370 # Losing compiler, so override with the script.
4371 # FIXME: It is wrong to rewrite CC.
4372 # But if we don't then we get into trouble of one sort or another.
4373 # A longer-term fix would be to have automake use am__CC in this case,
4374 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4375 CC="$am_aux_dir/compile $CC"
4376 fi
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382
4383 DEPDIR="${am__leading_dot}deps"
4384
4385 ac_config_commands="$ac_config_commands depfiles"
4386
4387
4388 am_make=${MAKE-make}
4389 cat > confinc << 'END'
4390 am__doit:
4391 @echo this is the am__doit target
4392 .PHONY: am__doit
4393 END
4394 # If we don't find an include directive, just comment out the code.
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4396 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4397 am__include="#"
4398 am__quote=
4399 _am_result=none
4400 # First try GNU make style include.
4401 echo "include confinc" > confmf
4402 # Ignore all kinds of additional output from 'make'.
4403 case `$am_make -s -f confmf 2> /dev/null` in #(
4404 *the\ am__doit\ target*)
4405 am__include=include
4406 am__quote=
4407 _am_result=GNU
4408 ;;
4409 esac
4410 # Now try BSD make style include.
4411 if test "$am__include" = "#"; then
4412 echo '.include "confinc"' > confmf
4413 case `$am_make -s -f confmf 2> /dev/null` in #(
4414 *the\ am__doit\ target*)
4415 am__include=.include
4416 am__quote="\""
4417 _am_result=BSD
4418 ;;
4419 esac
4420 fi
4421
4422
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4424 $as_echo "$_am_result" >&6; }
4425 rm -f confinc confmf
4426
4427 # Check whether --enable-dependency-tracking was given.
4428 if test "${enable_dependency_tracking+set}" = set; then :
4429 enableval=$enable_dependency_tracking;
4430 fi
4431
4432 if test "x$enable_dependency_tracking" != xno; then
4433 am_depcomp="$ac_aux_dir/depcomp"
4434 AMDEPBACKSLASH='\'
4435 am__nodep='_no'
4436 fi
4437 if test "x$enable_dependency_tracking" != xno; then
4438 AMDEP_TRUE=
4439 AMDEP_FALSE='#'
4440 else
4441 AMDEP_TRUE='#'
4442 AMDEP_FALSE=
4443 fi
4444
4445
4446
4447 depcc="$CC" am_compiler_list=
4448
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4450 $as_echo_n "checking dependency style of $depcc... " >&6; }
4451 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4455 # We make a subdir and do the tests there. Otherwise we can end up
4456 # making bogus files that we don't know about and never remove. For
4457 # instance it was reported that on HP-UX the gcc test will end up
4458 # making a dummy file named 'D' -- because '-MD' means "put the output
4459 # in D".
4460 rm -rf conftest.dir
4461 mkdir conftest.dir
4462 # Copy depcomp to subdir because otherwise we won't find it if we're
4463 # using a relative directory.
4464 cp "$am_depcomp" conftest.dir
4465 cd conftest.dir
4466 # We will build objects and dependencies in a subdirectory because
4467 # it helps to detect inapplicable dependency modes. For instance
4468 # both Tru64's cc and ICC support -MD to output dependencies as a
4469 # side effect of compilation, but ICC will put the dependencies in
4470 # the current directory while Tru64 will put them in the object
4471 # directory.
4472 mkdir sub
4473
4474 am_cv_CC_dependencies_compiler_type=none
4475 if test "$am_compiler_list" = ""; then
4476 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4477 fi
4478 am__universal=false
4479 case " $depcc " in #(
4480 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4481 esac
4482
4483 for depmode in $am_compiler_list; do
4484 # Setup a source with many dependencies, because some compilers
4485 # like to wrap large dependency lists on column 80 (with \), and
4486 # we should not choose a depcomp mode which is confused by this.
4487 #
4488 # We need to recreate these files for each test, as the compiler may
4489 # overwrite some of them when testing with obscure command lines.
4490 # This happens at least with the AIX C compiler.
4491 : > sub/conftest.c
4492 for i in 1 2 3 4 5 6; do
4493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4494 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4495 # Solaris 10 /bin/sh.
4496 echo '/* dummy */' > sub/conftst$i.h
4497 done
4498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4499
4500 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4501 # mode. It turns out that the SunPro C++ compiler does not properly
4502 # handle '-M -o', and we need to detect this. Also, some Intel
4503 # versions had trouble with output in subdirs.
4504 am__obj=sub/conftest.${OBJEXT-o}
4505 am__minus_obj="-o $am__obj"
4506 case $depmode in
4507 gcc)
4508 # This depmode causes a compiler race in universal mode.
4509 test "$am__universal" = false || continue
4510 ;;
4511 nosideeffect)
4512 # After this tag, mechanisms are not by side-effect, so they'll
4513 # only be used when explicitly requested.
4514 if test "x$enable_dependency_tracking" = xyes; then
4515 continue
4516 else
4517 break
4518 fi
4519 ;;
4520 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4521 # This compiler won't grok '-c -o', but also, the minuso test has
4522 # not run yet. These depmodes are late enough in the game, and
4523 # so weak that their functioning should not be impacted.
4524 am__obj=conftest.${OBJEXT-o}
4525 am__minus_obj=
4526 ;;
4527 none) break ;;
4528 esac
4529 if depmode=$depmode \
4530 source=sub/conftest.c object=$am__obj \
4531 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4532 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4533 >/dev/null 2>conftest.err &&
4534 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4535 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4536 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4537 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4538 # icc doesn't choke on unknown options, it will just issue warnings
4539 # or remarks (even with -Werror). So we grep stderr for any message
4540 # that says an option was ignored or not supported.
4541 # When given -MP, icc 7.0 and 7.1 complain thusly:
4542 # icc: Command line warning: ignoring option '-M'; no argument required
4543 # The diagnosis changed in icc 8.0:
4544 # icc: Command line remark: option '-MP' not supported
4545 if (grep 'ignoring option' conftest.err ||
4546 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4547 am_cv_CC_dependencies_compiler_type=$depmode
4548 break
4549 fi
4550 fi
4551 done
4552
4553 cd ..
4554 rm -rf conftest.dir
4555 else
4556 am_cv_CC_dependencies_compiler_type=none
4557 fi
4558
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4561 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4562 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4563
4564 if
4565 test "x$enable_dependency_tracking" != xno \
4566 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4567 am__fastdepCC_TRUE=
4568 am__fastdepCC_FALSE='#'
4569 else
4570 am__fastdepCC_TRUE='#'
4571 am__fastdepCC_FALSE=
4572 fi
4573
4574
4575
4576
4577
4578
4579 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4580 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4581 # in both places for now and restore CFLAGS at the end of config.
4582 save_CFLAGS="$CFLAGS"
4583
4584 # Add -Wall -Werror if we are using GCC.
4585 if test "x$GCC" = "xyes"; then
4586 XCFLAGS="$XCFLAGS -Wall -Werror"
4587 fi
4588
4589 # Find other programs we need.
4590 if test -n "$ac_tool_prefix"; then
4591 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4592 set dummy ${ac_tool_prefix}ar; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_AR+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$AR"; then
4599 ac_cv_prog_AR="$AR" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_AR="${ac_tool_prefix}ar"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 fi
4617 fi
4618 AR=$ac_cv_prog_AR
4619 if test -n "$AR"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4621 $as_echo "$AR" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4625 fi
4626
4627
4628 fi
4629 if test -z "$ac_cv_prog_AR"; then
4630 ac_ct_AR=$AR
4631 # Extract the first word of "ar", so it can be a program name with args.
4632 set dummy ar; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$ac_ct_AR"; then
4639 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_AR="ar"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi
4657 fi
4658 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4659 if test -n "$ac_ct_AR"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4661 $as_echo "$ac_ct_AR" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667 if test "x$ac_ct_AR" = x; then
4668 AR=""
4669 else
4670 case $cross_compiling:$ac_tool_warned in
4671 yes:)
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674 ac_tool_warned=yes ;;
4675 esac
4676 AR=$ac_ct_AR
4677 fi
4678 else
4679 AR="$ac_cv_prog_AR"
4680 fi
4681
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_RANLIB+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$RANLIB"; then
4691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 RANLIB=$ac_cv_prog_RANLIB
4711 if test -n "$RANLIB"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4713 $as_echo "$RANLIB" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719
4720 fi
4721 if test -z "$ac_cv_prog_RANLIB"; then
4722 ac_ct_RANLIB=$RANLIB
4723 # Extract the first word of "ranlib", so it can be a program name with args.
4724 set dummy ranlib; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test -n "$ac_ct_RANLIB"; then
4731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_ac_ct_RANLIB="ranlib"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
4743 fi
4744 done
4745 done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4751 if test -n "$ac_ct_RANLIB"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4753 $as_echo "$ac_ct_RANLIB" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4757 fi
4758
4759 if test "x$ac_ct_RANLIB" = x; then
4760 RANLIB="ranlib-not-found-in-path-error"
4761 else
4762 case $cross_compiling:$ac_tool_warned in
4763 yes:)
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 ac_tool_warned=yes ;;
4767 esac
4768 RANLIB=$ac_ct_RANLIB
4769 fi
4770 else
4771 RANLIB="$ac_cv_prog_RANLIB"
4772 fi
4773
4774 # Extract the first word of "perl", so it can be a program name with args.
4775 set dummy perl; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_path_PERL+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 case $PERL in
4782 [\\/]* | ?:[\\/]*)
4783 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4784 ;;
4785 *)
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4802 ;;
4803 esac
4804 fi
4805 PERL=$ac_cv_path_PERL
4806 if test -n "$PERL"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4808 $as_echo "$PERL" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4816 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4817 set x ${MAKE-make}
4818 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4819 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 cat >conftest.make <<\_ACEOF
4823 SHELL = /bin/sh
4824 all:
4825 @echo '@@@%%%=$(MAKE)=@@@%%%'
4826 _ACEOF
4827 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4828 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4829 *@@@%%%=?*=@@@%%%*)
4830 eval ac_cv_prog_make_${ac_make}_set=yes;;
4831 *)
4832 eval ac_cv_prog_make_${ac_make}_set=no;;
4833 esac
4834 rm -f conftest.make
4835 fi
4836 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4838 $as_echo "yes" >&6; }
4839 SET_MAKE=
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 SET_MAKE="MAKE=${MAKE-make}"
4844 fi
4845
4846
4847
4848 # See if makeinfo has been installed and is modern enough
4849 # that we can use it.
4850
4851 # Extract the first word of "makeinfo", so it can be a program name with args.
4852 set dummy makeinfo; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_MAKEINFO+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$MAKEINFO"; then
4859 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_MAKEINFO="makeinfo"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 MAKEINFO=$ac_cv_prog_MAKEINFO
4879 if test -n "$MAKEINFO"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4881 $as_echo "$MAKEINFO" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 if test -n "$MAKEINFO"; then
4889 # Found it, now check the version.
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4891 $as_echo_n "checking for modern makeinfo... " >&6; }
4892 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4896 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4897
4898 case $ac_prog_version in
4899 '') gcc_cv_prog_makeinfo_modern=no;;
4900 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4901 *) gcc_cv_prog_makeinfo_modern=no;;
4902 esac
4903
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4906 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4907 else
4908 gcc_cv_prog_makeinfo_modern=no
4909 fi
4910 if test $gcc_cv_prog_makeinfo_modern = no; then
4911 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4912 fi
4913
4914 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4915 BUILD_INFO_TRUE=
4916 BUILD_INFO_FALSE='#'
4917 else
4918 BUILD_INFO_TRUE='#'
4919 BUILD_INFO_FALSE=
4920 fi
4921
4922
4923
4924 # Configure libtool
4925 case `pwd` in
4926 *\ * | *\ *)
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4928 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4929 esac
4930
4931
4932
4933 macro_version='2.2.7a'
4934 macro_revision='1.3134'
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948 ltmain="$ac_aux_dir/ltmain.sh"
4949
4950 # Backslashify metacharacters that are still active within
4951 # double-quoted strings.
4952 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4953
4954 # Same as above, but do not quote variable references.
4955 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4956
4957 # Sed substitution to delay expansion of an escaped shell variable in a
4958 # double_quote_subst'ed string.
4959 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4960
4961 # Sed substitution to delay expansion of an escaped single quote.
4962 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4963
4964 # Sed substitution to avoid accidental globbing in evaled expressions
4965 no_glob_subst='s/\*/\\\*/g'
4966
4967 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4969 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4972 $as_echo_n "checking how to print strings... " >&6; }
4973 # Test print first, because it will be a builtin if present.
4974 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4975 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4976 ECHO='print -r --'
4977 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4978 ECHO='printf %s\n'
4979 else
4980 # Use this function as a fallback that always works.
4981 func_fallback_echo ()
4982 {
4983 eval 'cat <<_LTECHO_EOF
4984 $1
4985 _LTECHO_EOF'
4986 }
4987 ECHO='func_fallback_echo'
4988 fi
4989
4990 # func_echo_all arg...
4991 # Invoke $ECHO with all args, space-separated.
4992 func_echo_all ()
4993 {
4994 $ECHO ""
4995 }
4996
4997 case "$ECHO" in
4998 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4999 $as_echo "printf" >&6; } ;;
5000 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5001 $as_echo "print -r" >&6; } ;;
5002 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5003 $as_echo "cat" >&6; } ;;
5004 esac
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5020 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5021 if ${ac_cv_path_SED+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5025 for ac_i in 1 2 3 4 5 6 7; do
5026 ac_script="$ac_script$as_nl$ac_script"
5027 done
5028 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5029 { ac_script=; unset ac_script;}
5030 if test -z "$SED"; then
5031 ac_path_SED_found=false
5032 # Loop through the user's path and test for each of PROGNAME-LIST
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_prog in sed gsed; do
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5041 as_fn_executable_p "$ac_path_SED" || continue
5042 # Check for GNU ac_path_SED and select it if it is found.
5043 # Check for GNU $ac_path_SED
5044 case `"$ac_path_SED" --version 2>&1` in
5045 *GNU*)
5046 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5047 *)
5048 ac_count=0
5049 $as_echo_n 0123456789 >"conftest.in"
5050 while :
5051 do
5052 cat "conftest.in" "conftest.in" >"conftest.tmp"
5053 mv "conftest.tmp" "conftest.in"
5054 cp "conftest.in" "conftest.nl"
5055 $as_echo '' >> "conftest.nl"
5056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5058 as_fn_arith $ac_count + 1 && ac_count=$as_val
5059 if test $ac_count -gt ${ac_path_SED_max-0}; then
5060 # Best one so far, save it but keep looking for a better one
5061 ac_cv_path_SED="$ac_path_SED"
5062 ac_path_SED_max=$ac_count
5063 fi
5064 # 10*(2^10) chars as input seems more than enough
5065 test $ac_count -gt 10 && break
5066 done
5067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5068 esac
5069
5070 $ac_path_SED_found && break 3
5071 done
5072 done
5073 done
5074 IFS=$as_save_IFS
5075 if test -z "$ac_cv_path_SED"; then
5076 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5077 fi
5078 else
5079 ac_cv_path_SED=$SED
5080 fi
5081
5082 fi
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5084 $as_echo "$ac_cv_path_SED" >&6; }
5085 SED="$ac_cv_path_SED"
5086 rm -f conftest.sed
5087
5088 test -z "$SED" && SED=sed
5089 Xsed="$SED -e 1s/^X//"
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if ${ac_cv_path_GREP+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 if test -z "$GREP"; then
5107 ac_path_GREP_found=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_prog in grep ggrep; do
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5117 as_fn_executable_p "$ac_path_GREP" || continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119 # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5121 *GNU*)
5122 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5123 *)
5124 ac_count=0
5125 $as_echo_n 0123456789 >"conftest.in"
5126 while :
5127 do
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'GREP' >> "conftest.nl"
5132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5134 as_fn_arith $ac_count + 1 && ac_count=$as_val
5135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_GREP="$ac_path_GREP"
5138 ac_path_GREP_max=$ac_count
5139 fi
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5142 done
5143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 esac
5145
5146 $ac_path_GREP_found && break 3
5147 done
5148 done
5149 done
5150 IFS=$as_save_IFS
5151 if test -z "$ac_cv_path_GREP"; then
5152 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5153 fi
5154 else
5155 ac_cv_path_GREP=$GREP
5156 fi
5157
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161 GREP="$ac_cv_path_GREP"
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if ${ac_cv_path_EGREP+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5170 then ac_cv_path_EGREP="$GREP -E"
5171 else
5172 if test -z "$EGREP"; then
5173 ac_path_EGREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in egrep; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5183 as_fn_executable_p "$ac_path_EGREP" || continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185 # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5187 *GNU*)
5188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5189 *)
5190 ac_count=0
5191 $as_echo_n 0123456789 >"conftest.in"
5192 while :
5193 do
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'EGREP' >> "conftest.nl"
5198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_EGREP="$ac_path_EGREP"
5204 ac_path_EGREP_max=$ac_count
5205 fi
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5211
5212 $ac_path_EGREP_found && break 3
5213 done
5214 done
5215 done
5216 IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_EGREP"; then
5218 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219 fi
5220 else
5221 ac_cv_path_EGREP=$EGREP
5222 fi
5223
5224 fi
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5227 $as_echo "$ac_cv_path_EGREP" >&6; }
5228 EGREP="$ac_cv_path_EGREP"
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5232 $as_echo_n "checking for fgrep... " >&6; }
5233 if ${ac_cv_path_FGREP+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5237 then ac_cv_path_FGREP="$GREP -F"
5238 else
5239 if test -z "$FGREP"; then
5240 ac_path_FGREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244 do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in fgrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5250 as_fn_executable_p "$ac_path_FGREP" || continue
5251 # Check for GNU ac_path_FGREP and select it if it is found.
5252 # Check for GNU $ac_path_FGREP
5253 case `"$ac_path_FGREP" --version 2>&1` in
5254 *GNU*)
5255 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5256 *)
5257 ac_count=0
5258 $as_echo_n 0123456789 >"conftest.in"
5259 while :
5260 do
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 $as_echo 'FGREP' >> "conftest.nl"
5265 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_FGREP="$ac_path_FGREP"
5271 ac_path_FGREP_max=$ac_count
5272 fi
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5278
5279 $ac_path_FGREP_found && break 3
5280 done
5281 done
5282 done
5283 IFS=$as_save_IFS
5284 if test -z "$ac_cv_path_FGREP"; then
5285 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5286 fi
5287 else
5288 ac_cv_path_FGREP=$FGREP
5289 fi
5290
5291 fi
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5294 $as_echo "$ac_cv_path_FGREP" >&6; }
5295 FGREP="$ac_cv_path_FGREP"
5296
5297
5298 test -z "$GREP" && GREP=grep
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318 # Check whether --with-gnu-ld was given.
5319 if test "${with_gnu_ld+set}" = set; then :
5320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5321 else
5322 with_gnu_ld=no
5323 fi
5324
5325 ac_prog=ld
5326 if test "$GCC" = yes; then
5327 # Check if gcc -print-prog-name=ld gives a path.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5329 $as_echo_n "checking for ld used by $CC... " >&6; }
5330 case $host in
5331 *-*-mingw*)
5332 # gcc leaves a trailing carriage return which upsets mingw
5333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5334 *)
5335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5336 esac
5337 case $ac_prog in
5338 # Accept absolute paths.
5339 [\\/]* | ?:[\\/]*)
5340 re_direlt='/[^/][^/]*/\.\./'
5341 # Canonicalize the pathname of ld
5342 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5343 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5344 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5345 done
5346 test -z "$LD" && LD="$ac_prog"
5347 ;;
5348 "")
5349 # If it fails, then pretend we aren't using GCC.
5350 ac_prog=ld
5351 ;;
5352 *)
5353 # If it is relative, then search for the first ld in PATH.
5354 with_gnu_ld=unknown
5355 ;;
5356 esac
5357 elif test "$with_gnu_ld" = yes; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5359 $as_echo_n "checking for GNU ld... " >&6; }
5360 else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5362 $as_echo_n "checking for non-GNU ld... " >&6; }
5363 fi
5364 if ${lt_cv_path_LD+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -z "$LD"; then
5368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5369 for ac_dir in $PATH; do
5370 IFS="$lt_save_ifs"
5371 test -z "$ac_dir" && ac_dir=.
5372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5373 lt_cv_path_LD="$ac_dir/$ac_prog"
5374 # Check to see if the program is GNU ld. I'd rather use --version,
5375 # but apparently some variants of GNU ld only accept -v.
5376 # Break only if it was the GNU/non-GNU ld that we prefer.
5377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5378 *GNU* | *'with BFD'*)
5379 test "$with_gnu_ld" != no && break
5380 ;;
5381 *)
5382 test "$with_gnu_ld" != yes && break
5383 ;;
5384 esac
5385 fi
5386 done
5387 IFS="$lt_save_ifs"
5388 else
5389 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5390 fi
5391 fi
5392
5393 LD="$lt_cv_path_LD"
5394 if test -n "$LD"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5396 $as_echo "$LD" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5400 fi
5401 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5404 if ${lt_cv_prog_gnu_ld+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5408 case `$LD -v 2>&1 </dev/null` in
5409 *GNU* | *'with BFD'*)
5410 lt_cv_prog_gnu_ld=yes
5411 ;;
5412 *)
5413 lt_cv_prog_gnu_ld=no
5414 ;;
5415 esac
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5418 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5419 with_gnu_ld=$lt_cv_prog_gnu_ld
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5430 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5431 if ${lt_cv_path_NM+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -n "$NM"; then
5435 # Let the user override the test.
5436 lt_cv_path_NM="$NM"
5437 else
5438 lt_nm_to_check="${ac_tool_prefix}nm"
5439 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5440 lt_nm_to_check="$lt_nm_to_check nm"
5441 fi
5442 for lt_tmp_nm in $lt_nm_to_check; do
5443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5444 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5445 IFS="$lt_save_ifs"
5446 test -z "$ac_dir" && ac_dir=.
5447 tmp_nm="$ac_dir/$lt_tmp_nm"
5448 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5449 # Check to see if the nm accepts a BSD-compat flag.
5450 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5451 # nm: unknown option "B" ignored
5452 # Tru64's nm complains that /dev/null is an invalid object file
5453 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5454 */dev/null* | *'Invalid file or object type'*)
5455 lt_cv_path_NM="$tmp_nm -B"
5456 break
5457 ;;
5458 *)
5459 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5460 */dev/null*)
5461 lt_cv_path_NM="$tmp_nm -p"
5462 break
5463 ;;
5464 *)
5465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5466 continue # so that we can try to find one that supports BSD flags
5467 ;;
5468 esac
5469 ;;
5470 esac
5471 fi
5472 done
5473 IFS="$lt_save_ifs"
5474 done
5475 : ${lt_cv_path_NM=no}
5476 fi
5477 fi
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5479 $as_echo "$lt_cv_path_NM" >&6; }
5480 if test "$lt_cv_path_NM" != "no"; then
5481 NM="$lt_cv_path_NM"
5482 else
5483 # Didn't find any BSD compatible name lister, look for dumpbin.
5484 if test -n "$DUMPBIN"; then :
5485 # Let the user override the test.
5486 else
5487 if test -n "$ac_tool_prefix"; then
5488 for ac_prog in dumpbin "link -dump"
5489 do
5490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_DUMPBIN+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$DUMPBIN"; then
5498 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 DUMPBIN=$ac_cv_prog_DUMPBIN
5518 if test -n "$DUMPBIN"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5520 $as_echo "$DUMPBIN" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526
5527 test -n "$DUMPBIN" && break
5528 done
5529 fi
5530 if test -z "$DUMPBIN"; then
5531 ac_ct_DUMPBIN=$DUMPBIN
5532 for ac_prog in dumpbin "link -dump"
5533 do
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$ac_ct_DUMPBIN"; then
5542 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5562 if test -n "$ac_ct_DUMPBIN"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5564 $as_echo "$ac_ct_DUMPBIN" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570
5571 test -n "$ac_ct_DUMPBIN" && break
5572 done
5573
5574 if test "x$ac_ct_DUMPBIN" = x; then
5575 DUMPBIN=":"
5576 else
5577 case $cross_compiling:$ac_tool_warned in
5578 yes:)
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5582 esac
5583 DUMPBIN=$ac_ct_DUMPBIN
5584 fi
5585 fi
5586
5587 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5588 *COFF*)
5589 DUMPBIN="$DUMPBIN -symbols"
5590 ;;
5591 *)
5592 DUMPBIN=:
5593 ;;
5594 esac
5595 fi
5596
5597 if test "$DUMPBIN" != ":"; then
5598 NM="$DUMPBIN"
5599 fi
5600 fi
5601 test -z "$NM" && NM=nm
5602
5603
5604
5605
5606
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5609 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5610 if ${lt_cv_nm_interface+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 lt_cv_nm_interface="BSD nm"
5614 echo "int some_variable = 0;" > conftest.$ac_ext
5615 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5616 (eval "$ac_compile" 2>conftest.err)
5617 cat conftest.err >&5
5618 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5619 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5620 cat conftest.err >&5
5621 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5622 cat conftest.out >&5
5623 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5624 lt_cv_nm_interface="MS dumpbin"
5625 fi
5626 rm -f conftest*
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5629 $as_echo "$lt_cv_nm_interface" >&6; }
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5632 $as_echo_n "checking whether ln -s works... " >&6; }
5633 LN_S=$as_ln_s
5634 if test "$LN_S" = "ln -s"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5636 $as_echo "yes" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5639 $as_echo "no, using $LN_S" >&6; }
5640 fi
5641
5642 # find the maximum length of command line arguments
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5644 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5645 if ${lt_cv_sys_max_cmd_len+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 i=0
5649 teststring="ABCD"
5650
5651 case $build_os in
5652 msdosdjgpp*)
5653 # On DJGPP, this test can blow up pretty badly due to problems in libc
5654 # (any single argument exceeding 2000 bytes causes a buffer overrun
5655 # during glob expansion). Even if it were fixed, the result of this
5656 # check would be larger than it should be.
5657 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5658 ;;
5659
5660 gnu*)
5661 # Under GNU Hurd, this test is not required because there is
5662 # no limit to the length of command line arguments.
5663 # Libtool will interpret -1 as no limit whatsoever
5664 lt_cv_sys_max_cmd_len=-1;
5665 ;;
5666
5667 cygwin* | mingw* | cegcc*)
5668 # On Win9x/ME, this test blows up -- it succeeds, but takes
5669 # about 5 minutes as the teststring grows exponentially.
5670 # Worse, since 9x/ME are not pre-emptively multitasking,
5671 # you end up with a "frozen" computer, even though with patience
5672 # the test eventually succeeds (with a max line length of 256k).
5673 # Instead, let's just punt: use the minimum linelength reported by
5674 # all of the supported platforms: 8192 (on NT/2K/XP).
5675 lt_cv_sys_max_cmd_len=8192;
5676 ;;
5677
5678 mint*)
5679 # On MiNT this can take a long time and run out of memory.
5680 lt_cv_sys_max_cmd_len=8192;
5681 ;;
5682
5683 amigaos*)
5684 # On AmigaOS with pdksh, this test takes hours, literally.
5685 # So we just punt and use a minimum line length of 8192.
5686 lt_cv_sys_max_cmd_len=8192;
5687 ;;
5688
5689 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5690 # This has been around since 386BSD, at least. Likely further.
5691 if test -x /sbin/sysctl; then
5692 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5693 elif test -x /usr/sbin/sysctl; then
5694 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5695 else
5696 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5697 fi
5698 # And add a safety zone
5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5701 ;;
5702
5703 interix*)
5704 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5705 lt_cv_sys_max_cmd_len=196608
5706 ;;
5707
5708 osf*)
5709 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5710 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5711 # nice to cause kernel panics so lets avoid the loop below.
5712 # First set a reasonable default.
5713 lt_cv_sys_max_cmd_len=16384
5714 #
5715 if test -x /sbin/sysconfig; then
5716 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5717 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5718 esac
5719 fi
5720 ;;
5721 sco3.2v5*)
5722 lt_cv_sys_max_cmd_len=102400
5723 ;;
5724 sysv5* | sco5v6* | sysv4.2uw2*)
5725 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5726 if test -n "$kargmax"; then
5727 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5728 else
5729 lt_cv_sys_max_cmd_len=32768
5730 fi
5731 ;;
5732 *)
5733 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5734 if test -n "$lt_cv_sys_max_cmd_len"; then
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5737 else
5738 # Make teststring a little bigger before we do anything with it.
5739 # a 1K string should be a reasonable start.
5740 for i in 1 2 3 4 5 6 7 8 ; do
5741 teststring=$teststring$teststring
5742 done
5743 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5744 # If test is not a shell built-in, we'll probably end up computing a
5745 # maximum length that is only half of the actual maximum length, but
5746 # we can't tell.
5747 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5748 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5749 test $i != 17 # 1/2 MB should be enough
5750 do
5751 i=`expr $i + 1`
5752 teststring=$teststring$teststring
5753 done
5754 # Only check the string length outside the loop.
5755 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5756 teststring=
5757 # Add a significant safety factor because C++ compilers can tack on
5758 # massive amounts of additional arguments before passing them to the
5759 # linker. It appears as though 1/2 is a usable value.
5760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5761 fi
5762 ;;
5763 esac
5764
5765 fi
5766
5767 if test -n $lt_cv_sys_max_cmd_len ; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5769 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5772 $as_echo "none" >&6; }
5773 fi
5774 max_cmd_len=$lt_cv_sys_max_cmd_len
5775
5776
5777
5778
5779
5780
5781 : ${CP="cp -f"}
5782 : ${MV="mv -f"}
5783 : ${RM="rm -f"}
5784
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5786 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5787 # Try some XSI features
5788 xsi_shell=no
5789 ( _lt_dummy="a/b/c"
5790 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5791 = c,a/b,, \
5792 && eval 'test $(( 1 + 1 )) -eq 2 \
5793 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5794 && xsi_shell=yes
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5796 $as_echo "$xsi_shell" >&6; }
5797
5798
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5800 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5801 lt_shell_append=no
5802 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5803 >/dev/null 2>&1 \
5804 && lt_shell_append=yes
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5806 $as_echo "$lt_shell_append" >&6; }
5807
5808
5809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5810 lt_unset=unset
5811 else
5812 lt_unset=false
5813 fi
5814
5815
5816
5817
5818
5819 # test EBCDIC or ASCII
5820 case `echo X|tr X '\101'` in
5821 A) # ASCII based system
5822 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5823 lt_SP2NL='tr \040 \012'
5824 lt_NL2SP='tr \015\012 \040\040'
5825 ;;
5826 *) # EBCDIC based system
5827 lt_SP2NL='tr \100 \n'
5828 lt_NL2SP='tr \r\n \100\100'
5829 ;;
5830 esac
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5841 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5842 if ${lt_cv_ld_reload_flag+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 lt_cv_ld_reload_flag='-r'
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5848 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5849 reload_flag=$lt_cv_ld_reload_flag
5850 case $reload_flag in
5851 "" | " "*) ;;
5852 *) reload_flag=" $reload_flag" ;;
5853 esac
5854 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5855 case $host_os in
5856 darwin*)
5857 if test "$GCC" = yes; then
5858 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5859 else
5860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5861 fi
5862 ;;
5863 esac
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_OBJDUMP+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -n "$OBJDUMP"; then
5882 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899 fi
5900 fi
5901 OBJDUMP=$ac_cv_prog_OBJDUMP
5902 if test -n "$OBJDUMP"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5904 $as_echo "$OBJDUMP" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5908 fi
5909
5910
5911 fi
5912 if test -z "$ac_cv_prog_OBJDUMP"; then
5913 ac_ct_OBJDUMP=$OBJDUMP
5914 # Extract the first word of "objdump", so it can be a program name with args.
5915 set dummy objdump; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$ac_ct_OBJDUMP"; then
5922 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5942 if test -n "$ac_ct_OBJDUMP"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5944 $as_echo "$ac_ct_OBJDUMP" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950 if test "x$ac_ct_OBJDUMP" = x; then
5951 OBJDUMP="false"
5952 else
5953 case $cross_compiling:$ac_tool_warned in
5954 yes:)
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5957 ac_tool_warned=yes ;;
5958 esac
5959 OBJDUMP=$ac_ct_OBJDUMP
5960 fi
5961 else
5962 OBJDUMP="$ac_cv_prog_OBJDUMP"
5963 fi
5964
5965 test -z "$OBJDUMP" && OBJDUMP=objdump
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5976 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5977 if ${lt_cv_deplibs_check_method+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 lt_cv_file_magic_cmd='$MAGIC_CMD'
5981 lt_cv_file_magic_test_file=
5982 lt_cv_deplibs_check_method='unknown'
5983 # Need to set the preceding variable on all platforms that support
5984 # interlibrary dependencies.
5985 # 'none' -- dependencies not supported.
5986 # `unknown' -- same as none, but documents that we really don't know.
5987 # 'pass_all' -- all dependencies passed with no checks.
5988 # 'test_compile' -- check by making test program.
5989 # 'file_magic [[regex]]' -- check by looking for files in library path
5990 # which responds to the $file_magic_cmd with a given extended regex.
5991 # If you have `file' or equivalent on your system and you're not sure
5992 # whether `pass_all' will *always* work, you probably want this one.
5993
5994 case $host_os in
5995 aix[4-9]*)
5996 lt_cv_deplibs_check_method=pass_all
5997 ;;
5998
5999 beos*)
6000 lt_cv_deplibs_check_method=pass_all
6001 ;;
6002
6003 bsdi[45]*)
6004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6005 lt_cv_file_magic_cmd='/usr/bin/file -L'
6006 lt_cv_file_magic_test_file=/shlib/libc.so
6007 ;;
6008
6009 cygwin*)
6010 # func_win32_libid is a shell function defined in ltmain.sh
6011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6012 lt_cv_file_magic_cmd='func_win32_libid'
6013 ;;
6014
6015 mingw* | pw32*)
6016 # Base MSYS/MinGW do not provide the 'file' command needed by
6017 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6018 # unless we find 'file', for example because we are cross-compiling.
6019 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6020 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6022 lt_cv_file_magic_cmd='func_win32_libid'
6023 else
6024 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6025 lt_cv_file_magic_cmd='$OBJDUMP -f'
6026 fi
6027 ;;
6028
6029 cegcc*)
6030 # use the weaker test based on 'objdump'. See mingw*.
6031 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6032 lt_cv_file_magic_cmd='$OBJDUMP -f'
6033 ;;
6034
6035 darwin* | rhapsody*)
6036 lt_cv_deplibs_check_method=pass_all
6037 ;;
6038
6039 freebsd* | dragonfly*)
6040 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6041 case $host_cpu in
6042 i*86 )
6043 # Not sure whether the presence of OpenBSD here was a mistake.
6044 # Let's accept both of them until this is cleared up.
6045 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6046 lt_cv_file_magic_cmd=/usr/bin/file
6047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6048 ;;
6049 esac
6050 else
6051 lt_cv_deplibs_check_method=pass_all
6052 fi
6053 ;;
6054
6055 gnu*)
6056 lt_cv_deplibs_check_method=pass_all
6057 ;;
6058
6059 haiku*)
6060 lt_cv_deplibs_check_method=pass_all
6061 ;;
6062
6063 hpux10.20* | hpux11*)
6064 lt_cv_file_magic_cmd=/usr/bin/file
6065 case $host_cpu in
6066 ia64*)
6067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6068 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6069 ;;
6070 hppa*64*)
6071 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]'
6072 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6073 ;;
6074 *)
6075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6076 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6077 ;;
6078 esac
6079 ;;
6080
6081 interix[3-9]*)
6082 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6084 ;;
6085
6086 irix5* | irix6* | nonstopux*)
6087 case $LD in
6088 *-32|*"-32 ") libmagic=32-bit;;
6089 *-n32|*"-n32 ") libmagic=N32;;
6090 *-64|*"-64 ") libmagic=64-bit;;
6091 *) libmagic=never-match;;
6092 esac
6093 lt_cv_deplibs_check_method=pass_all
6094 ;;
6095
6096 # This must be Linux ELF.
6097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6098 lt_cv_deplibs_check_method=pass_all
6099 ;;
6100
6101 netbsd*)
6102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6104 else
6105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6106 fi
6107 ;;
6108
6109 newos6*)
6110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6111 lt_cv_file_magic_cmd=/usr/bin/file
6112 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6113 ;;
6114
6115 *nto* | *qnx*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
6118
6119 openbsd*)
6120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6122 else
6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6124 fi
6125 ;;
6126
6127 osf3* | osf4* | osf5*)
6128 lt_cv_deplibs_check_method=pass_all
6129 ;;
6130
6131 rdos*)
6132 lt_cv_deplibs_check_method=pass_all
6133 ;;
6134
6135 solaris*)
6136 lt_cv_deplibs_check_method=pass_all
6137 ;;
6138
6139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142
6143 sysv4 | sysv4.3*)
6144 case $host_vendor in
6145 motorola)
6146 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]'
6147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6148 ;;
6149 ncr)
6150 lt_cv_deplibs_check_method=pass_all
6151 ;;
6152 sequent)
6153 lt_cv_file_magic_cmd='/bin/file'
6154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6155 ;;
6156 sni)
6157 lt_cv_file_magic_cmd='/bin/file'
6158 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6159 lt_cv_file_magic_test_file=/lib/libc.so
6160 ;;
6161 siemens)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164 pc)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167 esac
6168 ;;
6169
6170 tpf*)
6171 lt_cv_deplibs_check_method=pass_all
6172 ;;
6173 esac
6174
6175 fi
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6178 file_magic_cmd=$lt_cv_file_magic_cmd
6179 deplibs_check_method=$lt_cv_deplibs_check_method
6180 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193 if test -n "$ac_tool_prefix"; then
6194 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6195 set dummy ${ac_tool_prefix}ar; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if ${ac_cv_prog_AR+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -n "$AR"; then
6202 ac_cv_prog_AR="$AR" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_AR="${ac_tool_prefix}ar"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6214 fi
6215 done
6216 done
6217 IFS=$as_save_IFS
6218
6219 fi
6220 fi
6221 AR=$ac_cv_prog_AR
6222 if test -n "$AR"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6224 $as_echo "$AR" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6229
6230
6231 fi
6232 if test -z "$ac_cv_prog_AR"; then
6233 ac_ct_AR=$AR
6234 # Extract the first word of "ar", so it can be a program name with args.
6235 set dummy ar; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if test -n "$ac_ct_AR"; then
6242 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_ac_ct_AR="ar"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255 done
6256 done
6257 IFS=$as_save_IFS
6258
6259 fi
6260 fi
6261 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6262 if test -n "$ac_ct_AR"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6264 $as_echo "$ac_ct_AR" >&6; }
6265 else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6268 fi
6269
6270 if test "x$ac_ct_AR" = x; then
6271 AR="false"
6272 else
6273 case $cross_compiling:$ac_tool_warned in
6274 yes:)
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277 ac_tool_warned=yes ;;
6278 esac
6279 AR=$ac_ct_AR
6280 fi
6281 else
6282 AR="$ac_cv_prog_AR"
6283 fi
6284
6285 test -z "$AR" && AR=ar
6286 test -z "$AR_FLAGS" && AR_FLAGS=cru
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}strip; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_STRIP+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$STRIP"; then
6307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 STRIP=$ac_cv_prog_STRIP
6327 if test -n "$STRIP"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6329 $as_echo "$STRIP" >&6; }
6330 else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335
6336 fi
6337 if test -z "$ac_cv_prog_STRIP"; then
6338 ac_ct_STRIP=$STRIP
6339 # Extract the first word of "strip", so it can be a program name with args.
6340 set dummy strip; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$ac_ct_STRIP"; then
6347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_ac_ct_STRIP="strip"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6367 if test -n "$ac_ct_STRIP"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6369 $as_echo "$ac_ct_STRIP" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374
6375 if test "x$ac_ct_STRIP" = x; then
6376 STRIP=":"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384 STRIP=$ac_ct_STRIP
6385 fi
6386 else
6387 STRIP="$ac_cv_prog_STRIP"
6388 fi
6389
6390 test -z "$STRIP" && STRIP=:
6391
6392
6393
6394
6395
6396
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_RANLIB+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$RANLIB"; then
6406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 RANLIB=$ac_cv_prog_RANLIB
6426 if test -n "$RANLIB"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6428 $as_echo "$RANLIB" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 fi
6436 if test -z "$ac_cv_prog_RANLIB"; then
6437 ac_ct_RANLIB=$RANLIB
6438 # Extract the first word of "ranlib", so it can be a program name with args.
6439 set dummy ranlib; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$ac_ct_RANLIB"; then
6446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_prog_ac_ct_RANLIB="ranlib"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6466 if test -n "$ac_ct_RANLIB"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6468 $as_echo "$ac_ct_RANLIB" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474 if test "x$ac_ct_RANLIB" = x; then
6475 RANLIB=":"
6476 else
6477 case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483 RANLIB=$ac_ct_RANLIB
6484 fi
6485 else
6486 RANLIB="$ac_cv_prog_RANLIB"
6487 fi
6488
6489 test -z "$RANLIB" && RANLIB=:
6490
6491
6492
6493
6494
6495
6496 # Determine commands to create old-style static archives.
6497 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6498 old_postinstall_cmds='chmod 644 $oldlib'
6499 old_postuninstall_cmds=
6500
6501 if test -n "$RANLIB"; then
6502 case $host_os in
6503 openbsd*)
6504 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6505 ;;
6506 *)
6507 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6508 ;;
6509 esac
6510 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6511 fi
6512
6513 case $host_os in
6514 darwin*)
6515 lock_old_archive_extraction=yes ;;
6516 *)
6517 lock_old_archive_extraction=no ;;
6518 esac
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 # If no C compiler was specified, use CC.
6559 LTCC=${LTCC-"$CC"}
6560
6561 # If no C compiler flags were specified, use CFLAGS.
6562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6563
6564 # Allow CC to be a program name with arguments.
6565 compiler=$CC
6566
6567
6568 # Check for command to grab the raw symbol name followed by C symbol from nm.
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6570 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6571 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574
6575 # These are sane defaults that work on at least a few old systems.
6576 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6577
6578 # Character class describing NM global symbol codes.
6579 symcode='[BCDEGRST]'
6580
6581 # Regexp to match symbols that can be accessed directly from C.
6582 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6583
6584 # Define system-specific variables.
6585 case $host_os in
6586 aix*)
6587 symcode='[BCDT]'
6588 ;;
6589 cygwin* | mingw* | pw32* | cegcc*)
6590 symcode='[ABCDGISTW]'
6591 ;;
6592 hpux*)
6593 if test "$host_cpu" = ia64; then
6594 symcode='[ABCDEGRST]'
6595 fi
6596 ;;
6597 irix* | nonstopux*)
6598 symcode='[BCDEGRST]'
6599 ;;
6600 osf*)
6601 symcode='[BCDEGQRST]'
6602 ;;
6603 solaris*)
6604 symcode='[BDRT]'
6605 ;;
6606 sco3.2v5*)
6607 symcode='[DT]'
6608 ;;
6609 sysv4.2uw2*)
6610 symcode='[DT]'
6611 ;;
6612 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6613 symcode='[ABDT]'
6614 ;;
6615 sysv4)
6616 symcode='[DFNSTU]'
6617 ;;
6618 esac
6619
6620 # If we're using GNU nm, then use its standard symbol codes.
6621 case `$NM -V 2>&1` in
6622 *GNU* | *'with BFD'*)
6623 symcode='[ABCDGIRSTW]' ;;
6624 esac
6625
6626 # Transform an extracted symbol line into a proper C declaration.
6627 # Some systems (esp. on ia64) link data and code symbols differently,
6628 # so use this general approach.
6629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6630
6631 # Transform an extracted symbol line into symbol name and symbol address
6632 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6633 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6634
6635 # Handle CRLF in mingw tool chain
6636 opt_cr=
6637 case $build_os in
6638 mingw*)
6639 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6640 ;;
6641 esac
6642
6643 # Try without a prefix underscore, then with it.
6644 for ac_symprfx in "" "_"; do
6645
6646 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6647 symxfrm="\\1 $ac_symprfx\\2 \\2"
6648
6649 # Write the raw and C identifiers.
6650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6651 # Fake it for dumpbin and say T for any non-static function
6652 # and D for any global variable.
6653 # Also find C++ and __fastcall symbols from MSVC++,
6654 # which start with @ or ?.
6655 lt_cv_sys_global_symbol_pipe="$AWK '"\
6656 " {last_section=section; section=\$ 3};"\
6657 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6658 " \$ 0!~/External *\|/{next};"\
6659 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6660 " {if(hide[section]) next};"\
6661 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6662 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6663 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6664 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6665 " ' prfx=^$ac_symprfx"
6666 else
6667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6668 fi
6669
6670 # Check to see that the pipe works correctly.
6671 pipe_works=no
6672
6673 rm -f conftest*
6674 cat > conftest.$ac_ext <<_LT_EOF
6675 #ifdef __cplusplus
6676 extern "C" {
6677 #endif
6678 char nm_test_var;
6679 void nm_test_func(void);
6680 void nm_test_func(void){}
6681 #ifdef __cplusplus
6682 }
6683 #endif
6684 int main(){nm_test_var='a';nm_test_func();return(0);}
6685 _LT_EOF
6686
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688 (eval $ac_compile) 2>&5
6689 ac_status=$?
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691 test $ac_status = 0; }; then
6692 # Now try to grab the symbols.
6693 nlist=conftest.nm
6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6695 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6696 ac_status=$?
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; } && test -s "$nlist"; then
6699 # Try sorting and uniquifying the output.
6700 if sort "$nlist" | uniq > "$nlist"T; then
6701 mv -f "$nlist"T "$nlist"
6702 else
6703 rm -f "$nlist"T
6704 fi
6705
6706 # Make sure that we snagged all the symbols we need.
6707 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6708 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6709 cat <<_LT_EOF > conftest.$ac_ext
6710 #ifdef __cplusplus
6711 extern "C" {
6712 #endif
6713
6714 _LT_EOF
6715 # Now generate the symbol file.
6716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6717
6718 cat <<_LT_EOF >> conftest.$ac_ext
6719
6720 /* The mapping between symbol names and symbols. */
6721 const struct {
6722 const char *name;
6723 void *address;
6724 }
6725 lt__PROGRAM__LTX_preloaded_symbols[] =
6726 {
6727 { "@PROGRAM@", (void *) 0 },
6728 _LT_EOF
6729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6730 cat <<\_LT_EOF >> conftest.$ac_ext
6731 {0, (void *) 0}
6732 };
6733
6734 /* This works around a problem in FreeBSD linker */
6735 #ifdef FREEBSD_WORKAROUND
6736 static const void *lt_preloaded_setup() {
6737 return lt__PROGRAM__LTX_preloaded_symbols;
6738 }
6739 #endif
6740
6741 #ifdef __cplusplus
6742 }
6743 #endif
6744 _LT_EOF
6745 # Now try linking the two files.
6746 mv conftest.$ac_objext conftstm.$ac_objext
6747 lt_save_LIBS="$LIBS"
6748 lt_save_CFLAGS="$CFLAGS"
6749 LIBS="conftstm.$ac_objext"
6750 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6752 (eval $ac_link) 2>&5
6753 ac_status=$?
6754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6756 pipe_works=yes
6757 fi
6758 LIBS="$lt_save_LIBS"
6759 CFLAGS="$lt_save_CFLAGS"
6760 else
6761 echo "cannot find nm_test_func in $nlist" >&5
6762 fi
6763 else
6764 echo "cannot find nm_test_var in $nlist" >&5
6765 fi
6766 else
6767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6768 fi
6769 else
6770 echo "$progname: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6772 fi
6773 rm -rf conftest* conftst*
6774
6775 # Do not use the global_symbol_pipe unless it works.
6776 if test "$pipe_works" = yes; then
6777 break
6778 else
6779 lt_cv_sys_global_symbol_pipe=
6780 fi
6781 done
6782
6783 fi
6784
6785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6786 lt_cv_sys_global_symbol_to_cdecl=
6787 fi
6788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6790 $as_echo "failed" >&6; }
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6793 $as_echo "ok" >&6; }
6794 fi
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818 # Check whether --enable-libtool-lock was given.
6819 if test "${enable_libtool_lock+set}" = set; then :
6820 enableval=$enable_libtool_lock;
6821 fi
6822
6823 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6824
6825 # Some flags need to be propagated to the compiler or linker for good
6826 # libtool support.
6827 case $host in
6828 ia64-*-hpux*)
6829 # Find out which ABI we are using.
6830 echo 'int i;' > conftest.$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.$ac_objext` in
6837 *ELF-32*)
6838 HPUX_IA64_MODE="32"
6839 ;;
6840 *ELF-64*)
6841 HPUX_IA64_MODE="64"
6842 ;;
6843 esac
6844 fi
6845 rm -rf conftest*
6846 ;;
6847 *-*-irix6*)
6848 # Find out which ABI we are using.
6849 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6852 ac_status=$?
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 if test "$lt_cv_prog_gnu_ld" = yes; then
6856 case `/usr/bin/file conftest.$ac_objext` in
6857 *32-bit*)
6858 LD="${LD-ld} -melf32bsmip"
6859 ;;
6860 *N32*)
6861 LD="${LD-ld} -melf32bmipn32"
6862 ;;
6863 *64-bit*)
6864 LD="${LD-ld} -melf64bmip"
6865 ;;
6866 esac
6867 else
6868 case `/usr/bin/file conftest.$ac_objext` in
6869 *32-bit*)
6870 LD="${LD-ld} -32"
6871 ;;
6872 *N32*)
6873 LD="${LD-ld} -n32"
6874 ;;
6875 *64-bit*)
6876 LD="${LD-ld} -64"
6877 ;;
6878 esac
6879 fi
6880 fi
6881 rm -rf conftest*
6882 ;;
6883
6884 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6885 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6886 # Find out which ABI we are using.
6887 echo 'int i;' > conftest.$ac_ext
6888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889 (eval $ac_compile) 2>&5
6890 ac_status=$?
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }; then
6893 case `/usr/bin/file conftest.o` in
6894 *32-bit*)
6895 case $host in
6896 x86_64-*kfreebsd*-gnu)
6897 LD="${LD-ld} -m elf_i386_fbsd"
6898 ;;
6899 x86_64-*linux*)
6900 case `/usr/bin/file conftest.o` in
6901 *x86-64*)
6902 LD="${LD-ld} -m elf32_x86_64"
6903 ;;
6904 *)
6905 LD="${LD-ld} -m elf_i386"
6906 ;;
6907 esac
6908 ;;
6909 powerpc64le-*linux*)
6910 LD="${LD-ld} -m elf32lppclinux"
6911 ;;
6912 powerpc64-*linux*)
6913 LD="${LD-ld} -m elf32ppclinux"
6914 ;;
6915 s390x-*linux*)
6916 LD="${LD-ld} -m elf_s390"
6917 ;;
6918 sparc64-*linux*)
6919 LD="${LD-ld} -m elf32_sparc"
6920 ;;
6921 esac
6922 ;;
6923 *64-bit*)
6924 case $host in
6925 x86_64-*kfreebsd*-gnu)
6926 LD="${LD-ld} -m elf_x86_64_fbsd"
6927 ;;
6928 x86_64-*linux*)
6929 LD="${LD-ld} -m elf_x86_64"
6930 ;;
6931 powerpcle-*linux*)
6932 LD="${LD-ld} -m elf64lppc"
6933 ;;
6934 powerpc-*linux*)
6935 LD="${LD-ld} -m elf64ppc"
6936 ;;
6937 s390*-*linux*|s390*-*tpf*)
6938 LD="${LD-ld} -m elf64_s390"
6939 ;;
6940 sparc*-*linux*)
6941 LD="${LD-ld} -m elf64_sparc"
6942 ;;
6943 esac
6944 ;;
6945 esac
6946 fi
6947 rm -rf conftest*
6948 ;;
6949
6950 *-*-sco3.2v5*)
6951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6952 SAVE_CFLAGS="$CFLAGS"
6953 CFLAGS="$CFLAGS -belf"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6955 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6956 if ${lt_cv_cc_needs_belf+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 ac_ext=c
6960 ac_cpp='$CPP $CPPFLAGS'
6961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6967
6968 int
6969 main ()
6970 {
6971
6972 ;
6973 return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 lt_cv_cc_needs_belf=yes
6978 else
6979 lt_cv_cc_needs_belf=no
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 ac_ext=c
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989 fi
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6991 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6992 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6993 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6994 CFLAGS="$SAVE_CFLAGS"
6995 fi
6996 ;;
6997 sparc*-*solaris*)
6998 # Find out which ABI we are using.
6999 echo 'int i;' > conftest.$ac_ext
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7002 ac_status=$?
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 case `/usr/bin/file conftest.o` in
7006 *64-bit*)
7007 case $lt_cv_prog_gnu_ld in
7008 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7009 *)
7010 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7011 LD="${LD-ld} -64"
7012 fi
7013 ;;
7014 esac
7015 ;;
7016 esac
7017 fi
7018 rm -rf conftest*
7019 ;;
7020 esac
7021
7022 need_locks="$enable_libtool_lock"
7023
7024
7025 case $host_os in
7026 rhapsody* | darwin*)
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$DSYMUTIL"; then
7036 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7056 if test -n "$DSYMUTIL"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7058 $as_echo "$DSYMUTIL" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064
7065 fi
7066 if test -z "$ac_cv_prog_DSYMUTIL"; then
7067 ac_ct_DSYMUTIL=$DSYMUTIL
7068 # Extract the first word of "dsymutil", so it can be a program name with args.
7069 set dummy dsymutil; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_DSYMUTIL"; then
7076 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7096 if test -n "$ac_ct_DSYMUTIL"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7098 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104 if test "x$ac_ct_DSYMUTIL" = x; then
7105 DSYMUTIL=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 DSYMUTIL=$ac_ct_DSYMUTIL
7114 fi
7115 else
7116 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7117 fi
7118
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_NMEDIT+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$NMEDIT"; then
7128 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 NMEDIT=$ac_cv_prog_NMEDIT
7148 if test -n "$NMEDIT"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7150 $as_echo "$NMEDIT" >&6; }
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156
7157 fi
7158 if test -z "$ac_cv_prog_NMEDIT"; then
7159 ac_ct_NMEDIT=$NMEDIT
7160 # Extract the first word of "nmedit", so it can be a program name with args.
7161 set dummy nmedit; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$ac_ct_NMEDIT"; then
7168 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7188 if test -n "$ac_ct_NMEDIT"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7190 $as_echo "$ac_ct_NMEDIT" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196 if test "x$ac_ct_NMEDIT" = x; then
7197 NMEDIT=":"
7198 else
7199 case $cross_compiling:$ac_tool_warned in
7200 yes:)
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205 NMEDIT=$ac_ct_NMEDIT
7206 fi
7207 else
7208 NMEDIT="$ac_cv_prog_NMEDIT"
7209 fi
7210
7211 if test -n "$ac_tool_prefix"; then
7212 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7213 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_LIPO+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 if test -n "$LIPO"; then
7220 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237 fi
7238 fi
7239 LIPO=$ac_cv_prog_LIPO
7240 if test -n "$LIPO"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7242 $as_echo "$LIPO" >&6; }
7243 else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7246 fi
7247
7248
7249 fi
7250 if test -z "$ac_cv_prog_LIPO"; then
7251 ac_ct_LIPO=$LIPO
7252 # Extract the first word of "lipo", so it can be a program name with args.
7253 set dummy lipo; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test -n "$ac_ct_LIPO"; then
7260 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_LIPO="lipo"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273 done
7274 done
7275 IFS=$as_save_IFS
7276
7277 fi
7278 fi
7279 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7280 if test -n "$ac_ct_LIPO"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7282 $as_echo "$ac_ct_LIPO" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288 if test "x$ac_ct_LIPO" = x; then
7289 LIPO=":"
7290 else
7291 case $cross_compiling:$ac_tool_warned in
7292 yes:)
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295 ac_tool_warned=yes ;;
7296 esac
7297 LIPO=$ac_ct_LIPO
7298 fi
7299 else
7300 LIPO="$ac_cv_prog_LIPO"
7301 fi
7302
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}otool; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_OTOOL+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -n "$OTOOL"; then
7312 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329 fi
7330 fi
7331 OTOOL=$ac_cv_prog_OTOOL
7332 if test -n "$OTOOL"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7334 $as_echo "$OTOOL" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340
7341 fi
7342 if test -z "$ac_cv_prog_OTOOL"; then
7343 ac_ct_OTOOL=$OTOOL
7344 # Extract the first word of "otool", so it can be a program name with args.
7345 set dummy otool; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$ac_ct_OTOOL"; then
7352 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_OTOOL="otool"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7372 if test -n "$ac_ct_OTOOL"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7374 $as_echo "$ac_ct_OTOOL" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380 if test "x$ac_ct_OTOOL" = x; then
7381 OTOOL=":"
7382 else
7383 case $cross_compiling:$ac_tool_warned in
7384 yes:)
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389 OTOOL=$ac_ct_OTOOL
7390 fi
7391 else
7392 OTOOL="$ac_cv_prog_OTOOL"
7393 fi
7394
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_OTOOL64+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 if test -n "$OTOOL64"; then
7404 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 OTOOL64=$ac_cv_prog_OTOOL64
7424 if test -n "$OTOOL64"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7426 $as_echo "$OTOOL64" >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432
7433 fi
7434 if test -z "$ac_cv_prog_OTOOL64"; then
7435 ac_ct_OTOOL64=$OTOOL64
7436 # Extract the first word of "otool64", so it can be a program name with args.
7437 set dummy otool64; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 if test -n "$ac_ct_OTOOL64"; then
7444 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_OTOOL64="otool64"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7456 fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7460
7461 fi
7462 fi
7463 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7464 if test -n "$ac_ct_OTOOL64"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7466 $as_echo "$ac_ct_OTOOL64" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 fi
7471
7472 if test "x$ac_ct_OTOOL64" = x; then
7473 OTOOL64=":"
7474 else
7475 case $cross_compiling:$ac_tool_warned in
7476 yes:)
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned=yes ;;
7480 esac
7481 OTOOL64=$ac_ct_OTOOL64
7482 fi
7483 else
7484 OTOOL64="$ac_cv_prog_OTOOL64"
7485 fi
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7514 $as_echo_n "checking for -single_module linker flag... " >&6; }
7515 if ${lt_cv_apple_cc_single_mod+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 lt_cv_apple_cc_single_mod=no
7519 if test -z "${LT_MULTI_MODULE}"; then
7520 # By default we will add the -single_module flag. You can override
7521 # by either setting the environment variable LT_MULTI_MODULE
7522 # non-empty at configure time, or by adding -multi_module to the
7523 # link flags.
7524 rm -rf libconftest.dylib*
7525 echo "int foo(void){return 1;}" > conftest.c
7526 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527 -dynamiclib -Wl,-single_module conftest.c" >&5
7528 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7529 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7530 _lt_result=$?
7531 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7532 lt_cv_apple_cc_single_mod=yes
7533 else
7534 cat conftest.err >&5
7535 fi
7536 rm -rf libconftest.dylib*
7537 rm -f conftest.*
7538 fi
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7541 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7543 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7544 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 lt_cv_ld_exported_symbols_list=no
7548 save_LDFLAGS=$LDFLAGS
7549 echo "_main" > conftest.sym
7550 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553
7554 int
7555 main ()
7556 {
7557
7558 ;
7559 return 0;
7560 }
7561 _ACEOF
7562 if ac_fn_c_try_link "$LINENO"; then :
7563 lt_cv_ld_exported_symbols_list=yes
7564 else
7565 lt_cv_ld_exported_symbols_list=no
7566 fi
7567 rm -f core conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7569 LDFLAGS="$save_LDFLAGS"
7570
7571 fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7573 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7575 $as_echo_n "checking for -force_load linker flag... " >&6; }
7576 if ${lt_cv_ld_force_load+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 lt_cv_ld_force_load=no
7580 cat > conftest.c << _LT_EOF
7581 int forced_loaded() { return 2;}
7582 _LT_EOF
7583 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7584 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7585 echo "$AR cru libconftest.a conftest.o" >&5
7586 $AR cru libconftest.a conftest.o 2>&5
7587 cat > conftest.c << _LT_EOF
7588 int main() { return 0;}
7589 _LT_EOF
7590 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7591 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7592 _lt_result=$?
7593 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7594 lt_cv_ld_force_load=yes
7595 else
7596 cat conftest.err >&5
7597 fi
7598 rm -f conftest.err libconftest.a conftest conftest.c
7599 rm -rf conftest.dSYM
7600
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7603 $as_echo "$lt_cv_ld_force_load" >&6; }
7604 case $host_os in
7605 rhapsody* | darwin1.[012])
7606 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7607 darwin1.*)
7608 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7609 darwin*) # darwin 5.x on
7610 # if running on 10.5 or later, the deployment target defaults
7611 # to the OS version, if on x86, and 10.4, the deployment
7612 # target defaults to 10.4. Don't you love it?
7613 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7614 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7615 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7616 10.[012][,.]*)
7617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7618 10.*)
7619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7620 esac
7621 ;;
7622 esac
7623 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7624 _lt_dar_single_mod='$single_module'
7625 fi
7626 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7627 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7628 else
7629 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7630 fi
7631 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7632 _lt_dsymutil='~$DSYMUTIL $lib || :'
7633 else
7634 _lt_dsymutil=
7635 fi
7636 ;;
7637 esac
7638
7639 ac_ext=c
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7645 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7646 # On Suns, sometimes $CPP names a directory.
7647 if test -n "$CPP" && test -d "$CPP"; then
7648 CPP=
7649 fi
7650 if test -z "$CPP"; then
7651 if ${ac_cv_prog_CPP+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 # Double quotes because CPP needs to be expanded
7655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7656 do
7657 ac_preproc_ok=false
7658 for ac_c_preproc_warn_flag in '' yes
7659 do
7660 # Use a header file that comes with gcc, so configuring glibc
7661 # with a fresh cross-compiler works.
7662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7663 # <limits.h> exists even on freestanding compilers.
7664 # On the NeXT, cc -E runs the code through the compiler's parser,
7665 # not just through cpp. "Syntax error" is here to catch this case.
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #ifdef __STDC__
7669 # include <limits.h>
7670 #else
7671 # include <assert.h>
7672 #endif
7673 Syntax error
7674 _ACEOF
7675 if ac_fn_c_try_cpp "$LINENO"; then :
7676
7677 else
7678 # Broken: fails on valid input.
7679 continue
7680 fi
7681 rm -f conftest.err conftest.i conftest.$ac_ext
7682
7683 # OK, works on sane cases. Now check whether nonexistent headers
7684 # can be detected and how.
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 #include <ac_nonexistent.h>
7688 _ACEOF
7689 if ac_fn_c_try_cpp "$LINENO"; then :
7690 # Broken: success on invalid input.
7691 continue
7692 else
7693 # Passes both tests.
7694 ac_preproc_ok=:
7695 break
7696 fi
7697 rm -f conftest.err conftest.i conftest.$ac_ext
7698
7699 done
7700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7701 rm -f conftest.i conftest.err conftest.$ac_ext
7702 if $ac_preproc_ok; then :
7703 break
7704 fi
7705
7706 done
7707 ac_cv_prog_CPP=$CPP
7708
7709 fi
7710 CPP=$ac_cv_prog_CPP
7711 else
7712 ac_cv_prog_CPP=$CPP
7713 fi
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7715 $as_echo "$CPP" >&6; }
7716 ac_preproc_ok=false
7717 for ac_c_preproc_warn_flag in '' yes
7718 do
7719 # Use a header file that comes with gcc, so configuring glibc
7720 # with a fresh cross-compiler works.
7721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7722 # <limits.h> exists even on freestanding compilers.
7723 # On the NeXT, cc -E runs the code through the compiler's parser,
7724 # not just through cpp. "Syntax error" is here to catch this case.
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 #ifdef __STDC__
7728 # include <limits.h>
7729 #else
7730 # include <assert.h>
7731 #endif
7732 Syntax error
7733 _ACEOF
7734 if ac_fn_c_try_cpp "$LINENO"; then :
7735
7736 else
7737 # Broken: fails on valid input.
7738 continue
7739 fi
7740 rm -f conftest.err conftest.i conftest.$ac_ext
7741
7742 # OK, works on sane cases. Now check whether nonexistent headers
7743 # can be detected and how.
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 #include <ac_nonexistent.h>
7747 _ACEOF
7748 if ac_fn_c_try_cpp "$LINENO"; then :
7749 # Broken: success on invalid input.
7750 continue
7751 else
7752 # Passes both tests.
7753 ac_preproc_ok=:
7754 break
7755 fi
7756 rm -f conftest.err conftest.i conftest.$ac_ext
7757
7758 done
7759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7760 rm -f conftest.i conftest.err conftest.$ac_ext
7761 if $ac_preproc_ok; then :
7762
7763 else
7764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7766 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7767 See \`config.log' for more details" "$LINENO" 5; }
7768 fi
7769
7770 ac_ext=c
7771 ac_cpp='$CPP $CPPFLAGS'
7772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7775
7776
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7778 $as_echo_n "checking for ANSI C header files... " >&6; }
7779 if ${ac_cv_header_stdc+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784 #include <stdlib.h>
7785 #include <stdarg.h>
7786 #include <string.h>
7787 #include <float.h>
7788
7789 int
7790 main ()
7791 {
7792
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_c_try_compile "$LINENO"; then :
7798 ac_cv_header_stdc=yes
7799 else
7800 ac_cv_header_stdc=no
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803
7804 if test $ac_cv_header_stdc = yes; then
7805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <string.h>
7809
7810 _ACEOF
7811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7812 $EGREP "memchr" >/dev/null 2>&1; then :
7813
7814 else
7815 ac_cv_header_stdc=no
7816 fi
7817 rm -f conftest*
7818
7819 fi
7820
7821 if test $ac_cv_header_stdc = yes; then
7822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #include <stdlib.h>
7826
7827 _ACEOF
7828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7829 $EGREP "free" >/dev/null 2>&1; then :
7830
7831 else
7832 ac_cv_header_stdc=no
7833 fi
7834 rm -f conftest*
7835
7836 fi
7837
7838 if test $ac_cv_header_stdc = yes; then
7839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7840 if test "$cross_compiling" = yes; then :
7841 :
7842 else
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 #include <ctype.h>
7846 #include <stdlib.h>
7847 #if ((' ' & 0x0FF) == 0x020)
7848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7850 #else
7851 # define ISLOWER(c) \
7852 (('a' <= (c) && (c) <= 'i') \
7853 || ('j' <= (c) && (c) <= 'r') \
7854 || ('s' <= (c) && (c) <= 'z'))
7855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7856 #endif
7857
7858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7859 int
7860 main ()
7861 {
7862 int i;
7863 for (i = 0; i < 256; i++)
7864 if (XOR (islower (i), ISLOWER (i))
7865 || toupper (i) != TOUPPER (i))
7866 return 2;
7867 return 0;
7868 }
7869 _ACEOF
7870 if ac_fn_c_try_run "$LINENO"; then :
7871
7872 else
7873 ac_cv_header_stdc=no
7874 fi
7875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7876 conftest.$ac_objext conftest.beam conftest.$ac_ext
7877 fi
7878
7879 fi
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7882 $as_echo "$ac_cv_header_stdc" >&6; }
7883 if test $ac_cv_header_stdc = yes; then
7884
7885 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7886
7887 fi
7888
7889 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7890 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7891 inttypes.h stdint.h unistd.h
7892 do :
7893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7894 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7895 "
7896 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7897 cat >>confdefs.h <<_ACEOF
7898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7899 _ACEOF
7900
7901 fi
7902
7903 done
7904
7905
7906 for ac_header in dlfcn.h
7907 do :
7908 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7909 "
7910 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7911 cat >>confdefs.h <<_ACEOF
7912 #define HAVE_DLFCN_H 1
7913 _ACEOF
7914
7915 fi
7916
7917 done
7918
7919
7920
7921
7922
7923 # Set options
7924
7925
7926
7927 enable_dlopen=no
7928
7929
7930 enable_win32_dll=no
7931
7932
7933 # Check whether --enable-shared was given.
7934 if test "${enable_shared+set}" = set; then :
7935 enableval=$enable_shared; p=${PACKAGE-default}
7936 case $enableval in
7937 yes) enable_shared=yes ;;
7938 no) enable_shared=no ;;
7939 *)
7940 enable_shared=no
7941 # Look at the argument we got. We use all the common list separators.
7942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7943 for pkg in $enableval; do
7944 IFS="$lt_save_ifs"
7945 if test "X$pkg" = "X$p"; then
7946 enable_shared=yes
7947 fi
7948 done
7949 IFS="$lt_save_ifs"
7950 ;;
7951 esac
7952 else
7953 enable_shared=yes
7954 fi
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 # Check whether --enable-static was given.
7965 if test "${enable_static+set}" = set; then :
7966 enableval=$enable_static; p=${PACKAGE-default}
7967 case $enableval in
7968 yes) enable_static=yes ;;
7969 no) enable_static=no ;;
7970 *)
7971 enable_static=no
7972 # Look at the argument we got. We use all the common list separators.
7973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7974 for pkg in $enableval; do
7975 IFS="$lt_save_ifs"
7976 if test "X$pkg" = "X$p"; then
7977 enable_static=yes
7978 fi
7979 done
7980 IFS="$lt_save_ifs"
7981 ;;
7982 esac
7983 else
7984 enable_static=yes
7985 fi
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996 # Check whether --with-pic was given.
7997 if test "${with_pic+set}" = set; then :
7998 withval=$with_pic; pic_mode="$withval"
7999 else
8000 pic_mode=default
8001 fi
8002
8003
8004 test -z "$pic_mode" && pic_mode=default
8005
8006
8007
8008
8009
8010
8011
8012 # Check whether --enable-fast-install was given.
8013 if test "${enable_fast_install+set}" = set; then :
8014 enableval=$enable_fast_install; p=${PACKAGE-default}
8015 case $enableval in
8016 yes) enable_fast_install=yes ;;
8017 no) enable_fast_install=no ;;
8018 *)
8019 enable_fast_install=no
8020 # Look at the argument we got. We use all the common list separators.
8021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8022 for pkg in $enableval; do
8023 IFS="$lt_save_ifs"
8024 if test "X$pkg" = "X$p"; then
8025 enable_fast_install=yes
8026 fi
8027 done
8028 IFS="$lt_save_ifs"
8029 ;;
8030 esac
8031 else
8032 enable_fast_install=yes
8033 fi
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045 # This can be used to rebuild libtool when needed
8046 LIBTOOL_DEPS="$ltmain"
8047
8048 # Always use our own libtool.
8049 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076 test -z "$LN_S" && LN_S="ln -s"
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091 if test -n "${ZSH_VERSION+set}" ; then
8092 setopt NO_GLOB_SUBST
8093 fi
8094
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8096 $as_echo_n "checking for objdir... " >&6; }
8097 if ${lt_cv_objdir+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 rm -f .libs 2>/dev/null
8101 mkdir .libs 2>/dev/null
8102 if test -d .libs; then
8103 lt_cv_objdir=.libs
8104 else
8105 # MS-DOS does not allow filenames that begin with a dot.
8106 lt_cv_objdir=_libs
8107 fi
8108 rmdir .libs 2>/dev/null
8109 fi
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8111 $as_echo "$lt_cv_objdir" >&6; }
8112 objdir=$lt_cv_objdir
8113
8114
8115
8116
8117
8118 cat >>confdefs.h <<_ACEOF
8119 #define LT_OBJDIR "$lt_cv_objdir/"
8120 _ACEOF
8121
8122
8123
8124
8125 case $host_os in
8126 aix3*)
8127 # AIX sometimes has problems with the GCC collect2 program. For some
8128 # reason, if we set the COLLECT_NAMES environment variable, the problems
8129 # vanish in a puff of smoke.
8130 if test "X${COLLECT_NAMES+set}" != Xset; then
8131 COLLECT_NAMES=
8132 export COLLECT_NAMES
8133 fi
8134 ;;
8135 esac
8136
8137 # Global variables:
8138 ofile=libtool
8139 can_build_shared=yes
8140
8141 # All known linkers require a `.a' archive for static linking (except MSVC,
8142 # which needs '.lib').
8143 libext=a
8144
8145 with_gnu_ld="$lt_cv_prog_gnu_ld"
8146
8147 old_CC="$CC"
8148 old_CFLAGS="$CFLAGS"
8149
8150 # Set sane defaults for various variables
8151 test -z "$CC" && CC=cc
8152 test -z "$LTCC" && LTCC=$CC
8153 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8154 test -z "$LD" && LD=ld
8155 test -z "$ac_objext" && ac_objext=o
8156
8157 for cc_temp in $compiler""; do
8158 case $cc_temp in
8159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8161 \-*) ;;
8162 *) break;;
8163 esac
8164 done
8165 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8166
8167
8168 # Only perform the check for file, if the check method requires it
8169 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8170 case $deplibs_check_method in
8171 file_magic*)
8172 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8174 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8175 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 case $MAGIC_CMD in
8179 [\\/*] | ?:[\\/]*)
8180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8181 ;;
8182 *)
8183 lt_save_MAGIC_CMD="$MAGIC_CMD"
8184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8186 for ac_dir in $ac_dummy; do
8187 IFS="$lt_save_ifs"
8188 test -z "$ac_dir" && ac_dir=.
8189 if test -f $ac_dir/${ac_tool_prefix}file; then
8190 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8191 if test -n "$file_magic_test_file"; then
8192 case $deplibs_check_method in
8193 "file_magic "*)
8194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8197 $EGREP "$file_magic_regex" > /dev/null; then
8198 :
8199 else
8200 cat <<_LT_EOF 1>&2
8201
8202 *** Warning: the command libtool uses to detect shared libraries,
8203 *** $file_magic_cmd, produces output that libtool cannot recognize.
8204 *** The result is that libtool may fail to recognize shared libraries
8205 *** as such. This will affect the creation of libtool libraries that
8206 *** depend on shared libraries, but programs linked with such libtool
8207 *** libraries will work regardless of this problem. Nevertheless, you
8208 *** may want to report the problem to your system manager and/or to
8209 *** bug-libtool@gnu.org
8210
8211 _LT_EOF
8212 fi ;;
8213 esac
8214 fi
8215 break
8216 fi
8217 done
8218 IFS="$lt_save_ifs"
8219 MAGIC_CMD="$lt_save_MAGIC_CMD"
8220 ;;
8221 esac
8222 fi
8223
8224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8225 if test -n "$MAGIC_CMD"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8227 $as_echo "$MAGIC_CMD" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8231 fi
8232
8233
8234
8235
8236
8237 if test -z "$lt_cv_path_MAGIC_CMD"; then
8238 if test -n "$ac_tool_prefix"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8240 $as_echo_n "checking for file... " >&6; }
8241 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 case $MAGIC_CMD in
8245 [\\/*] | ?:[\\/]*)
8246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8247 ;;
8248 *)
8249 lt_save_MAGIC_CMD="$MAGIC_CMD"
8250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8252 for ac_dir in $ac_dummy; do
8253 IFS="$lt_save_ifs"
8254 test -z "$ac_dir" && ac_dir=.
8255 if test -f $ac_dir/file; then
8256 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8257 if test -n "$file_magic_test_file"; then
8258 case $deplibs_check_method in
8259 "file_magic "*)
8260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8263 $EGREP "$file_magic_regex" > /dev/null; then
8264 :
8265 else
8266 cat <<_LT_EOF 1>&2
8267
8268 *** Warning: the command libtool uses to detect shared libraries,
8269 *** $file_magic_cmd, produces output that libtool cannot recognize.
8270 *** The result is that libtool may fail to recognize shared libraries
8271 *** as such. This will affect the creation of libtool libraries that
8272 *** depend on shared libraries, but programs linked with such libtool
8273 *** libraries will work regardless of this problem. Nevertheless, you
8274 *** may want to report the problem to your system manager and/or to
8275 *** bug-libtool@gnu.org
8276
8277 _LT_EOF
8278 fi ;;
8279 esac
8280 fi
8281 break
8282 fi
8283 done
8284 IFS="$lt_save_ifs"
8285 MAGIC_CMD="$lt_save_MAGIC_CMD"
8286 ;;
8287 esac
8288 fi
8289
8290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8291 if test -n "$MAGIC_CMD"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8293 $as_echo "$MAGIC_CMD" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299
8300 else
8301 MAGIC_CMD=:
8302 fi
8303 fi
8304
8305 fi
8306 ;;
8307 esac
8308
8309 # Use C for the default configuration in the libtool script
8310
8311 lt_save_CC="$CC"
8312 ac_ext=c
8313 ac_cpp='$CPP $CPPFLAGS'
8314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317
8318
8319 # Source file extension for C test sources.
8320 ac_ext=c
8321
8322 # Object file extension for compiled C test sources.
8323 objext=o
8324 objext=$objext
8325
8326 # Code to be used in simple compile tests
8327 lt_simple_compile_test_code="int some_variable = 0;"
8328
8329 # Code to be used in simple link tests
8330 lt_simple_link_test_code='int main(){return(0);}'
8331
8332
8333
8334
8335
8336
8337
8338 # If no C compiler was specified, use CC.
8339 LTCC=${LTCC-"$CC"}
8340
8341 # If no C compiler flags were specified, use CFLAGS.
8342 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8343
8344 # Allow CC to be a program name with arguments.
8345 compiler=$CC
8346
8347 # Save the default compiler, since it gets overwritten when the other
8348 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8349 compiler_DEFAULT=$CC
8350
8351 # save warnings/boilerplate of simple test code
8352 ac_outfile=conftest.$ac_objext
8353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8355 _lt_compiler_boilerplate=`cat conftest.err`
8356 $RM conftest*
8357
8358 ac_outfile=conftest.$ac_objext
8359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8361 _lt_linker_boilerplate=`cat conftest.err`
8362 $RM -r conftest*
8363
8364
8365 ## CAVEAT EMPTOR:
8366 ## There is no encapsulation within the following macros, do not change
8367 ## the running order or otherwise move them around unless you know exactly
8368 ## what you are doing...
8369 if test -n "$compiler"; then
8370
8371 lt_prog_compiler_no_builtin_flag=
8372
8373 if test "$GCC" = yes; then
8374 case $cc_basename in
8375 nvcc*)
8376 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8377 *)
8378 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8379 esac
8380
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8382 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8383 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 lt_cv_prog_compiler_rtti_exceptions=no
8387 ac_outfile=conftest.$ac_objext
8388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8389 lt_compiler_flag="-fno-rtti -fno-exceptions"
8390 # Insert the option either (1) after the last *FLAGS variable, or
8391 # (2) before a word containing "conftest.", or (3) at the end.
8392 # Note that $ac_compile itself does not contain backslashes and begins
8393 # with a dollar sign (not a hyphen), so the echo should work correctly.
8394 # The option is referenced via a variable to avoid confusing sed.
8395 lt_compile=`echo "$ac_compile" | $SED \
8396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8398 -e 's:$: $lt_compiler_flag:'`
8399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8400 (eval "$lt_compile" 2>conftest.err)
8401 ac_status=$?
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 if (exit $ac_status) && test -s "$ac_outfile"; then
8405 # The compiler can only warn and ignore the option if not recognized
8406 # So say no if there are warnings other than the usual output.
8407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8410 lt_cv_prog_compiler_rtti_exceptions=yes
8411 fi
8412 fi
8413 $RM conftest*
8414
8415 fi
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8417 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8418
8419 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8420 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8421 else
8422 :
8423 fi
8424
8425 fi
8426
8427
8428
8429
8430
8431
8432 lt_prog_compiler_wl=
8433 lt_prog_compiler_pic=
8434 lt_prog_compiler_static=
8435
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8438
8439 if test "$GCC" = yes; then
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_static='-static'
8442
8443 case $host_os in
8444 aix*)
8445 # All AIX code is PIC.
8446 if test "$host_cpu" = ia64; then
8447 # AIX 5 now supports IA64 processor
8448 lt_prog_compiler_static='-Bstatic'
8449 fi
8450 lt_prog_compiler_pic='-fPIC'
8451 ;;
8452
8453 amigaos*)
8454 case $host_cpu in
8455 powerpc)
8456 # see comment about AmigaOS4 .so support
8457 lt_prog_compiler_pic='-fPIC'
8458 ;;
8459 m68k)
8460 # FIXME: we need at least 68020 code to build shared libraries, but
8461 # adding the `-m68020' flag to GCC prevents building anything better,
8462 # like `-m68040'.
8463 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8464 ;;
8465 esac
8466 ;;
8467
8468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8469 # PIC is the default for these OSes.
8470 ;;
8471
8472 mingw* | cygwin* | pw32* | os2* | cegcc*)
8473 # This hack is so that the source file can tell whether it is being
8474 # built for inclusion in a dll (and should export symbols for example).
8475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8476 # (--disable-auto-import) libraries
8477 lt_prog_compiler_pic='-DDLL_EXPORT'
8478 ;;
8479
8480 darwin* | rhapsody*)
8481 # PIC is the default on this platform
8482 # Common symbols not allowed in MH_DYLIB files
8483 lt_prog_compiler_pic='-fno-common'
8484 ;;
8485
8486 haiku*)
8487 # PIC is the default for Haiku.
8488 # The "-static" flag exists, but is broken.
8489 lt_prog_compiler_static=
8490 ;;
8491
8492 hpux*)
8493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8495 # sets the default TLS model and affects inlining.
8496 case $host_cpu in
8497 hppa*64*)
8498 # +Z the default
8499 ;;
8500 *)
8501 lt_prog_compiler_pic='-fPIC'
8502 ;;
8503 esac
8504 ;;
8505
8506 interix[3-9]*)
8507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8508 # Instead, we relocate shared libraries at runtime.
8509 ;;
8510
8511 msdosdjgpp*)
8512 # Just because we use GCC doesn't mean we suddenly get shared libraries
8513 # on systems that don't support them.
8514 lt_prog_compiler_can_build_shared=no
8515 enable_shared=no
8516 ;;
8517
8518 *nto* | *qnx*)
8519 # QNX uses GNU C++, but need to define -shared option too, otherwise
8520 # it will coredump.
8521 lt_prog_compiler_pic='-fPIC -shared'
8522 ;;
8523
8524 sysv4*MP*)
8525 if test -d /usr/nec; then
8526 lt_prog_compiler_pic=-Kconform_pic
8527 fi
8528 ;;
8529
8530 *)
8531 lt_prog_compiler_pic='-fPIC'
8532 ;;
8533 esac
8534
8535 case $cc_basename in
8536 nvcc*) # Cuda Compiler Driver 2.2
8537 lt_prog_compiler_wl='-Xlinker '
8538 lt_prog_compiler_pic='-Xcompiler -fPIC'
8539 ;;
8540 esac
8541 else
8542 # PORTME Check for flag to pass linker flags through the system compiler.
8543 case $host_os in
8544 aix*)
8545 lt_prog_compiler_wl='-Wl,'
8546 if test "$host_cpu" = ia64; then
8547 # AIX 5 now supports IA64 processor
8548 lt_prog_compiler_static='-Bstatic'
8549 else
8550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8551 fi
8552 ;;
8553
8554 mingw* | cygwin* | pw32* | os2* | cegcc*)
8555 # This hack is so that the source file can tell whether it is being
8556 # built for inclusion in a dll (and should export symbols for example).
8557 lt_prog_compiler_pic='-DDLL_EXPORT'
8558 ;;
8559
8560 hpux9* | hpux10* | hpux11*)
8561 lt_prog_compiler_wl='-Wl,'
8562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8563 # not for PA HP-UX.
8564 case $host_cpu in
8565 hppa*64*|ia64*)
8566 # +Z the default
8567 ;;
8568 *)
8569 lt_prog_compiler_pic='+Z'
8570 ;;
8571 esac
8572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8573 lt_prog_compiler_static='${wl}-a ${wl}archive'
8574 ;;
8575
8576 irix5* | irix6* | nonstopux*)
8577 lt_prog_compiler_wl='-Wl,'
8578 # PIC (with -KPIC) is the default.
8579 lt_prog_compiler_static='-non_shared'
8580 ;;
8581
8582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8583 case $cc_basename in
8584 # old Intel for x86_64 which still supported -KPIC.
8585 ecc*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-static'
8589 ;;
8590 # icc used to be incompatible with GCC.
8591 # ICC 10 doesn't accept -KPIC any more.
8592 icc* | ifort*)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-fPIC'
8595 lt_prog_compiler_static='-static'
8596 ;;
8597 # Lahey Fortran 8.1.
8598 lf95*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='--shared'
8601 lt_prog_compiler_static='--static'
8602 ;;
8603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8604 # Portland Group compilers (*not* the Pentium gcc compiler,
8605 # which looks to be a dead project)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fpic'
8608 lt_prog_compiler_static='-Bstatic'
8609 ;;
8610 ccc*)
8611 lt_prog_compiler_wl='-Wl,'
8612 # All Alpha code is PIC.
8613 lt_prog_compiler_static='-non_shared'
8614 ;;
8615 xl* | bgxl* | bgf* | mpixl*)
8616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-qpic'
8619 lt_prog_compiler_static='-qstaticlink'
8620 ;;
8621 *)
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ F* | *Sun*Fortran*)
8624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
8627 lt_prog_compiler_wl=''
8628 ;;
8629 *Sun\ C*)
8630 # Sun C 5.9
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 lt_prog_compiler_wl='-Wl,'
8634 ;;
8635 esac
8636 ;;
8637 esac
8638 ;;
8639
8640 newsos6)
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 ;;
8644
8645 *nto* | *qnx*)
8646 # QNX uses GNU C++, but need to define -shared option too, otherwise
8647 # it will coredump.
8648 lt_prog_compiler_pic='-fPIC -shared'
8649 ;;
8650
8651 osf3* | osf4* | osf5*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # All OSF/1 code is PIC.
8654 lt_prog_compiler_static='-non_shared'
8655 ;;
8656
8657 rdos*)
8658 lt_prog_compiler_static='-non_shared'
8659 ;;
8660
8661 solaris*)
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 case $cc_basename in
8665 f77* | f90* | f95*)
8666 lt_prog_compiler_wl='-Qoption ld ';;
8667 *)
8668 lt_prog_compiler_wl='-Wl,';;
8669 esac
8670 ;;
8671
8672 sunos4*)
8673 lt_prog_compiler_wl='-Qoption ld '
8674 lt_prog_compiler_pic='-PIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677
8678 sysv4 | sysv4.2uw2* | sysv4.3*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-Bstatic'
8682 ;;
8683
8684 sysv4*MP*)
8685 if test -d /usr/nec ;then
8686 lt_prog_compiler_pic='-Kconform_pic'
8687 lt_prog_compiler_static='-Bstatic'
8688 fi
8689 ;;
8690
8691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-Bstatic'
8695 ;;
8696
8697 unicos*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_can_build_shared=no
8700 ;;
8701
8702 uts4*)
8703 lt_prog_compiler_pic='-pic'
8704 lt_prog_compiler_static='-Bstatic'
8705 ;;
8706
8707 *)
8708 lt_prog_compiler_can_build_shared=no
8709 ;;
8710 esac
8711 fi
8712
8713 case $host_os in
8714 # For platforms which do not support PIC, -DPIC is meaningless:
8715 *djgpp*)
8716 lt_prog_compiler_pic=
8717 ;;
8718 *)
8719 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8720 ;;
8721 esac
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8723 $as_echo "$lt_prog_compiler_pic" >&6; }
8724
8725
8726
8727
8728
8729
8730 #
8731 # Check to make sure the PIC flag actually works.
8732 #
8733 if test -n "$lt_prog_compiler_pic"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8735 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8736 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 lt_cv_prog_compiler_pic_works=no
8740 ac_outfile=conftest.$ac_objext
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8743 # Insert the option either (1) after the last *FLAGS variable, or
8744 # (2) before a word containing "conftest.", or (3) at the end.
8745 # Note that $ac_compile itself does not contain backslashes and begins
8746 # with a dollar sign (not a hyphen), so the echo should work correctly.
8747 # The option is referenced via a variable to avoid confusing sed.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>conftest.err)
8754 ac_status=$?
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s "$ac_outfile"; then
8758 # The compiler can only warn and ignore the option if not recognized
8759 # So say no if there are warnings other than the usual output.
8760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8763 lt_cv_prog_compiler_pic_works=yes
8764 fi
8765 fi
8766 $RM conftest*
8767
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8770 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8771
8772 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8773 case $lt_prog_compiler_pic in
8774 "" | " "*) ;;
8775 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8776 esac
8777 else
8778 lt_prog_compiler_pic=
8779 lt_prog_compiler_can_build_shared=no
8780 fi
8781
8782 fi
8783
8784
8785
8786
8787
8788
8789 #
8790 # Check to make sure the static flag actually works.
8791 #
8792 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8794 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8795 if ${lt_cv_prog_compiler_static_works+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 lt_cv_prog_compiler_static_works=no
8799 save_LDFLAGS="$LDFLAGS"
8800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8803 # The linker can only warn and ignore the option if not recognized
8804 # So say no if there are warnings
8805 if test -s conftest.err; then
8806 # Append any errors to the config.log.
8807 cat conftest.err 1>&5
8808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810 if diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_static_works=yes
8812 fi
8813 else
8814 lt_cv_prog_compiler_static_works=yes
8815 fi
8816 fi
8817 $RM -r conftest*
8818 LDFLAGS="$save_LDFLAGS"
8819
8820 fi
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8822 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8823
8824 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8825 :
8826 else
8827 lt_prog_compiler_static=
8828 fi
8829
8830
8831
8832
8833
8834
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8838 if ${lt_cv_prog_compiler_c_o+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 lt_cv_prog_compiler_c_o=no
8842 $RM -r conftest 2>/dev/null
8843 mkdir conftest
8844 cd conftest
8845 mkdir out
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847
8848 lt_compiler_flag="-o out/conftest2.$ac_objext"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858 (eval "$lt_compile" 2>out/conftest.err)
8859 ac_status=$?
8860 cat out/conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8863 then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings
8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_c_o=yes
8870 fi
8871 fi
8872 chmod u+w . 2>&5
8873 $RM conftest*
8874 # SGI C++ compiler will create directory out/ii_files/ for
8875 # template instantiation
8876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8877 $RM out/* && rmdir out
8878 cd ..
8879 $RM -r conftest
8880 $RM conftest*
8881
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8884 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8885
8886
8887
8888
8889
8890
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8893 if ${lt_cv_prog_compiler_c_o+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 lt_cv_prog_compiler_c_o=no
8897 $RM -r conftest 2>/dev/null
8898 mkdir conftest
8899 cd conftest
8900 mkdir out
8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8902
8903 lt_compiler_flag="-o out/conftest2.$ac_objext"
8904 # Insert the option either (1) after the last *FLAGS variable, or
8905 # (2) before a word containing "conftest.", or (3) at the end.
8906 # Note that $ac_compile itself does not contain backslashes and begins
8907 # with a dollar sign (not a hyphen), so the echo should work correctly.
8908 lt_compile=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913 (eval "$lt_compile" 2>out/conftest.err)
8914 ac_status=$?
8915 cat out/conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8918 then
8919 # The compiler can only warn and ignore the option if not recognized
8920 # So say no if there are warnings
8921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8924 lt_cv_prog_compiler_c_o=yes
8925 fi
8926 fi
8927 chmod u+w . 2>&5
8928 $RM conftest*
8929 # SGI C++ compiler will create directory out/ii_files/ for
8930 # template instantiation
8931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8932 $RM out/* && rmdir out
8933 cd ..
8934 $RM -r conftest
8935 $RM conftest*
8936
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8939 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8940
8941
8942
8943
8944 hard_links="nottested"
8945 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8946 # do not overwrite the value of need_locks provided by the user
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8948 $as_echo_n "checking if we can lock with hard links... " >&6; }
8949 hard_links=yes
8950 $RM conftest*
8951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952 touch conftest.a
8953 ln conftest.a conftest.b 2>&5 || hard_links=no
8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8956 $as_echo "$hard_links" >&6; }
8957 if test "$hard_links" = no; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8959 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8960 need_locks=warn
8961 fi
8962 else
8963 need_locks=no
8964 fi
8965
8966
8967
8968
8969
8970
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8972 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8973
8974 runpath_var=
8975 allow_undefined_flag=
8976 always_export_symbols=no
8977 archive_cmds=
8978 archive_expsym_cmds=
8979 compiler_needs_object=no
8980 enable_shared_with_static_runtimes=no
8981 export_dynamic_flag_spec=
8982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8983 hardcode_automatic=no
8984 hardcode_direct=no
8985 hardcode_direct_absolute=no
8986 hardcode_libdir_flag_spec=
8987 hardcode_libdir_flag_spec_ld=
8988 hardcode_libdir_separator=
8989 hardcode_minus_L=no
8990 hardcode_shlibpath_var=unsupported
8991 inherit_rpath=no
8992 link_all_deplibs=unknown
8993 module_cmds=
8994 module_expsym_cmds=
8995 old_archive_from_new_cmds=
8996 old_archive_from_expsyms_cmds=
8997 thread_safe_flag_spec=
8998 whole_archive_flag_spec=
8999 # include_expsyms should be a list of space-separated symbols to be *always*
9000 # included in the symbol list
9001 include_expsyms=
9002 # exclude_expsyms can be an extended regexp of symbols to exclude
9003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9005 # as well as any symbol that contains `d'.
9006 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9008 # platforms (ab)use it in PIC code, but their linkers get confused if
9009 # the symbol is explicitly referenced. Since portable code cannot
9010 # rely on this symbol name, it's probably fine to never include it in
9011 # preloaded symbol tables.
9012 # Exclude shared library initialization/finalization symbols.
9013 extract_expsyms_cmds=
9014
9015 case $host_os in
9016 cygwin* | mingw* | pw32* | cegcc*)
9017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9018 # When not using gcc, we currently assume that we are using
9019 # Microsoft Visual C++.
9020 if test "$GCC" != yes; then
9021 with_gnu_ld=no
9022 fi
9023 ;;
9024 interix*)
9025 # we just hope/assume this is gcc and not c89 (= MSVC++)
9026 with_gnu_ld=yes
9027 ;;
9028 openbsd*)
9029 with_gnu_ld=no
9030 ;;
9031 esac
9032
9033 ld_shlibs=yes
9034
9035 # On some targets, GNU ld is compatible enough with the native linker
9036 # that we're better off using the native interface for both.
9037 lt_use_gnu_ld_interface=no
9038 if test "$with_gnu_ld" = yes; then
9039 case $host_os in
9040 aix*)
9041 # The AIX port of GNU ld has always aspired to compatibility
9042 # with the native linker. However, as the warning in the GNU ld
9043 # block says, versions before 2.19.5* couldn't really create working
9044 # shared libraries, regardless of the interface used.
9045 case `$LD -v 2>&1` in
9046 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9047 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9048 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9049 *)
9050 lt_use_gnu_ld_interface=yes
9051 ;;
9052 esac
9053 ;;
9054 *)
9055 lt_use_gnu_ld_interface=yes
9056 ;;
9057 esac
9058 fi
9059
9060 if test "$lt_use_gnu_ld_interface" = yes; then
9061 # If archive_cmds runs LD, not CC, wlarc should be empty
9062 wlarc='${wl}'
9063
9064 # Set some defaults for GNU ld with shared library support. These
9065 # are reset later if shared libraries are not supported. Putting them
9066 # here allows them to be overridden if necessary.
9067 runpath_var=LD_RUN_PATH
9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069 export_dynamic_flag_spec='${wl}--export-dynamic'
9070 # ancient GNU ld didn't support --whole-archive et. al.
9071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9073 else
9074 whole_archive_flag_spec=
9075 fi
9076 supports_anon_versioning=no
9077 case `$LD -v 2>&1` in
9078 *GNU\ gold*) supports_anon_versioning=yes ;;
9079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9082 *\ 2.11.*) ;; # other 2.11 versions
9083 *) supports_anon_versioning=yes ;;
9084 esac
9085
9086 # See if GNU ld supports shared libraries.
9087 case $host_os in
9088 aix[3-9]*)
9089 # On AIX/PPC, the GNU linker is very broken
9090 if test "$host_cpu" != ia64; then
9091 ld_shlibs=no
9092 cat <<_LT_EOF 1>&2
9093
9094 *** Warning: the GNU linker, at least up to release 2.19, is reported
9095 *** to be unable to reliably create shared libraries on AIX.
9096 *** Therefore, libtool is disabling shared libraries support. If you
9097 *** really care for shared libraries, you may want to install binutils
9098 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9099 *** You will then need to restart the configuration process.
9100
9101 _LT_EOF
9102 fi
9103 ;;
9104
9105 amigaos*)
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds=''
9111 ;;
9112 m68k)
9113 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)'
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_minus_L=yes
9116 ;;
9117 esac
9118 ;;
9119
9120 beos*)
9121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9122 allow_undefined_flag=unsupported
9123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9124 # support --undefined. This deserves some investigation. FIXME
9125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 else
9127 ld_shlibs=no
9128 fi
9129 ;;
9130
9131 cygwin* | mingw* | pw32* | cegcc*)
9132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9133 # as there is no search path for DLLs.
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 export_dynamic_flag_spec='${wl}--export-all-symbols'
9136 allow_undefined_flag=unsupported
9137 always_export_symbols=no
9138 enable_shared_with_static_runtimes=yes
9139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9140
9141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9143 # If the export-symbols file already is a .def file (1st line
9144 # is EXPORTS), use it as is; otherwise, prepend...
9145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9146 cp $export_symbols $output_objdir/$soname.def;
9147 else
9148 echo EXPORTS > $output_objdir/$soname.def;
9149 cat $export_symbols >> $output_objdir/$soname.def;
9150 fi~
9151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156
9157 haiku*)
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 link_all_deplibs=yes
9160 ;;
9161
9162 interix[3-9]*)
9163 hardcode_direct=no
9164 hardcode_shlibpath_var=no
9165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166 export_dynamic_flag_spec='${wl}-E'
9167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9168 # Instead, shared libraries are loaded at an image base (0x10000000 by
9169 # default) and relocated if they conflict, which is a slow very memory
9170 # consuming and fragmenting process. To avoid this, we pick a random,
9171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9174 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'
9175 ;;
9176
9177 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9178 tmp_diet=no
9179 if test "$host_os" = linux-dietlibc; then
9180 case $cc_basename in
9181 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9182 esac
9183 fi
9184 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9185 && test "$tmp_diet" = no
9186 then
9187 tmp_addflag=' $pic_flag'
9188 tmp_sharedflag='-shared'
9189 case $cc_basename,$host_cpu in
9190 pgcc*) # Portland Group C compiler
9191 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'
9192 tmp_addflag=' $pic_flag'
9193 ;;
9194 pgf77* | pgf90* | pgf95* | pgfortran*)
9195 # Portland Group f77 and f90 compilers
9196 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'
9197 tmp_addflag=' $pic_flag -Mnomain' ;;
9198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9199 tmp_addflag=' -i_dynamic' ;;
9200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9201 tmp_addflag=' -i_dynamic -nofor_main' ;;
9202 ifc* | ifort*) # Intel Fortran compiler
9203 tmp_addflag=' -nofor_main' ;;
9204 lf95*) # Lahey Fortran 8.1
9205 whole_archive_flag_spec=
9206 tmp_sharedflag='--shared' ;;
9207 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9208 tmp_sharedflag='-qmkshrobj'
9209 tmp_addflag= ;;
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 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'
9212 compiler_needs_object=yes
9213 ;;
9214 esac
9215 case `$CC -V 2>&1 | sed 5q` in
9216 *Sun\ C*) # Sun C 5.9
9217 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'
9218 compiler_needs_object=yes
9219 tmp_sharedflag='-G' ;;
9220 *Sun\ F*) # Sun Fortran 8.3
9221 tmp_sharedflag='-G' ;;
9222 esac
9223 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224
9225 if test "x$supports_anon_versioning" = xyes; then
9226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9228 echo "local: *; };" >> $output_objdir/$libname.ver~
9229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9230 fi
9231
9232 case $cc_basename in
9233 xlf* | bgf* | bgxlf* | mpixlf*)
9234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9236 hardcode_libdir_flag_spec=
9237 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9238 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9239 if test "x$supports_anon_versioning" = xyes; then
9240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9242 echo "local: *; };" >> $output_objdir/$libname.ver~
9243 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9244 fi
9245 ;;
9246 esac
9247 else
9248 ld_shlibs=no
9249 fi
9250 ;;
9251
9252 netbsd*)
9253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9254 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9255 wlarc=
9256 else
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9259 fi
9260 ;;
9261
9262 solaris*)
9263 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9264 ld_shlibs=no
9265 cat <<_LT_EOF 1>&2
9266
9267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9268 *** create shared libraries on Solaris systems. Therefore, libtool
9269 *** is disabling shared libraries support. We urge you to upgrade GNU
9270 *** binutils to release 2.9.1 or newer. Another option is to modify
9271 *** your PATH or compiler configuration so that the native linker is
9272 *** used, and then restart.
9273
9274 _LT_EOF
9275 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9278 else
9279 ld_shlibs=no
9280 fi
9281 ;;
9282
9283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9284 case `$LD -v 2>&1` in
9285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9286 ld_shlibs=no
9287 cat <<_LT_EOF 1>&2
9288
9289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9290 *** reliably create shared libraries on SCO systems. Therefore, libtool
9291 *** is disabling shared libraries support. We urge you to upgrade GNU
9292 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9293 *** your PATH or compiler configuration so that the native linker is
9294 *** used, and then restart.
9295
9296 _LT_EOF
9297 ;;
9298 *)
9299 # For security reasons, it is highly recommended that you always
9300 # use absolute paths for naming shared libraries, and exclude the
9301 # DT_RUNPATH tag from executables and libraries. But doing so
9302 # requires that you compile everything twice, which is a pain.
9303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9307 else
9308 ld_shlibs=no
9309 fi
9310 ;;
9311 esac
9312 ;;
9313
9314 sunos4*)
9315 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9316 wlarc=
9317 hardcode_direct=yes
9318 hardcode_shlibpath_var=no
9319 ;;
9320
9321 *)
9322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325 else
9326 ld_shlibs=no
9327 fi
9328 ;;
9329 esac
9330
9331 if test "$ld_shlibs" = no; then
9332 runpath_var=
9333 hardcode_libdir_flag_spec=
9334 export_dynamic_flag_spec=
9335 whole_archive_flag_spec=
9336 fi
9337 else
9338 # PORTME fill in a description of your system's linker (not GNU ld)
9339 case $host_os in
9340 aix3*)
9341 allow_undefined_flag=unsupported
9342 always_export_symbols=yes
9343 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'
9344 # Note: this linker hardcodes the directories in LIBPATH if there
9345 # are no directories specified by -L.
9346 hardcode_minus_L=yes
9347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9348 # Neither direct hardcoding nor static linking is supported with a
9349 # broken collect2.
9350 hardcode_direct=unsupported
9351 fi
9352 ;;
9353
9354 aix[4-9]*)
9355 if test "$host_cpu" = ia64; then
9356 # On IA64, the linker does run time linking by default, so we don't
9357 # have to do anything special.
9358 aix_use_runtimelinking=no
9359 exp_sym_flag='-Bexport'
9360 no_entry_flag=""
9361 else
9362 # If we're using GNU nm, then we don't want the "-C" option.
9363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9364 # Also, AIX nm treats weak defined symbols like other global
9365 # defined symbols, whereas GNU nm marks them as "W".
9366 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9367 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'
9368 else
9369 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'
9370 fi
9371 aix_use_runtimelinking=no
9372
9373 # Test if we are trying to use run time linking or normal
9374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9375 # need to do runtime linking.
9376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9377 for ld_flag in $LDFLAGS; do
9378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9379 aix_use_runtimelinking=yes
9380 break
9381 fi
9382 done
9383 ;;
9384 esac
9385
9386 exp_sym_flag='-bexport'
9387 no_entry_flag='-bnoentry'
9388 fi
9389
9390 # When large executables or shared objects are built, AIX ld can
9391 # have problems creating the table of contents. If linking a library
9392 # or program results in "error TOC overflow" add -mminimal-toc to
9393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9395
9396 archive_cmds=''
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 hardcode_libdir_separator=':'
9400 link_all_deplibs=yes
9401 file_list_spec='${wl}-f,'
9402
9403 if test "$GCC" = yes; then
9404 case $host_os in aix4.[012]|aix4.[012].*)
9405 # We only want to do this on AIX 4.2 and lower, the check
9406 # below for broken collect2 doesn't work under 4.3+
9407 collect2name=`${CC} -print-prog-name=collect2`
9408 if test -f "$collect2name" &&
9409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9410 then
9411 # We have reworked collect2
9412 :
9413 else
9414 # We have old collect2
9415 hardcode_direct=unsupported
9416 # It fails to find uninstalled libraries when the uninstalled
9417 # path is not listed in the libpath. Setting hardcode_minus_L
9418 # to unsupported forces relinking
9419 hardcode_minus_L=yes
9420 hardcode_libdir_flag_spec='-L$libdir'
9421 hardcode_libdir_separator=
9422 fi
9423 ;;
9424 esac
9425 shared_flag='-shared'
9426 if test "$aix_use_runtimelinking" = yes; then
9427 shared_flag="$shared_flag "'${wl}-G'
9428 fi
9429 else
9430 # not using gcc
9431 if test "$host_cpu" = ia64; then
9432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9433 # chokes on -Wl,-G. The following line is correct:
9434 shared_flag='-G'
9435 else
9436 if test "$aix_use_runtimelinking" = yes; then
9437 shared_flag='${wl}-G'
9438 else
9439 shared_flag='${wl}-bM:SRE'
9440 fi
9441 fi
9442 fi
9443
9444 export_dynamic_flag_spec='${wl}-bexpall'
9445 # It seems that -bexpall does not export symbols beginning with
9446 # underscore (_), so it is better to generate a list of symbols to export.
9447 always_export_symbols=yes
9448 if test "$aix_use_runtimelinking" = yes; then
9449 # Warning - without using the other runtime loading flags (-brtl),
9450 # -berok will link without error, but may produce a broken library.
9451 allow_undefined_flag='-berok'
9452 # Determine the default libpath from the value encoded in an
9453 # empty executable.
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456
9457 int
9458 main ()
9459 {
9460
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9466
9467 lt_aix_libpath_sed='
9468 /Import File Strings/,/^$/ {
9469 /^0/ {
9470 s/^0 *\(.*\)$/\1/
9471 p
9472 }
9473 }'
9474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9475 # Check for a 64-bit object if we didn't find anything.
9476 if test -z "$aix_libpath"; then
9477 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9478 fi
9479 fi
9480 rm -f core conftest.err conftest.$ac_objext \
9481 conftest$ac_exeext conftest.$ac_ext
9482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9483
9484 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9485 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"
9486 else
9487 if test "$host_cpu" = ia64; then
9488 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9489 allow_undefined_flag="-z nodefs"
9490 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"
9491 else
9492 # Determine the default libpath from the value encoded in an
9493 # empty executable.
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496
9497 int
9498 main ()
9499 {
9500
9501 ;
9502 return 0;
9503 }
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9506
9507 lt_aix_libpath_sed='
9508 /Import File Strings/,/^$/ {
9509 /^0/ {
9510 s/^0 *\(.*\)$/\1/
9511 p
9512 }
9513 }'
9514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515 # Check for a 64-bit object if we didn't find anything.
9516 if test -z "$aix_libpath"; then
9517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518 fi
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9523
9524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9525 # Warning - without using the other run time loading flags,
9526 # -berok will link without error, but may produce a broken library.
9527 no_undefined_flag=' ${wl}-bernotok'
9528 allow_undefined_flag=' ${wl}-berok'
9529 if test "$with_gnu_ld" = yes; then
9530 # We only use this code for GNU lds that support --whole-archive.
9531 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9532 else
9533 # Exported symbols can be pulled into shared objects from archives
9534 whole_archive_flag_spec='$convenience'
9535 fi
9536 archive_cmds_need_lc=yes
9537 # This is similar to how AIX traditionally builds its shared libraries.
9538 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'
9539 fi
9540 fi
9541 ;;
9542
9543 amigaos*)
9544 case $host_cpu in
9545 powerpc)
9546 # see comment about AmigaOS4 .so support
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds=''
9549 ;;
9550 m68k)
9551 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)'
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_minus_L=yes
9554 ;;
9555 esac
9556 ;;
9557
9558 bsdi[45]*)
9559 export_dynamic_flag_spec=-rdynamic
9560 ;;
9561
9562 cygwin* | mingw* | pw32* | cegcc*)
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++.
9565 # hardcode_libdir_flag_spec is actually meaningless, as there is
9566 # no search path for DLLs.
9567 hardcode_libdir_flag_spec=' '
9568 allow_undefined_flag=unsupported
9569 # Tell ltmain to make .lib files, not .a files.
9570 libext=lib
9571 # Tell ltmain to make .dll files, not .so files.
9572 shrext_cmds=".dll"
9573 # FIXME: Setting linknames here is a bad hack.
9574 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9575 # The linker will automatically build a .lib file if we build a DLL.
9576 old_archive_from_new_cmds='true'
9577 # FIXME: Should let the user specify the lib program.
9578 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9579 fix_srcfile_path='`cygpath -w "$srcfile"`'
9580 enable_shared_with_static_runtimes=yes
9581 ;;
9582
9583 darwin* | rhapsody*)
9584
9585
9586 archive_cmds_need_lc=no
9587 hardcode_direct=no
9588 hardcode_automatic=yes
9589 hardcode_shlibpath_var=unsupported
9590 if test "$lt_cv_ld_force_load" = "yes"; then
9591 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\"`'
9592 else
9593 whole_archive_flag_spec=''
9594 fi
9595 link_all_deplibs=yes
9596 allow_undefined_flag="$_lt_dar_allow_undefined"
9597 case $cc_basename in
9598 ifort*) _lt_dar_can_shared=yes ;;
9599 *) _lt_dar_can_shared=$GCC ;;
9600 esac
9601 if test "$_lt_dar_can_shared" = "yes"; then
9602 output_verbose_link_cmd=func_echo_all
9603 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9604 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9605 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}"
9606 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}"
9607
9608 else
9609 ld_shlibs=no
9610 fi
9611
9612 ;;
9613
9614 dgux*)
9615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_libdir_flag_spec='-L$libdir'
9617 hardcode_shlibpath_var=no
9618 ;;
9619
9620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9621 # support. Future versions do this automatically, but an explicit c++rt0.o
9622 # does not break anything, and helps significantly (at the cost of a little
9623 # extra space).
9624 freebsd2.2*)
9625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9626 hardcode_libdir_flag_spec='-R$libdir'
9627 hardcode_direct=yes
9628 hardcode_shlibpath_var=no
9629 ;;
9630
9631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9632 freebsd2.*)
9633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9634 hardcode_direct=yes
9635 hardcode_minus_L=yes
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9640 freebsd* | dragonfly*)
9641 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9642 hardcode_libdir_flag_spec='-R$libdir'
9643 hardcode_direct=yes
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 hpux9*)
9648 if test "$GCC" = yes; then
9649 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'
9650 else
9651 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'
9652 fi
9653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9654 hardcode_libdir_separator=:
9655 hardcode_direct=yes
9656
9657 # hardcode_minus_L: Not really in the search PATH,
9658 # but as the default location of the library.
9659 hardcode_minus_L=yes
9660 export_dynamic_flag_spec='${wl}-E'
9661 ;;
9662
9663 hpux10*)
9664 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9666 else
9667 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9668 fi
9669 if test "$with_gnu_ld" = no; then
9670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9671 hardcode_libdir_flag_spec_ld='+b $libdir'
9672 hardcode_libdir_separator=:
9673 hardcode_direct=yes
9674 hardcode_direct_absolute=yes
9675 export_dynamic_flag_spec='${wl}-E'
9676 # hardcode_minus_L: Not really in the search PATH,
9677 # but as the default location of the library.
9678 hardcode_minus_L=yes
9679 fi
9680 ;;
9681
9682 hpux11*)
9683 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9684 case $host_cpu in
9685 hppa*64*)
9686 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9687 ;;
9688 ia64*)
9689 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9690 ;;
9691 *)
9692 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9693 ;;
9694 esac
9695 else
9696 case $host_cpu in
9697 hppa*64*)
9698 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 ;;
9700 ia64*)
9701 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9702 ;;
9703 *)
9704
9705 # Older versions of the 11.00 compiler do not understand -b yet
9706 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9708 $as_echo_n "checking if $CC understands -b... " >&6; }
9709 if ${lt_cv_prog_compiler__b+:} false; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 lt_cv_prog_compiler__b=no
9713 save_LDFLAGS="$LDFLAGS"
9714 LDFLAGS="$LDFLAGS -b"
9715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9717 # The linker can only warn and ignore the option if not recognized
9718 # So say no if there are warnings
9719 if test -s conftest.err; then
9720 # Append any errors to the config.log.
9721 cat conftest.err 1>&5
9722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9724 if diff conftest.exp conftest.er2 >/dev/null; then
9725 lt_cv_prog_compiler__b=yes
9726 fi
9727 else
9728 lt_cv_prog_compiler__b=yes
9729 fi
9730 fi
9731 $RM -r conftest*
9732 LDFLAGS="$save_LDFLAGS"
9733
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9736 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9737
9738 if test x"$lt_cv_prog_compiler__b" = xyes; then
9739 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9740 else
9741 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9742 fi
9743
9744 ;;
9745 esac
9746 fi
9747 if test "$with_gnu_ld" = no; then
9748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9749 hardcode_libdir_separator=:
9750
9751 case $host_cpu in
9752 hppa*64*|ia64*)
9753 hardcode_direct=no
9754 hardcode_shlibpath_var=no
9755 ;;
9756 *)
9757 hardcode_direct=yes
9758 hardcode_direct_absolute=yes
9759 export_dynamic_flag_spec='${wl}-E'
9760
9761 # hardcode_minus_L: Not really in the search PATH,
9762 # but as the default location of the library.
9763 hardcode_minus_L=yes
9764 ;;
9765 esac
9766 fi
9767 ;;
9768
9769 irix5* | irix6* | nonstopux*)
9770 if test "$GCC" = yes; then
9771 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'
9772 # Try to use the -exported_symbol ld option, if it does not
9773 # work, assume that -exports_file does not work either and
9774 # implicitly export all symbols.
9775 save_LDFLAGS="$LDFLAGS"
9776 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 int foo(void) {}
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"; then :
9782 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'
9783
9784 fi
9785 rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 LDFLAGS="$save_LDFLAGS"
9788 else
9789 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'
9790 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'
9791 fi
9792 archive_cmds_need_lc='no'
9793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9794 hardcode_libdir_separator=:
9795 inherit_rpath=yes
9796 link_all_deplibs=yes
9797 ;;
9798
9799 netbsd*)
9800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9802 else
9803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9804 fi
9805 hardcode_libdir_flag_spec='-R$libdir'
9806 hardcode_direct=yes
9807 hardcode_shlibpath_var=no
9808 ;;
9809
9810 newsos6)
9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_direct=yes
9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814 hardcode_libdir_separator=:
9815 hardcode_shlibpath_var=no
9816 ;;
9817
9818 *nto* | *qnx*)
9819 ;;
9820
9821 openbsd*)
9822 if test -f /usr/libexec/ld.so; then
9823 hardcode_direct=yes
9824 hardcode_shlibpath_var=no
9825 hardcode_direct_absolute=yes
9826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9830 export_dynamic_flag_spec='${wl}-E'
9831 else
9832 case $host_os in
9833 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9835 hardcode_libdir_flag_spec='-R$libdir'
9836 ;;
9837 *)
9838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9840 ;;
9841 esac
9842 fi
9843 else
9844 ld_shlibs=no
9845 fi
9846 ;;
9847
9848 os2*)
9849 hardcode_libdir_flag_spec='-L$libdir'
9850 hardcode_minus_L=yes
9851 allow_undefined_flag=unsupported
9852 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'
9853 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9854 ;;
9855
9856 osf3*)
9857 if test "$GCC" = yes; then
9858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9859 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'
9860 else
9861 allow_undefined_flag=' -expect_unresolved \*'
9862 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'
9863 fi
9864 archive_cmds_need_lc='no'
9865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9866 hardcode_libdir_separator=:
9867 ;;
9868
9869 osf4* | osf5*) # as osf3* with the addition of -msym flag
9870 if test "$GCC" = yes; then
9871 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9872 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'
9873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9874 else
9875 allow_undefined_flag=' -expect_unresolved \*'
9876 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'
9877 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~
9878 $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'
9879
9880 # Both c and cxx compiler support -rpath directly
9881 hardcode_libdir_flag_spec='-rpath $libdir'
9882 fi
9883 archive_cmds_need_lc='no'
9884 hardcode_libdir_separator=:
9885 ;;
9886
9887 solaris*)
9888 no_undefined_flag=' -z defs'
9889 if test "$GCC" = yes; then
9890 wlarc='${wl}'
9891 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9893 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9894 else
9895 case `$CC -V 2>&1` in
9896 *"Compilers 5.0"*)
9897 wlarc=''
9898 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9901 ;;
9902 *)
9903 wlarc='${wl}'
9904 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9906 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9907 ;;
9908 esac
9909 fi
9910 hardcode_libdir_flag_spec='-R$libdir'
9911 hardcode_shlibpath_var=no
9912 case $host_os in
9913 solaris2.[0-5] | solaris2.[0-5].*) ;;
9914 *)
9915 # The compiler driver will combine and reorder linker options,
9916 # but understands `-z linker_flag'. GCC discards it without `$wl',
9917 # but is careful enough not to reorder.
9918 # Supported since Solaris 2.6 (maybe 2.5.1?)
9919 if test "$GCC" = yes; then
9920 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9921 else
9922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9923 fi
9924 ;;
9925 esac
9926 link_all_deplibs=yes
9927 ;;
9928
9929 sunos4*)
9930 if test "x$host_vendor" = xsequent; then
9931 # Use $CC to link under sequent, because it throws in some extra .o
9932 # files that make .init and .fini sections work.
9933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9934 else
9935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9936 fi
9937 hardcode_libdir_flag_spec='-L$libdir'
9938 hardcode_direct=yes
9939 hardcode_minus_L=yes
9940 hardcode_shlibpath_var=no
9941 ;;
9942
9943 sysv4)
9944 case $host_vendor in
9945 sni)
9946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947 hardcode_direct=yes # is this really true???
9948 ;;
9949 siemens)
9950 ## LD is ld it makes a PLAMLIB
9951 ## CC just makes a GrossModule.
9952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9953 reload_cmds='$CC -r -o $output$reload_objs'
9954 hardcode_direct=no
9955 ;;
9956 motorola)
9957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9959 ;;
9960 esac
9961 runpath_var='LD_RUN_PATH'
9962 hardcode_shlibpath_var=no
9963 ;;
9964
9965 sysv4.3*)
9966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_shlibpath_var=no
9968 export_dynamic_flag_spec='-Bexport'
9969 ;;
9970
9971 sysv4*MP*)
9972 if test -d /usr/nec; then
9973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_shlibpath_var=no
9975 runpath_var=LD_RUN_PATH
9976 hardcode_runpath_var=yes
9977 ld_shlibs=yes
9978 fi
9979 ;;
9980
9981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9982 no_undefined_flag='${wl}-z,text'
9983 archive_cmds_need_lc=no
9984 hardcode_shlibpath_var=no
9985 runpath_var='LD_RUN_PATH'
9986
9987 if test "$GCC" = yes; then
9988 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 else
9991 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 fi
9994 ;;
9995
9996 sysv5* | sco3.2v5* | sco5v6*)
9997 # Note: We can NOT use -z defs as we might desire, because we do not
9998 # link with -lc, and that would cause any symbols used from libc to
9999 # always be unresolved, which means just about no library would
10000 # ever link correctly. If we're not using GNU ld we use -z text
10001 # though, which does catch some bad symbols but isn't as heavy-handed
10002 # as -z defs.
10003 no_undefined_flag='${wl}-z,text'
10004 allow_undefined_flag='${wl}-z,nodefs'
10005 archive_cmds_need_lc=no
10006 hardcode_shlibpath_var=no
10007 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10008 hardcode_libdir_separator=':'
10009 link_all_deplibs=yes
10010 export_dynamic_flag_spec='${wl}-Bexport'
10011 runpath_var='LD_RUN_PATH'
10012
10013 if test "$GCC" = yes; then
10014 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 else
10017 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 fi
10020 ;;
10021
10022 uts4*)
10023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024 hardcode_libdir_flag_spec='-L$libdir'
10025 hardcode_shlibpath_var=no
10026 ;;
10027
10028 *)
10029 ld_shlibs=no
10030 ;;
10031 esac
10032
10033 if test x$host_vendor = xsni; then
10034 case $host in
10035 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10036 export_dynamic_flag_spec='${wl}-Blargedynsym'
10037 ;;
10038 esac
10039 fi
10040 fi
10041
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10043 $as_echo "$ld_shlibs" >&6; }
10044 test "$ld_shlibs" = no && can_build_shared=no
10045
10046 with_gnu_ld=$with_gnu_ld
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062 #
10063 # Do we need to explicitly link libc?
10064 #
10065 case "x$archive_cmds_need_lc" in
10066 x|xyes)
10067 # Assume -lc should be added
10068 archive_cmds_need_lc=yes
10069
10070 if test "$enable_shared" = yes && test "$GCC" = yes; then
10071 case $archive_cmds in
10072 *'~'*)
10073 # FIXME: we may have to deal with multi-command sequences.
10074 ;;
10075 '$CC '*)
10076 # Test whether the compiler implicitly links with -lc since on some
10077 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10078 # to ld, don't add -lc before -lgcc.
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10080 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10081 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 $RM conftest*
10085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10086
10087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10088 (eval $ac_compile) 2>&5
10089 ac_status=$?
10090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10091 test $ac_status = 0; } 2>conftest.err; then
10092 soname=conftest
10093 lib=conftest
10094 libobjs=conftest.$ac_objext
10095 deplibs=
10096 wl=$lt_prog_compiler_wl
10097 pic_flag=$lt_prog_compiler_pic
10098 compiler_flags=-v
10099 linker_flags=-v
10100 verstring=
10101 output_objdir=.
10102 libname=conftest
10103 lt_save_allow_undefined_flag=$allow_undefined_flag
10104 allow_undefined_flag=
10105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10106 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10107 ac_status=$?
10108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10109 test $ac_status = 0; }
10110 then
10111 lt_cv_archive_cmds_need_lc=no
10112 else
10113 lt_cv_archive_cmds_need_lc=yes
10114 fi
10115 allow_undefined_flag=$lt_save_allow_undefined_flag
10116 else
10117 cat conftest.err 1>&5
10118 fi
10119 $RM conftest*
10120
10121 fi
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10123 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10124 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10125 ;;
10126 esac
10127 fi
10128 ;;
10129 esac
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10288 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10289
10290 if test "$GCC" = yes; then
10291 case $host_os in
10292 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10293 *) lt_awk_arg="/^libraries:/" ;;
10294 esac
10295 case $host_os in
10296 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10297 *) lt_sed_strip_eq="s,=/,/,g" ;;
10298 esac
10299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10300 case $lt_search_path_spec in
10301 *\;*)
10302 # if the path contains ";" then we assume it to be the separator
10303 # otherwise default to the standard path separator (i.e. ":") - it is
10304 # assumed that no part of a normal pathname contains ";" but that should
10305 # okay in the real world where ";" in dirpaths is itself problematic.
10306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10307 ;;
10308 *)
10309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10310 ;;
10311 esac
10312 # Ok, now we have the path, separated by spaces, we can step through it
10313 # and add multilib dir if necessary.
10314 lt_tmp_lt_search_path_spec=
10315 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10316 for lt_sys_path in $lt_search_path_spec; do
10317 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10319 else
10320 test -d "$lt_sys_path" && \
10321 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10322 fi
10323 done
10324 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10325 BEGIN {RS=" "; FS="/|\n";} {
10326 lt_foo="";
10327 lt_count=0;
10328 for (lt_i = NF; lt_i > 0; lt_i--) {
10329 if ($lt_i != "" && $lt_i != ".") {
10330 if ($lt_i == "..") {
10331 lt_count++;
10332 } else {
10333 if (lt_count == 0) {
10334 lt_foo="/" $lt_i lt_foo;
10335 } else {
10336 lt_count--;
10337 }
10338 }
10339 }
10340 }
10341 if (lt_foo != "") { lt_freq[lt_foo]++; }
10342 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10343 }'`
10344 # AWK program above erroneously prepends '/' to C:/dos/paths
10345 # for these hosts.
10346 case $host_os in
10347 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10348 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10349 esac
10350 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10351 else
10352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10353 fi
10354 library_names_spec=
10355 libname_spec='lib$name'
10356 soname_spec=
10357 shrext_cmds=".so"
10358 postinstall_cmds=
10359 postuninstall_cmds=
10360 finish_cmds=
10361 finish_eval=
10362 shlibpath_var=
10363 shlibpath_overrides_runpath=unknown
10364 version_type=none
10365 dynamic_linker="$host_os ld.so"
10366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10367 need_lib_prefix=unknown
10368 hardcode_into_libs=no
10369
10370 # when you set need_version to no, make sure it does not cause -set_version
10371 # flags to be left without arguments
10372 need_version=unknown
10373
10374 case $host_os in
10375 aix3*)
10376 version_type=linux
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10378 shlibpath_var=LIBPATH
10379
10380 # AIX 3 has no versioning support, so we append a major version to the name.
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 ;;
10383
10384 aix[4-9]*)
10385 version_type=linux
10386 need_lib_prefix=no
10387 need_version=no
10388 hardcode_into_libs=yes
10389 if test "$host_cpu" = ia64; then
10390 # AIX 5 supports IA64
10391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 else
10394 # With GCC up to 2.95.x, collect2 would create an import file
10395 # for dependence libraries. The import file would start with
10396 # the line `#! .'. This would cause the generated library to
10397 # depend on `.', always an invalid library. This was fixed in
10398 # development snapshots of GCC prior to 3.0.
10399 case $host_os in
10400 aix4 | aix4.[01] | aix4.[01].*)
10401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10402 echo ' yes '
10403 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10404 :
10405 else
10406 can_build_shared=no
10407 fi
10408 ;;
10409 esac
10410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10411 # soname into executable. Probably we can add versioning support to
10412 # collect2, so additional links can be useful in future.
10413 if test "$aix_use_runtimelinking" = yes; then
10414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10415 # instead of lib<name>.a to let people know that these are not
10416 # typical AIX shared libraries.
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 else
10419 # We preserve .a as extension for shared libraries through AIX4.2
10420 # and later when we are not doing run time linking.
10421 library_names_spec='${libname}${release}.a $libname.a'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 fi
10424 shlibpath_var=LIBPATH
10425 fi
10426 ;;
10427
10428 amigaos*)
10429 case $host_cpu in
10430 powerpc)
10431 # Since July 2007 AmigaOS4 officially supports .so libraries.
10432 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 ;;
10435 m68k)
10436 library_names_spec='$libname.ixlibrary $libname.a'
10437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10438 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'
10439 ;;
10440 esac
10441 ;;
10442
10443 beos*)
10444 library_names_spec='${libname}${shared_ext}'
10445 dynamic_linker="$host_os ld.so"
10446 shlibpath_var=LIBRARY_PATH
10447 ;;
10448
10449 bsdi[45]*)
10450 version_type=linux
10451 need_version=no
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 soname_spec='${libname}${release}${shared_ext}$major'
10454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10455 shlibpath_var=LD_LIBRARY_PATH
10456 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10457 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10458 # the default ld.so.conf also contains /usr/contrib/lib and
10459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10460 # libtool to hard-code these into programs
10461 ;;
10462
10463 cygwin* | mingw* | pw32* | cegcc*)
10464 version_type=windows
10465 shrext_cmds=".dll"
10466 need_version=no
10467 need_lib_prefix=no
10468
10469 case $GCC,$host_os in
10470 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10471 library_names_spec='$libname.dll.a'
10472 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10473 postinstall_cmds='base_file=`basename \${file}`~
10474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10475 dldir=$destdir/`dirname \$dlpath`~
10476 test -d \$dldir || mkdir -p \$dldir~
10477 $install_prog $dir/$dlname \$dldir/$dlname~
10478 chmod a+x \$dldir/$dlname~
10479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10481 fi'
10482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10483 dlpath=$dir/\$dldll~
10484 $RM \$dlpath'
10485 shlibpath_overrides_runpath=yes
10486
10487 case $host_os in
10488 cygwin*)
10489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10491
10492 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10493 ;;
10494 mingw* | cegcc*)
10495 # MinGW DLLs use traditional 'lib' prefix
10496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10497 ;;
10498 pw32*)
10499 # pw32 DLLs use 'pw' prefix rather than 'lib'
10500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10501 ;;
10502 esac
10503 ;;
10504
10505 *)
10506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10507 ;;
10508 esac
10509 dynamic_linker='Win32 ld.exe'
10510 # FIXME: first we should search . and the directory the executable is in
10511 shlibpath_var=PATH
10512 ;;
10513
10514 darwin* | rhapsody*)
10515 dynamic_linker="$host_os dyld"
10516 version_type=darwin
10517 need_lib_prefix=no
10518 need_version=no
10519 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10520 soname_spec='${libname}${release}${major}$shared_ext'
10521 shlibpath_overrides_runpath=yes
10522 shlibpath_var=DYLD_LIBRARY_PATH
10523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10524
10525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10527 ;;
10528
10529 dgux*)
10530 version_type=linux
10531 need_lib_prefix=no
10532 need_version=no
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 ;;
10537
10538 freebsd* | dragonfly*)
10539 # DragonFly does not have aout. When/if they implement a new
10540 # versioning mechanism, adjust this.
10541 if test -x /usr/bin/objformat; then
10542 objformat=`/usr/bin/objformat`
10543 else
10544 case $host_os in
10545 freebsd[23].*) objformat=aout ;;
10546 *) objformat=elf ;;
10547 esac
10548 fi
10549 version_type=freebsd-$objformat
10550 case $version_type in
10551 freebsd-elf*)
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10553 need_version=no
10554 need_lib_prefix=no
10555 ;;
10556 freebsd-*)
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10558 need_version=yes
10559 ;;
10560 esac
10561 shlibpath_var=LD_LIBRARY_PATH
10562 case $host_os in
10563 freebsd2.*)
10564 shlibpath_overrides_runpath=yes
10565 ;;
10566 freebsd3.[01]* | freebsdelf3.[01]*)
10567 shlibpath_overrides_runpath=yes
10568 hardcode_into_libs=yes
10569 ;;
10570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10572 shlibpath_overrides_runpath=no
10573 hardcode_into_libs=yes
10574 ;;
10575 *) # from 4.6 on, and DragonFly
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10578 ;;
10579 esac
10580 ;;
10581
10582 gnu*)
10583 version_type=linux
10584 need_lib_prefix=no
10585 need_version=no
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 hardcode_into_libs=yes
10590 ;;
10591
10592 haiku*)
10593 version_type=linux
10594 need_lib_prefix=no
10595 need_version=no
10596 dynamic_linker="$host_os runtime_loader"
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10602 hardcode_into_libs=yes
10603 ;;
10604
10605 hpux9* | hpux10* | hpux11*)
10606 # Give a soname corresponding to the major version so that dld.sl refuses to
10607 # link against other versions.
10608 version_type=sunos
10609 need_lib_prefix=no
10610 need_version=no
10611 case $host_cpu in
10612 ia64*)
10613 shrext_cmds='.so'
10614 hardcode_into_libs=yes
10615 dynamic_linker="$host_os dld.so"
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 if test "X$HPUX_IA64_MODE" = X32; then
10621 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10622 else
10623 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10624 fi
10625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10626 ;;
10627 hppa*64*)
10628 shrext_cmds='.sl'
10629 hardcode_into_libs=yes
10630 dynamic_linker="$host_os dld.sl"
10631 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10637 ;;
10638 *)
10639 shrext_cmds='.sl'
10640 dynamic_linker="$host_os dld.sl"
10641 shlibpath_var=SHLIB_PATH
10642 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 ;;
10646 esac
10647 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10648 postinstall_cmds='chmod 555 $lib'
10649 # or fails outright, so override atomically:
10650 install_override_mode=555
10651 ;;
10652
10653 interix[3-9]*)
10654 version_type=linux
10655 need_lib_prefix=no
10656 need_version=no
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10658 soname_spec='${libname}${release}${shared_ext}$major'
10659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=no
10662 hardcode_into_libs=yes
10663 ;;
10664
10665 irix5* | irix6* | nonstopux*)
10666 case $host_os in
10667 nonstopux*) version_type=nonstopux ;;
10668 *)
10669 if test "$lt_cv_prog_gnu_ld" = yes; then
10670 version_type=linux
10671 else
10672 version_type=irix
10673 fi ;;
10674 esac
10675 need_lib_prefix=no
10676 need_version=no
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10679 case $host_os in
10680 irix5* | nonstopux*)
10681 libsuff= shlibsuff=
10682 ;;
10683 *)
10684 case $LD in # libtool.m4 will add one of these switches to LD
10685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10686 libsuff= shlibsuff= libmagic=32-bit;;
10687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10688 libsuff=32 shlibsuff=N32 libmagic=N32;;
10689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10691 *) libsuff= shlibsuff= libmagic=never-match;;
10692 esac
10693 ;;
10694 esac
10695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10696 shlibpath_overrides_runpath=no
10697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10699 hardcode_into_libs=yes
10700 ;;
10701
10702 # No shared lib support for Linux oldld, aout, or coff.
10703 linux*oldld* | linux*aout* | linux*coff*)
10704 dynamic_linker=no
10705 ;;
10706
10707 # This must be Linux ELF.
10708 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10709 version_type=linux
10710 need_lib_prefix=no
10711 need_version=no
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=no
10717
10718 # Some binutils ld are patched to set DT_RUNPATH
10719 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 lt_cv_shlibpath_overrides_runpath=no
10723 save_LDFLAGS=$LDFLAGS
10724 save_libdir=$libdir
10725 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10726 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729
10730 int
10731 main ()
10732 {
10733
10734 ;
10735 return 0;
10736 }
10737 _ACEOF
10738 if ac_fn_c_try_link "$LINENO"; then :
10739 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10740 lt_cv_shlibpath_overrides_runpath=yes
10741 fi
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 LDFLAGS=$save_LDFLAGS
10746 libdir=$save_libdir
10747
10748 fi
10749
10750 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10751
10752 # This implies no fast_install, which is unacceptable.
10753 # Some rework will be needed to allow for fast_install
10754 # before this can be enabled.
10755 hardcode_into_libs=yes
10756
10757 # Append ld.so.conf contents to the search path
10758 if test -f /etc/ld.so.conf; then
10759 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' ' '`
10760 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10761 fi
10762
10763 # We used to test for /lib/ld.so.1 and disable shared libraries on
10764 # powerpc, because MkLinux only supported shared libraries with the
10765 # GNU dynamic linker. Since this was broken with cross compilers,
10766 # most powerpc-linux boxes support dynamic linking these days and
10767 # people can always --disable-shared, the test was removed, and we
10768 # assume the GNU/Linux dynamic linker is in use.
10769 dynamic_linker='GNU/Linux ld.so'
10770 ;;
10771
10772 netbsd*)
10773 version_type=sunos
10774 need_lib_prefix=no
10775 need_version=no
10776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10779 dynamic_linker='NetBSD (a.out) ld.so'
10780 else
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 dynamic_linker='NetBSD ld.elf_so'
10784 fi
10785 shlibpath_var=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath=yes
10787 hardcode_into_libs=yes
10788 ;;
10789
10790 newsos6)
10791 version_type=linux
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793 shlibpath_var=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath=yes
10795 ;;
10796
10797 *nto* | *qnx*)
10798 version_type=qnx
10799 need_lib_prefix=no
10800 need_version=no
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 shlibpath_overrides_runpath=no
10805 hardcode_into_libs=yes
10806 dynamic_linker='ldqnx.so'
10807 ;;
10808
10809 openbsd*)
10810 version_type=sunos
10811 sys_lib_dlsearch_path_spec="/usr/lib"
10812 need_lib_prefix=no
10813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10814 case $host_os in
10815 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10816 *) need_version=no ;;
10817 esac
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10822 case $host_os in
10823 openbsd2.[89] | openbsd2.[89].*)
10824 shlibpath_overrides_runpath=no
10825 ;;
10826 *)
10827 shlibpath_overrides_runpath=yes
10828 ;;
10829 esac
10830 else
10831 shlibpath_overrides_runpath=yes
10832 fi
10833 ;;
10834
10835 os2*)
10836 libname_spec='$name'
10837 shrext_cmds=".dll"
10838 need_lib_prefix=no
10839 library_names_spec='$libname${shared_ext} $libname.a'
10840 dynamic_linker='OS/2 ld.exe'
10841 shlibpath_var=LIBPATH
10842 ;;
10843
10844 osf3* | osf4* | osf5*)
10845 version_type=osf
10846 need_lib_prefix=no
10847 need_version=no
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850 shlibpath_var=LD_LIBRARY_PATH
10851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10853 ;;
10854
10855 rdos*)
10856 dynamic_linker=no
10857 ;;
10858
10859 solaris*)
10860 version_type=linux
10861 need_lib_prefix=no
10862 need_version=no
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=yes
10867 hardcode_into_libs=yes
10868 # ldd complains unless libraries are executable
10869 postinstall_cmds='chmod +x $lib'
10870 ;;
10871
10872 sunos4*)
10873 version_type=sunos
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=yes
10878 if test "$with_gnu_ld" = yes; then
10879 need_lib_prefix=no
10880 fi
10881 need_version=yes
10882 ;;
10883
10884 sysv4 | sysv4.3*)
10885 version_type=linux
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 case $host_vendor in
10890 sni)
10891 shlibpath_overrides_runpath=no
10892 need_lib_prefix=no
10893 runpath_var=LD_RUN_PATH
10894 ;;
10895 siemens)
10896 need_lib_prefix=no
10897 ;;
10898 motorola)
10899 need_lib_prefix=no
10900 need_version=no
10901 shlibpath_overrides_runpath=no
10902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10903 ;;
10904 esac
10905 ;;
10906
10907 sysv4*MP*)
10908 if test -d /usr/nec ;then
10909 version_type=linux
10910 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10911 soname_spec='$libname${shared_ext}.$major'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 fi
10914 ;;
10915
10916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10917 version_type=freebsd-elf
10918 need_lib_prefix=no
10919 need_version=no
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 shlibpath_var=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes
10924 hardcode_into_libs=yes
10925 if test "$with_gnu_ld" = yes; then
10926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10927 else
10928 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10929 case $host_os in
10930 sco3.2v5*)
10931 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10932 ;;
10933 esac
10934 fi
10935 sys_lib_dlsearch_path_spec='/usr/lib'
10936 ;;
10937
10938 tpf*)
10939 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10940 version_type=linux
10941 need_lib_prefix=no
10942 need_version=no
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=no
10946 hardcode_into_libs=yes
10947 ;;
10948
10949 uts4*)
10950 version_type=linux
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 ;;
10955
10956 *)
10957 dynamic_linker=no
10958 ;;
10959 esac
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10961 $as_echo "$dynamic_linker" >&6; }
10962 test "$dynamic_linker" = no && can_build_shared=no
10963
10964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10965 if test "$GCC" = yes; then
10966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10967 fi
10968
10969 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10970 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10971 fi
10972 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10973 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10974 fi
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11068 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11069 hardcode_action=
11070 if test -n "$hardcode_libdir_flag_spec" ||
11071 test -n "$runpath_var" ||
11072 test "X$hardcode_automatic" = "Xyes" ; then
11073
11074 # We can hardcode non-existent directories.
11075 if test "$hardcode_direct" != no &&
11076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11077 # have to relink, otherwise we might link with an installed library
11078 # when we should be linking with a yet-to-be-installed one
11079 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11080 test "$hardcode_minus_L" != no; then
11081 # Linking always hardcodes the temporary library directory.
11082 hardcode_action=relink
11083 else
11084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11085 hardcode_action=immediate
11086 fi
11087 else
11088 # We cannot hardcode anything, or else we can only hardcode existing
11089 # directories.
11090 hardcode_action=unsupported
11091 fi
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11093 $as_echo "$hardcode_action" >&6; }
11094
11095 if test "$hardcode_action" = relink ||
11096 test "$inherit_rpath" = yes; then
11097 # Fast installation is not supported
11098 enable_fast_install=no
11099 elif test "$shlibpath_overrides_runpath" = yes ||
11100 test "$enable_shared" = no; then
11101 # Fast installation is not necessary
11102 enable_fast_install=needless
11103 fi
11104
11105
11106
11107
11108
11109
11110 if test "x$enable_dlopen" != xyes; then
11111 enable_dlopen=unknown
11112 enable_dlopen_self=unknown
11113 enable_dlopen_self_static=unknown
11114 else
11115 lt_cv_dlopen=no
11116 lt_cv_dlopen_libs=
11117
11118 case $host_os in
11119 beos*)
11120 lt_cv_dlopen="load_add_on"
11121 lt_cv_dlopen_libs=
11122 lt_cv_dlopen_self=yes
11123 ;;
11124
11125 mingw* | pw32* | cegcc*)
11126 lt_cv_dlopen="LoadLibrary"
11127 lt_cv_dlopen_libs=
11128 ;;
11129
11130 cygwin*)
11131 lt_cv_dlopen="dlopen"
11132 lt_cv_dlopen_libs=
11133 ;;
11134
11135 darwin*)
11136 # if libdl is installed we need to link against it
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11138 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11139 if ${ac_cv_lib_dl_dlopen+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 ac_check_lib_save_LIBS=$LIBS
11143 LIBS="-ldl $LIBS"
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 char dlopen ();
11154 int
11155 main ()
11156 {
11157 return dlopen ();
11158 ;
11159 return 0;
11160 }
11161 _ACEOF
11162 if ac_fn_c_try_link "$LINENO"; then :
11163 ac_cv_lib_dl_dlopen=yes
11164 else
11165 ac_cv_lib_dl_dlopen=no
11166 fi
11167 rm -f core conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11169 LIBS=$ac_check_lib_save_LIBS
11170 fi
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11172 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11173 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11175 else
11176
11177 lt_cv_dlopen="dyld"
11178 lt_cv_dlopen_libs=
11179 lt_cv_dlopen_self=yes
11180
11181 fi
11182
11183 ;;
11184
11185 *)
11186 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11187 if test "x$ac_cv_func_shl_load" = xyes; then :
11188 lt_cv_dlopen="shl_load"
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11191 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11192 if ${ac_cv_lib_dld_shl_load+:} false; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 ac_check_lib_save_LIBS=$LIBS
11196 LIBS="-ldld $LIBS"
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 char shl_load ();
11207 int
11208 main ()
11209 {
11210 return shl_load ();
11211 ;
11212 return 0;
11213 }
11214 _ACEOF
11215 if ac_fn_c_try_link "$LINENO"; then :
11216 ac_cv_lib_dld_shl_load=yes
11217 else
11218 ac_cv_lib_dld_shl_load=no
11219 fi
11220 rm -f core conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext conftest.$ac_ext
11222 LIBS=$ac_check_lib_save_LIBS
11223 fi
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11225 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11226 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11227 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11228 else
11229 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11230 if test "x$ac_cv_func_dlopen" = xyes; then :
11231 lt_cv_dlopen="dlopen"
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11235 if ${ac_cv_lib_dl_dlopen+:} false; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 ac_check_lib_save_LIBS=$LIBS
11239 LIBS="-ldl $LIBS"
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11242
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 char dlopen ();
11250 int
11251 main ()
11252 {
11253 return dlopen ();
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_c_try_link "$LINENO"; then :
11259 ac_cv_lib_dl_dlopen=yes
11260 else
11261 ac_cv_lib_dl_dlopen=no
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265 LIBS=$ac_check_lib_save_LIBS
11266 fi
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11269 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11273 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11274 if ${ac_cv_lib_svld_dlopen+:} false; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 ac_check_lib_save_LIBS=$LIBS
11278 LIBS="-lsvld $LIBS"
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281
11282 /* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11285 #ifdef __cplusplus
11286 extern "C"
11287 #endif
11288 char dlopen ();
11289 int
11290 main ()
11291 {
11292 return dlopen ();
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 if ac_fn_c_try_link "$LINENO"; then :
11298 ac_cv_lib_svld_dlopen=yes
11299 else
11300 ac_cv_lib_svld_dlopen=no
11301 fi
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 LIBS=$ac_check_lib_save_LIBS
11305 fi
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11307 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11308 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11310 else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11312 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11313 if ${ac_cv_lib_dld_dld_link+:} false; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-ldld $LIBS"
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320
11321 /* Override any GCC internal prototype to avoid an error.
11322 Use char because int might match the return type of a GCC
11323 builtin and then its argument prototype would still apply. */
11324 #ifdef __cplusplus
11325 extern "C"
11326 #endif
11327 char dld_link ();
11328 int
11329 main ()
11330 {
11331 return dld_link ();
11332 ;
11333 return 0;
11334 }
11335 _ACEOF
11336 if ac_fn_c_try_link "$LINENO"; then :
11337 ac_cv_lib_dld_dld_link=yes
11338 else
11339 ac_cv_lib_dld_dld_link=no
11340 fi
11341 rm -f core conftest.err conftest.$ac_objext \
11342 conftest$ac_exeext conftest.$ac_ext
11343 LIBS=$ac_check_lib_save_LIBS
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11346 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11347 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11348 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11349 fi
11350
11351
11352 fi
11353
11354
11355 fi
11356
11357
11358 fi
11359
11360
11361 fi
11362
11363
11364 fi
11365
11366 ;;
11367 esac
11368
11369 if test "x$lt_cv_dlopen" != xno; then
11370 enable_dlopen=yes
11371 else
11372 enable_dlopen=no
11373 fi
11374
11375 case $lt_cv_dlopen in
11376 dlopen)
11377 save_CPPFLAGS="$CPPFLAGS"
11378 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11379
11380 save_LDFLAGS="$LDFLAGS"
11381 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11382
11383 save_LIBS="$LIBS"
11384 LIBS="$lt_cv_dlopen_libs $LIBS"
11385
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11387 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11388 if ${lt_cv_dlopen_self+:} false; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 if test "$cross_compiling" = yes; then :
11392 lt_cv_dlopen_self=cross
11393 else
11394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11395 lt_status=$lt_dlunknown
11396 cat > conftest.$ac_ext <<_LT_EOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11399
11400 #if HAVE_DLFCN_H
11401 #include <dlfcn.h>
11402 #endif
11403
11404 #include <stdio.h>
11405
11406 #ifdef RTLD_GLOBAL
11407 # define LT_DLGLOBAL RTLD_GLOBAL
11408 #else
11409 # ifdef DL_GLOBAL
11410 # define LT_DLGLOBAL DL_GLOBAL
11411 # else
11412 # define LT_DLGLOBAL 0
11413 # endif
11414 #endif
11415
11416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417 find out it does not work in some platform. */
11418 #ifndef LT_DLLAZY_OR_NOW
11419 # ifdef RTLD_LAZY
11420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11421 # else
11422 # ifdef DL_LAZY
11423 # define LT_DLLAZY_OR_NOW DL_LAZY
11424 # else
11425 # ifdef RTLD_NOW
11426 # define LT_DLLAZY_OR_NOW RTLD_NOW
11427 # else
11428 # ifdef DL_NOW
11429 # define LT_DLLAZY_OR_NOW DL_NOW
11430 # else
11431 # define LT_DLLAZY_OR_NOW 0
11432 # endif
11433 # endif
11434 # endif
11435 # endif
11436 #endif
11437
11438 /* When -fvisbility=hidden is used, assume the code has been annotated
11439 correspondingly for the symbols needed. */
11440 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11441 void fnord () __attribute__((visibility("default")));
11442 #endif
11443
11444 void fnord () { int i=42; }
11445 int main ()
11446 {
11447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11448 int status = $lt_dlunknown;
11449
11450 if (self)
11451 {
11452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11453 else
11454 {
11455 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11456 else puts (dlerror ());
11457 }
11458 /* dlclose (self); */
11459 }
11460 else
11461 puts (dlerror ());
11462
11463 return status;
11464 }
11465 _LT_EOF
11466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11467 (eval $ac_link) 2>&5
11468 ac_status=$?
11469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11470 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11471 (./conftest; exit; ) >&5 2>/dev/null
11472 lt_status=$?
11473 case x$lt_status in
11474 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11475 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11476 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11477 esac
11478 else :
11479 # compilation failed
11480 lt_cv_dlopen_self=no
11481 fi
11482 fi
11483 rm -fr conftest*
11484
11485
11486 fi
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11488 $as_echo "$lt_cv_dlopen_self" >&6; }
11489
11490 if test "x$lt_cv_dlopen_self" = xyes; then
11491 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11493 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11494 if ${lt_cv_dlopen_self_static+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 if test "$cross_compiling" = yes; then :
11498 lt_cv_dlopen_self_static=cross
11499 else
11500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11501 lt_status=$lt_dlunknown
11502 cat > conftest.$ac_ext <<_LT_EOF
11503 #line 11503 "configure"
11504 #include "confdefs.h"
11505
11506 #if HAVE_DLFCN_H
11507 #include <dlfcn.h>
11508 #endif
11509
11510 #include <stdio.h>
11511
11512 #ifdef RTLD_GLOBAL
11513 # define LT_DLGLOBAL RTLD_GLOBAL
11514 #else
11515 # ifdef DL_GLOBAL
11516 # define LT_DLGLOBAL DL_GLOBAL
11517 # else
11518 # define LT_DLGLOBAL 0
11519 # endif
11520 #endif
11521
11522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11523 find out it does not work in some platform. */
11524 #ifndef LT_DLLAZY_OR_NOW
11525 # ifdef RTLD_LAZY
11526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11527 # else
11528 # ifdef DL_LAZY
11529 # define LT_DLLAZY_OR_NOW DL_LAZY
11530 # else
11531 # ifdef RTLD_NOW
11532 # define LT_DLLAZY_OR_NOW RTLD_NOW
11533 # else
11534 # ifdef DL_NOW
11535 # define LT_DLLAZY_OR_NOW DL_NOW
11536 # else
11537 # define LT_DLLAZY_OR_NOW 0
11538 # endif
11539 # endif
11540 # endif
11541 # endif
11542 #endif
11543
11544 /* When -fvisbility=hidden is used, assume the code has been annotated
11545 correspondingly for the symbols needed. */
11546 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11547 void fnord () __attribute__((visibility("default")));
11548 #endif
11549
11550 void fnord () { int i=42; }
11551 int main ()
11552 {
11553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11554 int status = $lt_dlunknown;
11555
11556 if (self)
11557 {
11558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11559 else
11560 {
11561 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11562 else puts (dlerror ());
11563 }
11564 /* dlclose (self); */
11565 }
11566 else
11567 puts (dlerror ());
11568
11569 return status;
11570 }
11571 _LT_EOF
11572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11573 (eval $ac_link) 2>&5
11574 ac_status=$?
11575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11577 (./conftest; exit; ) >&5 2>/dev/null
11578 lt_status=$?
11579 case x$lt_status in
11580 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11581 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11582 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11583 esac
11584 else :
11585 # compilation failed
11586 lt_cv_dlopen_self_static=no
11587 fi
11588 fi
11589 rm -fr conftest*
11590
11591
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11594 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11595 fi
11596
11597 CPPFLAGS="$save_CPPFLAGS"
11598 LDFLAGS="$save_LDFLAGS"
11599 LIBS="$save_LIBS"
11600 ;;
11601 esac
11602
11603 case $lt_cv_dlopen_self in
11604 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11605 *) enable_dlopen_self=unknown ;;
11606 esac
11607
11608 case $lt_cv_dlopen_self_static in
11609 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11610 *) enable_dlopen_self_static=unknown ;;
11611 esac
11612 fi
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630 striplib=
11631 old_striplib=
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11633 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11634 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11635 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11636 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 $as_echo "yes" >&6; }
11639 else
11640 # FIXME - insert some real tests, host_os isn't really good enough
11641 case $host_os in
11642 darwin*)
11643 if test -n "$STRIP" ; then
11644 striplib="$STRIP -x"
11645 old_striplib="$STRIP -S"
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647 $as_echo "yes" >&6; }
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11651 fi
11652 ;;
11653 *)
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 ;;
11657 esac
11658 fi
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671 # Report which library types will actually be built
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11673 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11675 $as_echo "$can_build_shared" >&6; }
11676
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11678 $as_echo_n "checking whether to build shared libraries... " >&6; }
11679 test "$can_build_shared" = "no" && enable_shared=no
11680
11681 # On AIX, shared libraries and static libraries use the same namespace, and
11682 # are all built from PIC.
11683 case $host_os in
11684 aix3*)
11685 test "$enable_shared" = yes && enable_static=no
11686 if test -n "$RANLIB"; then
11687 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11688 postinstall_cmds='$RANLIB $lib'
11689 fi
11690 ;;
11691
11692 aix[4-9]*)
11693 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11694 test "$enable_shared" = yes && enable_static=no
11695 fi
11696 ;;
11697 esac
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11699 $as_echo "$enable_shared" >&6; }
11700
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11702 $as_echo_n "checking whether to build static libraries... " >&6; }
11703 # Make sure either enable_shared or enable_static is yes.
11704 test "$enable_shared" = yes || enable_static=yes
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11706 $as_echo "$enable_static" >&6; }
11707
11708
11709
11710
11711 fi
11712 ac_ext=c
11713 ac_cpp='$CPP $CPPFLAGS'
11714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11717
11718 CC="$lt_save_CC"
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732 ac_config_commands="$ac_config_commands libtool"
11733
11734
11735
11736
11737 # Only expand once:
11738
11739
11740
11741
11742
11743 case $host in
11744 *-cygwin* | *-mingw*)
11745 # 'host' will be top-level target in the case of a target lib,
11746 # we must compare to with_cross_host to decide if this is a native
11747 # or cross-compiler and select where to install dlls appropriately.
11748 if test -n "$with_cross_host" &&
11749 test x"$with_cross_host" != x"no"; then
11750 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11751 else
11752 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11753 fi
11754 ;;
11755 *)
11756 lt_host_flags=
11757 ;;
11758 esac
11759
11760
11761
11762
11763
11764
11765
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11767 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11768 # Check whether --enable-maintainer-mode was given.
11769 if test "${enable_maintainer_mode+set}" = set; then :
11770 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11771 else
11772 USE_MAINTAINER_MODE=no
11773 fi
11774
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11776 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11777 if test $USE_MAINTAINER_MODE = yes; then
11778 MAINTAINER_MODE_TRUE=
11779 MAINTAINER_MODE_FALSE='#'
11780 else
11781 MAINTAINER_MODE_TRUE='#'
11782 MAINTAINER_MODE_FALSE=
11783 fi
11784
11785 MAINT=$MAINTAINER_MODE_TRUE
11786
11787
11788
11789 # Create a spec file, so that compile/link tests don't fail
11790 test -f libgfortran.spec || touch libgfortran.spec
11791 FCFLAGS="$FCFLAGS -L."
11792
11793 # We need gfortran to compile parts of the library
11794 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11795 #AC_PROG_FC(gfortran)
11796 case `echo $GFORTRAN` in
11797 -* | no* )
11798 FC=no ;;
11799 *)
11800 set dummy $GFORTRAN; ac_word=$2
11801 if test -x "$ac_word"; then
11802 FC="$GFORTRAN"
11803 else
11804 FC=no
11805 fi ;;
11806 esac
11807 ac_ext=${ac_fc_srcext-f}
11808 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11809 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11810 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11811 if test -n "$ac_tool_prefix"; then
11812 for ac_prog in gfortran
11813 do
11814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if ${ac_cv_prog_FC+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 if test -n "$FC"; then
11822 ac_cv_prog_FC="$FC" # Let the user override the test.
11823 else
11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11826 do
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11831 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 break 2
11834 fi
11835 done
11836 done
11837 IFS=$as_save_IFS
11838
11839 fi
11840 fi
11841 FC=$ac_cv_prog_FC
11842 if test -n "$FC"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11844 $as_echo "$FC" >&6; }
11845 else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11848 fi
11849
11850
11851 test -n "$FC" && break
11852 done
11853 fi
11854 if test -z "$FC"; then
11855 ac_ct_FC=$FC
11856 for ac_prog in gfortran
11857 do
11858 # Extract the first word of "$ac_prog", so it can be a program name with args.
11859 set dummy $ac_prog; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 if test -n "$ac_ct_FC"; then
11866 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11867 else
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11870 do
11871 IFS=$as_save_IFS
11872 test -z "$as_dir" && as_dir=.
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875 ac_cv_prog_ac_ct_FC="$ac_prog"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877 break 2
11878 fi
11879 done
11880 done
11881 IFS=$as_save_IFS
11882
11883 fi
11884 fi
11885 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11886 if test -n "$ac_ct_FC"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11888 $as_echo "$ac_ct_FC" >&6; }
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893
11894
11895 test -n "$ac_ct_FC" && break
11896 done
11897
11898 if test "x$ac_ct_FC" = x; then
11899 FC=""
11900 else
11901 case $cross_compiling:$ac_tool_warned in
11902 yes:)
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11905 ac_tool_warned=yes ;;
11906 esac
11907 FC=$ac_ct_FC
11908 fi
11909 fi
11910
11911
11912 # Provide some information about the compiler.
11913 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11914 set X $ac_compile
11915 ac_compiler=$2
11916 for ac_option in --version -v -V -qversion; do
11917 { { ac_try="$ac_compiler $ac_option >&5"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11923 $as_echo "$ac_try_echo"; } >&5
11924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11925 ac_status=$?
11926 if test -s conftest.err; then
11927 sed '10a\
11928 ... rest of stderr output deleted ...
11929 10q' conftest.err >conftest.er1
11930 cat conftest.er1 >&5
11931 fi
11932 rm -f conftest.er1 conftest.err
11933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934 test $ac_status = 0; }
11935 done
11936 rm -f a.out
11937
11938 # If we don't use `.F' as extension, the preprocessor is not run on the
11939 # input file. (Note that this only needs to work for GNU compilers.)
11940 ac_save_ext=$ac_ext
11941 ac_ext=F
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11943 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11944 if ${ac_cv_fc_compiler_gnu+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 cat > conftest.$ac_ext <<_ACEOF
11948 program main
11949 #ifndef __GNUC__
11950 choke me
11951 #endif
11952
11953 end
11954 _ACEOF
11955 if ac_fn_fc_try_compile "$LINENO"; then :
11956 ac_compiler_gnu=yes
11957 else
11958 ac_compiler_gnu=no
11959 fi
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11962
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11965 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11966 ac_ext=$ac_save_ext
11967 ac_test_FCFLAGS=${FCFLAGS+set}
11968 ac_save_FCFLAGS=$FCFLAGS
11969 FCFLAGS=
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11971 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11972 if ${ac_cv_prog_fc_g+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 FCFLAGS=-g
11976 cat > conftest.$ac_ext <<_ACEOF
11977 program main
11978
11979 end
11980 _ACEOF
11981 if ac_fn_fc_try_compile "$LINENO"; then :
11982 ac_cv_prog_fc_g=yes
11983 else
11984 ac_cv_prog_fc_g=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11990 $as_echo "$ac_cv_prog_fc_g" >&6; }
11991 if test "$ac_test_FCFLAGS" = set; then
11992 FCFLAGS=$ac_save_FCFLAGS
11993 elif test $ac_cv_prog_fc_g = yes; then
11994 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11995 FCFLAGS="-g -O2"
11996 else
11997 FCFLAGS="-g"
11998 fi
11999 else
12000 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12001 FCFLAGS="-O2"
12002 else
12003 FCFLAGS=
12004 fi
12005 fi
12006
12007 if test $ac_compiler_gnu = yes; then
12008 GFC=yes
12009 else
12010 GFC=
12011 fi
12012 ac_ext=c
12013 ac_cpp='$CPP $CPPFLAGS'
12014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12017
12018 ac_ext=${ac_fc_srcext-f}
12019 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12020 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12022
12023
12024 if test -z "$FC" || test "X$FC" = "Xno"; then
12025 _lt_disable_FC=yes
12026 fi
12027
12028 archive_cmds_need_lc_FC=no
12029 allow_undefined_flag_FC=
12030 always_export_symbols_FC=no
12031 archive_expsym_cmds_FC=
12032 export_dynamic_flag_spec_FC=
12033 hardcode_direct_FC=no
12034 hardcode_direct_absolute_FC=no
12035 hardcode_libdir_flag_spec_FC=
12036 hardcode_libdir_flag_spec_ld_FC=
12037 hardcode_libdir_separator_FC=
12038 hardcode_minus_L_FC=no
12039 hardcode_automatic_FC=no
12040 inherit_rpath_FC=no
12041 module_cmds_FC=
12042 module_expsym_cmds_FC=
12043 link_all_deplibs_FC=unknown
12044 old_archive_cmds_FC=$old_archive_cmds
12045 reload_flag_FC=$reload_flag
12046 reload_cmds_FC=$reload_cmds
12047 no_undefined_flag_FC=
12048 whole_archive_flag_spec_FC=
12049 enable_shared_with_static_runtimes_FC=no
12050
12051 # Source file extension for fc test sources.
12052 ac_ext=${ac_fc_srcext-f}
12053
12054 # Object file extension for compiled fc test sources.
12055 objext=o
12056 objext_FC=$objext
12057
12058 # No sense in running all these tests if we already determined that
12059 # the FC compiler isn't working. Some variables (like enable_shared)
12060 # are currently assumed to apply to all compilers on this platform,
12061 # and will be corrupted by setting them based on a non-working compiler.
12062 if test "$_lt_disable_FC" != yes; then
12063 # Code to be used in simple compile tests
12064 lt_simple_compile_test_code="\
12065 subroutine t
12066 return
12067 end
12068 "
12069
12070 # Code to be used in simple link tests
12071 lt_simple_link_test_code="\
12072 program t
12073 end
12074 "
12075
12076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12077
12078
12079
12080
12081
12082
12083 # If no C compiler was specified, use CC.
12084 LTCC=${LTCC-"$CC"}
12085
12086 # If no C compiler flags were specified, use CFLAGS.
12087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12088
12089 # Allow CC to be a program name with arguments.
12090 compiler=$CC
12091
12092
12093 # save warnings/boilerplate of simple test code
12094 ac_outfile=conftest.$ac_objext
12095 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12097 _lt_compiler_boilerplate=`cat conftest.err`
12098 $RM conftest*
12099
12100 ac_outfile=conftest.$ac_objext
12101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12103 _lt_linker_boilerplate=`cat conftest.err`
12104 $RM -r conftest*
12105
12106
12107 # Allow CC to be a program name with arguments.
12108 lt_save_CC="$CC"
12109 lt_save_GCC=$GCC
12110 CC=${FC-"f95"}
12111 compiler=$CC
12112 GCC=$ac_cv_fc_compiler_gnu
12113
12114 compiler_FC=$CC
12115 for cc_temp in $compiler""; do
12116 case $cc_temp in
12117 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12118 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12119 \-*) ;;
12120 *) break;;
12121 esac
12122 done
12123 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12124
12125
12126 if test -n "$compiler"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12128 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12130 $as_echo "$can_build_shared" >&6; }
12131
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12133 $as_echo_n "checking whether to build shared libraries... " >&6; }
12134 test "$can_build_shared" = "no" && enable_shared=no
12135
12136 # On AIX, shared libraries and static libraries use the same namespace, and
12137 # are all built from PIC.
12138 case $host_os in
12139 aix3*)
12140 test "$enable_shared" = yes && enable_static=no
12141 if test -n "$RANLIB"; then
12142 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12143 postinstall_cmds='$RANLIB $lib'
12144 fi
12145 ;;
12146 aix[4-9]*)
12147 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12148 test "$enable_shared" = yes && enable_static=no
12149 fi
12150 ;;
12151 esac
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12153 $as_echo "$enable_shared" >&6; }
12154
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12156 $as_echo_n "checking whether to build static libraries... " >&6; }
12157 # Make sure either enable_shared or enable_static is yes.
12158 test "$enable_shared" = yes || enable_static=yes
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12160 $as_echo "$enable_static" >&6; }
12161
12162 GCC_FC="$ac_cv_fc_compiler_gnu"
12163 LD_FC="$LD"
12164
12165 ## CAVEAT EMPTOR:
12166 ## There is no encapsulation within the following macros, do not change
12167 ## the running order or otherwise move them around unless you know exactly
12168 ## what you are doing...
12169 # Dependencies to place before and after the object being linked:
12170 predep_objects_FC=
12171 postdep_objects_FC=
12172 predeps_FC=
12173 postdeps_FC=
12174 compiler_lib_search_path_FC=
12175
12176 cat > conftest.$ac_ext <<_LT_EOF
12177 subroutine foo
12178 implicit none
12179 integer a
12180 a=0
12181 return
12182 end
12183 _LT_EOF
12184
12185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12186 (eval $ac_compile) 2>&5
12187 ac_status=$?
12188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12189 test $ac_status = 0; }; then
12190 # Parse the compiler output and extract the necessary
12191 # objects, libraries and library flags.
12192
12193 # Sentinel used to keep track of whether or not we are before
12194 # the conftest object file.
12195 pre_test_object_deps_done=no
12196
12197 for p in `eval "$output_verbose_link_cmd"`; do
12198 case $p in
12199
12200 -L* | -R* | -l*)
12201 # Some compilers place space between "-{L,R}" and the path.
12202 # Remove the space.
12203 if test $p = "-L" ||
12204 test $p = "-R"; then
12205 prev=$p
12206 continue
12207 else
12208 prev=
12209 fi
12210
12211 if test "$pre_test_object_deps_done" = no; then
12212 case $p in
12213 -L* | -R*)
12214 # Internal compiler library paths should come after those
12215 # provided the user. The postdeps already come after the
12216 # user supplied libs so there is no need to process them.
12217 if test -z "$compiler_lib_search_path_FC"; then
12218 compiler_lib_search_path_FC="${prev}${p}"
12219 else
12220 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12221 fi
12222 ;;
12223 # The "-l" case would never come before the object being
12224 # linked, so don't bother handling this case.
12225 esac
12226 else
12227 if test -z "$postdeps_FC"; then
12228 postdeps_FC="${prev}${p}"
12229 else
12230 postdeps_FC="${postdeps_FC} ${prev}${p}"
12231 fi
12232 fi
12233 ;;
12234
12235 *.$objext)
12236 # This assumes that the test object file only shows up
12237 # once in the compiler output.
12238 if test "$p" = "conftest.$objext"; then
12239 pre_test_object_deps_done=yes
12240 continue
12241 fi
12242
12243 if test "$pre_test_object_deps_done" = no; then
12244 if test -z "$predep_objects_FC"; then
12245 predep_objects_FC="$p"
12246 else
12247 predep_objects_FC="$predep_objects_FC $p"
12248 fi
12249 else
12250 if test -z "$postdep_objects_FC"; then
12251 postdep_objects_FC="$p"
12252 else
12253 postdep_objects_FC="$postdep_objects_FC $p"
12254 fi
12255 fi
12256 ;;
12257
12258 *) ;; # Ignore the rest.
12259
12260 esac
12261 done
12262
12263 # Clean up.
12264 rm -f a.out a.exe
12265 else
12266 echo "libtool.m4: error: problem compiling FC test program"
12267 fi
12268
12269 $RM -f confest.$objext
12270
12271 # PORTME: override above test on systems where it is broken
12272
12273
12274 case " $postdeps_FC " in
12275 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12276 esac
12277 compiler_lib_search_dirs_FC=
12278 if test -n "${compiler_lib_search_path_FC}"; then
12279 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12280 fi
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312 lt_prog_compiler_wl_FC=
12313 lt_prog_compiler_pic_FC=
12314 lt_prog_compiler_static_FC=
12315
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12317 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12318
12319 if test "$GCC" = yes; then
12320 lt_prog_compiler_wl_FC='-Wl,'
12321 lt_prog_compiler_static_FC='-static'
12322
12323 case $host_os in
12324 aix*)
12325 # All AIX code is PIC.
12326 if test "$host_cpu" = ia64; then
12327 # AIX 5 now supports IA64 processor
12328 lt_prog_compiler_static_FC='-Bstatic'
12329 fi
12330 lt_prog_compiler_pic_FC='-fPIC'
12331 ;;
12332
12333 amigaos*)
12334 case $host_cpu in
12335 powerpc)
12336 # see comment about AmigaOS4 .so support
12337 lt_prog_compiler_pic_FC='-fPIC'
12338 ;;
12339 m68k)
12340 # FIXME: we need at least 68020 code to build shared libraries, but
12341 # adding the `-m68020' flag to GCC prevents building anything better,
12342 # like `-m68040'.
12343 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12344 ;;
12345 esac
12346 ;;
12347
12348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12349 # PIC is the default for these OSes.
12350 ;;
12351
12352 mingw* | cygwin* | pw32* | os2* | cegcc*)
12353 # This hack is so that the source file can tell whether it is being
12354 # built for inclusion in a dll (and should export symbols for example).
12355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12356 # (--disable-auto-import) libraries
12357 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12358 ;;
12359
12360 darwin* | rhapsody*)
12361 # PIC is the default on this platform
12362 # Common symbols not allowed in MH_DYLIB files
12363 lt_prog_compiler_pic_FC='-fno-common'
12364 ;;
12365
12366 haiku*)
12367 # PIC is the default for Haiku.
12368 # The "-static" flag exists, but is broken.
12369 lt_prog_compiler_static_FC=
12370 ;;
12371
12372 hpux*)
12373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12375 # sets the default TLS model and affects inlining.
12376 case $host_cpu in
12377 hppa*64*)
12378 # +Z the default
12379 ;;
12380 *)
12381 lt_prog_compiler_pic_FC='-fPIC'
12382 ;;
12383 esac
12384 ;;
12385
12386 interix[3-9]*)
12387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12388 # Instead, we relocate shared libraries at runtime.
12389 ;;
12390
12391 msdosdjgpp*)
12392 # Just because we use GCC doesn't mean we suddenly get shared libraries
12393 # on systems that don't support them.
12394 lt_prog_compiler_can_build_shared_FC=no
12395 enable_shared=no
12396 ;;
12397
12398 *nto* | *qnx*)
12399 # QNX uses GNU C++, but need to define -shared option too, otherwise
12400 # it will coredump.
12401 lt_prog_compiler_pic_FC='-fPIC -shared'
12402 ;;
12403
12404 sysv4*MP*)
12405 if test -d /usr/nec; then
12406 lt_prog_compiler_pic_FC=-Kconform_pic
12407 fi
12408 ;;
12409
12410 *)
12411 lt_prog_compiler_pic_FC='-fPIC'
12412 ;;
12413 esac
12414
12415 case $cc_basename in
12416 nvcc*) # Cuda Compiler Driver 2.2
12417 lt_prog_compiler_wl_FC='-Xlinker '
12418 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12419 ;;
12420 esac
12421 else
12422 # PORTME Check for flag to pass linker flags through the system compiler.
12423 case $host_os in
12424 aix*)
12425 lt_prog_compiler_wl_FC='-Wl,'
12426 if test "$host_cpu" = ia64; then
12427 # AIX 5 now supports IA64 processor
12428 lt_prog_compiler_static_FC='-Bstatic'
12429 else
12430 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12431 fi
12432 ;;
12433
12434 mingw* | cygwin* | pw32* | os2* | cegcc*)
12435 # This hack is so that the source file can tell whether it is being
12436 # built for inclusion in a dll (and should export symbols for example).
12437 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12438 ;;
12439
12440 hpux9* | hpux10* | hpux11*)
12441 lt_prog_compiler_wl_FC='-Wl,'
12442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12443 # not for PA HP-UX.
12444 case $host_cpu in
12445 hppa*64*|ia64*)
12446 # +Z the default
12447 ;;
12448 *)
12449 lt_prog_compiler_pic_FC='+Z'
12450 ;;
12451 esac
12452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12453 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12454 ;;
12455
12456 irix5* | irix6* | nonstopux*)
12457 lt_prog_compiler_wl_FC='-Wl,'
12458 # PIC (with -KPIC) is the default.
12459 lt_prog_compiler_static_FC='-non_shared'
12460 ;;
12461
12462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12463 case $cc_basename in
12464 # old Intel for x86_64 which still supported -KPIC.
12465 ecc*)
12466 lt_prog_compiler_wl_FC='-Wl,'
12467 lt_prog_compiler_pic_FC='-KPIC'
12468 lt_prog_compiler_static_FC='-static'
12469 ;;
12470 # icc used to be incompatible with GCC.
12471 # ICC 10 doesn't accept -KPIC any more.
12472 icc* | ifort*)
12473 lt_prog_compiler_wl_FC='-Wl,'
12474 lt_prog_compiler_pic_FC='-fPIC'
12475 lt_prog_compiler_static_FC='-static'
12476 ;;
12477 # Lahey Fortran 8.1.
12478 lf95*)
12479 lt_prog_compiler_wl_FC='-Wl,'
12480 lt_prog_compiler_pic_FC='--shared'
12481 lt_prog_compiler_static_FC='--static'
12482 ;;
12483 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12484 # Portland Group compilers (*not* the Pentium gcc compiler,
12485 # which looks to be a dead project)
12486 lt_prog_compiler_wl_FC='-Wl,'
12487 lt_prog_compiler_pic_FC='-fpic'
12488 lt_prog_compiler_static_FC='-Bstatic'
12489 ;;
12490 ccc*)
12491 lt_prog_compiler_wl_FC='-Wl,'
12492 # All Alpha code is PIC.
12493 lt_prog_compiler_static_FC='-non_shared'
12494 ;;
12495 xl* | bgxl* | bgf* | mpixl*)
12496 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12497 lt_prog_compiler_wl_FC='-Wl,'
12498 lt_prog_compiler_pic_FC='-qpic'
12499 lt_prog_compiler_static_FC='-qstaticlink'
12500 ;;
12501 *)
12502 case `$CC -V 2>&1 | sed 5q` in
12503 *Sun\ F* | *Sun*Fortran*)
12504 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12505 lt_prog_compiler_pic_FC='-KPIC'
12506 lt_prog_compiler_static_FC='-Bstatic'
12507 lt_prog_compiler_wl_FC=''
12508 ;;
12509 *Sun\ C*)
12510 # Sun C 5.9
12511 lt_prog_compiler_pic_FC='-KPIC'
12512 lt_prog_compiler_static_FC='-Bstatic'
12513 lt_prog_compiler_wl_FC='-Wl,'
12514 ;;
12515 esac
12516 ;;
12517 esac
12518 ;;
12519
12520 newsos6)
12521 lt_prog_compiler_pic_FC='-KPIC'
12522 lt_prog_compiler_static_FC='-Bstatic'
12523 ;;
12524
12525 *nto* | *qnx*)
12526 # QNX uses GNU C++, but need to define -shared option too, otherwise
12527 # it will coredump.
12528 lt_prog_compiler_pic_FC='-fPIC -shared'
12529 ;;
12530
12531 osf3* | osf4* | osf5*)
12532 lt_prog_compiler_wl_FC='-Wl,'
12533 # All OSF/1 code is PIC.
12534 lt_prog_compiler_static_FC='-non_shared'
12535 ;;
12536
12537 rdos*)
12538 lt_prog_compiler_static_FC='-non_shared'
12539 ;;
12540
12541 solaris*)
12542 lt_prog_compiler_pic_FC='-KPIC'
12543 lt_prog_compiler_static_FC='-Bstatic'
12544 case $cc_basename in
12545 f77* | f90* | f95*)
12546 lt_prog_compiler_wl_FC='-Qoption ld ';;
12547 *)
12548 lt_prog_compiler_wl_FC='-Wl,';;
12549 esac
12550 ;;
12551
12552 sunos4*)
12553 lt_prog_compiler_wl_FC='-Qoption ld '
12554 lt_prog_compiler_pic_FC='-PIC'
12555 lt_prog_compiler_static_FC='-Bstatic'
12556 ;;
12557
12558 sysv4 | sysv4.2uw2* | sysv4.3*)
12559 lt_prog_compiler_wl_FC='-Wl,'
12560 lt_prog_compiler_pic_FC='-KPIC'
12561 lt_prog_compiler_static_FC='-Bstatic'
12562 ;;
12563
12564 sysv4*MP*)
12565 if test -d /usr/nec ;then
12566 lt_prog_compiler_pic_FC='-Kconform_pic'
12567 lt_prog_compiler_static_FC='-Bstatic'
12568 fi
12569 ;;
12570
12571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12572 lt_prog_compiler_wl_FC='-Wl,'
12573 lt_prog_compiler_pic_FC='-KPIC'
12574 lt_prog_compiler_static_FC='-Bstatic'
12575 ;;
12576
12577 unicos*)
12578 lt_prog_compiler_wl_FC='-Wl,'
12579 lt_prog_compiler_can_build_shared_FC=no
12580 ;;
12581
12582 uts4*)
12583 lt_prog_compiler_pic_FC='-pic'
12584 lt_prog_compiler_static_FC='-Bstatic'
12585 ;;
12586
12587 *)
12588 lt_prog_compiler_can_build_shared_FC=no
12589 ;;
12590 esac
12591 fi
12592
12593 case $host_os in
12594 # For platforms which do not support PIC, -DPIC is meaningless:
12595 *djgpp*)
12596 lt_prog_compiler_pic_FC=
12597 ;;
12598 *)
12599 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12600 ;;
12601 esac
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12603 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12604
12605
12606
12607 #
12608 # Check to make sure the PIC flag actually works.
12609 #
12610 if test -n "$lt_prog_compiler_pic_FC"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12612 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12613 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 lt_cv_prog_compiler_pic_works_FC=no
12617 ac_outfile=conftest.$ac_objext
12618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12619 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12620 # Insert the option either (1) after the last *FLAGS variable, or
12621 # (2) before a word containing "conftest.", or (3) at the end.
12622 # Note that $ac_compile itself does not contain backslashes and begins
12623 # with a dollar sign (not a hyphen), so the echo should work correctly.
12624 # The option is referenced via a variable to avoid confusing sed.
12625 lt_compile=`echo "$ac_compile" | $SED \
12626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12628 -e 's:$: $lt_compiler_flag:'`
12629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12630 (eval "$lt_compile" 2>conftest.err)
12631 ac_status=$?
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 if (exit $ac_status) && test -s "$ac_outfile"; then
12635 # The compiler can only warn and ignore the option if not recognized
12636 # So say no if there are warnings other than the usual output.
12637 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12640 lt_cv_prog_compiler_pic_works_FC=yes
12641 fi
12642 fi
12643 $RM conftest*
12644
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12647 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12648
12649 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12650 case $lt_prog_compiler_pic_FC in
12651 "" | " "*) ;;
12652 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12653 esac
12654 else
12655 lt_prog_compiler_pic_FC=
12656 lt_prog_compiler_can_build_shared_FC=no
12657 fi
12658
12659 fi
12660
12661
12662
12663 #
12664 # Check to make sure the static flag actually works.
12665 #
12666 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12668 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12669 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 lt_cv_prog_compiler_static_works_FC=no
12673 save_LDFLAGS="$LDFLAGS"
12674 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12675 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12676 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12677 # The linker can only warn and ignore the option if not recognized
12678 # So say no if there are warnings
12679 if test -s conftest.err; then
12680 # Append any errors to the config.log.
12681 cat conftest.err 1>&5
12682 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12684 if diff conftest.exp conftest.er2 >/dev/null; then
12685 lt_cv_prog_compiler_static_works_FC=yes
12686 fi
12687 else
12688 lt_cv_prog_compiler_static_works_FC=yes
12689 fi
12690 fi
12691 $RM -r conftest*
12692 LDFLAGS="$save_LDFLAGS"
12693
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12696 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12697
12698 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12699 :
12700 else
12701 lt_prog_compiler_static_FC=
12702 fi
12703
12704
12705
12706
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12708 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12709 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 lt_cv_prog_compiler_c_o_FC=no
12713 $RM -r conftest 2>/dev/null
12714 mkdir conftest
12715 cd conftest
12716 mkdir out
12717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12718
12719 lt_compiler_flag="-o out/conftest2.$ac_objext"
12720 # Insert the option either (1) after the last *FLAGS variable, or
12721 # (2) before a word containing "conftest.", or (3) at the end.
12722 # Note that $ac_compile itself does not contain backslashes and begins
12723 # with a dollar sign (not a hyphen), so the echo should work correctly.
12724 lt_compile=`echo "$ac_compile" | $SED \
12725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12727 -e 's:$: $lt_compiler_flag:'`
12728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12729 (eval "$lt_compile" 2>out/conftest.err)
12730 ac_status=$?
12731 cat out/conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12734 then
12735 # The compiler can only warn and ignore the option if not recognized
12736 # So say no if there are warnings
12737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12738 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12739 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12740 lt_cv_prog_compiler_c_o_FC=yes
12741 fi
12742 fi
12743 chmod u+w . 2>&5
12744 $RM conftest*
12745 # SGI C++ compiler will create directory out/ii_files/ for
12746 # template instantiation
12747 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12748 $RM out/* && rmdir out
12749 cd ..
12750 $RM -r conftest
12751 $RM conftest*
12752
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12755 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12756
12757
12758
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12760 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12761 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 lt_cv_prog_compiler_c_o_FC=no
12765 $RM -r conftest 2>/dev/null
12766 mkdir conftest
12767 cd conftest
12768 mkdir out
12769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12770
12771 lt_compiler_flag="-o out/conftest2.$ac_objext"
12772 # Insert the option either (1) after the last *FLAGS variable, or
12773 # (2) before a word containing "conftest.", or (3) at the end.
12774 # Note that $ac_compile itself does not contain backslashes and begins
12775 # with a dollar sign (not a hyphen), so the echo should work correctly.
12776 lt_compile=`echo "$ac_compile" | $SED \
12777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12779 -e 's:$: $lt_compiler_flag:'`
12780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12781 (eval "$lt_compile" 2>out/conftest.err)
12782 ac_status=$?
12783 cat out/conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12786 then
12787 # The compiler can only warn and ignore the option if not recognized
12788 # So say no if there are warnings
12789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12792 lt_cv_prog_compiler_c_o_FC=yes
12793 fi
12794 fi
12795 chmod u+w . 2>&5
12796 $RM conftest*
12797 # SGI C++ compiler will create directory out/ii_files/ for
12798 # template instantiation
12799 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12800 $RM out/* && rmdir out
12801 cd ..
12802 $RM -r conftest
12803 $RM conftest*
12804
12805 fi
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12807 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12808
12809
12810
12811
12812 hard_links="nottested"
12813 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12814 # do not overwrite the value of need_locks provided by the user
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12816 $as_echo_n "checking if we can lock with hard links... " >&6; }
12817 hard_links=yes
12818 $RM conftest*
12819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12820 touch conftest.a
12821 ln conftest.a conftest.b 2>&5 || hard_links=no
12822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12824 $as_echo "$hard_links" >&6; }
12825 if test "$hard_links" = no; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12827 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12828 need_locks=warn
12829 fi
12830 else
12831 need_locks=no
12832 fi
12833
12834
12835
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12837 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12838
12839 runpath_var=
12840 allow_undefined_flag_FC=
12841 always_export_symbols_FC=no
12842 archive_cmds_FC=
12843 archive_expsym_cmds_FC=
12844 compiler_needs_object_FC=no
12845 enable_shared_with_static_runtimes_FC=no
12846 export_dynamic_flag_spec_FC=
12847 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12848 hardcode_automatic_FC=no
12849 hardcode_direct_FC=no
12850 hardcode_direct_absolute_FC=no
12851 hardcode_libdir_flag_spec_FC=
12852 hardcode_libdir_flag_spec_ld_FC=
12853 hardcode_libdir_separator_FC=
12854 hardcode_minus_L_FC=no
12855 hardcode_shlibpath_var_FC=unsupported
12856 inherit_rpath_FC=no
12857 link_all_deplibs_FC=unknown
12858 module_cmds_FC=
12859 module_expsym_cmds_FC=
12860 old_archive_from_new_cmds_FC=
12861 old_archive_from_expsyms_cmds_FC=
12862 thread_safe_flag_spec_FC=
12863 whole_archive_flag_spec_FC=
12864 # include_expsyms should be a list of space-separated symbols to be *always*
12865 # included in the symbol list
12866 include_expsyms_FC=
12867 # exclude_expsyms can be an extended regexp of symbols to exclude
12868 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12869 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12870 # as well as any symbol that contains `d'.
12871 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12872 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12873 # platforms (ab)use it in PIC code, but their linkers get confused if
12874 # the symbol is explicitly referenced. Since portable code cannot
12875 # rely on this symbol name, it's probably fine to never include it in
12876 # preloaded symbol tables.
12877 # Exclude shared library initialization/finalization symbols.
12878 extract_expsyms_cmds=
12879
12880 case $host_os in
12881 cygwin* | mingw* | pw32* | cegcc*)
12882 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12883 # When not using gcc, we currently assume that we are using
12884 # Microsoft Visual C++.
12885 if test "$GCC" != yes; then
12886 with_gnu_ld=no
12887 fi
12888 ;;
12889 interix*)
12890 # we just hope/assume this is gcc and not c89 (= MSVC++)
12891 with_gnu_ld=yes
12892 ;;
12893 openbsd*)
12894 with_gnu_ld=no
12895 ;;
12896 esac
12897
12898 ld_shlibs_FC=yes
12899
12900 # On some targets, GNU ld is compatible enough with the native linker
12901 # that we're better off using the native interface for both.
12902 lt_use_gnu_ld_interface=no
12903 if test "$with_gnu_ld" = yes; then
12904 case $host_os in
12905 aix*)
12906 # The AIX port of GNU ld has always aspired to compatibility
12907 # with the native linker. However, as the warning in the GNU ld
12908 # block says, versions before 2.19.5* couldn't really create working
12909 # shared libraries, regardless of the interface used.
12910 case `$LD -v 2>&1` in
12911 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12912 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12913 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12914 *)
12915 lt_use_gnu_ld_interface=yes
12916 ;;
12917 esac
12918 ;;
12919 *)
12920 lt_use_gnu_ld_interface=yes
12921 ;;
12922 esac
12923 fi
12924
12925 if test "$lt_use_gnu_ld_interface" = yes; then
12926 # If archive_cmds runs LD, not CC, wlarc should be empty
12927 wlarc='${wl}'
12928
12929 # Set some defaults for GNU ld with shared library support. These
12930 # are reset later if shared libraries are not supported. Putting them
12931 # here allows them to be overridden if necessary.
12932 runpath_var=LD_RUN_PATH
12933 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12934 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12935 # ancient GNU ld didn't support --whole-archive et. al.
12936 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12937 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12938 else
12939 whole_archive_flag_spec_FC=
12940 fi
12941 supports_anon_versioning=no
12942 case `$LD -v 2>&1` in
12943 *GNU\ gold*) supports_anon_versioning=yes ;;
12944 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12945 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12946 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12947 *\ 2.11.*) ;; # other 2.11 versions
12948 *) supports_anon_versioning=yes ;;
12949 esac
12950
12951 # See if GNU ld supports shared libraries.
12952 case $host_os in
12953 aix[3-9]*)
12954 # On AIX/PPC, the GNU linker is very broken
12955 if test "$host_cpu" != ia64; then
12956 ld_shlibs_FC=no
12957 cat <<_LT_EOF 1>&2
12958
12959 *** Warning: the GNU linker, at least up to release 2.19, is reported
12960 *** to be unable to reliably create shared libraries on AIX.
12961 *** Therefore, libtool is disabling shared libraries support. If you
12962 *** really care for shared libraries, you may want to install binutils
12963 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12964 *** You will then need to restart the configuration process.
12965
12966 _LT_EOF
12967 fi
12968 ;;
12969
12970 amigaos*)
12971 case $host_cpu in
12972 powerpc)
12973 # see comment about AmigaOS4 .so support
12974 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975 archive_expsym_cmds_FC=''
12976 ;;
12977 m68k)
12978 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)'
12979 hardcode_libdir_flag_spec_FC='-L$libdir'
12980 hardcode_minus_L_FC=yes
12981 ;;
12982 esac
12983 ;;
12984
12985 beos*)
12986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12987 allow_undefined_flag_FC=unsupported
12988 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12989 # support --undefined. This deserves some investigation. FIXME
12990 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991 else
12992 ld_shlibs_FC=no
12993 fi
12994 ;;
12995
12996 cygwin* | mingw* | pw32* | cegcc*)
12997 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12998 # as there is no search path for DLLs.
12999 hardcode_libdir_flag_spec_FC='-L$libdir'
13000 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13001 allow_undefined_flag_FC=unsupported
13002 always_export_symbols_FC=no
13003 enable_shared_with_static_runtimes_FC=yes
13004 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13005
13006 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13007 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13008 # If the export-symbols file already is a .def file (1st line
13009 # is EXPORTS), use it as is; otherwise, prepend...
13010 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13011 cp $export_symbols $output_objdir/$soname.def;
13012 else
13013 echo EXPORTS > $output_objdir/$soname.def;
13014 cat $export_symbols >> $output_objdir/$soname.def;
13015 fi~
13016 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13017 else
13018 ld_shlibs_FC=no
13019 fi
13020 ;;
13021
13022 haiku*)
13023 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13024 link_all_deplibs_FC=yes
13025 ;;
13026
13027 interix[3-9]*)
13028 hardcode_direct_FC=no
13029 hardcode_shlibpath_var_FC=no
13030 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13031 export_dynamic_flag_spec_FC='${wl}-E'
13032 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13033 # Instead, shared libraries are loaded at an image base (0x10000000 by
13034 # default) and relocated if they conflict, which is a slow very memory
13035 # consuming and fragmenting process. To avoid this, we pick a random,
13036 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13037 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13038 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'
13039 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'
13040 ;;
13041
13042 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13043 tmp_diet=no
13044 if test "$host_os" = linux-dietlibc; then
13045 case $cc_basename in
13046 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13047 esac
13048 fi
13049 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13050 && test "$tmp_diet" = no
13051 then
13052 tmp_addflag=' $pic_flag'
13053 tmp_sharedflag='-shared'
13054 case $cc_basename,$host_cpu in
13055 pgcc*) # Portland Group C compiler
13056 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'
13057 tmp_addflag=' $pic_flag'
13058 ;;
13059 pgf77* | pgf90* | pgf95* | pgfortran*)
13060 # Portland Group f77 and f90 compilers
13061 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'
13062 tmp_addflag=' $pic_flag -Mnomain' ;;
13063 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13064 tmp_addflag=' -i_dynamic' ;;
13065 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13066 tmp_addflag=' -i_dynamic -nofor_main' ;;
13067 ifc* | ifort*) # Intel Fortran compiler
13068 tmp_addflag=' -nofor_main' ;;
13069 lf95*) # Lahey Fortran 8.1
13070 whole_archive_flag_spec_FC=
13071 tmp_sharedflag='--shared' ;;
13072 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13073 tmp_sharedflag='-qmkshrobj'
13074 tmp_addflag= ;;
13075 nvcc*) # Cuda Compiler Driver 2.2
13076 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'
13077 compiler_needs_object_FC=yes
13078 ;;
13079 esac
13080 case `$CC -V 2>&1 | sed 5q` in
13081 *Sun\ C*) # Sun C 5.9
13082 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'
13083 compiler_needs_object_FC=yes
13084 tmp_sharedflag='-G' ;;
13085 *Sun\ F*) # Sun Fortran 8.3
13086 tmp_sharedflag='-G' ;;
13087 esac
13088 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13089
13090 if test "x$supports_anon_versioning" = xyes; then
13091 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13093 echo "local: *; };" >> $output_objdir/$libname.ver~
13094 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13095 fi
13096
13097 case $cc_basename in
13098 xlf* | bgf* | bgxlf* | mpixlf*)
13099 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13100 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13101 hardcode_libdir_flag_spec_FC=
13102 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13103 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13104 if test "x$supports_anon_versioning" = xyes; then
13105 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13106 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13107 echo "local: *; };" >> $output_objdir/$libname.ver~
13108 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13109 fi
13110 ;;
13111 esac
13112 else
13113 ld_shlibs_FC=no
13114 fi
13115 ;;
13116
13117 netbsd*)
13118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13119 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13120 wlarc=
13121 else
13122 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13123 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13124 fi
13125 ;;
13126
13127 solaris*)
13128 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13129 ld_shlibs_FC=no
13130 cat <<_LT_EOF 1>&2
13131
13132 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13133 *** create shared libraries on Solaris systems. Therefore, libtool
13134 *** is disabling shared libraries support. We urge you to upgrade GNU
13135 *** binutils to release 2.9.1 or newer. Another option is to modify
13136 *** your PATH or compiler configuration so that the native linker is
13137 *** used, and then restart.
13138
13139 _LT_EOF
13140 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13141 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13142 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13143 else
13144 ld_shlibs_FC=no
13145 fi
13146 ;;
13147
13148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13149 case `$LD -v 2>&1` in
13150 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13151 ld_shlibs_FC=no
13152 cat <<_LT_EOF 1>&2
13153
13154 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13155 *** reliably create shared libraries on SCO systems. Therefore, libtool
13156 *** is disabling shared libraries support. We urge you to upgrade GNU
13157 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13158 *** your PATH or compiler configuration so that the native linker is
13159 *** used, and then restart.
13160
13161 _LT_EOF
13162 ;;
13163 *)
13164 # For security reasons, it is highly recommended that you always
13165 # use absolute paths for naming shared libraries, and exclude the
13166 # DT_RUNPATH tag from executables and libraries. But doing so
13167 # requires that you compile everything twice, which is a pain.
13168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13169 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13170 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13172 else
13173 ld_shlibs_FC=no
13174 fi
13175 ;;
13176 esac
13177 ;;
13178
13179 sunos4*)
13180 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13181 wlarc=
13182 hardcode_direct_FC=yes
13183 hardcode_shlibpath_var_FC=no
13184 ;;
13185
13186 *)
13187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13188 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13190 else
13191 ld_shlibs_FC=no
13192 fi
13193 ;;
13194 esac
13195
13196 if test "$ld_shlibs_FC" = no; then
13197 runpath_var=
13198 hardcode_libdir_flag_spec_FC=
13199 export_dynamic_flag_spec_FC=
13200 whole_archive_flag_spec_FC=
13201 fi
13202 else
13203 # PORTME fill in a description of your system's linker (not GNU ld)
13204 case $host_os in
13205 aix3*)
13206 allow_undefined_flag_FC=unsupported
13207 always_export_symbols_FC=yes
13208 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'
13209 # Note: this linker hardcodes the directories in LIBPATH if there
13210 # are no directories specified by -L.
13211 hardcode_minus_L_FC=yes
13212 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13213 # Neither direct hardcoding nor static linking is supported with a
13214 # broken collect2.
13215 hardcode_direct_FC=unsupported
13216 fi
13217 ;;
13218
13219 aix[4-9]*)
13220 if test "$host_cpu" = ia64; then
13221 # On IA64, the linker does run time linking by default, so we don't
13222 # have to do anything special.
13223 aix_use_runtimelinking=no
13224 exp_sym_flag='-Bexport'
13225 no_entry_flag=""
13226 else
13227 # If we're using GNU nm, then we don't want the "-C" option.
13228 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13229 # Also, AIX nm treats weak defined symbols like other global
13230 # defined symbols, whereas GNU nm marks them as "W".
13231 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13232 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'
13233 else
13234 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'
13235 fi
13236 aix_use_runtimelinking=no
13237
13238 # Test if we are trying to use run time linking or normal
13239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13240 # need to do runtime linking.
13241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13242 for ld_flag in $LDFLAGS; do
13243 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13244 aix_use_runtimelinking=yes
13245 break
13246 fi
13247 done
13248 ;;
13249 esac
13250
13251 exp_sym_flag='-bexport'
13252 no_entry_flag='-bnoentry'
13253 fi
13254
13255 # When large executables or shared objects are built, AIX ld can
13256 # have problems creating the table of contents. If linking a library
13257 # or program results in "error TOC overflow" add -mminimal-toc to
13258 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13259 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13260
13261 archive_cmds_FC=''
13262 hardcode_direct_FC=yes
13263 hardcode_direct_absolute_FC=yes
13264 hardcode_libdir_separator_FC=':'
13265 link_all_deplibs_FC=yes
13266 file_list_spec_FC='${wl}-f,'
13267
13268 if test "$GCC" = yes; then
13269 case $host_os in aix4.[012]|aix4.[012].*)
13270 # We only want to do this on AIX 4.2 and lower, the check
13271 # below for broken collect2 doesn't work under 4.3+
13272 collect2name=`${CC} -print-prog-name=collect2`
13273 if test -f "$collect2name" &&
13274 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13275 then
13276 # We have reworked collect2
13277 :
13278 else
13279 # We have old collect2
13280 hardcode_direct_FC=unsupported
13281 # It fails to find uninstalled libraries when the uninstalled
13282 # path is not listed in the libpath. Setting hardcode_minus_L
13283 # to unsupported forces relinking
13284 hardcode_minus_L_FC=yes
13285 hardcode_libdir_flag_spec_FC='-L$libdir'
13286 hardcode_libdir_separator_FC=
13287 fi
13288 ;;
13289 esac
13290 shared_flag='-shared'
13291 if test "$aix_use_runtimelinking" = yes; then
13292 shared_flag="$shared_flag "'${wl}-G'
13293 fi
13294 else
13295 # not using gcc
13296 if test "$host_cpu" = ia64; then
13297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13298 # chokes on -Wl,-G. The following line is correct:
13299 shared_flag='-G'
13300 else
13301 if test "$aix_use_runtimelinking" = yes; then
13302 shared_flag='${wl}-G'
13303 else
13304 shared_flag='${wl}-bM:SRE'
13305 fi
13306 fi
13307 fi
13308
13309 export_dynamic_flag_spec_FC='${wl}-bexpall'
13310 # It seems that -bexpall does not export symbols beginning with
13311 # underscore (_), so it is better to generate a list of symbols to export.
13312 always_export_symbols_FC=yes
13313 if test "$aix_use_runtimelinking" = yes; then
13314 # Warning - without using the other runtime loading flags (-brtl),
13315 # -berok will link without error, but may produce a broken library.
13316 allow_undefined_flag_FC='-berok'
13317 # Determine the default libpath from the value encoded in an
13318 # empty executable.
13319 cat > conftest.$ac_ext <<_ACEOF
13320 program main
13321
13322 end
13323 _ACEOF
13324 if ac_fn_fc_try_link "$LINENO"; then :
13325
13326 lt_aix_libpath_sed='
13327 /Import File Strings/,/^$/ {
13328 /^0/ {
13329 s/^0 *\(.*\)$/\1/
13330 p
13331 }
13332 }'
13333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13334 # Check for a 64-bit object if we didn't find anything.
13335 if test -z "$aix_libpath"; then
13336 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13337 fi
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13342
13343 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13344 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"
13345 else
13346 if test "$host_cpu" = ia64; then
13347 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13348 allow_undefined_flag_FC="-z nodefs"
13349 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"
13350 else
13351 # Determine the default libpath from the value encoded in an
13352 # empty executable.
13353 cat > conftest.$ac_ext <<_ACEOF
13354 program main
13355
13356 end
13357 _ACEOF
13358 if ac_fn_fc_try_link "$LINENO"; then :
13359
13360 lt_aix_libpath_sed='
13361 /Import File Strings/,/^$/ {
13362 /^0/ {
13363 s/^0 *\(.*\)$/\1/
13364 p
13365 }
13366 }'
13367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13368 # Check for a 64-bit object if we didn't find anything.
13369 if test -z "$aix_libpath"; then
13370 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13371 fi
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13376
13377 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13378 # Warning - without using the other run time loading flags,
13379 # -berok will link without error, but may produce a broken library.
13380 no_undefined_flag_FC=' ${wl}-bernotok'
13381 allow_undefined_flag_FC=' ${wl}-berok'
13382 if test "$with_gnu_ld" = yes; then
13383 # We only use this code for GNU lds that support --whole-archive.
13384 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13385 else
13386 # Exported symbols can be pulled into shared objects from archives
13387 whole_archive_flag_spec_FC='$convenience'
13388 fi
13389 archive_cmds_need_lc_FC=yes
13390 # This is similar to how AIX traditionally builds its shared libraries.
13391 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'
13392 fi
13393 fi
13394 ;;
13395
13396 amigaos*)
13397 case $host_cpu in
13398 powerpc)
13399 # see comment about AmigaOS4 .so support
13400 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401 archive_expsym_cmds_FC=''
13402 ;;
13403 m68k)
13404 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)'
13405 hardcode_libdir_flag_spec_FC='-L$libdir'
13406 hardcode_minus_L_FC=yes
13407 ;;
13408 esac
13409 ;;
13410
13411 bsdi[45]*)
13412 export_dynamic_flag_spec_FC=-rdynamic
13413 ;;
13414
13415 cygwin* | mingw* | pw32* | cegcc*)
13416 # When not using gcc, we currently assume that we are using
13417 # Microsoft Visual C++.
13418 # hardcode_libdir_flag_spec is actually meaningless, as there is
13419 # no search path for DLLs.
13420 hardcode_libdir_flag_spec_FC=' '
13421 allow_undefined_flag_FC=unsupported
13422 # Tell ltmain to make .lib files, not .a files.
13423 libext=lib
13424 # Tell ltmain to make .dll files, not .so files.
13425 shrext_cmds=".dll"
13426 # FIXME: Setting linknames here is a bad hack.
13427 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13428 # The linker will automatically build a .lib file if we build a DLL.
13429 old_archive_from_new_cmds_FC='true'
13430 # FIXME: Should let the user specify the lib program.
13431 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13432 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13433 enable_shared_with_static_runtimes_FC=yes
13434 ;;
13435
13436 darwin* | rhapsody*)
13437
13438
13439 archive_cmds_need_lc_FC=no
13440 hardcode_direct_FC=no
13441 hardcode_automatic_FC=yes
13442 hardcode_shlibpath_var_FC=unsupported
13443 if test "$lt_cv_ld_force_load" = "yes"; then
13444 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\"`'
13445 else
13446 whole_archive_flag_spec_FC=''
13447 fi
13448 link_all_deplibs_FC=yes
13449 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13450 case $cc_basename in
13451 ifort*) _lt_dar_can_shared=yes ;;
13452 *) _lt_dar_can_shared=$GCC ;;
13453 esac
13454 if test "$_lt_dar_can_shared" = "yes"; then
13455 output_verbose_link_cmd=func_echo_all
13456 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}"
13457 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13458 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}"
13459 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}"
13460
13461 else
13462 ld_shlibs_FC=no
13463 fi
13464
13465 ;;
13466
13467 dgux*)
13468 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_libdir_flag_spec_FC='-L$libdir'
13470 hardcode_shlibpath_var_FC=no
13471 ;;
13472
13473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13474 # support. Future versions do this automatically, but an explicit c++rt0.o
13475 # does not break anything, and helps significantly (at the cost of a little
13476 # extra space).
13477 freebsd2.2*)
13478 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13479 hardcode_libdir_flag_spec_FC='-R$libdir'
13480 hardcode_direct_FC=yes
13481 hardcode_shlibpath_var_FC=no
13482 ;;
13483
13484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13485 freebsd2.*)
13486 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13487 hardcode_direct_FC=yes
13488 hardcode_minus_L_FC=yes
13489 hardcode_shlibpath_var_FC=no
13490 ;;
13491
13492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13493 freebsd* | dragonfly*)
13494 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13495 hardcode_libdir_flag_spec_FC='-R$libdir'
13496 hardcode_direct_FC=yes
13497 hardcode_shlibpath_var_FC=no
13498 ;;
13499
13500 hpux9*)
13501 if test "$GCC" = yes; then
13502 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'
13503 else
13504 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'
13505 fi
13506 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13507 hardcode_libdir_separator_FC=:
13508 hardcode_direct_FC=yes
13509
13510 # hardcode_minus_L: Not really in the search PATH,
13511 # but as the default location of the library.
13512 hardcode_minus_L_FC=yes
13513 export_dynamic_flag_spec_FC='${wl}-E'
13514 ;;
13515
13516 hpux10*)
13517 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13518 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13519 else
13520 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13521 fi
13522 if test "$with_gnu_ld" = no; then
13523 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13524 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13525 hardcode_libdir_separator_FC=:
13526 hardcode_direct_FC=yes
13527 hardcode_direct_absolute_FC=yes
13528 export_dynamic_flag_spec_FC='${wl}-E'
13529 # hardcode_minus_L: Not really in the search PATH,
13530 # but as the default location of the library.
13531 hardcode_minus_L_FC=yes
13532 fi
13533 ;;
13534
13535 hpux11*)
13536 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13537 case $host_cpu in
13538 hppa*64*)
13539 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13540 ;;
13541 ia64*)
13542 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13543 ;;
13544 *)
13545 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13546 ;;
13547 esac
13548 else
13549 case $host_cpu in
13550 hppa*64*)
13551 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 ;;
13553 ia64*)
13554 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13555 ;;
13556 *)
13557 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13558 ;;
13559 esac
13560 fi
13561 if test "$with_gnu_ld" = no; then
13562 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13563 hardcode_libdir_separator_FC=:
13564
13565 case $host_cpu in
13566 hppa*64*|ia64*)
13567 hardcode_direct_FC=no
13568 hardcode_shlibpath_var_FC=no
13569 ;;
13570 *)
13571 hardcode_direct_FC=yes
13572 hardcode_direct_absolute_FC=yes
13573 export_dynamic_flag_spec_FC='${wl}-E'
13574
13575 # hardcode_minus_L: Not really in the search PATH,
13576 # but as the default location of the library.
13577 hardcode_minus_L_FC=yes
13578 ;;
13579 esac
13580 fi
13581 ;;
13582
13583 irix5* | irix6* | nonstopux*)
13584 if test "$GCC" = yes; then
13585 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'
13586 # Try to use the -exported_symbol ld option, if it does not
13587 # work, assume that -exports_file does not work either and
13588 # implicitly export all symbols.
13589 save_LDFLAGS="$LDFLAGS"
13590 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13591 cat > conftest.$ac_ext <<_ACEOF
13592 int foo(void) {}
13593 _ACEOF
13594 if ac_fn_fc_try_link "$LINENO"; then :
13595 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'
13596
13597 fi
13598 rm -f core conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 LDFLAGS="$save_LDFLAGS"
13601 else
13602 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'
13603 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'
13604 fi
13605 archive_cmds_need_lc_FC='no'
13606 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13607 hardcode_libdir_separator_FC=:
13608 inherit_rpath_FC=yes
13609 link_all_deplibs_FC=yes
13610 ;;
13611
13612 netbsd*)
13613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13614 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13615 else
13616 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13617 fi
13618 hardcode_libdir_flag_spec_FC='-R$libdir'
13619 hardcode_direct_FC=yes
13620 hardcode_shlibpath_var_FC=no
13621 ;;
13622
13623 newsos6)
13624 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_direct_FC=yes
13626 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13627 hardcode_libdir_separator_FC=:
13628 hardcode_shlibpath_var_FC=no
13629 ;;
13630
13631 *nto* | *qnx*)
13632 ;;
13633
13634 openbsd*)
13635 if test -f /usr/libexec/ld.so; then
13636 hardcode_direct_FC=yes
13637 hardcode_shlibpath_var_FC=no
13638 hardcode_direct_absolute_FC=yes
13639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13640 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13641 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13642 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13643 export_dynamic_flag_spec_FC='${wl}-E'
13644 else
13645 case $host_os in
13646 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13647 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13648 hardcode_libdir_flag_spec_FC='-R$libdir'
13649 ;;
13650 *)
13651 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13652 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13653 ;;
13654 esac
13655 fi
13656 else
13657 ld_shlibs_FC=no
13658 fi
13659 ;;
13660
13661 os2*)
13662 hardcode_libdir_flag_spec_FC='-L$libdir'
13663 hardcode_minus_L_FC=yes
13664 allow_undefined_flag_FC=unsupported
13665 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'
13666 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13667 ;;
13668
13669 osf3*)
13670 if test "$GCC" = yes; then
13671 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13672 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'
13673 else
13674 allow_undefined_flag_FC=' -expect_unresolved \*'
13675 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'
13676 fi
13677 archive_cmds_need_lc_FC='no'
13678 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13679 hardcode_libdir_separator_FC=:
13680 ;;
13681
13682 osf4* | osf5*) # as osf3* with the addition of -msym flag
13683 if test "$GCC" = yes; then
13684 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13685 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'
13686 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13687 else
13688 allow_undefined_flag_FC=' -expect_unresolved \*'
13689 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'
13690 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~
13691 $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'
13692
13693 # Both c and cxx compiler support -rpath directly
13694 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13695 fi
13696 archive_cmds_need_lc_FC='no'
13697 hardcode_libdir_separator_FC=:
13698 ;;
13699
13700 solaris*)
13701 no_undefined_flag_FC=' -z defs'
13702 if test "$GCC" = yes; then
13703 wlarc='${wl}'
13704 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13706 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13707 else
13708 case `$CC -V 2>&1` in
13709 *"Compilers 5.0"*)
13710 wlarc=''
13711 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13712 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13714 ;;
13715 *)
13716 wlarc='${wl}'
13717 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13718 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13719 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13720 ;;
13721 esac
13722 fi
13723 hardcode_libdir_flag_spec_FC='-R$libdir'
13724 hardcode_shlibpath_var_FC=no
13725 case $host_os in
13726 solaris2.[0-5] | solaris2.[0-5].*) ;;
13727 *)
13728 # The compiler driver will combine and reorder linker options,
13729 # but understands `-z linker_flag'. GCC discards it without `$wl',
13730 # but is careful enough not to reorder.
13731 # Supported since Solaris 2.6 (maybe 2.5.1?)
13732 if test "$GCC" = yes; then
13733 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13734 else
13735 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13736 fi
13737 ;;
13738 esac
13739 link_all_deplibs_FC=yes
13740 ;;
13741
13742 sunos4*)
13743 if test "x$host_vendor" = xsequent; then
13744 # Use $CC to link under sequent, because it throws in some extra .o
13745 # files that make .init and .fini sections work.
13746 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13747 else
13748 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13749 fi
13750 hardcode_libdir_flag_spec_FC='-L$libdir'
13751 hardcode_direct_FC=yes
13752 hardcode_minus_L_FC=yes
13753 hardcode_shlibpath_var_FC=no
13754 ;;
13755
13756 sysv4)
13757 case $host_vendor in
13758 sni)
13759 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13760 hardcode_direct_FC=yes # is this really true???
13761 ;;
13762 siemens)
13763 ## LD is ld it makes a PLAMLIB
13764 ## CC just makes a GrossModule.
13765 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13766 reload_cmds_FC='$CC -r -o $output$reload_objs'
13767 hardcode_direct_FC=no
13768 ;;
13769 motorola)
13770 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13772 ;;
13773 esac
13774 runpath_var='LD_RUN_PATH'
13775 hardcode_shlibpath_var_FC=no
13776 ;;
13777
13778 sysv4.3*)
13779 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_shlibpath_var_FC=no
13781 export_dynamic_flag_spec_FC='-Bexport'
13782 ;;
13783
13784 sysv4*MP*)
13785 if test -d /usr/nec; then
13786 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_shlibpath_var_FC=no
13788 runpath_var=LD_RUN_PATH
13789 hardcode_runpath_var=yes
13790 ld_shlibs_FC=yes
13791 fi
13792 ;;
13793
13794 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13795 no_undefined_flag_FC='${wl}-z,text'
13796 archive_cmds_need_lc_FC=no
13797 hardcode_shlibpath_var_FC=no
13798 runpath_var='LD_RUN_PATH'
13799
13800 if test "$GCC" = yes; then
13801 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13802 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13803 else
13804 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13806 fi
13807 ;;
13808
13809 sysv5* | sco3.2v5* | sco5v6*)
13810 # Note: We can NOT use -z defs as we might desire, because we do not
13811 # link with -lc, and that would cause any symbols used from libc to
13812 # always be unresolved, which means just about no library would
13813 # ever link correctly. If we're not using GNU ld we use -z text
13814 # though, which does catch some bad symbols but isn't as heavy-handed
13815 # as -z defs.
13816 no_undefined_flag_FC='${wl}-z,text'
13817 allow_undefined_flag_FC='${wl}-z,nodefs'
13818 archive_cmds_need_lc_FC=no
13819 hardcode_shlibpath_var_FC=no
13820 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13821 hardcode_libdir_separator_FC=':'
13822 link_all_deplibs_FC=yes
13823 export_dynamic_flag_spec_FC='${wl}-Bexport'
13824 runpath_var='LD_RUN_PATH'
13825
13826 if test "$GCC" = yes; then
13827 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 else
13830 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832 fi
13833 ;;
13834
13835 uts4*)
13836 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13837 hardcode_libdir_flag_spec_FC='-L$libdir'
13838 hardcode_shlibpath_var_FC=no
13839 ;;
13840
13841 *)
13842 ld_shlibs_FC=no
13843 ;;
13844 esac
13845
13846 if test x$host_vendor = xsni; then
13847 case $host in
13848 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13849 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13850 ;;
13851 esac
13852 fi
13853 fi
13854
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13856 $as_echo "$ld_shlibs_FC" >&6; }
13857 test "$ld_shlibs_FC" = no && can_build_shared=no
13858
13859 with_gnu_ld_FC=$with_gnu_ld
13860
13861
13862
13863
13864
13865
13866 #
13867 # Do we need to explicitly link libc?
13868 #
13869 case "x$archive_cmds_need_lc_FC" in
13870 x|xyes)
13871 # Assume -lc should be added
13872 archive_cmds_need_lc_FC=yes
13873
13874 if test "$enable_shared" = yes && test "$GCC" = yes; then
13875 case $archive_cmds_FC in
13876 *'~'*)
13877 # FIXME: we may have to deal with multi-command sequences.
13878 ;;
13879 '$CC '*)
13880 # Test whether the compiler implicitly links with -lc since on some
13881 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13882 # to ld, don't add -lc before -lgcc.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13884 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13885 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 $RM conftest*
13889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13890
13891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13892 (eval $ac_compile) 2>&5
13893 ac_status=$?
13894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13895 test $ac_status = 0; } 2>conftest.err; then
13896 soname=conftest
13897 lib=conftest
13898 libobjs=conftest.$ac_objext
13899 deplibs=
13900 wl=$lt_prog_compiler_wl_FC
13901 pic_flag=$lt_prog_compiler_pic_FC
13902 compiler_flags=-v
13903 linker_flags=-v
13904 verstring=
13905 output_objdir=.
13906 libname=conftest
13907 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13908 allow_undefined_flag_FC=
13909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13910 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13911 ac_status=$?
13912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913 test $ac_status = 0; }
13914 then
13915 lt_cv_archive_cmds_need_lc_FC=no
13916 else
13917 lt_cv_archive_cmds_need_lc_FC=yes
13918 fi
13919 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13920 else
13921 cat conftest.err 1>&5
13922 fi
13923 $RM conftest*
13924
13925 fi
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13927 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13928 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13929 ;;
13930 esac
13931 fi
13932 ;;
13933 esac
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13999 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14000
14001 library_names_spec=
14002 libname_spec='lib$name'
14003 soname_spec=
14004 shrext_cmds=".so"
14005 postinstall_cmds=
14006 postuninstall_cmds=
14007 finish_cmds=
14008 finish_eval=
14009 shlibpath_var=
14010 shlibpath_overrides_runpath=unknown
14011 version_type=none
14012 dynamic_linker="$host_os ld.so"
14013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14014 need_lib_prefix=unknown
14015 hardcode_into_libs=no
14016
14017 # when you set need_version to no, make sure it does not cause -set_version
14018 # flags to be left without arguments
14019 need_version=unknown
14020
14021 case $host_os in
14022 aix3*)
14023 version_type=linux
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14025 shlibpath_var=LIBPATH
14026
14027 # AIX 3 has no versioning support, so we append a major version to the name.
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 ;;
14030
14031 aix[4-9]*)
14032 version_type=linux
14033 need_lib_prefix=no
14034 need_version=no
14035 hardcode_into_libs=yes
14036 if test "$host_cpu" = ia64; then
14037 # AIX 5 supports IA64
14038 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 else
14041 # With GCC up to 2.95.x, collect2 would create an import file
14042 # for dependence libraries. The import file would start with
14043 # the line `#! .'. This would cause the generated library to
14044 # depend on `.', always an invalid library. This was fixed in
14045 # development snapshots of GCC prior to 3.0.
14046 case $host_os in
14047 aix4 | aix4.[01] | aix4.[01].*)
14048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14049 echo ' yes '
14050 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14051 :
14052 else
14053 can_build_shared=no
14054 fi
14055 ;;
14056 esac
14057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14058 # soname into executable. Probably we can add versioning support to
14059 # collect2, so additional links can be useful in future.
14060 if test "$aix_use_runtimelinking" = yes; then
14061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14062 # instead of lib<name>.a to let people know that these are not
14063 # typical AIX shared libraries.
14064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14065 else
14066 # We preserve .a as extension for shared libraries through AIX4.2
14067 # and later when we are not doing run time linking.
14068 library_names_spec='${libname}${release}.a $libname.a'
14069 soname_spec='${libname}${release}${shared_ext}$major'
14070 fi
14071 shlibpath_var=LIBPATH
14072 fi
14073 ;;
14074
14075 amigaos*)
14076 case $host_cpu in
14077 powerpc)
14078 # Since July 2007 AmigaOS4 officially supports .so libraries.
14079 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081 ;;
14082 m68k)
14083 library_names_spec='$libname.ixlibrary $libname.a'
14084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14085 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'
14086 ;;
14087 esac
14088 ;;
14089
14090 beos*)
14091 library_names_spec='${libname}${shared_ext}'
14092 dynamic_linker="$host_os ld.so"
14093 shlibpath_var=LIBRARY_PATH
14094 ;;
14095
14096 bsdi[45]*)
14097 version_type=linux
14098 need_version=no
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 soname_spec='${libname}${release}${shared_ext}$major'
14101 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14102 shlibpath_var=LD_LIBRARY_PATH
14103 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14104 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14105 # the default ld.so.conf also contains /usr/contrib/lib and
14106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14107 # libtool to hard-code these into programs
14108 ;;
14109
14110 cygwin* | mingw* | pw32* | cegcc*)
14111 version_type=windows
14112 shrext_cmds=".dll"
14113 need_version=no
14114 need_lib_prefix=no
14115
14116 case $GCC,$host_os in
14117 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14118 library_names_spec='$libname.dll.a'
14119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14120 postinstall_cmds='base_file=`basename \${file}`~
14121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14122 dldir=$destdir/`dirname \$dlpath`~
14123 test -d \$dldir || mkdir -p \$dldir~
14124 $install_prog $dir/$dlname \$dldir/$dlname~
14125 chmod a+x \$dldir/$dlname~
14126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14128 fi'
14129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14130 dlpath=$dir/\$dldll~
14131 $RM \$dlpath'
14132 shlibpath_overrides_runpath=yes
14133
14134 case $host_os in
14135 cygwin*)
14136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14138
14139 ;;
14140 mingw* | cegcc*)
14141 # MinGW DLLs use traditional 'lib' prefix
14142 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14143 ;;
14144 pw32*)
14145 # pw32 DLLs use 'pw' prefix rather than 'lib'
14146 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14147 ;;
14148 esac
14149 ;;
14150
14151 *)
14152 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14153 ;;
14154 esac
14155 dynamic_linker='Win32 ld.exe'
14156 # FIXME: first we should search . and the directory the executable is in
14157 shlibpath_var=PATH
14158 ;;
14159
14160 darwin* | rhapsody*)
14161 dynamic_linker="$host_os dyld"
14162 version_type=darwin
14163 need_lib_prefix=no
14164 need_version=no
14165 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14166 soname_spec='${libname}${release}${major}$shared_ext'
14167 shlibpath_overrides_runpath=yes
14168 shlibpath_var=DYLD_LIBRARY_PATH
14169 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14170
14171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14172 ;;
14173
14174 dgux*)
14175 version_type=linux
14176 need_lib_prefix=no
14177 need_version=no
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14179 soname_spec='${libname}${release}${shared_ext}$major'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 ;;
14182
14183 freebsd* | dragonfly*)
14184 # DragonFly does not have aout. When/if they implement a new
14185 # versioning mechanism, adjust this.
14186 if test -x /usr/bin/objformat; then
14187 objformat=`/usr/bin/objformat`
14188 else
14189 case $host_os in
14190 freebsd[23].*) objformat=aout ;;
14191 *) objformat=elf ;;
14192 esac
14193 fi
14194 version_type=freebsd-$objformat
14195 case $version_type in
14196 freebsd-elf*)
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14198 need_version=no
14199 need_lib_prefix=no
14200 ;;
14201 freebsd-*)
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14203 need_version=yes
14204 ;;
14205 esac
14206 shlibpath_var=LD_LIBRARY_PATH
14207 case $host_os in
14208 freebsd2.*)
14209 shlibpath_overrides_runpath=yes
14210 ;;
14211 freebsd3.[01]* | freebsdelf3.[01]*)
14212 shlibpath_overrides_runpath=yes
14213 hardcode_into_libs=yes
14214 ;;
14215 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14216 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14217 shlibpath_overrides_runpath=no
14218 hardcode_into_libs=yes
14219 ;;
14220 *) # from 4.6 on, and DragonFly
14221 shlibpath_overrides_runpath=yes
14222 hardcode_into_libs=yes
14223 ;;
14224 esac
14225 ;;
14226
14227 gnu*)
14228 version_type=linux
14229 need_lib_prefix=no
14230 need_version=no
14231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14232 soname_spec='${libname}${release}${shared_ext}$major'
14233 shlibpath_var=LD_LIBRARY_PATH
14234 hardcode_into_libs=yes
14235 ;;
14236
14237 haiku*)
14238 version_type=linux
14239 need_lib_prefix=no
14240 need_version=no
14241 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
14245 shlibpath_overrides_runpath=yes
14246 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14247 hardcode_into_libs=yes
14248 ;;
14249
14250 hpux9* | hpux10* | hpux11*)
14251 # Give a soname corresponding to the major version so that dld.sl refuses to
14252 # link against other versions.
14253 version_type=sunos
14254 need_lib_prefix=no
14255 need_version=no
14256 case $host_cpu in
14257 ia64*)
14258 shrext_cmds='.so'
14259 hardcode_into_libs=yes
14260 dynamic_linker="$host_os dld.so"
14261 shlibpath_var=LD_LIBRARY_PATH
14262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14264 soname_spec='${libname}${release}${shared_ext}$major'
14265 if test "X$HPUX_IA64_MODE" = X32; then
14266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14267 else
14268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14269 fi
14270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14271 ;;
14272 hppa*64*)
14273 shrext_cmds='.sl'
14274 hardcode_into_libs=yes
14275 dynamic_linker="$host_os dld.sl"
14276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14279 soname_spec='${libname}${release}${shared_ext}$major'
14280 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14282 ;;
14283 *)
14284 shrext_cmds='.sl'
14285 dynamic_linker="$host_os dld.sl"
14286 shlibpath_var=SHLIB_PATH
14287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289 soname_spec='${libname}${release}${shared_ext}$major'
14290 ;;
14291 esac
14292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14293 postinstall_cmds='chmod 555 $lib'
14294 # or fails outright, so override atomically:
14295 install_override_mode=555
14296 ;;
14297
14298 interix[3-9]*)
14299 version_type=linux
14300 need_lib_prefix=no
14301 need_version=no
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14305 shlibpath_var=LD_LIBRARY_PATH
14306 shlibpath_overrides_runpath=no
14307 hardcode_into_libs=yes
14308 ;;
14309
14310 irix5* | irix6* | nonstopux*)
14311 case $host_os in
14312 nonstopux*) version_type=nonstopux ;;
14313 *)
14314 if test "$lt_cv_prog_gnu_ld" = yes; then
14315 version_type=linux
14316 else
14317 version_type=irix
14318 fi ;;
14319 esac
14320 need_lib_prefix=no
14321 need_version=no
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14324 case $host_os in
14325 irix5* | nonstopux*)
14326 libsuff= shlibsuff=
14327 ;;
14328 *)
14329 case $LD in # libtool.m4 will add one of these switches to LD
14330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14331 libsuff= shlibsuff= libmagic=32-bit;;
14332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14333 libsuff=32 shlibsuff=N32 libmagic=N32;;
14334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14336 *) libsuff= shlibsuff= libmagic=never-match;;
14337 esac
14338 ;;
14339 esac
14340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14341 shlibpath_overrides_runpath=no
14342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14344 hardcode_into_libs=yes
14345 ;;
14346
14347 # No shared lib support for Linux oldld, aout, or coff.
14348 linux*oldld* | linux*aout* | linux*coff*)
14349 dynamic_linker=no
14350 ;;
14351
14352 # This must be Linux ELF.
14353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14354 version_type=linux
14355 need_lib_prefix=no
14356 need_version=no
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358 soname_spec='${libname}${release}${shared_ext}$major'
14359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14360 shlibpath_var=LD_LIBRARY_PATH
14361 shlibpath_overrides_runpath=no
14362
14363 # Some binutils ld are patched to set DT_RUNPATH
14364 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 lt_cv_shlibpath_overrides_runpath=no
14368 save_LDFLAGS=$LDFLAGS
14369 save_libdir=$libdir
14370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14372 cat > conftest.$ac_ext <<_ACEOF
14373 program main
14374
14375 end
14376 _ACEOF
14377 if ac_fn_fc_try_link "$LINENO"; then :
14378 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14379 lt_cv_shlibpath_overrides_runpath=yes
14380 fi
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext conftest.$ac_ext
14384 LDFLAGS=$save_LDFLAGS
14385 libdir=$save_libdir
14386
14387 fi
14388
14389 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14390
14391 # This implies no fast_install, which is unacceptable.
14392 # Some rework will be needed to allow for fast_install
14393 # before this can be enabled.
14394 hardcode_into_libs=yes
14395
14396 # Append ld.so.conf contents to the search path
14397 if test -f /etc/ld.so.conf; then
14398 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' ' '`
14399 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14400 fi
14401
14402 # We used to test for /lib/ld.so.1 and disable shared libraries on
14403 # powerpc, because MkLinux only supported shared libraries with the
14404 # GNU dynamic linker. Since this was broken with cross compilers,
14405 # most powerpc-linux boxes support dynamic linking these days and
14406 # people can always --disable-shared, the test was removed, and we
14407 # assume the GNU/Linux dynamic linker is in use.
14408 dynamic_linker='GNU/Linux ld.so'
14409 ;;
14410
14411 netbsd*)
14412 version_type=sunos
14413 need_lib_prefix=no
14414 need_version=no
14415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14418 dynamic_linker='NetBSD (a.out) ld.so'
14419 else
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14421 soname_spec='${libname}${release}${shared_ext}$major'
14422 dynamic_linker='NetBSD ld.elf_so'
14423 fi
14424 shlibpath_var=LD_LIBRARY_PATH
14425 shlibpath_overrides_runpath=yes
14426 hardcode_into_libs=yes
14427 ;;
14428
14429 newsos6)
14430 version_type=linux
14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=yes
14434 ;;
14435
14436 *nto* | *qnx*)
14437 version_type=qnx
14438 need_lib_prefix=no
14439 need_version=no
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath=no
14444 hardcode_into_libs=yes
14445 dynamic_linker='ldqnx.so'
14446 ;;
14447
14448 openbsd*)
14449 version_type=sunos
14450 sys_lib_dlsearch_path_spec="/usr/lib"
14451 need_lib_prefix=no
14452 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14453 case $host_os in
14454 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14455 *) need_version=no ;;
14456 esac
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14461 case $host_os in
14462 openbsd2.[89] | openbsd2.[89].*)
14463 shlibpath_overrides_runpath=no
14464 ;;
14465 *)
14466 shlibpath_overrides_runpath=yes
14467 ;;
14468 esac
14469 else
14470 shlibpath_overrides_runpath=yes
14471 fi
14472 ;;
14473
14474 os2*)
14475 libname_spec='$name'
14476 shrext_cmds=".dll"
14477 need_lib_prefix=no
14478 library_names_spec='$libname${shared_ext} $libname.a'
14479 dynamic_linker='OS/2 ld.exe'
14480 shlibpath_var=LIBPATH
14481 ;;
14482
14483 osf3* | osf4* | osf5*)
14484 version_type=osf
14485 need_lib_prefix=no
14486 need_version=no
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14491 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14492 ;;
14493
14494 rdos*)
14495 dynamic_linker=no
14496 ;;
14497
14498 solaris*)
14499 version_type=linux
14500 need_lib_prefix=no
14501 need_version=no
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 shlibpath_var=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath=yes
14506 hardcode_into_libs=yes
14507 # ldd complains unless libraries are executable
14508 postinstall_cmds='chmod +x $lib'
14509 ;;
14510
14511 sunos4*)
14512 version_type=sunos
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14514 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14515 shlibpath_var=LD_LIBRARY_PATH
14516 shlibpath_overrides_runpath=yes
14517 if test "$with_gnu_ld" = yes; then
14518 need_lib_prefix=no
14519 fi
14520 need_version=yes
14521 ;;
14522
14523 sysv4 | sysv4.3*)
14524 version_type=linux
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526 soname_spec='${libname}${release}${shared_ext}$major'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 case $host_vendor in
14529 sni)
14530 shlibpath_overrides_runpath=no
14531 need_lib_prefix=no
14532 runpath_var=LD_RUN_PATH
14533 ;;
14534 siemens)
14535 need_lib_prefix=no
14536 ;;
14537 motorola)
14538 need_lib_prefix=no
14539 need_version=no
14540 shlibpath_overrides_runpath=no
14541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14542 ;;
14543 esac
14544 ;;
14545
14546 sysv4*MP*)
14547 if test -d /usr/nec ;then
14548 version_type=linux
14549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14550 soname_spec='$libname${shared_ext}.$major'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 fi
14553 ;;
14554
14555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14556 version_type=freebsd-elf
14557 need_lib_prefix=no
14558 need_version=no
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath=yes
14563 hardcode_into_libs=yes
14564 if test "$with_gnu_ld" = yes; then
14565 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14566 else
14567 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14568 case $host_os in
14569 sco3.2v5*)
14570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14571 ;;
14572 esac
14573 fi
14574 sys_lib_dlsearch_path_spec='/usr/lib'
14575 ;;
14576
14577 tpf*)
14578 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14579 version_type=linux
14580 need_lib_prefix=no
14581 need_version=no
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath=no
14585 hardcode_into_libs=yes
14586 ;;
14587
14588 uts4*)
14589 version_type=linux
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 ;;
14594
14595 *)
14596 dynamic_linker=no
14597 ;;
14598 esac
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14600 $as_echo "$dynamic_linker" >&6; }
14601 test "$dynamic_linker" = no && can_build_shared=no
14602
14603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14604 if test "$GCC" = yes; then
14605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14606 fi
14607
14608 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14609 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14610 fi
14611 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14612 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14613 fi
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14653 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14654 hardcode_action_FC=
14655 if test -n "$hardcode_libdir_flag_spec_FC" ||
14656 test -n "$runpath_var_FC" ||
14657 test "X$hardcode_automatic_FC" = "Xyes" ; then
14658
14659 # We can hardcode non-existent directories.
14660 if test "$hardcode_direct_FC" != no &&
14661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14662 # have to relink, otherwise we might link with an installed library
14663 # when we should be linking with a yet-to-be-installed one
14664 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14665 test "$hardcode_minus_L_FC" != no; then
14666 # Linking always hardcodes the temporary library directory.
14667 hardcode_action_FC=relink
14668 else
14669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14670 hardcode_action_FC=immediate
14671 fi
14672 else
14673 # We cannot hardcode anything, or else we can only hardcode existing
14674 # directories.
14675 hardcode_action_FC=unsupported
14676 fi
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14678 $as_echo "$hardcode_action_FC" >&6; }
14679
14680 if test "$hardcode_action_FC" = relink ||
14681 test "$inherit_rpath_FC" = yes; then
14682 # Fast installation is not supported
14683 enable_fast_install=no
14684 elif test "$shlibpath_overrides_runpath" = yes ||
14685 test "$enable_shared" = no; then
14686 # Fast installation is not necessary
14687 enable_fast_install=needless
14688 fi
14689
14690
14691
14692
14693
14694
14695
14696 fi # test -n "$compiler"
14697
14698 GCC=$lt_save_GCC
14699 CC="$lt_save_CC"
14700 fi # test "$_lt_disable_FC" != yes
14701
14702 ac_ext=c
14703 ac_cpp='$CPP $CPPFLAGS'
14704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14707
14708
14709 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14710
14711 # For libtool versioning info, format is CURRENT:REVISION:AGE
14712 libtool_VERSION=1:0:0
14713
14714
14715 # Check header files.
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14717 $as_echo_n "checking for ANSI C header files... " >&6; }
14718 if ${ac_cv_header_stdc+:} false; then :
14719 $as_echo_n "(cached) " >&6
14720 else
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14723 #include <stdlib.h>
14724 #include <stdarg.h>
14725 #include <string.h>
14726 #include <float.h>
14727
14728 int
14729 main ()
14730 {
14731
14732 ;
14733 return 0;
14734 }
14735 _ACEOF
14736 if ac_fn_c_try_compile "$LINENO"; then :
14737 ac_cv_header_stdc=yes
14738 else
14739 ac_cv_header_stdc=no
14740 fi
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742
14743 if test $ac_cv_header_stdc = yes; then
14744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h. */
14747 #include <string.h>
14748
14749 _ACEOF
14750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14751 $EGREP "memchr" >/dev/null 2>&1; then :
14752
14753 else
14754 ac_cv_header_stdc=no
14755 fi
14756 rm -f conftest*
14757
14758 fi
14759
14760 if test $ac_cv_header_stdc = yes; then
14761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 #include <stdlib.h>
14765
14766 _ACEOF
14767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14768 $EGREP "free" >/dev/null 2>&1; then :
14769
14770 else
14771 ac_cv_header_stdc=no
14772 fi
14773 rm -f conftest*
14774
14775 fi
14776
14777 if test $ac_cv_header_stdc = yes; then
14778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14779 if test "$cross_compiling" = yes; then :
14780 :
14781 else
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14784 #include <ctype.h>
14785 #include <stdlib.h>
14786 #if ((' ' & 0x0FF) == 0x020)
14787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14789 #else
14790 # define ISLOWER(c) \
14791 (('a' <= (c) && (c) <= 'i') \
14792 || ('j' <= (c) && (c) <= 'r') \
14793 || ('s' <= (c) && (c) <= 'z'))
14794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14795 #endif
14796
14797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14798 int
14799 main ()
14800 {
14801 int i;
14802 for (i = 0; i < 256; i++)
14803 if (XOR (islower (i), ISLOWER (i))
14804 || toupper (i) != TOUPPER (i))
14805 return 2;
14806 return 0;
14807 }
14808 _ACEOF
14809 if ac_fn_c_try_run "$LINENO"; then :
14810
14811 else
14812 ac_cv_header_stdc=no
14813 fi
14814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14815 conftest.$ac_objext conftest.beam conftest.$ac_ext
14816 fi
14817
14818 fi
14819 fi
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14821 $as_echo "$ac_cv_header_stdc" >&6; }
14822 if test $ac_cv_header_stdc = yes; then
14823
14824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14825
14826 fi
14827
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14829 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14830 if ${ac_cv_header_time+:} false; then :
14831 $as_echo_n "(cached) " >&6
14832 else
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835 #include <sys/types.h>
14836 #include <sys/time.h>
14837 #include <time.h>
14838
14839 int
14840 main ()
14841 {
14842 if ((struct tm *) 0)
14843 return 0;
14844 ;
14845 return 0;
14846 }
14847 _ACEOF
14848 if ac_fn_c_try_compile "$LINENO"; then :
14849 ac_cv_header_time=yes
14850 else
14851 ac_cv_header_time=no
14852 fi
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 fi
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14856 $as_echo "$ac_cv_header_time" >&6; }
14857 if test $ac_cv_header_time = yes; then
14858
14859 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14860
14861 fi
14862
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14864 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14865 if ${gcc_cv_header_string+:} false; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14870 #include <string.h>
14871 #include <strings.h>
14872 int
14873 main ()
14874 {
14875
14876 ;
14877 return 0;
14878 }
14879 _ACEOF
14880 if ac_fn_c_try_compile "$LINENO"; then :
14881 gcc_cv_header_string=yes
14882 else
14883 gcc_cv_header_string=no
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886 fi
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14888 $as_echo "$gcc_cv_header_string" >&6; }
14889 if test $gcc_cv_header_string = yes; then
14890
14891 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14892
14893 fi
14894
14895 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14896 do :
14897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14898 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14900 cat >>confdefs.h <<_ACEOF
14901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14902 _ACEOF
14903
14904 fi
14905
14906 done
14907
14908
14909
14910
14911 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14912
14913 acx_cv_header_stdint=stddef.h
14914 acx_cv_header_stdint_kind="(already complete)"
14915 for i in stdint.h $inttype_headers; do
14916 unset ac_cv_type_uintptr_t
14917 unset ac_cv_type_uintmax_t
14918 unset ac_cv_type_int_least32_t
14919 unset ac_cv_type_int_fast32_t
14920 unset ac_cv_type_uint64_t
14921 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14922 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14923 #include <$i>
14924 "
14925 if test "x$ac_cv_type_uintmax_t" = xyes; then :
14926 acx_cv_header_stdint=$i
14927 else
14928 continue
14929 fi
14930
14931 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14932 #include <$i>
14933 "
14934 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14935
14936 else
14937 acx_cv_header_stdint_kind="(mostly complete)"
14938 fi
14939
14940 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14941 #include <$i>
14942 "
14943 if test "x$ac_cv_type_int_least32_t" = xyes; then :
14944
14945 else
14946 acx_cv_header_stdint_kind="(mostly complete)"
14947 fi
14948
14949 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14950 #include <$i>
14951 "
14952 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
14953
14954 else
14955 acx_cv_header_stdint_kind="(mostly complete)"
14956 fi
14957
14958 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14959 #include <$i>
14960 "
14961 if test "x$ac_cv_type_uint64_t" = xyes; then :
14962
14963 else
14964 acx_cv_header_stdint_kind="(lacks uint64_t)"
14965 fi
14966
14967 break
14968 done
14969 if test "$acx_cv_header_stdint" = stddef.h; then
14970 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14971 for i in stdint.h $inttype_headers; do
14972 unset ac_cv_type_uintptr_t
14973 unset ac_cv_type_uint32_t
14974 unset ac_cv_type_uint64_t
14975 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14976 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14977 #include <$i>
14978 "
14979 if test "x$ac_cv_type_uint32_t" = xyes; then :
14980 acx_cv_header_stdint=$i
14981 else
14982 continue
14983 fi
14984
14985 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14986 #include <$i>
14987 "
14988 if test "x$ac_cv_type_uint64_t" = xyes; then :
14989
14990 fi
14991
14992 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14993 #include <$i>
14994 "
14995 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14996
14997 fi
14998
14999 break
15000 done
15001 fi
15002 if test "$acx_cv_header_stdint" = stddef.h; then
15003 acx_cv_header_stdint_kind="(u_intXX_t style)"
15004 for i in sys/types.h $inttype_headers; do
15005 unset ac_cv_type_u_int32_t
15006 unset ac_cv_type_u_int64_t
15007 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15008 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15009 #include <$i>
15010 "
15011 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15012 acx_cv_header_stdint=$i
15013 else
15014 continue
15015 fi
15016
15017 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15018 #include <$i>
15019 "
15020 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15021
15022 fi
15023
15024 break
15025 done
15026 fi
15027 if test "$acx_cv_header_stdint" = stddef.h; then
15028 acx_cv_header_stdint_kind="(using manual detection)"
15029 fi
15030
15031 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15032 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15033 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15034 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15035 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15036
15037 # ----------------- Summarize what we found so far
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15040 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15041
15042 case `$as_basename -- gstdint.h ||
15043 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15044 Xgstdint.h : 'X\(//\)$' \| \
15045 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15046 $as_echo X/gstdint.h |
15047 sed '/^.*\/\([^/][^/]*\)\/*$/{
15048 s//\1/
15049 q
15050 }
15051 /^X\/\(\/\/\)$/{
15052 s//\1/
15053 q
15054 }
15055 /^X\/\(\/\).*/{
15056 s//\1/
15057 q
15058 }
15059 s/.*/./; q'` in
15060 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15061 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15062 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15063 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15064 *) ;;
15065 esac
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15068 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15069
15070 # ----------------- done included file, check C basic types --------
15071
15072 # Lacking an uintptr_t? Test size of void *
15073 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15074 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15077 # This bug is HP SR number 8606223364.
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15079 $as_echo_n "checking size of void *... " >&6; }
15080 if ${ac_cv_sizeof_void_p+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15084
15085 else
15086 if test "$ac_cv_type_void_p" = yes; then
15087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15089 as_fn_error 77 "cannot compute sizeof (void *)
15090 See \`config.log' for more details" "$LINENO" 5; }
15091 else
15092 ac_cv_sizeof_void_p=0
15093 fi
15094 fi
15095
15096 fi
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15098 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15099
15100
15101
15102 cat >>confdefs.h <<_ACEOF
15103 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15104 _ACEOF
15105
15106 ;;
15107 esac
15108
15109 # Lacking an uint64_t? Test size of long
15110 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15111 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15114 # This bug is HP SR number 8606223364.
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15116 $as_echo_n "checking size of long... " >&6; }
15117 if ${ac_cv_sizeof_long+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15121
15122 else
15123 if test "$ac_cv_type_long" = yes; then
15124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15126 as_fn_error 77 "cannot compute sizeof (long)
15127 See \`config.log' for more details" "$LINENO" 5; }
15128 else
15129 ac_cv_sizeof_long=0
15130 fi
15131 fi
15132
15133 fi
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15135 $as_echo "$ac_cv_sizeof_long" >&6; }
15136
15137
15138
15139 cat >>confdefs.h <<_ACEOF
15140 #define SIZEOF_LONG $ac_cv_sizeof_long
15141 _ACEOF
15142
15143 ;;
15144 esac
15145
15146 if test $acx_cv_header_stdint = stddef.h; then
15147 # Lacking a good header? Test size of everything and deduce all types.
15148 # The cast to long int works around a bug in the HP C Compiler
15149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15151 # This bug is HP SR number 8606223364.
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15153 $as_echo_n "checking size of int... " >&6; }
15154 if ${ac_cv_sizeof_int+:} false; then :
15155 $as_echo_n "(cached) " >&6
15156 else
15157 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15158
15159 else
15160 if test "$ac_cv_type_int" = yes; then
15161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15163 as_fn_error 77 "cannot compute sizeof (int)
15164 See \`config.log' for more details" "$LINENO" 5; }
15165 else
15166 ac_cv_sizeof_int=0
15167 fi
15168 fi
15169
15170 fi
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15172 $as_echo "$ac_cv_sizeof_int" >&6; }
15173
15174
15175
15176 cat >>confdefs.h <<_ACEOF
15177 #define SIZEOF_INT $ac_cv_sizeof_int
15178 _ACEOF
15179
15180
15181 # The cast to long int works around a bug in the HP C Compiler
15182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15184 # This bug is HP SR number 8606223364.
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15186 $as_echo_n "checking size of short... " >&6; }
15187 if ${ac_cv_sizeof_short+:} false; then :
15188 $as_echo_n "(cached) " >&6
15189 else
15190 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15191
15192 else
15193 if test "$ac_cv_type_short" = yes; then
15194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15196 as_fn_error 77 "cannot compute sizeof (short)
15197 See \`config.log' for more details" "$LINENO" 5; }
15198 else
15199 ac_cv_sizeof_short=0
15200 fi
15201 fi
15202
15203 fi
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15205 $as_echo "$ac_cv_sizeof_short" >&6; }
15206
15207
15208
15209 cat >>confdefs.h <<_ACEOF
15210 #define SIZEOF_SHORT $ac_cv_sizeof_short
15211 _ACEOF
15212
15213
15214 # The cast to long int works around a bug in the HP C Compiler
15215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15217 # This bug is HP SR number 8606223364.
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15219 $as_echo_n "checking size of char... " >&6; }
15220 if ${ac_cv_sizeof_char+:} false; then :
15221 $as_echo_n "(cached) " >&6
15222 else
15223 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15224
15225 else
15226 if test "$ac_cv_type_char" = yes; then
15227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15229 as_fn_error 77 "cannot compute sizeof (char)
15230 See \`config.log' for more details" "$LINENO" 5; }
15231 else
15232 ac_cv_sizeof_char=0
15233 fi
15234 fi
15235
15236 fi
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15238 $as_echo "$ac_cv_sizeof_char" >&6; }
15239
15240
15241
15242 cat >>confdefs.h <<_ACEOF
15243 #define SIZEOF_CHAR $ac_cv_sizeof_char
15244 _ACEOF
15245
15246
15247
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15249 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15250 case "$ac_cv_sizeof_char" in
15251 1) acx_cv_type_int8_t=char ;;
15252 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
15253 esac
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15255 $as_echo "$acx_cv_type_int8_t" >&6; }
15256
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15258 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15259 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15260 2:*) acx_cv_type_int16_t=int ;;
15261 *:2) acx_cv_type_int16_t=short ;;
15262 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
15263 esac
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15265 $as_echo "$acx_cv_type_int16_t" >&6; }
15266
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15268 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15269 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15270 4:*) acx_cv_type_int32_t=int ;;
15271 *:4) acx_cv_type_int32_t=long ;;
15272 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
15273 esac
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15275 $as_echo "$acx_cv_type_int32_t" >&6; }
15276 fi
15277
15278 # These tests are here to make the output prettier
15279
15280 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15281 case "$ac_cv_sizeof_long" in
15282 8) acx_cv_type_int64_t=long ;;
15283 esac
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15285 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15287 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15288 fi
15289
15290 # Now we can use the above types
15291
15292 if test "$ac_cv_type_uintptr_t" != yes; then
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15294 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15295 case $ac_cv_sizeof_void_p in
15296 2) acx_cv_type_intptr_t=int16_t ;;
15297 4) acx_cv_type_intptr_t=int32_t ;;
15298 8) acx_cv_type_intptr_t=int64_t ;;
15299 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15300 esac
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15302 $as_echo "$acx_cv_type_intptr_t" >&6; }
15303 fi
15304
15305 # ----------------- done all checks, emit header -------------
15306 ac_config_commands="$ac_config_commands gstdint.h"
15307
15308
15309
15310
15311 XPCFLAGS=""
15312 case "$host" in
15313 *-*-rtems*)
15314 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15315 ;;
15316 nvptx*-*-*)
15317 # NVPTX does not support Pthreads, has its own code replacement.
15318 libgomp_use_pthreads=no
15319 # NVPTX is an accelerator-only target
15320 libgomp_offloaded_only=yes
15321 ;;
15322 *)
15323 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15324 # In case the pthread.h system header is not found, this test will fail.
15325 CFLAGS="$CFLAGS -pthread"
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 #include <pthread.h>
15329 void *g(void *d) { return NULL; }
15330 int
15331 main ()
15332 {
15333 pthread_t t; pthread_create(&t,NULL,g,NULL);
15334 ;
15335 return 0;
15336 }
15337 _ACEOF
15338 if ac_fn_c_try_link "$LINENO"; then :
15339 XPCFLAGS=" -Wc,-pthread"
15340 else
15341 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344 #include <pthread.h>
15345 void *g(void *d) { return NULL; }
15346 int
15347 main ()
15348 {
15349 pthread_t t; pthread_create(&t,NULL,g,NULL);
15350 ;
15351 return 0;
15352 }
15353 _ACEOF
15354 if ac_fn_c_try_link "$LINENO"; then :
15355
15356 else
15357 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext \
15360 conftest$ac_exeext conftest.$ac_ext
15361 fi
15362 rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
15364 esac
15365
15366 if test x$libgomp_use_pthreads != xno; then
15367
15368 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15369
15370 fi
15371
15372 if test x$libgomp_offloaded_only = xyes; then
15373
15374 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15375
15376 fi
15377
15378 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15379 #
15380 # Copyright (C) 2014-2019 Free Software Foundation, Inc.
15381 #
15382 # Contributed by Mentor Embedded.
15383 #
15384 # This file is part of the GNU Offloading and Multi Processing Library
15385 # (libgomp).
15386 #
15387 # Libgomp is free software; you can redistribute it and/or modify it
15388 # under the terms of the GNU General Public License as published by
15389 # the Free Software Foundation; either version 3, or (at your option)
15390 # any later version.
15391 #
15392 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15393 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15394 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15395 # more details.
15396 #
15397 # Under Section 7 of GPL version 3, you are granted additional
15398 # permissions described in the GCC Runtime Library Exception, version
15399 # 3.1, as published by the Free Software Foundation.
15400 #
15401 # You should have received a copy of the GNU General Public License and
15402 # a copy of the GCC Runtime Library Exception along with this program;
15403 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15404 # <http://www.gnu.org/licenses/>.
15405
15406 plugin_support=yes
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15408 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15409 if ${ac_cv_lib_dl_dlsym+:} false; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15412 ac_check_lib_save_LIBS=$LIBS
15413 LIBS="-ldl $LIBS"
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15416
15417 /* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15420 #ifdef __cplusplus
15421 extern "C"
15422 #endif
15423 char dlsym ();
15424 int
15425 main ()
15426 {
15427 return dlsym ();
15428 ;
15429 return 0;
15430 }
15431 _ACEOF
15432 if ac_fn_c_try_link "$LINENO"; then :
15433 ac_cv_lib_dl_dlsym=yes
15434 else
15435 ac_cv_lib_dl_dlsym=no
15436 fi
15437 rm -f core conftest.err conftest.$ac_objext \
15438 conftest$ac_exeext conftest.$ac_ext
15439 LIBS=$ac_check_lib_save_LIBS
15440 fi
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15442 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15443 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15444 cat >>confdefs.h <<_ACEOF
15445 #define HAVE_LIBDL 1
15446 _ACEOF
15447
15448 LIBS="-ldl $LIBS"
15449
15450 else
15451 plugin_support=no
15452 fi
15453
15454 if test x"$plugin_support" = xyes; then
15455
15456 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15457
15458 elif test "x${enable_offload_targets-no}" != xno; then
15459 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15460 fi
15461
15462
15463
15464 for ac_header in $ac_header_list
15465 do :
15466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15468 "
15469 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15470 cat >>confdefs.h <<_ACEOF
15471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15472 _ACEOF
15473
15474 fi
15475
15476 done
15477
15478
15479
15480
15481
15482
15483
15484 for ac_func in $ac_func_list
15485 do :
15486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15487 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15488 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15489 cat >>confdefs.h <<_ACEOF
15490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15491 _ACEOF
15492
15493 fi
15494 done
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511 # Look for the CUDA driver package.
15512 CUDA_DRIVER_INCLUDE=
15513 CUDA_DRIVER_LIB=
15514
15515
15516 CUDA_DRIVER_CPPFLAGS=
15517 CUDA_DRIVER_LDFLAGS=
15518
15519 # Check whether --with-cuda-driver was given.
15520 if test "${with_cuda_driver+set}" = set; then :
15521 withval=$with_cuda_driver;
15522 fi
15523
15524
15525 # Check whether --with-cuda-driver-include was given.
15526 if test "${with_cuda_driver_include+set}" = set; then :
15527 withval=$with_cuda_driver_include;
15528 fi
15529
15530
15531 # Check whether --with-cuda-driver-lib was given.
15532 if test "${with_cuda_driver_lib+set}" = set; then :
15533 withval=$with_cuda_driver_lib;
15534 fi
15535
15536 case "x$with_cuda_driver" in
15537 x) ;;
15538 xno)
15539 CUDA_DRIVER_INCLUDE=no
15540 CUDA_DRIVER_LIB=no
15541 ;;
15542 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15543 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15544 ;;
15545 esac
15546 if test "x$with_cuda_driver_include" != x; then
15547 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15548 fi
15549 if test "x$with_cuda_driver_lib" != x; then
15550 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15551 fi
15552 if test "x$CUDA_DRIVER_INCLUDE" != x \
15553 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15554 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15555 fi
15556 if test "x$CUDA_DRIVER_LIB" != x \
15557 && test "x$CUDA_DRIVER_LIB" != xno; then
15558 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15559 fi
15560
15561 PLUGIN_NVPTX=0
15562 PLUGIN_NVPTX_CPPFLAGS=
15563 PLUGIN_NVPTX_LDFLAGS=
15564 PLUGIN_NVPTX_LIBS=
15565 PLUGIN_NVPTX_DYNAMIC=0
15566
15567
15568
15569
15570
15571 # Look for HSA run-time, its includes and libraries
15572
15573 HSA_RUNTIME_INCLUDE=
15574 HSA_RUNTIME_LIB=
15575
15576
15577 HSA_RUNTIME_CPPFLAGS=
15578 HSA_RUNTIME_LDFLAGS=
15579
15580
15581 # Check whether --with-hsa-runtime was given.
15582 if test "${with_hsa_runtime+set}" = set; then :
15583 withval=$with_hsa_runtime;
15584 fi
15585
15586
15587 # Check whether --with-hsa-runtime-include was given.
15588 if test "${with_hsa_runtime_include+set}" = set; then :
15589 withval=$with_hsa_runtime_include;
15590 fi
15591
15592
15593 # Check whether --with-hsa-runtime-lib was given.
15594 if test "${with_hsa_runtime_lib+set}" = set; then :
15595 withval=$with_hsa_runtime_lib;
15596 fi
15597
15598 if test "x$with_hsa_runtime" != x; then
15599 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15600 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15601 fi
15602 if test "x$with_hsa_runtime_include" != x; then
15603 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15604 fi
15605 if test "x$with_hsa_runtime_lib" != x; then
15606 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15607 fi
15608 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15609 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15610 fi
15611 if test "x$HSA_RUNTIME_LIB" != x; then
15612 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15613 fi
15614
15615 PLUGIN_HSA=0
15616 PLUGIN_HSA_CPPFLAGS=
15617 PLUGIN_HSA_LDFLAGS=
15618 PLUGIN_HSA_LIBS=
15619
15620
15621
15622
15623
15624 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15625 # plugins, and configure to find the corresponding offload compilers.
15626 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15627 offload_plugins=
15628 offload_targets=
15629
15630
15631 offload_additional_options=
15632 offload_additional_lib_paths=
15633
15634
15635 if test x"$enable_offload_targets" != x; then
15636 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15637 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15638 tgt=`echo $tgt | sed 's/=.*//'`
15639 tgt_plugin=
15640 case $tgt in
15641 *-intelmic-* | *-intelmicemul-*)
15642 tgt_plugin=intelmic
15643 ;;
15644 nvptx*)
15645 tgt_plugin=nvptx
15646 PLUGIN_NVPTX=$tgt
15647 if test "x$CUDA_DRIVER_LIB" != xno \
15648 && test "x$CUDA_DRIVER_LIB" != xno; then
15649 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15650 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15651 PLUGIN_NVPTX_LIBS='-lcuda'
15652
15653 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15654 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15655 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15656 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15657 PLUGIN_NVPTX_save_LIBS=$LIBS
15658 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661 #include "cuda.h"
15662 int
15663 main ()
15664 {
15665 CUresult r = cuCtxPushCurrent (NULL);
15666 ;
15667 return 0;
15668 }
15669 _ACEOF
15670 if ac_fn_c_try_link "$LINENO"; then :
15671 PLUGIN_NVPTX=1
15672 fi
15673 rm -f core conftest.err conftest.$ac_objext \
15674 conftest$ac_exeext conftest.$ac_ext
15675 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15676 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15677 LIBS=$PLUGIN_NVPTX_save_LIBS
15678 fi
15679 case $PLUGIN_NVPTX in
15680 nvptx*)
15681 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15682 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15683 && (test "x$CUDA_DRIVER_LIB" = x \
15684 || test "x$CUDA_DRIVER_LIB" = xno); then
15685 PLUGIN_NVPTX=1
15686 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15687 PLUGIN_NVPTX_LIBS='-ldl'
15688 PLUGIN_NVPTX_DYNAMIC=1
15689 else
15690 PLUGIN_NVPTX=0
15691 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15692 fi
15693 ;;
15694 esac
15695 ;;
15696 hsa*)
15697 case "${target}" in
15698 x86_64-*-*)
15699 case " ${CC} ${CFLAGS} " in
15700 *" -m32 "*)
15701 PLUGIN_HSA=0
15702 ;;
15703 *)
15704 tgt_plugin=hsa
15705 PLUGIN_HSA=$tgt
15706 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15707 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15708 PLUGIN_HSA_LIBS="-ldl"
15709
15710 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15711 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15712 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15713 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15714 PLUGIN_HSA_save_LIBS=$LIBS
15715 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15716
15717 PLUGIN_HSA=1
15718 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15719 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15720 LIBS=$PLUGIN_HSA_save_LIBS
15721 case $PLUGIN_HSA in
15722 hsa*)
15723 HSA_PLUGIN=0
15724 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5
15725 ;;
15726 esac
15727 ;;
15728 esac
15729 ;;
15730 *-*-*)
15731 PLUGIN_HSA=0
15732 ;;
15733 esac
15734 ;;
15735 *)
15736 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15737 ;;
15738 esac
15739 if test x"$tgt_plugin" = x; then
15740 # Not configuring libgomp for this offload target if we're not building
15741 # the corresponding offload plugin.
15742 continue
15743 elif test x"$offload_plugins" = x; then
15744 offload_plugins=$tgt_plugin
15745 offload_targets=$tgt
15746 else
15747 offload_plugins=$offload_plugins,$tgt_plugin
15748 offload_targets=$offload_targets,$tgt
15749 fi
15750 # Configure additional search paths.
15751 if test "$tgt_plugin" = hsa; then
15752 # Offloading compilation is all handled by the target compiler.
15753 :
15754 elif test x"$tgt_dir" != x; then
15755 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15756 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15757 else
15758 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15759 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15760 fi
15761 done
15762 fi
15763
15764 cat >>confdefs.h <<_ACEOF
15765 #define OFFLOAD_PLUGINS "$offload_plugins"
15766 _ACEOF
15767
15768 if test $PLUGIN_NVPTX = 1; then
15769 PLUGIN_NVPTX_TRUE=
15770 PLUGIN_NVPTX_FALSE='#'
15771 else
15772 PLUGIN_NVPTX_TRUE='#'
15773 PLUGIN_NVPTX_FALSE=
15774 fi
15775
15776
15777 cat >>confdefs.h <<_ACEOF
15778 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15779 _ACEOF
15780
15781
15782 cat >>confdefs.h <<_ACEOF
15783 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15784 _ACEOF
15785
15786 if test $PLUGIN_HSA = 1; then
15787 PLUGIN_HSA_TRUE=
15788 PLUGIN_HSA_FALSE='#'
15789 else
15790 PLUGIN_HSA_TRUE='#'
15791 PLUGIN_HSA_FALSE=
15792 fi
15793
15794
15795 cat >>confdefs.h <<_ACEOF
15796 #define PLUGIN_HSA $PLUGIN_HSA
15797 _ACEOF
15798
15799
15800 if test "$HSA_RUNTIME_LIB" != ""; then
15801 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15802 fi
15803
15804
15805 cat >>confdefs.h <<_ACEOF
15806 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15807 _ACEOF
15808
15809
15810
15811 # Check for functions needed.
15812 for ac_func in getloadavg clock_gettime strtoull
15813 do :
15814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15815 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15816 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15817 cat >>confdefs.h <<_ACEOF
15818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15819 _ACEOF
15820
15821 fi
15822 done
15823
15824 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15825 do :
15826 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15827 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15828 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15829 cat >>confdefs.h <<_ACEOF
15830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15831 _ACEOF
15832
15833 fi
15834 done
15835
15836
15837 # Check for broken semaphore implementation on darwin.
15838 # sem_init returns: sem_init error: Function not implemented.
15839 case "$host" in
15840 *-darwin*)
15841
15842 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15843
15844 ;;
15845 esac
15846
15847 # RTEMS specific checks
15848 case "$host" in
15849 *-*-rtems*)
15850 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15851 "
15852 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15853
15854 cat >>confdefs.h <<_ACEOF
15855 #define HAVE_STRUCT__MUTEX_CONTROL 1
15856 _ACEOF
15857
15858
15859 fi
15860
15861 ;;
15862 esac
15863
15864 # Check whether --enable-linux-futex was given.
15865 if test "${enable_linux_futex+set}" = set; then :
15866 enableval=$enable_linux_futex;
15867 case "$enableval" in
15868 yes|no|default) ;;
15869 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15870 esac
15871
15872 else
15873 enable_linux_futex=default
15874 fi
15875
15876
15877 case "$target" in
15878 *-linux*)
15879 case "$enable_linux_futex" in
15880 default)
15881 # If headers don't have gettid/futex syscalls definition, then
15882 # default to no, otherwise there will be compile time failures.
15883 # Otherwise, default to yes. If we don't detect we are
15884 # compiled/linked against NPTL and not cross-compiling, check
15885 # if programs are run by default against NPTL and if not, issue
15886 # a warning.
15887 enable_linux_futex=no
15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890 #include <sys/syscall.h>
15891 #include <unistd.h>
15892 int lk;
15893 int
15894 main ()
15895 {
15896 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15897 ;
15898 return 0;
15899 }
15900 _ACEOF
15901 if ac_fn_c_try_link "$LINENO"; then :
15902 save_LIBS="$LIBS"
15903 LIBS="-lpthread $LIBS"
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 #ifndef _GNU_SOURCE
15907 #define _GNU_SOURCE 1
15908 #endif
15909 #include <pthread.h>
15910 pthread_t th; void *status;
15911 int
15912 main ()
15913 {
15914 pthread_tryjoin_np (th, &status);
15915 ;
15916 return 0;
15917 }
15918 _ACEOF
15919 if ac_fn_c_try_link "$LINENO"; then :
15920 enable_linux_futex=yes
15921 else
15922 if test x$cross_compiling = xno; then
15923 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15924 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15926 If so, please configure with --disable-linux-futex" >&5
15927 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15928 If so, please configure with --disable-linux-futex" >&2;}
15929 fi
15930 fi
15931 enable_linux_futex=yes
15932 fi
15933 rm -f core conftest.err conftest.$ac_objext \
15934 conftest$ac_exeext conftest.$ac_ext
15935 LIBS="$save_LIBS"
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext \
15938 conftest$ac_exeext conftest.$ac_ext
15939 ;;
15940 yes)
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 #include <sys/syscall.h>
15944 #include <unistd.h>
15945 int lk;
15946 int
15947 main ()
15948 {
15949 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15950 ;
15951 return 0;
15952 }
15953 _ACEOF
15954 if ac_fn_c_try_link "$LINENO"; then :
15955
15956 else
15957 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15958 fi
15959 rm -f core conftest.err conftest.$ac_objext \
15960 conftest$ac_exeext conftest.$ac_ext
15961 ;;
15962 esac
15963 ;;
15964 *)
15965 enable_linux_futex=no
15966 ;;
15967 esac
15968 if test x$enable_linux_futex = xyes; then
15969 :
15970 fi
15971
15972
15973 # Check for pthread_{,attr_}[sg]etaffinity_np.
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 #define _GNU_SOURCE
15977 #include <pthread.h>
15978 int
15979 main ()
15980 {
15981 cpu_set_t cpuset;
15982 pthread_attr_t attr;
15983 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15984 if (CPU_ISSET (0, &cpuset))
15985 CPU_SET (1, &cpuset);
15986 else
15987 CPU_ZERO (&cpuset);
15988 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15989 pthread_attr_init (&attr);
15990 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15991 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15992 ;
15993 return 0;
15994 }
15995 _ACEOF
15996 if ac_fn_c_try_link "$LINENO"; then :
15997
15998 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15999
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext \
16002 conftest$ac_exeext conftest.$ac_ext
16003
16004 # At least for glibc, clock_gettime is in librt. But don't pull that
16005 # in if it still doesn't give us the function we want.
16006 if test $ac_cv_func_clock_gettime = no; then
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16008 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16009 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16010 $as_echo_n "(cached) " >&6
16011 else
16012 ac_check_lib_save_LIBS=$LIBS
16013 LIBS="-lrt $LIBS"
16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015 /* end confdefs.h. */
16016
16017 /* Override any GCC internal prototype to avoid an error.
16018 Use char because int might match the return type of a GCC
16019 builtin and then its argument prototype would still apply. */
16020 #ifdef __cplusplus
16021 extern "C"
16022 #endif
16023 char clock_gettime ();
16024 int
16025 main ()
16026 {
16027 return clock_gettime ();
16028 ;
16029 return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_c_try_link "$LINENO"; then :
16033 ac_cv_lib_rt_clock_gettime=yes
16034 else
16035 ac_cv_lib_rt_clock_gettime=no
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
16039 LIBS=$ac_check_lib_save_LIBS
16040 fi
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16042 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16043 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16044 LIBS="-lrt $LIBS"
16045
16046 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16047
16048 fi
16049
16050 fi
16051
16052 # Check for uname.
16053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054 /* end confdefs.h. */
16055 #include <string.h>
16056 #include <stdlib.h>
16057 #include <sys/utsname.h>
16058 int
16059 main ()
16060 {
16061 struct utsname buf;
16062 volatile size_t len = 0;
16063 if (!uname (buf))
16064 len = strlen (buf.nodename);
16065 ;
16066 return 0;
16067 }
16068 _ACEOF
16069 if ac_fn_c_try_compile "$LINENO"; then :
16070
16071 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
16072
16073 fi
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075
16076 # Check for gethostname.
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079 #include <unistd.h>
16080 int
16081 main ()
16082 {
16083
16084 char buf[256];
16085 if (gethostname (buf, sizeof (buf) - 1) == 0)
16086 buf[255] = '\0';
16087
16088 ;
16089 return 0;
16090 }
16091 _ACEOF
16092 if ac_fn_c_try_compile "$LINENO"; then :
16093
16094 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
16095
16096 fi
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098
16099 # Check for getpid.
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102 #include <unistd.h>
16103 int
16104 main ()
16105 {
16106 int pid = getpid ();
16107 ;
16108 return 0;
16109 }
16110 _ACEOF
16111 if ac_fn_c_try_compile "$LINENO"; then :
16112
16113 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
16114
16115 fi
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117
16118 # See if we support thread-local storage.
16119
16120
16121 # Check whether --enable-tls was given.
16122 if test "${enable_tls+set}" = set; then :
16123 enableval=$enable_tls;
16124 case "$enableval" in
16125 yes|no) ;;
16126 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16127 esac
16128
16129 else
16130 enable_tls=yes
16131 fi
16132
16133
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16135 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16136 if ${gcc_cv_have_tls+:} false; then :
16137 $as_echo_n "(cached) " >&6
16138 else
16139
16140 if test "$cross_compiling" = yes; then :
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16143 __thread int a; int b; int main() { return a = b; }
16144 _ACEOF
16145 if ac_fn_c_try_link "$LINENO"; then :
16146 chktls_save_LDFLAGS="$LDFLAGS"
16147 case $host in
16148 *-*-linux*)
16149 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16150 ;;
16151 esac
16152 chktls_save_CFLAGS="$CFLAGS"
16153 CFLAGS="-fPIC $CFLAGS"
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156 int f() { return 0; }
16157 _ACEOF
16158 if ac_fn_c_try_link "$LINENO"; then :
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161 __thread int a; int b; int f() { return a = b; }
16162 _ACEOF
16163 if ac_fn_c_try_link "$LINENO"; then :
16164 gcc_cv_have_tls=yes
16165 else
16166 gcc_cv_have_tls=no
16167 fi
16168 rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16170 else
16171 gcc_cv_have_tls=yes
16172 fi
16173 rm -f core conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16175 CFLAGS="$chktls_save_CFLAGS"
16176 LDFLAGS="$chktls_save_LDFLAGS"
16177 else
16178 gcc_cv_have_tls=no
16179 fi
16180 rm -f core conftest.err conftest.$ac_objext \
16181 conftest$ac_exeext conftest.$ac_ext
16182
16183
16184 else
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187 __thread int a; int b; int main() { return a = b; }
16188 _ACEOF
16189 if ac_fn_c_try_run "$LINENO"; then :
16190 chktls_save_LDFLAGS="$LDFLAGS"
16191 LDFLAGS="-static $LDFLAGS"
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16194 int main() { return 0; }
16195 _ACEOF
16196 if ac_fn_c_try_link "$LINENO"; then :
16197 if test "$cross_compiling" = yes; then :
16198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16200 as_fn_error $? "cannot run test program while cross compiling
16201 See \`config.log' for more details" "$LINENO" 5; }
16202 else
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 __thread int a; int b; int main() { return a = b; }
16206 _ACEOF
16207 if ac_fn_c_try_run "$LINENO"; then :
16208 gcc_cv_have_tls=yes
16209 else
16210 gcc_cv_have_tls=no
16211 fi
16212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16213 conftest.$ac_objext conftest.beam conftest.$ac_ext
16214 fi
16215
16216 else
16217 gcc_cv_have_tls=yes
16218 fi
16219 rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16221 LDFLAGS="$chktls_save_LDFLAGS"
16222 if test $gcc_cv_have_tls = yes; then
16223 chktls_save_CFLAGS="$CFLAGS"
16224 thread_CFLAGS=failed
16225 for flag in '' '-pthread' '-lpthread'; do
16226 CFLAGS="$flag $chktls_save_CFLAGS"
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229 #include <pthread.h>
16230 void *g(void *d) { return NULL; }
16231 int
16232 main ()
16233 {
16234 pthread_t t; pthread_create(&t,NULL,g,NULL);
16235 ;
16236 return 0;
16237 }
16238 _ACEOF
16239 if ac_fn_c_try_link "$LINENO"; then :
16240 thread_CFLAGS="$flag"
16241 fi
16242 rm -f core conftest.err conftest.$ac_objext \
16243 conftest$ac_exeext conftest.$ac_ext
16244 if test "X$thread_CFLAGS" != Xfailed; then
16245 break
16246 fi
16247 done
16248 CFLAGS="$chktls_save_CFLAGS"
16249 if test "X$thread_CFLAGS" != Xfailed; then
16250 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16251 if test "$cross_compiling" = yes; then :
16252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16254 as_fn_error $? "cannot run test program while cross compiling
16255 See \`config.log' for more details" "$LINENO" 5; }
16256 else
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16259 #include <pthread.h>
16260 __thread int a;
16261 static int *volatile a_in_other_thread;
16262 static void *
16263 thread_func (void *arg)
16264 {
16265 a_in_other_thread = &a;
16266 return (void *)0;
16267 }
16268 int
16269 main ()
16270 {
16271 pthread_t thread;
16272 void *thread_retval;
16273 int *volatile a_in_main_thread;
16274 a_in_main_thread = &a;
16275 if (pthread_create (&thread, (pthread_attr_t *)0,
16276 thread_func, (void *)0))
16277 return 0;
16278 if (pthread_join (thread, &thread_retval))
16279 return 0;
16280 return (a_in_other_thread == a_in_main_thread);
16281 ;
16282 return 0;
16283 }
16284 _ACEOF
16285 if ac_fn_c_try_run "$LINENO"; then :
16286 gcc_cv_have_tls=yes
16287 else
16288 gcc_cv_have_tls=no
16289 fi
16290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16291 conftest.$ac_objext conftest.beam conftest.$ac_ext
16292 fi
16293
16294 CFLAGS="$chktls_save_CFLAGS"
16295 fi
16296 fi
16297 else
16298 gcc_cv_have_tls=no
16299 fi
16300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16301 conftest.$ac_objext conftest.beam conftest.$ac_ext
16302 fi
16303
16304 fi
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16306 $as_echo "$gcc_cv_have_tls" >&6; }
16307 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16308
16309 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16310
16311 fi
16312
16313 # See if we have emulated thread-local storage.
16314
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16316 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
16317 if ${gcc_cv_use_emutls+:} false; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320
16321 gcc_cv_use_emutls=no
16322 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16323 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16325 (eval $ac_try) 2>&5
16326 ac_status=$?
16327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16328 test $ac_status = 0; }; }; then
16329 if grep __emutls_get_address conftest.s > /dev/null; then
16330 gcc_cv_use_emutls=yes
16331 fi
16332 fi
16333 rm -f conftest.*
16334
16335 fi
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16337 $as_echo "$gcc_cv_use_emutls" >&6; }
16338 if test "$gcc_cv_use_emutls" = "yes" ; then
16339
16340 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16341
16342 fi
16343
16344 # See what sort of export controls are available.
16345
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16347 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16348 if ${libgomp_cv_have_attribute_visibility+:} false; then :
16349 $as_echo_n "(cached) " >&6
16350 else
16351
16352 save_CFLAGS="$CFLAGS"
16353 CFLAGS="$CFLAGS -Werror"
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 void __attribute__((visibility("hidden"))) foo(void) { }
16357 int
16358 main ()
16359 {
16360
16361 ;
16362 return 0;
16363 }
16364 _ACEOF
16365 if ac_fn_c_try_compile "$LINENO"; then :
16366 libgomp_cv_have_attribute_visibility=yes
16367 else
16368 libgomp_cv_have_attribute_visibility=no
16369 fi
16370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 CFLAGS="$save_CFLAGS"
16372 fi
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16374 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16375 if test $libgomp_cv_have_attribute_visibility = yes; then
16376
16377 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16378
16379 fi
16380
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16382 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16383 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16384 $as_echo_n "(cached) " >&6
16385 else
16386
16387 save_CFLAGS="$CFLAGS"
16388 CFLAGS="$CFLAGS -Werror"
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 void __attribute__((dllexport)) foo(void) { }
16392 int
16393 main ()
16394 {
16395
16396 ;
16397 return 0;
16398 }
16399 _ACEOF
16400 if ac_fn_c_try_compile "$LINENO"; then :
16401 libgomp_cv_have_attribute_dllexport=yes
16402 else
16403 libgomp_cv_have_attribute_dllexport=no
16404 fi
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 CFLAGS="$save_CFLAGS"
16407 fi
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16409 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16410 if test $libgomp_cv_have_attribute_dllexport = yes; then
16411
16412 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16413
16414 fi
16415
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16417 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16418 if ${libgomp_cv_have_attribute_alias+:} false; then :
16419 $as_echo_n "(cached) " >&6
16420 else
16421
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16424
16425 void foo(void) { }
16426 extern void bar(void) __attribute__((alias("foo")));
16427 int
16428 main ()
16429 {
16430 bar();
16431 ;
16432 return 0;
16433 }
16434 _ACEOF
16435 if ac_fn_c_try_link "$LINENO"; then :
16436 libgomp_cv_have_attribute_alias=yes
16437 else
16438 libgomp_cv_have_attribute_alias=no
16439 fi
16440 rm -f core conftest.err conftest.$ac_objext \
16441 conftest$ac_exeext conftest.$ac_ext
16442 fi
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16444 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16445 if test $libgomp_cv_have_attribute_alias = yes; then
16446
16447 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16448
16449 fi
16450
16451
16452 # Check whether --with-gnu-ld was given.
16453 if test "${with_gnu_ld+set}" = set; then :
16454 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16455 else
16456 with_gnu_ld=no
16457 fi
16458
16459 ac_prog=ld
16460 if test "$GCC" = yes; then
16461 # Check if gcc -print-prog-name=ld gives a path.
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16463 $as_echo_n "checking for ld used by $CC... " >&6; }
16464 case $host in
16465 *-*-mingw*)
16466 # gcc leaves a trailing carriage return which upsets mingw
16467 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16468 *)
16469 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16470 esac
16471 case $ac_prog in
16472 # Accept absolute paths.
16473 [\\/]* | ?:[\\/]*)
16474 re_direlt='/[^/][^/]*/\.\./'
16475 # Canonicalize the pathname of ld
16476 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16477 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16478 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16479 done
16480 test -z "$LD" && LD="$ac_prog"
16481 ;;
16482 "")
16483 # If it fails, then pretend we aren't using GCC.
16484 ac_prog=ld
16485 ;;
16486 *)
16487 # If it is relative, then search for the first ld in PATH.
16488 with_gnu_ld=unknown
16489 ;;
16490 esac
16491 elif test "$with_gnu_ld" = yes; then
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16493 $as_echo_n "checking for GNU ld... " >&6; }
16494 else
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16496 $as_echo_n "checking for non-GNU ld... " >&6; }
16497 fi
16498 if ${lt_cv_path_LD+:} false; then :
16499 $as_echo_n "(cached) " >&6
16500 else
16501 if test -z "$LD"; then
16502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16503 for ac_dir in $PATH; do
16504 IFS="$lt_save_ifs"
16505 test -z "$ac_dir" && ac_dir=.
16506 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16507 lt_cv_path_LD="$ac_dir/$ac_prog"
16508 # Check to see if the program is GNU ld. I'd rather use --version,
16509 # but apparently some variants of GNU ld only accept -v.
16510 # Break only if it was the GNU/non-GNU ld that we prefer.
16511 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16512 *GNU* | *'with BFD'*)
16513 test "$with_gnu_ld" != no && break
16514 ;;
16515 *)
16516 test "$with_gnu_ld" != yes && break
16517 ;;
16518 esac
16519 fi
16520 done
16521 IFS="$lt_save_ifs"
16522 else
16523 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16524 fi
16525 fi
16526
16527 LD="$lt_cv_path_LD"
16528 if test -n "$LD"; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16530 $as_echo "$LD" >&6; }
16531 else
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16533 $as_echo "no" >&6; }
16534 fi
16535 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16537 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16538 if ${lt_cv_prog_gnu_ld+:} false; then :
16539 $as_echo_n "(cached) " >&6
16540 else
16541 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16542 case `$LD -v 2>&1 </dev/null` in
16543 *GNU* | *'with BFD'*)
16544 lt_cv_prog_gnu_ld=yes
16545 ;;
16546 *)
16547 lt_cv_prog_gnu_ld=no
16548 ;;
16549 esac
16550 fi
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16552 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16553 with_gnu_ld=$lt_cv_prog_gnu_ld
16554
16555
16556
16557
16558
16559
16560
16561 # If we're not using GNU ld, then there's no point in even trying these
16562 # tests. Check for that first. We should have already tested for gld
16563 # by now (in libtool), but require it now just to be safe...
16564 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16565 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16566
16567
16568
16569 # The name set by libtool depends on the version of libtool. Shame on us
16570 # for depending on an impl detail, but c'est la vie. Older versions used
16571 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16572 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16573 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16574 # set (hence we're using an older libtool), then set it.
16575 if test x${with_gnu_ld+set} != xset; then
16576 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16577 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16578 with_gnu_ld=no
16579 else
16580 with_gnu_ld=$ac_cv_prog_gnu_ld
16581 fi
16582 fi
16583
16584 # Start by getting the version number. I think the libtool test already
16585 # does some of this, but throws away the result.
16586 libgomp_ld_is_gold=no
16587 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16588 libgomp_ld_is_gold=yes
16589 fi
16590
16591 ldver=`$LD --version 2>/dev/null |
16592 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16593
16594 libgomp_gnu_ld_version=`echo $ldver | \
16595 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16596
16597 # Set --gc-sections.
16598 if test "$with_gnu_ld" = "notbroken"; then
16599 # GNU ld it is! Joy and bunny rabbits!
16600
16601 # All these tests are for C++; save the language and the compiler flags.
16602 # Need to do this so that g++ won't try to link in libstdc++
16603 ac_test_CFLAGS="${CFLAGS+set}"
16604 ac_save_CFLAGS="$CFLAGS"
16605 CFLAGS='-x c++ -Wl,--gc-sections'
16606
16607 # Check for -Wl,--gc-sections
16608 # XXX This test is broken at the moment, as symbols required for linking
16609 # are now in libsupc++ (not built yet). In addition, this test has
16610 # cored on solaris in the past. In addition, --gc-sections doesn't
16611 # really work at the moment (keeps on discarding used sections, first
16612 # .eh_frame and now some of the glibc sections for iconv).
16613 # Bzzzzt. Thanks for playing, maybe next time.
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16615 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16616 if test "$cross_compiling" = yes; then :
16617 ac_sectionLDflags=yes
16618 else
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16621
16622 int main(void)
16623 {
16624 try { throw 1; }
16625 catch (...) { };
16626 return 0;
16627 }
16628
16629 _ACEOF
16630 if ac_fn_c_try_run "$LINENO"; then :
16631 ac_sectionLDflags=yes
16632 else
16633 ac_sectionLDflags=no
16634 fi
16635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16636 conftest.$ac_objext conftest.beam conftest.$ac_ext
16637 fi
16638
16639 if test "$ac_test_CFLAGS" = set; then
16640 CFLAGS="$ac_save_CFLAGS"
16641 else
16642 # this is the suspicious part
16643 CFLAGS=''
16644 fi
16645 if test "$ac_sectionLDflags" = "yes"; then
16646 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16647 fi
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16649 $as_echo "$ac_sectionLDflags" >&6; }
16650 fi
16651
16652 # Set linker optimization flags.
16653 if test x"$with_gnu_ld" = x"yes"; then
16654 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16655 fi
16656
16657
16658
16659
16660
16661
16662 # Check whether --enable-symvers was given.
16663 if test "${enable_symvers+set}" = set; then :
16664 enableval=$enable_symvers;
16665 case "$enableval" in
16666 yes|no|gnu*|sun) ;;
16667 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16668 esac
16669
16670 else
16671 enable_symvers=yes
16672 fi
16673
16674
16675
16676 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16677 # don't know enough about $LD to do tricks...
16678
16679
16680 # Turn a 'yes' into a suitable default.
16681 if test x$enable_symvers = xyes ; then
16682 # FIXME The following test is too strict, in theory.
16683 if test $enable_shared = no || test "x$LD" = x; then
16684 enable_symvers=no
16685 else
16686 if test $with_gnu_ld = yes ; then
16687 enable_symvers=gnu
16688 else
16689 case ${target_os} in
16690 # Sun symbol versioning exists since Solaris 2.5.
16691 solaris2.[5-9]* | solaris2.1[0-9]*)
16692 enable_symvers=sun ;;
16693 *)
16694 enable_symvers=no ;;
16695 esac
16696 fi
16697 fi
16698 fi
16699
16700 # Check if 'sun' was requested on non-Solaris 2 platforms.
16701 if test x$enable_symvers = xsun ; then
16702 case ${target_os} in
16703 solaris2*)
16704 # All fine.
16705 ;;
16706 *)
16707 # Unlikely to work.
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16709 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16711 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16713 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16714 enable_symvers=no
16715 ;;
16716 esac
16717 fi
16718
16719 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16720 if test $enable_symvers != no; then
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16722 $as_echo_n "checking for shared libgcc... " >&6; }
16723 ac_save_CFLAGS="$CFLAGS"
16724 CFLAGS=' -lgcc_s'
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16727
16728 int
16729 main ()
16730 {
16731 return 0;
16732 ;
16733 return 0;
16734 }
16735 _ACEOF
16736 if ac_fn_c_try_link "$LINENO"; then :
16737 libgomp_shared_libgcc=yes
16738 else
16739 libgomp_shared_libgcc=no
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16743 CFLAGS="$ac_save_CFLAGS"
16744 if test $libgomp_shared_libgcc = no; then
16745 cat > conftest.c <<EOF
16746 int main (void) { return 0; }
16747 EOF
16748 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16749 -shared -shared-libgcc -o conftest.so \
16750 conftest.c -v 2>&1 >/dev/null \
16751 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16752 rm -f conftest.c conftest.so
16753 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16754 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757
16758 int
16759 main ()
16760 {
16761 return 0;
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"; then :
16767 libgomp_shared_libgcc=yes
16768 fi
16769 rm -f core conftest.err conftest.$ac_objext \
16770 conftest$ac_exeext conftest.$ac_ext
16771 CFLAGS="$ac_save_CFLAGS"
16772 fi
16773 fi
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16775 $as_echo "$libgomp_shared_libgcc" >&6; }
16776 fi
16777
16778 # For GNU ld, we need at least this version. The format is described in
16779 # LIBGOMP_CHECK_LINKER_FEATURES above.
16780 libgomp_min_gnu_ld_version=21400
16781 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16782
16783 # Check to see if unspecified "yes" value can win, given results above.
16784 # Change "yes" into either "no" or a style name.
16785 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16786 if test $with_gnu_ld = yes; then
16787 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16788 enable_symvers=gnu
16789 elif test $libgomp_ld_is_gold = yes ; then
16790 enable_symvers=gnu
16791 else
16792 # The right tools, the right setup, but too old. Fallbacks?
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16794 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16796 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16798 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16800 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16801 if test $libgomp_gnu_ld_version -ge 21200 ; then
16802 # Globbing fix is present, proper block support is not.
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16804 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16805 enable_symvers=no
16806 else
16807 # 2.11 or older.
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16809 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16810 enable_symvers=no
16811 fi
16812 fi
16813 elif test $enable_symvers = sun; then
16814 : All interesting versions of Sun ld support sun style symbol versioning.
16815 else
16816 # just fail for now
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16818 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16820 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16822 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16824 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16825 enable_symvers=no
16826 fi
16827 fi
16828
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16830 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16831 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16832 $as_echo_n "(cached) " >&6
16833 else
16834
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16837 void foo (void); __asm (".symver foo, bar@SYMVER");
16838 int
16839 main ()
16840 {
16841
16842 ;
16843 return 0;
16844 }
16845 _ACEOF
16846 if ac_fn_c_try_compile "$LINENO"; then :
16847 libgomp_cv_have_as_symver_directive=yes
16848 else
16849 libgomp_cv_have_as_symver_directive=no
16850 fi
16851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852 fi
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16854 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16855 if test $libgomp_cv_have_as_symver_directive = yes; then
16856
16857 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16858
16859 fi
16860
16861 if test $enable_symvers != no; then
16862 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16863 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16864 else
16865 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16866 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16867 fi
16868
16869 if test $enable_symvers = gnu; then
16870 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16871 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16872 else
16873 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16874 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16875 fi
16876
16877 if test $enable_symvers = sun; then
16878 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16879 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16880 else
16881 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16882 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16883 fi
16884
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16886 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16887
16888 if test $enable_symvers != no ; then
16889 case ${target_os} in
16890 # The Solaris 2 runtime linker doesn't support the GNU extension of
16891 # binding the same symbol to different versions
16892 solaris2*)
16893 ;;
16894 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16895 *)
16896
16897 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16898
16899 ;;
16900 esac
16901 fi
16902
16903
16904 if test $enable_symvers = gnu; then
16905
16906 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16907
16908 fi
16909
16910 # Determine cpu count to limit testsuite parallelism.
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16912 $as_echo_n "checking the number of available CPUs... " >&6; }
16913 CPU_COUNT="0"
16914
16915 # Try generic methods
16916
16917 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16918 # 'NPROCESSORS_ONLN' are platform-specific
16919 command -v getconf >/dev/null 2>&1 && \
16920 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16921 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16922 : # empty
16923 else
16924 # 'nproc' is part of GNU Coreutils and is widely available
16925 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16926
16927 fi
16928 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16929 : # empty
16930 else
16931 # Try platform-specific preferred methods
16932 case $host_os in #(
16933 *linux*) :
16934 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16935 *darwin*) :
16936 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16937 freebsd*) :
16938 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16939 netbsd*) :
16940 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16941 solaris*) :
16942 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" ;; #(
16943 mingw*) :
16944 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16945 msys*) :
16946 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16947 cygwin*) :
16948 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16949 *) :
16950 ;;
16951 esac
16952 fi
16953 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16954 : # empty
16955 else
16956 # Try less preferred generic method
16957 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16958 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16959
16960 fi
16961 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16962 : # empty
16963 else
16964 # Try platform-specific fallback methods
16965 # They can be less accurate and slower then preferred methods
16966 case $host_os in #(
16967 *linux*) :
16968 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16969 *darwin*) :
16970 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16971 freebsd*) :
16972 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16973 netbsd*) :
16974 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16975 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16976 solaris*) :
16977 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16978 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16979 mingw*) :
16980 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16981 : # empty
16982 else
16983 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16984 fi ;; #(
16985 msys*) :
16986 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16987 cygwin*) :
16988 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16989 *) :
16990 ;;
16991 esac
16992 fi
16993 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16995 $as_echo "$CPU_COUNT" >&6; }
16996
16997 else
16998 CPU_COUNT="1"
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
17000 $as_echo "unable to detect (assuming 1)" >&6; }
17001
17002 fi
17003
17004
17005 # Get target configury.
17006 . ${srcdir}/configure.tgt
17007 CFLAGS="$save_CFLAGS $XCFLAGS"
17008
17009 # Check for __sync_val_compare_and_swap, but only after the target has
17010 # had a chance to set XCFLAGS.
17011
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17013 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17014 if ${libgomp_cv_have_sync_builtins+:} false; then :
17015 $as_echo_n "(cached) " >&6
17016 else
17017
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17020
17021 int
17022 main ()
17023 {
17024 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
17025 ;
17026 return 0;
17027 }
17028 _ACEOF
17029 if ac_fn_c_try_link "$LINENO"; then :
17030 libgomp_cv_have_sync_builtins=yes
17031 else
17032 libgomp_cv_have_sync_builtins=no
17033 fi
17034 rm -f core conftest.err conftest.$ac_objext \
17035 conftest$ac_exeext conftest.$ac_ext
17036 fi
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
17038 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
17039 if test $libgomp_cv_have_sync_builtins = yes; then
17040
17041 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17042
17043 fi
17044
17045 XCFLAGS="$XCFLAGS$XPCFLAGS"
17046
17047 # Add CET specific flags if CET is enabled
17048 # Check whether --enable-cet was given.
17049 if test "${enable_cet+set}" = set; then :
17050 enableval=$enable_cet;
17051 case "$enableval" in
17052 yes|no|auto) ;;
17053 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17054 esac
17055
17056 else
17057 enable_cet=no
17058 fi
17059
17060
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17062 $as_echo_n "checking for CET support... " >&6; }
17063
17064 case "$host" in
17065 i[34567]86-*-linux* | x86_64-*-linux*)
17066 case "$enable_cet" in
17067 auto)
17068 # Check if target supports multi-byte NOPs
17069 # and if assembler supports CET insn.
17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071 /* end confdefs.h. */
17072
17073 int
17074 main ()
17075 {
17076
17077 #if !defined(__SSE2__)
17078 #error target does not support multi-byte NOPs
17079 #else
17080 asm ("setssbsy");
17081 #endif
17082
17083 ;
17084 return 0;
17085 }
17086 _ACEOF
17087 if ac_fn_c_try_compile "$LINENO"; then :
17088 enable_cet=yes
17089 else
17090 enable_cet=no
17091 fi
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 ;;
17094 yes)
17095 # Check if assembler supports CET.
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17098
17099 int
17100 main ()
17101 {
17102 asm ("setssbsy");
17103 ;
17104 return 0;
17105 }
17106 _ACEOF
17107 if ac_fn_c_try_compile "$LINENO"; then :
17108
17109 else
17110 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17111 fi
17112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113 ;;
17114 esac
17115 ;;
17116 *)
17117 enable_cet=no
17118 ;;
17119 esac
17120 if test x$enable_cet = xyes; then
17121 CET_FLAGS="-fcf-protection -mshstk"
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17123 $as_echo "yes" >&6; }
17124 else
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17127 fi
17128
17129 XCFLAGS="$XCFLAGS $CET_FLAGS"
17130 FCFLAGS="$FCFLAGS $CET_FLAGS"
17131
17132
17133
17134
17135
17136 # Cleanup and exit.
17137 CFLAGS="$save_CFLAGS"
17138 cat >confcache <<\_ACEOF
17139 # This file is a shell script that caches the results of configure
17140 # tests run on this system so they can be shared between configure
17141 # scripts and configure runs, see configure's option --config-cache.
17142 # It is not useful on other systems. If it contains results you don't
17143 # want to keep, you may remove or edit it.
17144 #
17145 # config.status only pays attention to the cache file if you give it
17146 # the --recheck option to rerun configure.
17147 #
17148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17150 # following values.
17151
17152 _ACEOF
17153
17154 # The following way of writing the cache mishandles newlines in values,
17155 # but we know of no workaround that is simple, portable, and efficient.
17156 # So, we kill variables containing newlines.
17157 # Ultrix sh set writes to stderr and can't be redirected directly,
17158 # and sets the high bit in the cache file unless we assign to the vars.
17159 (
17160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17161 eval ac_val=\$$ac_var
17162 case $ac_val in #(
17163 *${as_nl}*)
17164 case $ac_var in #(
17165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17167 esac
17168 case $ac_var in #(
17169 _ | IFS | as_nl) ;; #(
17170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17171 *) { eval $ac_var=; unset $ac_var;} ;;
17172 esac ;;
17173 esac
17174 done
17175
17176 (set) 2>&1 |
17177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17178 *${as_nl}ac_space=\ *)
17179 # `set' does not quote correctly, so add quotes: double-quote
17180 # substitution turns \\\\ into \\, and sed turns \\ into \.
17181 sed -n \
17182 "s/'/'\\\\''/g;
17183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17184 ;; #(
17185 *)
17186 # `set' quotes correctly as required by POSIX, so do not add quotes.
17187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17188 ;;
17189 esac |
17190 sort
17191 ) |
17192 sed '
17193 /^ac_cv_env_/b end
17194 t clear
17195 :clear
17196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17197 t end
17198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17199 :end' >>confcache
17200 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17201 if test -w "$cache_file"; then
17202 if test "x$cache_file" != "x/dev/null"; then
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17204 $as_echo "$as_me: updating cache $cache_file" >&6;}
17205 if test ! -f "$cache_file" || test -h "$cache_file"; then
17206 cat confcache >"$cache_file"
17207 else
17208 case $cache_file in #(
17209 */* | ?:*)
17210 mv -f confcache "$cache_file"$$ &&
17211 mv -f "$cache_file"$$ "$cache_file" ;; #(
17212 *)
17213 mv -f confcache "$cache_file" ;;
17214 esac
17215 fi
17216 fi
17217 else
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17219 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17220 fi
17221 fi
17222 rm -f confcache
17223
17224 if test ${multilib} = yes; then
17225 multilib_arg="--enable-multilib"
17226 else
17227 multilib_arg=
17228 fi
17229
17230 # Set up the set of libraries that we need to link against for libgomp.
17231 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
17232 # which will force linkage against -lpthread (or equivalent for the system).
17233 # That's not 100% ideal, but about the best we can do easily.
17234 if test $enable_shared = yes; then
17235 link_gomp="-lgomp %{static: $LIBS}"
17236 else
17237 link_gomp="-lgomp $LIBS"
17238 fi
17239
17240
17241 if test "$ac_cv_fc_compiler_gnu" = yes; then
17242 USE_FORTRAN_TRUE=
17243 USE_FORTRAN_FALSE='#'
17244 else
17245 USE_FORTRAN_TRUE='#'
17246 USE_FORTRAN_FALSE=
17247 fi
17248
17249
17250 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
17251 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
17252 # the underscore here and update the PREREQ. If it doesn't, then we'll
17253 # need to copy this macro to our acinclude.m4.
17254 save_CFLAGS="$CFLAGS"
17255 for i in $config_path; do
17256 if test -f $srcdir/config/$i/omp-lock.h; then
17257 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
17258 break
17259 fi
17260 done
17261
17262 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
17263
17264 else
17265 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
17266 fi
17267
17268
17269 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
17270
17271 fi
17272
17273
17274 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
17275
17276 fi
17277
17278
17279 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
17280
17281 fi
17282
17283
17284 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
17285
17286 else
17287 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
17288 fi
17289
17290
17291 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
17292
17293 fi
17294
17295
17296 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
17297
17298 fi
17299
17300
17301 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
17302
17303 fi
17304
17305
17306
17307 # If the lock fits in an integer, then arrange for Fortran to use that
17308 # integer. If it doesn't, then arrange for Fortran to use a pointer.
17309 # Except that we don't have a way at present to multi-lib the installed
17310 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
17311 # actual target.
17312 OMP_LOCK_KIND=$OMP_LOCK_SIZE
17313 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
17314 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17315 OMP_LOCK_KIND=8
17316 fi
17317 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17318 OMP_NEST_LOCK_KIND=8
17319 fi
17320 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
17321 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
17322 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17323 OMP_LOCK_25_KIND=8
17324 fi
17325 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17326 OMP_NEST_LOCK_25_KIND=8
17327 fi
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341 CFLAGS="$save_CFLAGS"
17342
17343 # Determine what GCC version number to use in filesystem paths.
17344
17345 get_gcc_base_ver="cat"
17346
17347 # Check whether --with-gcc-major-version-only was given.
17348 if test "${with_gcc_major_version_only+set}" = set; then :
17349 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17350 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17351 fi
17352
17353 fi
17354
17355
17356
17357
17358 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17359
17360 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17361
17362 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17363
17364 cat >confcache <<\_ACEOF
17365 # This file is a shell script that caches the results of configure
17366 # tests run on this system so they can be shared between configure
17367 # scripts and configure runs, see configure's option --config-cache.
17368 # It is not useful on other systems. If it contains results you don't
17369 # want to keep, you may remove or edit it.
17370 #
17371 # config.status only pays attention to the cache file if you give it
17372 # the --recheck option to rerun configure.
17373 #
17374 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17375 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17376 # following values.
17377
17378 _ACEOF
17379
17380 # The following way of writing the cache mishandles newlines in values,
17381 # but we know of no workaround that is simple, portable, and efficient.
17382 # So, we kill variables containing newlines.
17383 # Ultrix sh set writes to stderr and can't be redirected directly,
17384 # and sets the high bit in the cache file unless we assign to the vars.
17385 (
17386 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17387 eval ac_val=\$$ac_var
17388 case $ac_val in #(
17389 *${as_nl}*)
17390 case $ac_var in #(
17391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17393 esac
17394 case $ac_var in #(
17395 _ | IFS | as_nl) ;; #(
17396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17397 *) { eval $ac_var=; unset $ac_var;} ;;
17398 esac ;;
17399 esac
17400 done
17401
17402 (set) 2>&1 |
17403 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17404 *${as_nl}ac_space=\ *)
17405 # `set' does not quote correctly, so add quotes: double-quote
17406 # substitution turns \\\\ into \\, and sed turns \\ into \.
17407 sed -n \
17408 "s/'/'\\\\''/g;
17409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17410 ;; #(
17411 *)
17412 # `set' quotes correctly as required by POSIX, so do not add quotes.
17413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17414 ;;
17415 esac |
17416 sort
17417 ) |
17418 sed '
17419 /^ac_cv_env_/b end
17420 t clear
17421 :clear
17422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17423 t end
17424 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17425 :end' >>confcache
17426 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17427 if test -w "$cache_file"; then
17428 if test "x$cache_file" != "x/dev/null"; then
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17430 $as_echo "$as_me: updating cache $cache_file" >&6;}
17431 if test ! -f "$cache_file" || test -h "$cache_file"; then
17432 cat confcache >"$cache_file"
17433 else
17434 case $cache_file in #(
17435 */* | ?:*)
17436 mv -f confcache "$cache_file"$$ &&
17437 mv -f "$cache_file"$$ "$cache_file" ;; #(
17438 *)
17439 mv -f confcache "$cache_file" ;;
17440 esac
17441 fi
17442 fi
17443 else
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17445 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17446 fi
17447 fi
17448 rm -f confcache
17449
17450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17451 # Let make expand exec_prefix.
17452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17453
17454 DEFS=-DHAVE_CONFIG_H
17455
17456 ac_libobjs=
17457 ac_ltlibobjs=
17458 U=
17459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17460 # 1. Remove the extension, and $U if already installed.
17461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17464 # will be set to the directory where LIBOBJS objects are built.
17465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17467 done
17468 LIBOBJS=$ac_libobjs
17469
17470 LTLIBOBJS=$ac_ltlibobjs
17471
17472
17473 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17474 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17476 fi
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17478 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17479 if test -n "$am_sleep_pid"; then
17480 # Hide warnings about reused PIDs.
17481 wait $am_sleep_pid 2>/dev/null
17482 fi
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17484 $as_echo "done" >&6; }
17485 if test -n "$EXEEXT"; then
17486 am__EXEEXT_TRUE=
17487 am__EXEEXT_FALSE='#'
17488 else
17489 am__EXEEXT_TRUE='#'
17490 am__EXEEXT_FALSE=
17491 fi
17492
17493 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17494 as_fn_error $? "conditional \"AMDEP\" was never defined.
17495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17496 fi
17497 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17498 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17500 fi
17501 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17502 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17504 fi
17505 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17506 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17508 fi
17509 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17510 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17512 fi
17513 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17514 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined.
17515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17516 fi
17517 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17518 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17520 fi
17521 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17522 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17524 fi
17525 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17526 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17528 fi
17529 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17530 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17532 fi
17533
17534 : "${CONFIG_STATUS=./config.status}"
17535 ac_write_fail=0
17536 ac_clean_files_save=$ac_clean_files
17537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17539 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17540 as_write_fail=0
17541 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17542 #! $SHELL
17543 # Generated by $as_me.
17544 # Run this file to recreate the current configuration.
17545 # Compiler output produced by configure, useful for debugging
17546 # configure, is in config.log if it exists.
17547
17548 debug=false
17549 ac_cs_recheck=false
17550 ac_cs_silent=false
17551
17552 SHELL=\${CONFIG_SHELL-$SHELL}
17553 export SHELL
17554 _ASEOF
17555 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17556 ## -------------------- ##
17557 ## M4sh Initialization. ##
17558 ## -------------------- ##
17559
17560 # Be more Bourne compatible
17561 DUALCASE=1; export DUALCASE # for MKS sh
17562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17563 emulate sh
17564 NULLCMD=:
17565 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17566 # is contrary to our usage. Disable this feature.
17567 alias -g '${1+"$@"}'='"$@"'
17568 setopt NO_GLOB_SUBST
17569 else
17570 case `(set -o) 2>/dev/null` in #(
17571 *posix*) :
17572 set -o posix ;; #(
17573 *) :
17574 ;;
17575 esac
17576 fi
17577
17578
17579 as_nl='
17580 '
17581 export as_nl
17582 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17583 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17586 # Prefer a ksh shell builtin over an external printf program on Solaris,
17587 # but without wasting forks for bash or zsh.
17588 if test -z "$BASH_VERSION$ZSH_VERSION" \
17589 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17590 as_echo='print -r --'
17591 as_echo_n='print -rn --'
17592 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17593 as_echo='printf %s\n'
17594 as_echo_n='printf %s'
17595 else
17596 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17597 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17598 as_echo_n='/usr/ucb/echo -n'
17599 else
17600 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17601 as_echo_n_body='eval
17602 arg=$1;
17603 case $arg in #(
17604 *"$as_nl"*)
17605 expr "X$arg" : "X\\(.*\\)$as_nl";
17606 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17607 esac;
17608 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17609 '
17610 export as_echo_n_body
17611 as_echo_n='sh -c $as_echo_n_body as_echo'
17612 fi
17613 export as_echo_body
17614 as_echo='sh -c $as_echo_body as_echo'
17615 fi
17616
17617 # The user is always right.
17618 if test "${PATH_SEPARATOR+set}" != set; then
17619 PATH_SEPARATOR=:
17620 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17621 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17622 PATH_SEPARATOR=';'
17623 }
17624 fi
17625
17626
17627 # IFS
17628 # We need space, tab and new line, in precisely that order. Quoting is
17629 # there to prevent editors from complaining about space-tab.
17630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17631 # splitting by setting IFS to empty value.)
17632 IFS=" "" $as_nl"
17633
17634 # Find who we are. Look in the path if we contain no directory separator.
17635 as_myself=
17636 case $0 in #((
17637 *[\\/]* ) as_myself=$0 ;;
17638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17639 for as_dir in $PATH
17640 do
17641 IFS=$as_save_IFS
17642 test -z "$as_dir" && as_dir=.
17643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17644 done
17645 IFS=$as_save_IFS
17646
17647 ;;
17648 esac
17649 # We did not find ourselves, most probably we were run as `sh COMMAND'
17650 # in which case we are not to be found in the path.
17651 if test "x$as_myself" = x; then
17652 as_myself=$0
17653 fi
17654 if test ! -f "$as_myself"; then
17655 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17656 exit 1
17657 fi
17658
17659 # Unset variables that we do not need and which cause bugs (e.g. in
17660 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17661 # suppresses any "Segmentation fault" message there. '((' could
17662 # trigger a bug in pdksh 5.2.14.
17663 for as_var in BASH_ENV ENV MAIL MAILPATH
17664 do eval test x\${$as_var+set} = xset \
17665 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17666 done
17667 PS1='$ '
17668 PS2='> '
17669 PS4='+ '
17670
17671 # NLS nuisances.
17672 LC_ALL=C
17673 export LC_ALL
17674 LANGUAGE=C
17675 export LANGUAGE
17676
17677 # CDPATH.
17678 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17679
17680
17681 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17682 # ----------------------------------------
17683 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17684 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17685 # script with STATUS, using 1 if that was 0.
17686 as_fn_error ()
17687 {
17688 as_status=$1; test $as_status -eq 0 && as_status=1
17689 if test "$4"; then
17690 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17691 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17692 fi
17693 $as_echo "$as_me: error: $2" >&2
17694 as_fn_exit $as_status
17695 } # as_fn_error
17696
17697
17698 # as_fn_set_status STATUS
17699 # -----------------------
17700 # Set $? to STATUS, without forking.
17701 as_fn_set_status ()
17702 {
17703 return $1
17704 } # as_fn_set_status
17705
17706 # as_fn_exit STATUS
17707 # -----------------
17708 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17709 as_fn_exit ()
17710 {
17711 set +e
17712 as_fn_set_status $1
17713 exit $1
17714 } # as_fn_exit
17715
17716 # as_fn_unset VAR
17717 # ---------------
17718 # Portably unset VAR.
17719 as_fn_unset ()
17720 {
17721 { eval $1=; unset $1;}
17722 }
17723 as_unset=as_fn_unset
17724 # as_fn_append VAR VALUE
17725 # ----------------------
17726 # Append the text in VALUE to the end of the definition contained in VAR. Take
17727 # advantage of any shell optimizations that allow amortized linear growth over
17728 # repeated appends, instead of the typical quadratic growth present in naive
17729 # implementations.
17730 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17731 eval 'as_fn_append ()
17732 {
17733 eval $1+=\$2
17734 }'
17735 else
17736 as_fn_append ()
17737 {
17738 eval $1=\$$1\$2
17739 }
17740 fi # as_fn_append
17741
17742 # as_fn_arith ARG...
17743 # ------------------
17744 # Perform arithmetic evaluation on the ARGs, and store the result in the
17745 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17746 # must be portable across $(()) and expr.
17747 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17748 eval 'as_fn_arith ()
17749 {
17750 as_val=$(( $* ))
17751 }'
17752 else
17753 as_fn_arith ()
17754 {
17755 as_val=`expr "$@" || test $? -eq 1`
17756 }
17757 fi # as_fn_arith
17758
17759
17760 if expr a : '\(a\)' >/dev/null 2>&1 &&
17761 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17762 as_expr=expr
17763 else
17764 as_expr=false
17765 fi
17766
17767 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17768 as_basename=basename
17769 else
17770 as_basename=false
17771 fi
17772
17773 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17774 as_dirname=dirname
17775 else
17776 as_dirname=false
17777 fi
17778
17779 as_me=`$as_basename -- "$0" ||
17780 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17781 X"$0" : 'X\(//\)$' \| \
17782 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17783 $as_echo X/"$0" |
17784 sed '/^.*\/\([^/][^/]*\)\/*$/{
17785 s//\1/
17786 q
17787 }
17788 /^X\/\(\/\/\)$/{
17789 s//\1/
17790 q
17791 }
17792 /^X\/\(\/\).*/{
17793 s//\1/
17794 q
17795 }
17796 s/.*/./; q'`
17797
17798 # Avoid depending upon Character Ranges.
17799 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17800 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17801 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17802 as_cr_digits='0123456789'
17803 as_cr_alnum=$as_cr_Letters$as_cr_digits
17804
17805 ECHO_C= ECHO_N= ECHO_T=
17806 case `echo -n x` in #(((((
17807 -n*)
17808 case `echo 'xy\c'` in
17809 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17810 xy) ECHO_C='\c';;
17811 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17812 ECHO_T=' ';;
17813 esac;;
17814 *)
17815 ECHO_N='-n';;
17816 esac
17817
17818 rm -f conf$$ conf$$.exe conf$$.file
17819 if test -d conf$$.dir; then
17820 rm -f conf$$.dir/conf$$.file
17821 else
17822 rm -f conf$$.dir
17823 mkdir conf$$.dir 2>/dev/null
17824 fi
17825 if (echo >conf$$.file) 2>/dev/null; then
17826 if ln -s conf$$.file conf$$ 2>/dev/null; then
17827 as_ln_s='ln -s'
17828 # ... but there are two gotchas:
17829 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17830 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17831 # In both cases, we have to default to `cp -pR'.
17832 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17833 as_ln_s='cp -pR'
17834 elif ln conf$$.file conf$$ 2>/dev/null; then
17835 as_ln_s=ln
17836 else
17837 as_ln_s='cp -pR'
17838 fi
17839 else
17840 as_ln_s='cp -pR'
17841 fi
17842 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17843 rmdir conf$$.dir 2>/dev/null
17844
17845
17846 # as_fn_mkdir_p
17847 # -------------
17848 # Create "$as_dir" as a directory, including parents if necessary.
17849 as_fn_mkdir_p ()
17850 {
17851
17852 case $as_dir in #(
17853 -*) as_dir=./$as_dir;;
17854 esac
17855 test -d "$as_dir" || eval $as_mkdir_p || {
17856 as_dirs=
17857 while :; do
17858 case $as_dir in #(
17859 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17860 *) as_qdir=$as_dir;;
17861 esac
17862 as_dirs="'$as_qdir' $as_dirs"
17863 as_dir=`$as_dirname -- "$as_dir" ||
17864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17865 X"$as_dir" : 'X\(//\)[^/]' \| \
17866 X"$as_dir" : 'X\(//\)$' \| \
17867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17868 $as_echo X"$as_dir" |
17869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17870 s//\1/
17871 q
17872 }
17873 /^X\(\/\/\)[^/].*/{
17874 s//\1/
17875 q
17876 }
17877 /^X\(\/\/\)$/{
17878 s//\1/
17879 q
17880 }
17881 /^X\(\/\).*/{
17882 s//\1/
17883 q
17884 }
17885 s/.*/./; q'`
17886 test -d "$as_dir" && break
17887 done
17888 test -z "$as_dirs" || eval "mkdir $as_dirs"
17889 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17890
17891
17892 } # as_fn_mkdir_p
17893 if mkdir -p . 2>/dev/null; then
17894 as_mkdir_p='mkdir -p "$as_dir"'
17895 else
17896 test -d ./-p && rmdir ./-p
17897 as_mkdir_p=false
17898 fi
17899
17900
17901 # as_fn_executable_p FILE
17902 # -----------------------
17903 # Test if FILE is an executable regular file.
17904 as_fn_executable_p ()
17905 {
17906 test -f "$1" && test -x "$1"
17907 } # as_fn_executable_p
17908 as_test_x='test -x'
17909 as_executable_p=as_fn_executable_p
17910
17911 # Sed expression to map a string onto a valid CPP name.
17912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17913
17914 # Sed expression to map a string onto a valid variable name.
17915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17916
17917
17918 exec 6>&1
17919 ## ----------------------------------- ##
17920 ## Main body of $CONFIG_STATUS script. ##
17921 ## ----------------------------------- ##
17922 _ASEOF
17923 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17924
17925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17926 # Save the log message, to keep $0 and so on meaningful, and to
17927 # report actual input values of CONFIG_FILES etc. instead of their
17928 # values after options handling.
17929 ac_log="
17930 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17931 generated by GNU Autoconf 2.69. Invocation command line was
17932
17933 CONFIG_FILES = $CONFIG_FILES
17934 CONFIG_HEADERS = $CONFIG_HEADERS
17935 CONFIG_LINKS = $CONFIG_LINKS
17936 CONFIG_COMMANDS = $CONFIG_COMMANDS
17937 $ $0 $@
17938
17939 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17940 "
17941
17942 _ACEOF
17943
17944 case $ac_config_files in *"
17945 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17946 esac
17947
17948 case $ac_config_headers in *"
17949 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17950 esac
17951
17952
17953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17954 # Files that config.status was made for.
17955 config_files="$ac_config_files"
17956 config_headers="$ac_config_headers"
17957 config_commands="$ac_config_commands"
17958
17959 _ACEOF
17960
17961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17962 ac_cs_usage="\
17963 \`$as_me' instantiates files and other configuration actions
17964 from templates according to the current configuration. Unless the files
17965 and actions are specified as TAGs, all are instantiated by default.
17966
17967 Usage: $0 [OPTION]... [TAG]...
17968
17969 -h, --help print this help, then exit
17970 -V, --version print version number and configuration settings, then exit
17971 --config print configuration, then exit
17972 -q, --quiet, --silent
17973 do not print progress messages
17974 -d, --debug don't remove temporary files
17975 --recheck update $as_me by reconfiguring in the same conditions
17976 --file=FILE[:TEMPLATE]
17977 instantiate the configuration file FILE
17978 --header=FILE[:TEMPLATE]
17979 instantiate the configuration header FILE
17980
17981 Configuration files:
17982 $config_files
17983
17984 Configuration headers:
17985 $config_headers
17986
17987 Configuration commands:
17988 $config_commands
17989
17990 Report bugs to the package provider.
17991 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17992 General help using GNU software: <http://www.gnu.org/gethelp/>."
17993
17994 _ACEOF
17995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17996 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17997 ac_cs_version="\\
17998 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17999 configured by $0, generated by GNU Autoconf 2.69,
18000 with options \\"\$ac_cs_config\\"
18001
18002 Copyright (C) 2012 Free Software Foundation, Inc.
18003 This config.status script is free software; the Free Software Foundation
18004 gives unlimited permission to copy, distribute and modify it."
18005
18006 ac_pwd='$ac_pwd'
18007 srcdir='$srcdir'
18008 INSTALL='$INSTALL'
18009 MKDIR_P='$MKDIR_P'
18010 AWK='$AWK'
18011 test -n "\$AWK" || AWK=awk
18012 _ACEOF
18013
18014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18015 # The default lists apply if the user does not specify any file.
18016 ac_need_defaults=:
18017 while test $# != 0
18018 do
18019 case $1 in
18020 --*=?*)
18021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18022 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18023 ac_shift=:
18024 ;;
18025 --*=)
18026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18027 ac_optarg=
18028 ac_shift=:
18029 ;;
18030 *)
18031 ac_option=$1
18032 ac_optarg=$2
18033 ac_shift=shift
18034 ;;
18035 esac
18036
18037 case $ac_option in
18038 # Handling of the options.
18039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18040 ac_cs_recheck=: ;;
18041 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18042 $as_echo "$ac_cs_version"; exit ;;
18043 --config | --confi | --conf | --con | --co | --c )
18044 $as_echo "$ac_cs_config"; exit ;;
18045 --debug | --debu | --deb | --de | --d | -d )
18046 debug=: ;;
18047 --file | --fil | --fi | --f )
18048 $ac_shift
18049 case $ac_optarg in
18050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18051 '') as_fn_error $? "missing file argument" ;;
18052 esac
18053 as_fn_append CONFIG_FILES " '$ac_optarg'"
18054 ac_need_defaults=false;;
18055 --header | --heade | --head | --hea )
18056 $ac_shift
18057 case $ac_optarg in
18058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18059 esac
18060 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18061 ac_need_defaults=false;;
18062 --he | --h)
18063 # Conflict between --help and --header
18064 as_fn_error $? "ambiguous option: \`$1'
18065 Try \`$0 --help' for more information.";;
18066 --help | --hel | -h )
18067 $as_echo "$ac_cs_usage"; exit ;;
18068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18070 ac_cs_silent=: ;;
18071
18072 # This is an error.
18073 -*) as_fn_error $? "unrecognized option: \`$1'
18074 Try \`$0 --help' for more information." ;;
18075
18076 *) as_fn_append ac_config_targets " $1"
18077 ac_need_defaults=false ;;
18078
18079 esac
18080 shift
18081 done
18082
18083 ac_configure_extra_args=
18084
18085 if $ac_cs_silent; then
18086 exec 6>/dev/null
18087 ac_configure_extra_args="$ac_configure_extra_args --silent"
18088 fi
18089
18090 _ACEOF
18091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18092 if \$ac_cs_recheck; then
18093 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18094 shift
18095 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18096 CONFIG_SHELL='$SHELL'
18097 export CONFIG_SHELL
18098 exec "\$@"
18099 fi
18100
18101 _ACEOF
18102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18103 exec 5>>config.log
18104 {
18105 echo
18106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18107 ## Running $as_me. ##
18108 _ASBOX
18109 $as_echo "$ac_log"
18110 } >&5
18111
18112 _ACEOF
18113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18114 #
18115 # INIT-COMMANDS
18116 #
18117
18118 srcdir="$srcdir"
18119 host="$host"
18120 target="$target"
18121 with_multisubdir="$with_multisubdir"
18122 with_multisrctop="$with_multisrctop"
18123 with_target_subdir="$with_target_subdir"
18124 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18125 multi_basedir="$multi_basedir"
18126 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18127 CC="$CC"
18128 CXX="$CXX"
18129 GFORTRAN="$GFORTRAN"
18130 GDC="$GDC"
18131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18132
18133
18134 # The HP-UX ksh and POSIX shell print the target directory to stdout
18135 # if CDPATH is set.
18136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18137
18138 sed_quote_subst='$sed_quote_subst'
18139 double_quote_subst='$double_quote_subst'
18140 delay_variable_subst='$delay_variable_subst'
18141 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18142 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18143 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18144 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18145 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18146 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18147 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18148 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18149 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18150 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18151 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18152 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18153 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18154 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18155 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18156 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18157 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18158 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18159 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18160 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18161 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18162 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18163 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18164 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18165 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18166 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18167 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18168 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18169 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18170 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18171 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18172 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18173 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18174 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18175 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18176 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18177 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18178 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18179 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18180 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18181 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18182 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18183 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18184 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18185 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18186 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18187 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18188 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18189 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"`'
18190 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18191 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18192 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18193 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18194 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18195 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18196 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18197 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18198 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18199 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18200 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18201 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18202 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18203 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18204 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18205 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18206 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18207 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18208 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18209 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18210 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18211 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18212 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18213 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18214 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18215 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18216 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18217 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18218 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18219 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18220 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18221 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18222 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18223 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18224 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18225 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18226 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18227 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18228 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18229 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18230 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18231 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18232 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18233 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18234 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18235 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18236 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18237 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18238 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18239 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18240 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18241 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18242 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18243 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18244 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18245 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18246 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18247 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18248 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18249 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18250 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18251 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18252 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18253 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18254 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18255 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18256 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18257 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18258 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18259 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18260 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18261 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18262 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18263 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18264 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18265 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18266 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18267 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
18268 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
18269 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
18270 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18271 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
18272 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
18273 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
18274 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
18275 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
18276 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
18277 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
18278 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
18279 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
18280 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18281 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18282 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
18283 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
18284 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
18285 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18286 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18287 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
18288 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18289 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
18290 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18291 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18292 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18293 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
18294 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
18295 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
18296 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
18297 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
18298 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18299 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18300 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18301 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18302 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18303 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18304 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18305 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18306 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18307 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18308 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18309 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18310 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18311 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18312 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18313 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18314 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18315 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18316
18317 LTCC='$LTCC'
18318 LTCFLAGS='$LTCFLAGS'
18319 compiler='$compiler_DEFAULT'
18320
18321 # A function that is used when there is no print builtin or printf.
18322 func_fallback_echo ()
18323 {
18324 eval 'cat <<_LTECHO_EOF
18325 \$1
18326 _LTECHO_EOF'
18327 }
18328
18329 # Quote evaled strings.
18330 for var in SHELL \
18331 ECHO \
18332 SED \
18333 GREP \
18334 EGREP \
18335 FGREP \
18336 LD \
18337 NM \
18338 LN_S \
18339 lt_SP2NL \
18340 lt_NL2SP \
18341 reload_flag \
18342 OBJDUMP \
18343 deplibs_check_method \
18344 file_magic_cmd \
18345 AR \
18346 AR_FLAGS \
18347 STRIP \
18348 RANLIB \
18349 CC \
18350 CFLAGS \
18351 compiler \
18352 lt_cv_sys_global_symbol_pipe \
18353 lt_cv_sys_global_symbol_to_cdecl \
18354 lt_cv_sys_global_symbol_to_c_name_address \
18355 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18356 lt_prog_compiler_no_builtin_flag \
18357 lt_prog_compiler_wl \
18358 lt_prog_compiler_pic \
18359 lt_prog_compiler_static \
18360 lt_cv_prog_compiler_c_o \
18361 need_locks \
18362 DSYMUTIL \
18363 NMEDIT \
18364 LIPO \
18365 OTOOL \
18366 OTOOL64 \
18367 shrext_cmds \
18368 export_dynamic_flag_spec \
18369 whole_archive_flag_spec \
18370 compiler_needs_object \
18371 with_gnu_ld \
18372 allow_undefined_flag \
18373 no_undefined_flag \
18374 hardcode_libdir_flag_spec \
18375 hardcode_libdir_flag_spec_ld \
18376 hardcode_libdir_separator \
18377 fix_srcfile_path \
18378 exclude_expsyms \
18379 include_expsyms \
18380 file_list_spec \
18381 variables_saved_for_relink \
18382 libname_spec \
18383 library_names_spec \
18384 soname_spec \
18385 install_override_mode \
18386 finish_eval \
18387 old_striplib \
18388 striplib \
18389 compiler_lib_search_dirs \
18390 predep_objects \
18391 postdep_objects \
18392 predeps \
18393 postdeps \
18394 compiler_lib_search_path \
18395 LD_FC \
18396 reload_flag_FC \
18397 compiler_FC \
18398 lt_prog_compiler_no_builtin_flag_FC \
18399 lt_prog_compiler_wl_FC \
18400 lt_prog_compiler_pic_FC \
18401 lt_prog_compiler_static_FC \
18402 lt_cv_prog_compiler_c_o_FC \
18403 export_dynamic_flag_spec_FC \
18404 whole_archive_flag_spec_FC \
18405 compiler_needs_object_FC \
18406 with_gnu_ld_FC \
18407 allow_undefined_flag_FC \
18408 no_undefined_flag_FC \
18409 hardcode_libdir_flag_spec_FC \
18410 hardcode_libdir_flag_spec_ld_FC \
18411 hardcode_libdir_separator_FC \
18412 fix_srcfile_path_FC \
18413 exclude_expsyms_FC \
18414 include_expsyms_FC \
18415 file_list_spec_FC \
18416 compiler_lib_search_dirs_FC \
18417 predep_objects_FC \
18418 postdep_objects_FC \
18419 predeps_FC \
18420 postdeps_FC \
18421 compiler_lib_search_path_FC; do
18422 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18423 *[\\\\\\\`\\"\\\$]*)
18424 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18425 ;;
18426 *)
18427 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18428 ;;
18429 esac
18430 done
18431
18432 # Double-quote double-evaled strings.
18433 for var in reload_cmds \
18434 old_postinstall_cmds \
18435 old_postuninstall_cmds \
18436 old_archive_cmds \
18437 extract_expsyms_cmds \
18438 old_archive_from_new_cmds \
18439 old_archive_from_expsyms_cmds \
18440 archive_cmds \
18441 archive_expsym_cmds \
18442 module_cmds \
18443 module_expsym_cmds \
18444 export_symbols_cmds \
18445 prelink_cmds \
18446 postinstall_cmds \
18447 postuninstall_cmds \
18448 finish_cmds \
18449 sys_lib_search_path_spec \
18450 sys_lib_dlsearch_path_spec \
18451 reload_cmds_FC \
18452 old_archive_cmds_FC \
18453 old_archive_from_new_cmds_FC \
18454 old_archive_from_expsyms_cmds_FC \
18455 archive_cmds_FC \
18456 archive_expsym_cmds_FC \
18457 module_cmds_FC \
18458 module_expsym_cmds_FC \
18459 export_symbols_cmds_FC \
18460 prelink_cmds_FC; do
18461 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18462 *[\\\\\\\`\\"\\\$]*)
18463 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18464 ;;
18465 *)
18466 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18467 ;;
18468 esac
18469 done
18470
18471 ac_aux_dir='$ac_aux_dir'
18472 xsi_shell='$xsi_shell'
18473 lt_shell_append='$lt_shell_append'
18474
18475 # See if we are running on zsh, and set the options which allow our
18476 # commands through without removal of \ escapes INIT.
18477 if test -n "\${ZSH_VERSION+set}" ; then
18478 setopt NO_GLOB_SUBST
18479 fi
18480
18481
18482 PACKAGE='$PACKAGE'
18483 VERSION='$VERSION'
18484 TIMESTAMP='$TIMESTAMP'
18485 RM='$RM'
18486 ofile='$ofile'
18487
18488
18489
18490
18491
18492
18493 GCC="$GCC"
18494 CC="$CC"
18495 acx_cv_header_stdint="$acx_cv_header_stdint"
18496 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18497 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18498 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18499 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18500 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18501 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18502 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18503 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18504 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18505 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18506 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18507 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18508 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18509
18510
18511 _ACEOF
18512
18513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18514
18515 # Handling of arguments.
18516 for ac_config_target in $ac_config_targets
18517 do
18518 case $ac_config_target in
18519 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18520 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18521 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18522 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18523 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18524 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18525 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18526 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18527 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18529 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18530 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18531 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18532
18533 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18534 esac
18535 done
18536
18537
18538 # If the user did not use the arguments to specify the items to instantiate,
18539 # then the envvar interface is used. Set only those that are not.
18540 # We use the long form for the default assignment because of an extremely
18541 # bizarre bug on SunOS 4.1.3.
18542 if $ac_need_defaults; then
18543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18544 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18546 fi
18547
18548 # Have a temporary directory for convenience. Make it in the build tree
18549 # simply because there is no reason against having it here, and in addition,
18550 # creating and moving files from /tmp can sometimes cause problems.
18551 # Hook for its removal unless debugging.
18552 # Note that there is a small window in which the directory will not be cleaned:
18553 # after its creation but before its name has been assigned to `$tmp'.
18554 $debug ||
18555 {
18556 tmp= ac_tmp=
18557 trap 'exit_status=$?
18558 : "${ac_tmp:=$tmp}"
18559 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18560 ' 0
18561 trap 'as_fn_exit 1' 1 2 13 15
18562 }
18563 # Create a (secure) tmp directory for tmp files.
18564
18565 {
18566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18567 test -d "$tmp"
18568 } ||
18569 {
18570 tmp=./conf$$-$RANDOM
18571 (umask 077 && mkdir "$tmp")
18572 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18573 ac_tmp=$tmp
18574
18575 # Set up the scripts for CONFIG_FILES section.
18576 # No need to generate them if there are no CONFIG_FILES.
18577 # This happens for instance with `./config.status config.h'.
18578 if test -n "$CONFIG_FILES"; then
18579
18580
18581 ac_cr=`echo X | tr X '\015'`
18582 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18583 # But we know of no other shell where ac_cr would be empty at this
18584 # point, so we can use a bashism as a fallback.
18585 if test "x$ac_cr" = x; then
18586 eval ac_cr=\$\'\\r\'
18587 fi
18588 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18589 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18590 ac_cs_awk_cr='\\r'
18591 else
18592 ac_cs_awk_cr=$ac_cr
18593 fi
18594
18595 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18596 _ACEOF
18597
18598
18599 {
18600 echo "cat >conf$$subs.awk <<_ACEOF" &&
18601 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18602 echo "_ACEOF"
18603 } >conf$$subs.sh ||
18604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18605 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18606 ac_delim='%!_!# '
18607 for ac_last_try in false false false false false :; do
18608 . ./conf$$subs.sh ||
18609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18610
18611 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18612 if test $ac_delim_n = $ac_delim_num; then
18613 break
18614 elif $ac_last_try; then
18615 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18616 else
18617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18618 fi
18619 done
18620 rm -f conf$$subs.sh
18621
18622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18623 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18624 _ACEOF
18625 sed -n '
18626 h
18627 s/^/S["/; s/!.*/"]=/
18628 p
18629 g
18630 s/^[^!]*!//
18631 :repl
18632 t repl
18633 s/'"$ac_delim"'$//
18634 t delim
18635 :nl
18636 h
18637 s/\(.\{148\}\)..*/\1/
18638 t more1
18639 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18640 p
18641 n
18642 b repl
18643 :more1
18644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18645 p
18646 g
18647 s/.\{148\}//
18648 t nl
18649 :delim
18650 h
18651 s/\(.\{148\}\)..*/\1/
18652 t more2
18653 s/["\\]/\\&/g; s/^/"/; s/$/"/
18654 p
18655 b
18656 :more2
18657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18658 p
18659 g
18660 s/.\{148\}//
18661 t delim
18662 ' <conf$$subs.awk | sed '
18663 /^[^""]/{
18664 N
18665 s/\n//
18666 }
18667 ' >>$CONFIG_STATUS || ac_write_fail=1
18668 rm -f conf$$subs.awk
18669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 _ACAWK
18671 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18672 for (key in S) S_is_set[key] = 1
18673 FS = "\a"
18674
18675 }
18676 {
18677 line = $ 0
18678 nfields = split(line, field, "@")
18679 substed = 0
18680 len = length(field[1])
18681 for (i = 2; i < nfields; i++) {
18682 key = field[i]
18683 keylen = length(key)
18684 if (S_is_set[key]) {
18685 value = S[key]
18686 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18687 len += length(value) + length(field[++i])
18688 substed = 1
18689 } else
18690 len += 1 + keylen
18691 }
18692
18693 print line
18694 }
18695
18696 _ACAWK
18697 _ACEOF
18698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18699 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18700 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18701 else
18702 cat
18703 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18704 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18705 _ACEOF
18706
18707 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18708 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18709 # trailing colons and then remove the whole line if VPATH becomes empty
18710 # (actually we leave an empty line to preserve line numbers).
18711 if test "x$srcdir" = x.; then
18712 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18713 h
18714 s///
18715 s/^/:/
18716 s/[ ]*$/:/
18717 s/:\$(srcdir):/:/g
18718 s/:\${srcdir}:/:/g
18719 s/:@srcdir@:/:/g
18720 s/^:*//
18721 s/:*$//
18722 x
18723 s/\(=[ ]*\).*/\1/
18724 G
18725 s/\n//
18726 s/^[^=]*=[ ]*$//
18727 }'
18728 fi
18729
18730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18731 fi # test -n "$CONFIG_FILES"
18732
18733 # Set up the scripts for CONFIG_HEADERS section.
18734 # No need to generate them if there are no CONFIG_HEADERS.
18735 # This happens for instance with `./config.status Makefile'.
18736 if test -n "$CONFIG_HEADERS"; then
18737 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18738 BEGIN {
18739 _ACEOF
18740
18741 # Transform confdefs.h into an awk script `defines.awk', embedded as
18742 # here-document in config.status, that substitutes the proper values into
18743 # config.h.in to produce config.h.
18744
18745 # Create a delimiter string that does not exist in confdefs.h, to ease
18746 # handling of long lines.
18747 ac_delim='%!_!# '
18748 for ac_last_try in false false :; do
18749 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18750 if test -z "$ac_tt"; then
18751 break
18752 elif $ac_last_try; then
18753 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18754 else
18755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18756 fi
18757 done
18758
18759 # For the awk script, D is an array of macro values keyed by name,
18760 # likewise P contains macro parameters if any. Preserve backslash
18761 # newline sequences.
18762
18763 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18764 sed -n '
18765 s/.\{148\}/&'"$ac_delim"'/g
18766 t rset
18767 :rset
18768 s/^[ ]*#[ ]*define[ ][ ]*/ /
18769 t def
18770 d
18771 :def
18772 s/\\$//
18773 t bsnl
18774 s/["\\]/\\&/g
18775 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18776 D["\1"]=" \3"/p
18777 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18778 d
18779 :bsnl
18780 s/["\\]/\\&/g
18781 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18782 D["\1"]=" \3\\\\\\n"\\/p
18783 t cont
18784 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18785 t cont
18786 d
18787 :cont
18788 n
18789 s/.\{148\}/&'"$ac_delim"'/g
18790 t clear
18791 :clear
18792 s/\\$//
18793 t bsnlc
18794 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18795 d
18796 :bsnlc
18797 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18798 b cont
18799 ' <confdefs.h | sed '
18800 s/'"$ac_delim"'/"\\\
18801 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18802
18803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18804 for (key in D) D_is_set[key] = 1
18805 FS = "\a"
18806 }
18807 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18808 line = \$ 0
18809 split(line, arg, " ")
18810 if (arg[1] == "#") {
18811 defundef = arg[2]
18812 mac1 = arg[3]
18813 } else {
18814 defundef = substr(arg[1], 2)
18815 mac1 = arg[2]
18816 }
18817 split(mac1, mac2, "(") #)
18818 macro = mac2[1]
18819 prefix = substr(line, 1, index(line, defundef) - 1)
18820 if (D_is_set[macro]) {
18821 # Preserve the white space surrounding the "#".
18822 print prefix "define", macro P[macro] D[macro]
18823 next
18824 } else {
18825 # Replace #undef with comments. This is necessary, for example,
18826 # in the case of _POSIX_SOURCE, which is predefined and required
18827 # on some systems where configure will not decide to define it.
18828 if (defundef == "undef") {
18829 print "/*", prefix defundef, macro, "*/"
18830 next
18831 }
18832 }
18833 }
18834 { print }
18835 _ACAWK
18836 _ACEOF
18837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18838 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18839 fi # test -n "$CONFIG_HEADERS"
18840
18841
18842 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18843 shift
18844 for ac_tag
18845 do
18846 case $ac_tag in
18847 :[FHLC]) ac_mode=$ac_tag; continue;;
18848 esac
18849 case $ac_mode$ac_tag in
18850 :[FHL]*:*);;
18851 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18852 :[FH]-) ac_tag=-:-;;
18853 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18854 esac
18855 ac_save_IFS=$IFS
18856 IFS=:
18857 set x $ac_tag
18858 IFS=$ac_save_IFS
18859 shift
18860 ac_file=$1
18861 shift
18862
18863 case $ac_mode in
18864 :L) ac_source=$1;;
18865 :[FH])
18866 ac_file_inputs=
18867 for ac_f
18868 do
18869 case $ac_f in
18870 -) ac_f="$ac_tmp/stdin";;
18871 *) # Look for the file first in the build tree, then in the source tree
18872 # (if the path is not absolute). The absolute path cannot be DOS-style,
18873 # because $ac_f cannot contain `:'.
18874 test -f "$ac_f" ||
18875 case $ac_f in
18876 [\\/$]*) false;;
18877 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18878 esac ||
18879 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18880 esac
18881 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18882 as_fn_append ac_file_inputs " '$ac_f'"
18883 done
18884
18885 # Let's still pretend it is `configure' which instantiates (i.e., don't
18886 # use $as_me), people would be surprised to read:
18887 # /* config.h. Generated by config.status. */
18888 configure_input='Generated from '`
18889 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18890 `' by configure.'
18891 if test x"$ac_file" != x-; then
18892 configure_input="$ac_file. $configure_input"
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18894 $as_echo "$as_me: creating $ac_file" >&6;}
18895 fi
18896 # Neutralize special characters interpreted by sed in replacement strings.
18897 case $configure_input in #(
18898 *\&* | *\|* | *\\* )
18899 ac_sed_conf_input=`$as_echo "$configure_input" |
18900 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18901 *) ac_sed_conf_input=$configure_input;;
18902 esac
18903
18904 case $ac_tag in
18905 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18906 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18907 esac
18908 ;;
18909 esac
18910
18911 ac_dir=`$as_dirname -- "$ac_file" ||
18912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18913 X"$ac_file" : 'X\(//\)[^/]' \| \
18914 X"$ac_file" : 'X\(//\)$' \| \
18915 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18916 $as_echo X"$ac_file" |
18917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18918 s//\1/
18919 q
18920 }
18921 /^X\(\/\/\)[^/].*/{
18922 s//\1/
18923 q
18924 }
18925 /^X\(\/\/\)$/{
18926 s//\1/
18927 q
18928 }
18929 /^X\(\/\).*/{
18930 s//\1/
18931 q
18932 }
18933 s/.*/./; q'`
18934 as_dir="$ac_dir"; as_fn_mkdir_p
18935 ac_builddir=.
18936
18937 case "$ac_dir" in
18938 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18939 *)
18940 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18941 # A ".." for each directory in $ac_dir_suffix.
18942 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18943 case $ac_top_builddir_sub in
18944 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18945 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18946 esac ;;
18947 esac
18948 ac_abs_top_builddir=$ac_pwd
18949 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18950 # for backward compatibility:
18951 ac_top_builddir=$ac_top_build_prefix
18952
18953 case $srcdir in
18954 .) # We are building in place.
18955 ac_srcdir=.
18956 ac_top_srcdir=$ac_top_builddir_sub
18957 ac_abs_top_srcdir=$ac_pwd ;;
18958 [\\/]* | ?:[\\/]* ) # Absolute name.
18959 ac_srcdir=$srcdir$ac_dir_suffix;
18960 ac_top_srcdir=$srcdir
18961 ac_abs_top_srcdir=$srcdir ;;
18962 *) # Relative name.
18963 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18964 ac_top_srcdir=$ac_top_build_prefix$srcdir
18965 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18966 esac
18967 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18968
18969
18970 case $ac_mode in
18971 :F)
18972 #
18973 # CONFIG_FILE
18974 #
18975
18976 case $INSTALL in
18977 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18978 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18979 esac
18980 ac_MKDIR_P=$MKDIR_P
18981 case $MKDIR_P in
18982 [\\/$]* | ?:[\\/]* ) ;;
18983 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18984 esac
18985 _ACEOF
18986
18987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18988 # If the template does not know about datarootdir, expand it.
18989 # FIXME: This hack should be removed a few years after 2.60.
18990 ac_datarootdir_hack=; ac_datarootdir_seen=
18991 ac_sed_dataroot='
18992 /datarootdir/ {
18993 p
18994 q
18995 }
18996 /@datadir@/p
18997 /@docdir@/p
18998 /@infodir@/p
18999 /@localedir@/p
19000 /@mandir@/p'
19001 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19002 *datarootdir*) ac_datarootdir_seen=yes;;
19003 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19005 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19006 _ACEOF
19007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19008 ac_datarootdir_hack='
19009 s&@datadir@&$datadir&g
19010 s&@docdir@&$docdir&g
19011 s&@infodir@&$infodir&g
19012 s&@localedir@&$localedir&g
19013 s&@mandir@&$mandir&g
19014 s&\\\${datarootdir}&$datarootdir&g' ;;
19015 esac
19016 _ACEOF
19017
19018 # Neutralize VPATH when `$srcdir' = `.'.
19019 # Shell code in configure.ac might set extrasub.
19020 # FIXME: do we really want to maintain this feature?
19021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19022 ac_sed_extra="$ac_vpsub
19023 $extrasub
19024 _ACEOF
19025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19026 :t
19027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19028 s|@configure_input@|$ac_sed_conf_input|;t t
19029 s&@top_builddir@&$ac_top_builddir_sub&;t t
19030 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19031 s&@srcdir@&$ac_srcdir&;t t
19032 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19033 s&@top_srcdir@&$ac_top_srcdir&;t t
19034 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19035 s&@builddir@&$ac_builddir&;t t
19036 s&@abs_builddir@&$ac_abs_builddir&;t t
19037 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19038 s&@INSTALL@&$ac_INSTALL&;t t
19039 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19040 $ac_datarootdir_hack
19041 "
19042 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19043 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19044
19045 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19046 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19047 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19048 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19050 which seems to be undefined. Please make sure it is defined" >&5
19051 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19052 which seems to be undefined. Please make sure it is defined" >&2;}
19053
19054 rm -f "$ac_tmp/stdin"
19055 case $ac_file in
19056 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19057 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19058 esac \
19059 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19060 ;;
19061 :H)
19062 #
19063 # CONFIG_HEADER
19064 #
19065 if test x"$ac_file" != x-; then
19066 {
19067 $as_echo "/* $configure_input */" \
19068 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19069 } >"$ac_tmp/config.h" \
19070 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19071 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19073 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19074 else
19075 rm -f "$ac_file"
19076 mv "$ac_tmp/config.h" "$ac_file" \
19077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19078 fi
19079 else
19080 $as_echo "/* $configure_input */" \
19081 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19082 || as_fn_error $? "could not create -" "$LINENO" 5
19083 fi
19084 # Compute "$ac_file"'s index in $config_headers.
19085 _am_arg="$ac_file"
19086 _am_stamp_count=1
19087 for _am_header in $config_headers :; do
19088 case $_am_header in
19089 $_am_arg | $_am_arg:* )
19090 break ;;
19091 * )
19092 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19093 esac
19094 done
19095 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19096 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19097 X"$_am_arg" : 'X\(//\)[^/]' \| \
19098 X"$_am_arg" : 'X\(//\)$' \| \
19099 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19100 $as_echo X"$_am_arg" |
19101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19102 s//\1/
19103 q
19104 }
19105 /^X\(\/\/\)[^/].*/{
19106 s//\1/
19107 q
19108 }
19109 /^X\(\/\/\)$/{
19110 s//\1/
19111 q
19112 }
19113 /^X\(\/\).*/{
19114 s//\1/
19115 q
19116 }
19117 s/.*/./; q'`/stamp-h$_am_stamp_count
19118 ;;
19119
19120 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19121 $as_echo "$as_me: executing $ac_file commands" >&6;}
19122 ;;
19123 esac
19124
19125
19126 case $ac_file$ac_mode in
19127 "default-1":C)
19128 # Only add multilib support code if we just rebuilt the top-level
19129 # Makefile.
19130 case " $CONFIG_FILES " in
19131 *" Makefile "*)
19132 ac_file=Makefile . ${multi_basedir}/config-ml.in
19133 ;;
19134 esac ;;
19135 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19136 # Older Autoconf quotes --file arguments for eval, but not when files
19137 # are listed without --file. Let's play safe and only enable the eval
19138 # if we detect the quoting.
19139 case $CONFIG_FILES in
19140 *\'*) eval set x "$CONFIG_FILES" ;;
19141 *) set x $CONFIG_FILES ;;
19142 esac
19143 shift
19144 for mf
19145 do
19146 # Strip MF so we end up with the name of the file.
19147 mf=`echo "$mf" | sed -e 's/:.*$//'`
19148 # Check whether this is an Automake generated Makefile or not.
19149 # We used to match only the files named 'Makefile.in', but
19150 # some people rename them; so instead we look at the file content.
19151 # Grep'ing the first line is not enough: some people post-process
19152 # each Makefile.in and add a new line on top of each file to say so.
19153 # Grep'ing the whole file is not good either: AIX grep has a line
19154 # limit of 2048, but all sed's we know have understand at least 4000.
19155 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19156 dirpart=`$as_dirname -- "$mf" ||
19157 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19158 X"$mf" : 'X\(//\)[^/]' \| \
19159 X"$mf" : 'X\(//\)$' \| \
19160 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19161 $as_echo X"$mf" |
19162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19163 s//\1/
19164 q
19165 }
19166 /^X\(\/\/\)[^/].*/{
19167 s//\1/
19168 q
19169 }
19170 /^X\(\/\/\)$/{
19171 s//\1/
19172 q
19173 }
19174 /^X\(\/\).*/{
19175 s//\1/
19176 q
19177 }
19178 s/.*/./; q'`
19179 else
19180 continue
19181 fi
19182 # Extract the definition of DEPDIR, am__include, and am__quote
19183 # from the Makefile without running 'make'.
19184 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19185 test -z "$DEPDIR" && continue
19186 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19187 test -z "$am__include" && continue
19188 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19189 # Find all dependency output files, they are included files with
19190 # $(DEPDIR) in their names. We invoke sed twice because it is the
19191 # simplest approach to changing $(DEPDIR) to its actual value in the
19192 # expansion.
19193 for file in `sed -n "
19194 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19195 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19196 # Make sure the directory exists.
19197 test -f "$dirpart/$file" && continue
19198 fdir=`$as_dirname -- "$file" ||
19199 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19200 X"$file" : 'X\(//\)[^/]' \| \
19201 X"$file" : 'X\(//\)$' \| \
19202 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19203 $as_echo X"$file" |
19204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19205 s//\1/
19206 q
19207 }
19208 /^X\(\/\/\)[^/].*/{
19209 s//\1/
19210 q
19211 }
19212 /^X\(\/\/\)$/{
19213 s//\1/
19214 q
19215 }
19216 /^X\(\/\).*/{
19217 s//\1/
19218 q
19219 }
19220 s/.*/./; q'`
19221 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19222 # echo "creating $dirpart/$file"
19223 echo '# dummy' > "$dirpart/$file"
19224 done
19225 done
19226 }
19227 ;;
19228 "libtool":C)
19229
19230 # See if we are running on zsh, and set the options which allow our
19231 # commands through without removal of \ escapes.
19232 if test -n "${ZSH_VERSION+set}" ; then
19233 setopt NO_GLOB_SUBST
19234 fi
19235
19236 cfgfile="${ofile}T"
19237 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19238 $RM "$cfgfile"
19239
19240 cat <<_LT_EOF >> "$cfgfile"
19241 #! $SHELL
19242
19243 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19244 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19246 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19247 #
19248 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19249 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19250 # Written by Gordon Matzigkeit, 1996
19251 #
19252 # This file is part of GNU Libtool.
19253 #
19254 # GNU Libtool is free software; you can redistribute it and/or
19255 # modify it under the terms of the GNU General Public License as
19256 # published by the Free Software Foundation; either version 2 of
19257 # the License, or (at your option) any later version.
19258 #
19259 # As a special exception to the GNU General Public License,
19260 # if you distribute this file as part of a program or library that
19261 # is built using GNU Libtool, you may include this file under the
19262 # same distribution terms that you use for the rest of that program.
19263 #
19264 # GNU Libtool is distributed in the hope that it will be useful,
19265 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19266 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19267 # GNU General Public License for more details.
19268 #
19269 # You should have received a copy of the GNU General Public License
19270 # along with GNU Libtool; see the file COPYING. If not, a copy
19271 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19272 # obtained by writing to the Free Software Foundation, Inc.,
19273 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19274
19275
19276 # The names of the tagged configurations supported by this script.
19277 available_tags="FC "
19278
19279 # ### BEGIN LIBTOOL CONFIG
19280
19281 # Which release of libtool.m4 was used?
19282 macro_version=$macro_version
19283 macro_revision=$macro_revision
19284
19285 # Whether or not to build shared libraries.
19286 build_libtool_libs=$enable_shared
19287
19288 # Whether or not to build static libraries.
19289 build_old_libs=$enable_static
19290
19291 # What type of objects to build.
19292 pic_mode=$pic_mode
19293
19294 # Whether or not to optimize for fast installation.
19295 fast_install=$enable_fast_install
19296
19297 # Shell to use when invoking shell scripts.
19298 SHELL=$lt_SHELL
19299
19300 # An echo program that protects backslashes.
19301 ECHO=$lt_ECHO
19302
19303 # The host system.
19304 host_alias=$host_alias
19305 host=$host
19306 host_os=$host_os
19307
19308 # The build system.
19309 build_alias=$build_alias
19310 build=$build
19311 build_os=$build_os
19312
19313 # A sed program that does not truncate output.
19314 SED=$lt_SED
19315
19316 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19317 Xsed="\$SED -e 1s/^X//"
19318
19319 # A grep program that handles long lines.
19320 GREP=$lt_GREP
19321
19322 # An ERE matcher.
19323 EGREP=$lt_EGREP
19324
19325 # A literal string matcher.
19326 FGREP=$lt_FGREP
19327
19328 # A BSD- or MS-compatible name lister.
19329 NM=$lt_NM
19330
19331 # Whether we need soft or hard links.
19332 LN_S=$lt_LN_S
19333
19334 # What is the maximum length of a command?
19335 max_cmd_len=$max_cmd_len
19336
19337 # Object file suffix (normally "o").
19338 objext=$ac_objext
19339
19340 # Executable file suffix (normally "").
19341 exeext=$exeext
19342
19343 # whether the shell understands "unset".
19344 lt_unset=$lt_unset
19345
19346 # turn spaces into newlines.
19347 SP2NL=$lt_lt_SP2NL
19348
19349 # turn newlines into spaces.
19350 NL2SP=$lt_lt_NL2SP
19351
19352 # An object symbol dumper.
19353 OBJDUMP=$lt_OBJDUMP
19354
19355 # Method to check whether dependent libraries are shared objects.
19356 deplibs_check_method=$lt_deplibs_check_method
19357
19358 # Command to use when deplibs_check_method == "file_magic".
19359 file_magic_cmd=$lt_file_magic_cmd
19360
19361 # The archiver.
19362 AR=$lt_AR
19363 AR_FLAGS=$lt_AR_FLAGS
19364
19365 # A symbol stripping program.
19366 STRIP=$lt_STRIP
19367
19368 # Commands used to install an old-style archive.
19369 RANLIB=$lt_RANLIB
19370 old_postinstall_cmds=$lt_old_postinstall_cmds
19371 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19372
19373 # Whether to use a lock for old archive extraction.
19374 lock_old_archive_extraction=$lock_old_archive_extraction
19375
19376 # A C compiler.
19377 LTCC=$lt_CC
19378
19379 # LTCC compiler flags.
19380 LTCFLAGS=$lt_CFLAGS
19381
19382 # Take the output of nm and produce a listing of raw symbols and C names.
19383 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19384
19385 # Transform the output of nm in a proper C declaration.
19386 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19387
19388 # Transform the output of nm in a C name address pair.
19389 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19390
19391 # Transform the output of nm in a C name address pair when lib prefix is needed.
19392 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19393
19394 # The name of the directory that contains temporary libtool files.
19395 objdir=$objdir
19396
19397 # Used to examine libraries when file_magic_cmd begins with "file".
19398 MAGIC_CMD=$MAGIC_CMD
19399
19400 # Must we lock files when doing compilation?
19401 need_locks=$lt_need_locks
19402
19403 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19404 DSYMUTIL=$lt_DSYMUTIL
19405
19406 # Tool to change global to local symbols on Mac OS X.
19407 NMEDIT=$lt_NMEDIT
19408
19409 # Tool to manipulate fat objects and archives on Mac OS X.
19410 LIPO=$lt_LIPO
19411
19412 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19413 OTOOL=$lt_OTOOL
19414
19415 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19416 OTOOL64=$lt_OTOOL64
19417
19418 # Old archive suffix (normally "a").
19419 libext=$libext
19420
19421 # Shared library suffix (normally ".so").
19422 shrext_cmds=$lt_shrext_cmds
19423
19424 # The commands to extract the exported symbol list from a shared archive.
19425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19426
19427 # Variables whose values should be saved in libtool wrapper scripts and
19428 # restored at link time.
19429 variables_saved_for_relink=$lt_variables_saved_for_relink
19430
19431 # Do we need the "lib" prefix for modules?
19432 need_lib_prefix=$need_lib_prefix
19433
19434 # Do we need a version for libraries?
19435 need_version=$need_version
19436
19437 # Library versioning type.
19438 version_type=$version_type
19439
19440 # Shared library runtime path variable.
19441 runpath_var=$runpath_var
19442
19443 # Shared library path variable.
19444 shlibpath_var=$shlibpath_var
19445
19446 # Is shlibpath searched before the hard-coded library search path?
19447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19448
19449 # Format of library name prefix.
19450 libname_spec=$lt_libname_spec
19451
19452 # List of archive names. First name is the real one, the rest are links.
19453 # The last name is the one that the linker finds with -lNAME
19454 library_names_spec=$lt_library_names_spec
19455
19456 # The coded name of the library, if different from the real name.
19457 soname_spec=$lt_soname_spec
19458
19459 # Permission mode override for installation of shared libraries.
19460 install_override_mode=$lt_install_override_mode
19461
19462 # Command to use after installation of a shared archive.
19463 postinstall_cmds=$lt_postinstall_cmds
19464
19465 # Command to use after uninstallation of a shared archive.
19466 postuninstall_cmds=$lt_postuninstall_cmds
19467
19468 # Commands used to finish a libtool library installation in a directory.
19469 finish_cmds=$lt_finish_cmds
19470
19471 # As "finish_cmds", except a single script fragment to be evaled but
19472 # not shown.
19473 finish_eval=$lt_finish_eval
19474
19475 # Whether we should hardcode library paths into libraries.
19476 hardcode_into_libs=$hardcode_into_libs
19477
19478 # Compile-time system search path for libraries.
19479 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19480
19481 # Run-time system search path for libraries.
19482 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19483
19484 # Whether dlopen is supported.
19485 dlopen_support=$enable_dlopen
19486
19487 # Whether dlopen of programs is supported.
19488 dlopen_self=$enable_dlopen_self
19489
19490 # Whether dlopen of statically linked programs is supported.
19491 dlopen_self_static=$enable_dlopen_self_static
19492
19493 # Commands to strip libraries.
19494 old_striplib=$lt_old_striplib
19495 striplib=$lt_striplib
19496
19497
19498 # The linker used to build libraries.
19499 LD=$lt_LD
19500
19501 # How to create reloadable object files.
19502 reload_flag=$lt_reload_flag
19503 reload_cmds=$lt_reload_cmds
19504
19505 # Commands used to build an old-style archive.
19506 old_archive_cmds=$lt_old_archive_cmds
19507
19508 # A language specific compiler.
19509 CC=$lt_compiler
19510
19511 # Is the compiler the GNU compiler?
19512 with_gcc=$GCC
19513
19514 # Compiler flag to turn off builtin functions.
19515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19516
19517 # How to pass a linker flag through the compiler.
19518 wl=$lt_lt_prog_compiler_wl
19519
19520 # Additional compiler flags for building library objects.
19521 pic_flag=$lt_lt_prog_compiler_pic
19522
19523 # Compiler flag to prevent dynamic linking.
19524 link_static_flag=$lt_lt_prog_compiler_static
19525
19526 # Does compiler simultaneously support -c and -o options?
19527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19528
19529 # Whether or not to add -lc for building shared libraries.
19530 build_libtool_need_lc=$archive_cmds_need_lc
19531
19532 # Whether or not to disallow shared libs when runtime libs are static.
19533 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19534
19535 # Compiler flag to allow reflexive dlopens.
19536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19537
19538 # Compiler flag to generate shared objects directly from archives.
19539 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19540
19541 # Whether the compiler copes with passing no objects directly.
19542 compiler_needs_object=$lt_compiler_needs_object
19543
19544 # Create an old-style archive from a shared archive.
19545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19546
19547 # Create a temporary old-style archive to link instead of a shared archive.
19548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19549
19550 # Commands used to build a shared archive.
19551 archive_cmds=$lt_archive_cmds
19552 archive_expsym_cmds=$lt_archive_expsym_cmds
19553
19554 # Commands used to build a loadable module if different from building
19555 # a shared archive.
19556 module_cmds=$lt_module_cmds
19557 module_expsym_cmds=$lt_module_expsym_cmds
19558
19559 # Whether we are building with GNU ld or not.
19560 with_gnu_ld=$lt_with_gnu_ld
19561
19562 # Flag that allows shared libraries with undefined symbols to be built.
19563 allow_undefined_flag=$lt_allow_undefined_flag
19564
19565 # Flag that enforces no undefined symbols.
19566 no_undefined_flag=$lt_no_undefined_flag
19567
19568 # Flag to hardcode \$libdir into a binary during linking.
19569 # This must work even if \$libdir does not exist
19570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19571
19572 # If ld is used when linking, flag to hardcode \$libdir into a binary
19573 # during linking. This must work even if \$libdir does not exist.
19574 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19575
19576 # Whether we need a single "-rpath" flag with a separated argument.
19577 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19578
19579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19580 # DIR into the resulting binary.
19581 hardcode_direct=$hardcode_direct
19582
19583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19584 # DIR into the resulting binary and the resulting library dependency is
19585 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19586 # library is relocated.
19587 hardcode_direct_absolute=$hardcode_direct_absolute
19588
19589 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19590 # into the resulting binary.
19591 hardcode_minus_L=$hardcode_minus_L
19592
19593 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19594 # into the resulting binary.
19595 hardcode_shlibpath_var=$hardcode_shlibpath_var
19596
19597 # Set to "yes" if building a shared library automatically hardcodes DIR
19598 # into the library and all subsequent libraries and executables linked
19599 # against it.
19600 hardcode_automatic=$hardcode_automatic
19601
19602 # Set to yes if linker adds runtime paths of dependent libraries
19603 # to runtime path list.
19604 inherit_rpath=$inherit_rpath
19605
19606 # Whether libtool must link a program against all its dependency libraries.
19607 link_all_deplibs=$link_all_deplibs
19608
19609 # Fix the shell variable \$srcfile for the compiler.
19610 fix_srcfile_path=$lt_fix_srcfile_path
19611
19612 # Set to "yes" if exported symbols are required.
19613 always_export_symbols=$always_export_symbols
19614
19615 # The commands to list exported symbols.
19616 export_symbols_cmds=$lt_export_symbols_cmds
19617
19618 # Symbols that should not be listed in the preloaded symbols.
19619 exclude_expsyms=$lt_exclude_expsyms
19620
19621 # Symbols that must always be exported.
19622 include_expsyms=$lt_include_expsyms
19623
19624 # Commands necessary for linking programs (against libraries) with templates.
19625 prelink_cmds=$lt_prelink_cmds
19626
19627 # Specify filename containing input files.
19628 file_list_spec=$lt_file_list_spec
19629
19630 # How to hardcode a shared library path into an executable.
19631 hardcode_action=$hardcode_action
19632
19633 # The directories searched by this compiler when creating a shared library.
19634 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19635
19636 # Dependencies to place before and after the objects being linked to
19637 # create a shared library.
19638 predep_objects=$lt_predep_objects
19639 postdep_objects=$lt_postdep_objects
19640 predeps=$lt_predeps
19641 postdeps=$lt_postdeps
19642
19643 # The library search path used internally by the compiler when linking
19644 # a shared library.
19645 compiler_lib_search_path=$lt_compiler_lib_search_path
19646
19647 # ### END LIBTOOL CONFIG
19648
19649 _LT_EOF
19650
19651 case $host_os in
19652 aix3*)
19653 cat <<\_LT_EOF >> "$cfgfile"
19654 # AIX sometimes has problems with the GCC collect2 program. For some
19655 # reason, if we set the COLLECT_NAMES environment variable, the problems
19656 # vanish in a puff of smoke.
19657 if test "X${COLLECT_NAMES+set}" != Xset; then
19658 COLLECT_NAMES=
19659 export COLLECT_NAMES
19660 fi
19661 _LT_EOF
19662 ;;
19663 esac
19664
19665
19666 ltmain="$ac_aux_dir/ltmain.sh"
19667
19668
19669 # We use sed instead of cat because bash on DJGPP gets confused if
19670 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19671 # text mode, it properly converts lines to CR/LF. This bash problem
19672 # is reportedly fixed, but why not run on old versions too?
19673 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19674 || (rm -f "$cfgfile"; exit 1)
19675
19676 case $xsi_shell in
19677 yes)
19678 cat << \_LT_EOF >> "$cfgfile"
19679
19680 # func_dirname file append nondir_replacement
19681 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19682 # otherwise set result to NONDIR_REPLACEMENT.
19683 func_dirname ()
19684 {
19685 case ${1} in
19686 */*) func_dirname_result="${1%/*}${2}" ;;
19687 * ) func_dirname_result="${3}" ;;
19688 esac
19689 }
19690
19691 # func_basename file
19692 func_basename ()
19693 {
19694 func_basename_result="${1##*/}"
19695 }
19696
19697 # func_dirname_and_basename file append nondir_replacement
19698 # perform func_basename and func_dirname in a single function
19699 # call:
19700 # dirname: Compute the dirname of FILE. If nonempty,
19701 # add APPEND to the result, otherwise set result
19702 # to NONDIR_REPLACEMENT.
19703 # value returned in "$func_dirname_result"
19704 # basename: Compute filename of FILE.
19705 # value retuned in "$func_basename_result"
19706 # Implementation must be kept synchronized with func_dirname
19707 # and func_basename. For efficiency, we do not delegate to
19708 # those functions but instead duplicate the functionality here.
19709 func_dirname_and_basename ()
19710 {
19711 case ${1} in
19712 */*) func_dirname_result="${1%/*}${2}" ;;
19713 * ) func_dirname_result="${3}" ;;
19714 esac
19715 func_basename_result="${1##*/}"
19716 }
19717
19718 # func_stripname prefix suffix name
19719 # strip PREFIX and SUFFIX off of NAME.
19720 # PREFIX and SUFFIX must not contain globbing or regex special
19721 # characters, hashes, percent signs, but SUFFIX may contain a leading
19722 # dot (in which case that matches only a dot).
19723 func_stripname ()
19724 {
19725 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19726 # positional parameters, so assign one to ordinary parameter first.
19727 func_stripname_result=${3}
19728 func_stripname_result=${func_stripname_result#"${1}"}
19729 func_stripname_result=${func_stripname_result%"${2}"}
19730 }
19731
19732 # func_opt_split
19733 func_opt_split ()
19734 {
19735 func_opt_split_opt=${1%%=*}
19736 func_opt_split_arg=${1#*=}
19737 }
19738
19739 # func_lo2o object
19740 func_lo2o ()
19741 {
19742 case ${1} in
19743 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19744 *) func_lo2o_result=${1} ;;
19745 esac
19746 }
19747
19748 # func_xform libobj-or-source
19749 func_xform ()
19750 {
19751 func_xform_result=${1%.*}.lo
19752 }
19753
19754 # func_arith arithmetic-term...
19755 func_arith ()
19756 {
19757 func_arith_result=$(( $* ))
19758 }
19759
19760 # func_len string
19761 # STRING may not start with a hyphen.
19762 func_len ()
19763 {
19764 func_len_result=${#1}
19765 }
19766
19767 _LT_EOF
19768 ;;
19769 *) # Bourne compatible functions.
19770 cat << \_LT_EOF >> "$cfgfile"
19771
19772 # func_dirname file append nondir_replacement
19773 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19774 # otherwise set result to NONDIR_REPLACEMENT.
19775 func_dirname ()
19776 {
19777 # Extract subdirectory from the argument.
19778 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19779 if test "X$func_dirname_result" = "X${1}"; then
19780 func_dirname_result="${3}"
19781 else
19782 func_dirname_result="$func_dirname_result${2}"
19783 fi
19784 }
19785
19786 # func_basename file
19787 func_basename ()
19788 {
19789 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19790 }
19791
19792
19793 # func_stripname prefix suffix name
19794 # strip PREFIX and SUFFIX off of NAME.
19795 # PREFIX and SUFFIX must not contain globbing or regex special
19796 # characters, hashes, percent signs, but SUFFIX may contain a leading
19797 # dot (in which case that matches only a dot).
19798 # func_strip_suffix prefix name
19799 func_stripname ()
19800 {
19801 case ${2} in
19802 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19803 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19804 esac
19805 }
19806
19807 # sed scripts:
19808 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19809 my_sed_long_arg='1s/^-[^=]*=//'
19810
19811 # func_opt_split
19812 func_opt_split ()
19813 {
19814 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19815 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19816 }
19817
19818 # func_lo2o object
19819 func_lo2o ()
19820 {
19821 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19822 }
19823
19824 # func_xform libobj-or-source
19825 func_xform ()
19826 {
19827 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19828 }
19829
19830 # func_arith arithmetic-term...
19831 func_arith ()
19832 {
19833 func_arith_result=`expr "$@"`
19834 }
19835
19836 # func_len string
19837 # STRING may not start with a hyphen.
19838 func_len ()
19839 {
19840 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19841 }
19842
19843 _LT_EOF
19844 esac
19845
19846 case $lt_shell_append in
19847 yes)
19848 cat << \_LT_EOF >> "$cfgfile"
19849
19850 # func_append var value
19851 # Append VALUE to the end of shell variable VAR.
19852 func_append ()
19853 {
19854 eval "$1+=\$2"
19855 }
19856 _LT_EOF
19857 ;;
19858 *)
19859 cat << \_LT_EOF >> "$cfgfile"
19860
19861 # func_append var value
19862 # Append VALUE to the end of shell variable VAR.
19863 func_append ()
19864 {
19865 eval "$1=\$$1\$2"
19866 }
19867
19868 _LT_EOF
19869 ;;
19870 esac
19871
19872
19873 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19874 || (rm -f "$cfgfile"; exit 1)
19875
19876 mv -f "$cfgfile" "$ofile" ||
19877 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19878 chmod +x "$ofile"
19879
19880
19881 cat <<_LT_EOF >> "$ofile"
19882
19883 # ### BEGIN LIBTOOL TAG CONFIG: FC
19884
19885 # The linker used to build libraries.
19886 LD=$lt_LD_FC
19887
19888 # How to create reloadable object files.
19889 reload_flag=$lt_reload_flag_FC
19890 reload_cmds=$lt_reload_cmds_FC
19891
19892 # Commands used to build an old-style archive.
19893 old_archive_cmds=$lt_old_archive_cmds_FC
19894
19895 # A language specific compiler.
19896 CC=$lt_compiler_FC
19897
19898 # Is the compiler the GNU compiler?
19899 with_gcc=$GCC_FC
19900
19901 # Compiler flag to turn off builtin functions.
19902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19903
19904 # How to pass a linker flag through the compiler.
19905 wl=$lt_lt_prog_compiler_wl_FC
19906
19907 # Additional compiler flags for building library objects.
19908 pic_flag=$lt_lt_prog_compiler_pic_FC
19909
19910 # Compiler flag to prevent dynamic linking.
19911 link_static_flag=$lt_lt_prog_compiler_static_FC
19912
19913 # Does compiler simultaneously support -c and -o options?
19914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19915
19916 # Whether or not to add -lc for building shared libraries.
19917 build_libtool_need_lc=$archive_cmds_need_lc_FC
19918
19919 # Whether or not to disallow shared libs when runtime libs are static.
19920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19921
19922 # Compiler flag to allow reflexive dlopens.
19923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19924
19925 # Compiler flag to generate shared objects directly from archives.
19926 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19927
19928 # Whether the compiler copes with passing no objects directly.
19929 compiler_needs_object=$lt_compiler_needs_object_FC
19930
19931 # Create an old-style archive from a shared archive.
19932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19933
19934 # Create a temporary old-style archive to link instead of a shared archive.
19935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19936
19937 # Commands used to build a shared archive.
19938 archive_cmds=$lt_archive_cmds_FC
19939 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19940
19941 # Commands used to build a loadable module if different from building
19942 # a shared archive.
19943 module_cmds=$lt_module_cmds_FC
19944 module_expsym_cmds=$lt_module_expsym_cmds_FC
19945
19946 # Whether we are building with GNU ld or not.
19947 with_gnu_ld=$lt_with_gnu_ld_FC
19948
19949 # Flag that allows shared libraries with undefined symbols to be built.
19950 allow_undefined_flag=$lt_allow_undefined_flag_FC
19951
19952 # Flag that enforces no undefined symbols.
19953 no_undefined_flag=$lt_no_undefined_flag_FC
19954
19955 # Flag to hardcode \$libdir into a binary during linking.
19956 # This must work even if \$libdir does not exist
19957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19958
19959 # If ld is used when linking, flag to hardcode \$libdir into a binary
19960 # during linking. This must work even if \$libdir does not exist.
19961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19962
19963 # Whether we need a single "-rpath" flag with a separated argument.
19964 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19965
19966 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19967 # DIR into the resulting binary.
19968 hardcode_direct=$hardcode_direct_FC
19969
19970 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19971 # DIR into the resulting binary and the resulting library dependency is
19972 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19973 # library is relocated.
19974 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19975
19976 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19977 # into the resulting binary.
19978 hardcode_minus_L=$hardcode_minus_L_FC
19979
19980 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19981 # into the resulting binary.
19982 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19983
19984 # Set to "yes" if building a shared library automatically hardcodes DIR
19985 # into the library and all subsequent libraries and executables linked
19986 # against it.
19987 hardcode_automatic=$hardcode_automatic_FC
19988
19989 # Set to yes if linker adds runtime paths of dependent libraries
19990 # to runtime path list.
19991 inherit_rpath=$inherit_rpath_FC
19992
19993 # Whether libtool must link a program against all its dependency libraries.
19994 link_all_deplibs=$link_all_deplibs_FC
19995
19996 # Fix the shell variable \$srcfile for the compiler.
19997 fix_srcfile_path=$lt_fix_srcfile_path_FC
19998
19999 # Set to "yes" if exported symbols are required.
20000 always_export_symbols=$always_export_symbols_FC
20001
20002 # The commands to list exported symbols.
20003 export_symbols_cmds=$lt_export_symbols_cmds_FC
20004
20005 # Symbols that should not be listed in the preloaded symbols.
20006 exclude_expsyms=$lt_exclude_expsyms_FC
20007
20008 # Symbols that must always be exported.
20009 include_expsyms=$lt_include_expsyms_FC
20010
20011 # Commands necessary for linking programs (against libraries) with templates.
20012 prelink_cmds=$lt_prelink_cmds_FC
20013
20014 # Specify filename containing input files.
20015 file_list_spec=$lt_file_list_spec_FC
20016
20017 # How to hardcode a shared library path into an executable.
20018 hardcode_action=$hardcode_action_FC
20019
20020 # The directories searched by this compiler when creating a shared library.
20021 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
20022
20023 # Dependencies to place before and after the objects being linked to
20024 # create a shared library.
20025 predep_objects=$lt_predep_objects_FC
20026 postdep_objects=$lt_postdep_objects_FC
20027 predeps=$lt_predeps_FC
20028 postdeps=$lt_postdeps_FC
20029
20030 # The library search path used internally by the compiler when linking
20031 # a shared library.
20032 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
20033
20034 # ### END LIBTOOL TAG CONFIG: FC
20035 _LT_EOF
20036
20037 ;;
20038 "gstdint.h":C)
20039 if test "$GCC" = yes; then
20040 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20041 else
20042 echo "/* generated for $CC */" > tmp-stdint.h
20043 fi
20044
20045 sed 's/^ *//' >> tmp-stdint.h <<EOF
20046
20047 #ifndef GCC_GENERATED_STDINT_H
20048 #define GCC_GENERATED_STDINT_H 1
20049
20050 #include <sys/types.h>
20051 EOF
20052
20053 if test "$acx_cv_header_stdint" != stdint.h; then
20054 echo "#include <stddef.h>" >> tmp-stdint.h
20055 fi
20056 if test "$acx_cv_header_stdint" != stddef.h; then
20057 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20058 fi
20059
20060 sed 's/^ *//' >> tmp-stdint.h <<EOF
20061 /* glibc uses these symbols as guards to prevent redefinitions. */
20062 #ifdef __int8_t_defined
20063 #define _INT8_T
20064 #define _INT16_T
20065 #define _INT32_T
20066 #endif
20067 #ifdef __uint32_t_defined
20068 #define _UINT32_T
20069 #endif
20070
20071 EOF
20072
20073 # ----------------- done header, emit basic int types -------------
20074 if test "$acx_cv_header_stdint" = stddef.h; then
20075 sed 's/^ *//' >> tmp-stdint.h <<EOF
20076
20077 #ifndef _UINT8_T
20078 #define _UINT8_T
20079 #ifndef __uint8_t_defined
20080 #define __uint8_t_defined
20081 #ifndef uint8_t
20082 typedef unsigned $acx_cv_type_int8_t uint8_t;
20083 #endif
20084 #endif
20085 #endif
20086
20087 #ifndef _UINT16_T
20088 #define _UINT16_T
20089 #ifndef __uint16_t_defined
20090 #define __uint16_t_defined
20091 #ifndef uint16_t
20092 typedef unsigned $acx_cv_type_int16_t uint16_t;
20093 #endif
20094 #endif
20095 #endif
20096
20097 #ifndef _UINT32_T
20098 #define _UINT32_T
20099 #ifndef __uint32_t_defined
20100 #define __uint32_t_defined
20101 #ifndef uint32_t
20102 typedef unsigned $acx_cv_type_int32_t uint32_t;
20103 #endif
20104 #endif
20105 #endif
20106
20107 #ifndef _INT8_T
20108 #define _INT8_T
20109 #ifndef __int8_t_defined
20110 #define __int8_t_defined
20111 #ifndef int8_t
20112 typedef $acx_cv_type_int8_t int8_t;
20113 #endif
20114 #endif
20115 #endif
20116
20117 #ifndef _INT16_T
20118 #define _INT16_T
20119 #ifndef __int16_t_defined
20120 #define __int16_t_defined
20121 #ifndef int16_t
20122 typedef $acx_cv_type_int16_t int16_t;
20123 #endif
20124 #endif
20125 #endif
20126
20127 #ifndef _INT32_T
20128 #define _INT32_T
20129 #ifndef __int32_t_defined
20130 #define __int32_t_defined
20131 #ifndef int32_t
20132 typedef $acx_cv_type_int32_t int32_t;
20133 #endif
20134 #endif
20135 #endif
20136 EOF
20137 elif test "$ac_cv_type_u_int32_t" = yes; then
20138 sed 's/^ *//' >> tmp-stdint.h <<EOF
20139
20140 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20141 #ifndef _INT8_T
20142 #define _INT8_T
20143 #endif
20144 #ifndef _INT16_T
20145 #define _INT16_T
20146 #endif
20147 #ifndef _INT32_T
20148 #define _INT32_T
20149 #endif
20150
20151 #ifndef _UINT8_T
20152 #define _UINT8_T
20153 #ifndef __uint8_t_defined
20154 #define __uint8_t_defined
20155 #ifndef uint8_t
20156 typedef u_int8_t uint8_t;
20157 #endif
20158 #endif
20159 #endif
20160
20161 #ifndef _UINT16_T
20162 #define _UINT16_T
20163 #ifndef __uint16_t_defined
20164 #define __uint16_t_defined
20165 #ifndef uint16_t
20166 typedef u_int16_t uint16_t;
20167 #endif
20168 #endif
20169 #endif
20170
20171 #ifndef _UINT32_T
20172 #define _UINT32_T
20173 #ifndef __uint32_t_defined
20174 #define __uint32_t_defined
20175 #ifndef uint32_t
20176 typedef u_int32_t uint32_t;
20177 #endif
20178 #endif
20179 #endif
20180 EOF
20181 else
20182 sed 's/^ *//' >> tmp-stdint.h <<EOF
20183
20184 /* Some systems have guard macros to prevent redefinitions, define them. */
20185 #ifndef _INT8_T
20186 #define _INT8_T
20187 #endif
20188 #ifndef _INT16_T
20189 #define _INT16_T
20190 #endif
20191 #ifndef _INT32_T
20192 #define _INT32_T
20193 #endif
20194 #ifndef _UINT8_T
20195 #define _UINT8_T
20196 #endif
20197 #ifndef _UINT16_T
20198 #define _UINT16_T
20199 #endif
20200 #ifndef _UINT32_T
20201 #define _UINT32_T
20202 #endif
20203 EOF
20204 fi
20205
20206 # ------------- done basic int types, emit int64_t types ------------
20207 if test "$ac_cv_type_uint64_t" = yes; then
20208 sed 's/^ *//' >> tmp-stdint.h <<EOF
20209
20210 /* system headers have good uint64_t and int64_t */
20211 #ifndef _INT64_T
20212 #define _INT64_T
20213 #endif
20214 #ifndef _UINT64_T
20215 #define _UINT64_T
20216 #endif
20217 EOF
20218 elif test "$ac_cv_type_u_int64_t" = yes; then
20219 sed 's/^ *//' >> tmp-stdint.h <<EOF
20220
20221 /* system headers have an u_int64_t (and int64_t) */
20222 #ifndef _INT64_T
20223 #define _INT64_T
20224 #endif
20225 #ifndef _UINT64_T
20226 #define _UINT64_T
20227 #ifndef __uint64_t_defined
20228 #define __uint64_t_defined
20229 #ifndef uint64_t
20230 typedef u_int64_t uint64_t;
20231 #endif
20232 #endif
20233 #endif
20234 EOF
20235 elif test -n "$acx_cv_type_int64_t"; then
20236 sed 's/^ *//' >> tmp-stdint.h <<EOF
20237
20238 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20239 #ifndef _INT64_T
20240 #define _INT64_T
20241 #ifndef int64_t
20242 typedef $acx_cv_type_int64_t int64_t;
20243 #endif
20244 #endif
20245 #ifndef _UINT64_T
20246 #define _UINT64_T
20247 #ifndef __uint64_t_defined
20248 #define __uint64_t_defined
20249 #ifndef uint64_t
20250 typedef unsigned $acx_cv_type_int64_t uint64_t;
20251 #endif
20252 #endif
20253 #endif
20254 EOF
20255 else
20256 sed 's/^ *//' >> tmp-stdint.h <<EOF
20257
20258 /* some common heuristics for int64_t, using compiler-specific tests */
20259 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20260 #ifndef _INT64_T
20261 #define _INT64_T
20262 #ifndef __int64_t_defined
20263 #ifndef int64_t
20264 typedef long long int64_t;
20265 #endif
20266 #endif
20267 #endif
20268 #ifndef _UINT64_T
20269 #define _UINT64_T
20270 #ifndef uint64_t
20271 typedef unsigned long long uint64_t;
20272 #endif
20273 #endif
20274
20275 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20276 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20277 does not implement __extension__. But that compiler doesn't define
20278 __GNUC_MINOR__. */
20279 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20280 # define __extension__
20281 # endif
20282
20283 # ifndef _INT64_T
20284 # define _INT64_T
20285 # ifndef int64_t
20286 __extension__ typedef long long int64_t;
20287 # endif
20288 # endif
20289 # ifndef _UINT64_T
20290 # define _UINT64_T
20291 # ifndef uint64_t
20292 __extension__ typedef unsigned long long uint64_t;
20293 # endif
20294 # endif
20295
20296 #elif !defined __STRICT_ANSI__
20297 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20298
20299 # ifndef _INT64_T
20300 # define _INT64_T
20301 # ifndef int64_t
20302 typedef __int64 int64_t;
20303 # endif
20304 # endif
20305 # ifndef _UINT64_T
20306 # define _UINT64_T
20307 # ifndef uint64_t
20308 typedef unsigned __int64 uint64_t;
20309 # endif
20310 # endif
20311 # endif /* compiler */
20312
20313 #endif /* ANSI version */
20314 EOF
20315 fi
20316
20317 # ------------- done int64_t types, emit intptr types ------------
20318 if test "$ac_cv_type_uintptr_t" != yes; then
20319 sed 's/^ *//' >> tmp-stdint.h <<EOF
20320
20321 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20322 #ifndef __uintptr_t_defined
20323 #ifndef uintptr_t
20324 typedef u$acx_cv_type_intptr_t uintptr_t;
20325 #endif
20326 #endif
20327 #ifndef __intptr_t_defined
20328 #ifndef intptr_t
20329 typedef $acx_cv_type_intptr_t intptr_t;
20330 #endif
20331 #endif
20332 EOF
20333 fi
20334
20335 # ------------- done intptr types, emit int_least types ------------
20336 if test "$ac_cv_type_int_least32_t" != yes; then
20337 sed 's/^ *//' >> tmp-stdint.h <<EOF
20338
20339 /* Define int_least types */
20340 typedef int8_t int_least8_t;
20341 typedef int16_t int_least16_t;
20342 typedef int32_t int_least32_t;
20343 #ifdef _INT64_T
20344 typedef int64_t int_least64_t;
20345 #endif
20346
20347 typedef uint8_t uint_least8_t;
20348 typedef uint16_t uint_least16_t;
20349 typedef uint32_t uint_least32_t;
20350 #ifdef _UINT64_T
20351 typedef uint64_t uint_least64_t;
20352 #endif
20353 EOF
20354 fi
20355
20356 # ------------- done intptr types, emit int_fast types ------------
20357 if test "$ac_cv_type_int_fast32_t" != yes; then
20358 sed 's/^ *//' >> tmp-stdint.h <<EOF
20359
20360 /* Define int_fast types. short is often slow */
20361 typedef int8_t int_fast8_t;
20362 typedef int int_fast16_t;
20363 typedef int32_t int_fast32_t;
20364 #ifdef _INT64_T
20365 typedef int64_t int_fast64_t;
20366 #endif
20367
20368 typedef uint8_t uint_fast8_t;
20369 typedef unsigned int uint_fast16_t;
20370 typedef uint32_t uint_fast32_t;
20371 #ifdef _UINT64_T
20372 typedef uint64_t uint_fast64_t;
20373 #endif
20374 EOF
20375 fi
20376
20377 if test "$ac_cv_type_uintmax_t" != yes; then
20378 sed 's/^ *//' >> tmp-stdint.h <<EOF
20379
20380 /* Define intmax based on what we found */
20381 #ifndef intmax_t
20382 #ifdef _INT64_T
20383 typedef int64_t intmax_t;
20384 #else
20385 typedef long intmax_t;
20386 #endif
20387 #endif
20388 #ifndef uintmax_t
20389 #ifdef _UINT64_T
20390 typedef uint64_t uintmax_t;
20391 #else
20392 typedef unsigned long uintmax_t;
20393 #endif
20394 #endif
20395 EOF
20396 fi
20397
20398 sed 's/^ *//' >> tmp-stdint.h <<EOF
20399
20400 #endif /* GCC_GENERATED_STDINT_H */
20401 EOF
20402
20403 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20404 rm -f tmp-stdint.h
20405 else
20406 mv -f tmp-stdint.h gstdint.h
20407 fi
20408
20409 ;;
20410
20411 esac
20412 done # for ac_tag
20413
20414
20415 as_fn_exit 0
20416 _ACEOF
20417 ac_clean_files=$ac_clean_files_save
20418
20419 test $ac_write_fail = 0 ||
20420 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20421
20422
20423 # configure is writing to config.log, and then calls config.status.
20424 # config.status does its own redirection, appending to config.log.
20425 # Unfortunately, on DOS this fails, as config.log is still kept open
20426 # by configure, so config.status won't be able to write to it; its
20427 # output is simply discarded. So we exec the FD to /dev/null,
20428 # effectively closing config.log, so it can be properly (re)opened and
20429 # appended to by config.status. When coming back to configure, we
20430 # need to make the FD available again.
20431 if test "$no_create" != yes; then
20432 ac_cs_success=:
20433 ac_config_status_args=
20434 test "$silent" = yes &&
20435 ac_config_status_args="$ac_config_status_args --quiet"
20436 exec 5>/dev/null
20437 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20438 exec 5>>config.log
20439 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20440 # would make configure fail if this is the last instruction.
20441 $ac_cs_success || as_fn_exit 1
20442 fi
20443 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20445 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20446 fi
20447