]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/configure
Filter out LTO in config/bootstrap-lto-lean.mk.
[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 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
662 OPT_LDFLAGS
663 SECTION_LDFLAGS
664 PLUGIN_HSA_FALSE
665 PLUGIN_HSA_TRUE
666 PLUGIN_NVPTX_FALSE
667 PLUGIN_NVPTX_TRUE
668 offload_additional_lib_paths
669 offload_additional_options
670 offload_targets
671 offload_plugins
672 PLUGIN_HSA_LIBS
673 PLUGIN_HSA_LDFLAGS
674 PLUGIN_HSA_CPPFLAGS
675 PLUGIN_HSA
676 HSA_RUNTIME_LIB
677 HSA_RUNTIME_INCLUDE
678 PLUGIN_NVPTX_LIBS
679 PLUGIN_NVPTX_LDFLAGS
680 PLUGIN_NVPTX_CPPFLAGS
681 PLUGIN_NVPTX
682 CUDA_DRIVER_LIB
683 CUDA_DRIVER_INCLUDE
684 libtool_VERSION
685 ac_ct_FC
686 FCFLAGS
687 FC
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 enable_static
692 enable_shared
693 lt_host_flags
694 CPP
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 OBJDUMP
701 LN_S
702 NM
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 EGREP
708 GREP
709 SED
710 LIBTOOL
711 BUILD_INFO_FALSE
712 BUILD_INFO_TRUE
713 PERL
714 RANLIB
715 AR
716 am__fastdepCC_FALSE
717 am__fastdepCC_TRUE
718 CCDEPMODE
719 am__nodep
720 AMDEPBACKSLASH
721 AMDEP_FALSE
722 AMDEP_TRUE
723 am__quote
724 am__include
725 DEPDIR
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 toolexeclibdir
734 toolexecdir
735 multi_basedir
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 am__untar
741 am__tar
742 AMTAR
743 am__leading_dot
744 SET_MAKE
745 AWK
746 mkdir_p
747 MKDIR_P
748 INSTALL_STRIP_PROGRAM
749 STRIP
750 install_sh
751 MAKEINFO
752 AUTOHEADER
753 AUTOMAKE
754 AUTOCONF
755 ACLOCAL
756 VERSION
757 PACKAGE
758 CYGPATH_W
759 am__isrc
760 INSTALL_DATA
761 INSTALL_SCRIPT
762 INSTALL_PROGRAM
763 target_os
764 target_vendor
765 target_cpu
766 target
767 host_os
768 host_vendor
769 host_cpu
770 host
771 build_os
772 build_vendor
773 build_cpu
774 build
775 GENINSRC_FALSE
776 GENINSRC_TRUE
777 target_alias
778 host_alias
779 build_alias
780 LIBS
781 ECHO_T
782 ECHO_N
783 ECHO_C
784 DEFS
785 mandir
786 localedir
787 libdir
788 psdir
789 pdfdir
790 dvidir
791 htmldir
792 infodir
793 docdir
794 oldincludedir
795 includedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_version_specific_runtime_libs
819 enable_generated_files_in_srcdir
820 enable_silent_rules
821 enable_multilib
822 enable_dependency_tracking
823 enable_shared
824 enable_static
825 with_pic
826 enable_fast_install
827 with_gnu_ld
828 enable_libtool_lock
829 enable_maintainer_mode
830 with_cuda_driver
831 with_cuda_driver_include
832 with_cuda_driver_lib
833 with_hsa_runtime
834 with_hsa_runtime_include
835 with_hsa_runtime_lib
836 enable_linux_futex
837 enable_tls
838 enable_symvers
839 enable_cet
840 with_gcc_major_version_only
841 '
842 ac_precious_vars='build_alias
843 host_alias
844 target_alias
845 CPP
846 CPPFLAGS
847 FC
848 FCFLAGS
849 LDFLAGS
850 LIBS'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
917
918 # Accept the important Cygnus configure options, so we can diagnose typos.
919
920 case $ac_dashdash$ac_option in
921 --)
922 ac_dashdash=yes ;;
923
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 ac_prev=bindir ;;
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 bindir=$ac_optarg ;;
928
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
933
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
940
941 --config-cache | -C)
942 cache_file=config.cache ;;
943
944 -datadir | --datadir | --datadi | --datad)
945 ac_prev=datadir ;;
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
948
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
955
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=no ;;
971
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
976
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
981
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=\$ac_optarg ;;
997
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1006
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1009 with_gas=yes ;;
1010
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1017
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1022
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 ac_prev=htmldir ;;
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 | --ht=*)
1027 htmldir=$ac_optarg ;;
1028
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1035
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 ac_prev=infodir ;;
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1040
1041 -libdir | --libdir | --libdi | --libd)
1042 ac_prev=libdir ;;
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1045
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1052
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1057
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1064
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 ac_prev=mandir ;;
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1069
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1072 with_fp=no ;;
1073
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1076 no_create=yes ;;
1077
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 no_recursion=yes ;;
1081
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1090
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 ac_prev=prefix ;;
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1095
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1102
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1109
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1126
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 ac_prev=pdfdir ;;
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1131
1132 -psdir | --psdir | --psdi | --psd | --ps)
1133 ac_prev=psdir ;;
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 psdir=$ac_optarg ;;
1136
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1139 silent=yes ;;
1140
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142 ac_prev=sbindir ;;
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144 | --sbi=* | --sb=*)
1145 sbindir=$ac_optarg ;;
1146
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1150 | --sha | --sh)
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155 | --sha=* | --sh=*)
1156 sharedstatedir=$ac_optarg ;;
1157
1158 -site | --site | --sit)
1159 ac_prev=site ;;
1160 -site=* | --site=* | --sit=*)
1161 site=$ac_optarg ;;
1162
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164 ac_prev=srcdir ;;
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1167
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1174
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1179
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181 verbose=yes ;;
1182
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1185
1186 -with-* | --with-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=\$ac_optarg ;;
1201
1202 -without-* | --without-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
1217
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1221
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1228
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1235
1236 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1238 ;;
1239
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' | [0-9]* | *[!_$as_cr_alnum]* )
1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1246 esac
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1249
1250 *)
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256 ;;
1257
1258 esac
1259 done
1260
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $? "missing argument to $ac_option"
1264 fi
1265
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1268 no) ;;
1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac
1272 fi
1273
1274 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1279 do
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1282 case $ac_val in
1283 */ )
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1286 esac
1287 # Be sure to have absolute directory names.
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1308 fi
1309 fi
1310
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314 test "$silent" = yes && exec 6>/dev/null
1315
1316
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error $? "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error $? "pwd does not report name of working directory"
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356 else
1357 ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1383
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1392
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1397
1398 Defaults for the options are specified in brackets.
1399
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking ...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1416
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1421
1422 For better control, use the options below.
1423
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1445
1446 cat <<\_ACEOF
1447
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1463 esac
1464 cat <<\_ACEOF
1465
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-version-specific-runtime-libs
1471 Specify that runtime libraries should be installed
1472 in a compiler-specific directory [default=no]
1473 --enable-generated-files-in-srcdir
1474 put copies of generated files in source dir intended
1475 for creating source tarballs for users without
1476 texinfo bison or flex. [default=no]
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-multilib build many library versions (default)
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful (and
1491 sometimes confusing) to the casual installer
1492 --enable-linux-futex use the Linux futex system call [default=default]
1493 --enable-tls Use thread-local storage [default=yes]
1494 --enable-symvers=STYLE enables symbol versioning of the shared library
1495 [default=yes]
1496 --enable-cet enable Intel CET in target libraries [default=no]
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1505 package. Equivalent to
1506 --with-cuda-driver-include=PATH/include plus
1507 --with-cuda-driver-lib=PATH/lib
1508 --with-cuda-driver-include=PATH
1509 specify directory for installed CUDA driver include
1510 files
1511 --with-cuda-driver-lib=PATH
1512 specify directory for the installed CUDA driver
1513 library
1514 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1515 package. Equivalent to
1516 --with-hsa-runtime-include=PATH/include plus
1517 --with-hsa-runtime-lib=PATH/lib
1518 --with-hsa-runtime-include=PATH
1519 specify directory for installed HSA run-time include
1520 files
1521 --with-hsa-runtime-lib=PATH
1522 specify directory for the installed HSA run-time
1523 library
1524 --with-gcc-major-version-only
1525 use only GCC major number in filesystem paths
1526
1527 Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 CPP C preprocessor
1536 FC Fortran compiler command
1537 FCFLAGS Fortran compiler flags
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to the package provider.
1543 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1544 General help using GNU software: <http://www.gnu.org/gethelp/>.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 GNU Offloading and Multi Processing Runtime Library configure 1.0
1608 generated by GNU Autoconf 2.69
1609
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614 exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653 fi
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694 fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_link
1704
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 eval "$3=yes"
1724 else
1725 eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_header_compile
1735
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_cpp ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_cpp
1772
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1777 ac_fn_c_try_run ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=$ac_status
1808 fi
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_run
1814
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1831
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1836
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1842
1843 #undef $2
1844
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1858
1859 int
1860 main ()
1861 {
1862 return $2 ();
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_func
1881
1882 # ac_fn_fc_try_compile LINENO
1883 # ---------------------------
1884 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_fc_try_compile ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext
1889 if { { ac_try="$ac_compile"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_compile") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1902 fi
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_fc_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest.$ac_objext; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1917
1918 } # ac_fn_fc_try_compile
1919
1920 # ac_fn_fc_try_link LINENO
1921 # ------------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_fc_try_link ()
1924 {
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1940 fi
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_fc_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 test -x conftest$ac_exeext
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=1
1955 fi
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1963
1964 } # ac_fn_fc_try_link
1965
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1970 # accordingly.
1971 ac_fn_c_check_header_mongrel ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if eval \${$3+:} false; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1979 fi
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 else
1984 # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_header_compiler=yes
1994 else
1995 ac_header_compiler=no
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2000
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009 ac_header_preproc=yes
2010 else
2011 ac_header_preproc=no
2012 fi
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2016
2017 # So? What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019 yes:no: )
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 ;;
2025 no:yes:* )
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 ;;
2037 esac
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 eval "$3=\$ac_header_compiler"
2044 fi
2045 eval ac_res=\$$3
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 fi
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051 } # ac_fn_c_check_header_mongrel
2052
2053 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2054 # -------------------------------------------
2055 # Tests whether TYPE exists after having included INCLUDES, setting cache
2056 # variable VAR accordingly.
2057 ac_fn_c_check_type ()
2058 {
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 eval "$3=no"
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 $4
2069 int
2070 main ()
2071 {
2072 if (sizeof ($2))
2073 return 0;
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $4
2082 int
2083 main ()
2084 {
2085 if (sizeof (($2)))
2086 return 0;
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092
2093 else
2094 eval "$3=yes"
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105 } # ac_fn_c_check_type
2106
2107 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2108 # --------------------------------------------
2109 # Tries to find the compile-time value of EXPR in a program that includes
2110 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2111 # computed
2112 ac_fn_c_compute_int ()
2113 {
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if test "$cross_compiling" = yes; then
2116 # Depending upon the size, compute the lo and hi bounds.
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2119 $4
2120 int
2121 main ()
2122 {
2123 static int test_array [1 - 2 * !(($2) >= 0)];
2124 test_array [0] = 0;
2125 return test_array [0];
2126
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_lo=0 ac_mid=0
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $4
2137 int
2138 main ()
2139 {
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0;
2142 return test_array [0];
2143
2144 ;
2145 return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=$ac_mid; break
2150 else
2151 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2152 if test $ac_lo -le $ac_mid; then
2153 ac_lo= ac_hi=
2154 break
2155 fi
2156 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 done
2160 else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 $4
2164 int
2165 main ()
2166 {
2167 static int test_array [1 - 2 * !(($2) < 0)];
2168 test_array [0] = 0;
2169 return test_array [0];
2170
2171 ;
2172 return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_hi=-1 ac_mid=-1
2177 while :; do
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 $4
2181 int
2182 main ()
2183 {
2184 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2185 test_array [0] = 0;
2186 return test_array [0];
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_lo=$ac_mid; break
2194 else
2195 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2196 if test $ac_mid -le $ac_hi; then
2197 ac_lo= ac_hi=
2198 break
2199 fi
2200 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 done
2204 else
2205 ac_lo= ac_hi=
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 # Binary search between lo and hi bounds.
2211 while test "x$ac_lo" != "x$ac_hi"; do
2212 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2215 $4
2216 int
2217 main ()
2218 {
2219 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220 test_array [0] = 0;
2221 return test_array [0];
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 ac_hi=$ac_mid
2229 else
2230 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 done
2234 case $ac_lo in #((
2235 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2236 '') ac_retval=1 ;;
2237 esac
2238 else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 $4
2242 static long int longval () { return $2; }
2243 static unsigned long int ulongval () { return $2; }
2244 #include <stdio.h>
2245 #include <stdlib.h>
2246 int
2247 main ()
2248 {
2249
2250 FILE *f = fopen ("conftest.val", "w");
2251 if (! f)
2252 return 1;
2253 if (($2) < 0)
2254 {
2255 long int i = longval ();
2256 if (i != ($2))
2257 return 1;
2258 fprintf (f, "%ld", i);
2259 }
2260 else
2261 {
2262 unsigned long int i = ulongval ();
2263 if (i != ($2))
2264 return 1;
2265 fprintf (f, "%lu", i);
2266 }
2267 /* Do not output a trailing newline, as this causes \r\n confusion
2268 on some platforms. */
2269 return ferror (f) || fclose (f) != 0;
2270
2271 ;
2272 return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_run "$LINENO"; then :
2276 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2277 else
2278 ac_retval=1
2279 fi
2280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2281 conftest.$ac_objext conftest.beam conftest.$ac_ext
2282 rm -f conftest.val
2283
2284 fi
2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 as_fn_set_status $ac_retval
2287
2288 } # ac_fn_c_compute_int
2289 cat >config.log <<_ACEOF
2290 This file contains any messages produced by compilers while
2291 running configure, to aid debugging if configure makes a mistake.
2292
2293 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2294 generated by GNU Autoconf 2.69. Invocation command line was
2295
2296 $ $0 $@
2297
2298 _ACEOF
2299 exec 5>>config.log
2300 {
2301 cat <<_ASUNAME
2302 ## --------- ##
2303 ## Platform. ##
2304 ## --------- ##
2305
2306 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2307 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2308 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2309 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2310 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2311
2312 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2313 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2314
2315 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2316 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2317 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2318 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2319 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2320 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2321 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2322
2323 _ASUNAME
2324
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 $as_echo "PATH: $as_dir"
2331 done
2332 IFS=$as_save_IFS
2333
2334 } >&5
2335
2336 cat >&5 <<_ACEOF
2337
2338
2339 ## ----------- ##
2340 ## Core tests. ##
2341 ## ----------- ##
2342
2343 _ACEOF
2344
2345
2346 # Keep a trace of the command line.
2347 # Strip out --no-create and --no-recursion so they do not pile up.
2348 # Strip out --silent because we don't want to record it for future runs.
2349 # Also quote any args containing shell meta-characters.
2350 # Make two passes to allow for proper duplicate-argument suppression.
2351 ac_configure_args=
2352 ac_configure_args0=
2353 ac_configure_args1=
2354 ac_must_keep_next=false
2355 for ac_pass in 1 2
2356 do
2357 for ac_arg
2358 do
2359 case $ac_arg in
2360 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2362 | -silent | --silent | --silen | --sile | --sil)
2363 continue ;;
2364 *\'*)
2365 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2366 esac
2367 case $ac_pass in
2368 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2369 2)
2370 as_fn_append ac_configure_args1 " '$ac_arg'"
2371 if test $ac_must_keep_next = true; then
2372 ac_must_keep_next=false # Got value, back to normal.
2373 else
2374 case $ac_arg in
2375 *=* | --config-cache | -C | -disable-* | --disable-* \
2376 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2377 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2378 | -with-* | --with-* | -without-* | --without-* | --x)
2379 case "$ac_configure_args0 " in
2380 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2381 esac
2382 ;;
2383 -* ) ac_must_keep_next=true ;;
2384 esac
2385 fi
2386 as_fn_append ac_configure_args " '$ac_arg'"
2387 ;;
2388 esac
2389 done
2390 done
2391 { ac_configure_args0=; unset ac_configure_args0;}
2392 { ac_configure_args1=; unset ac_configure_args1;}
2393
2394 # When interrupted or exit'd, cleanup temporary files, and complete
2395 # config.log. We remove comments because anyway the quotes in there
2396 # would cause problems or look ugly.
2397 # WARNING: Use '\'' to represent an apostrophe within the trap.
2398 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2399 trap 'exit_status=$?
2400 # Save into config.log some information that might help in debugging.
2401 {
2402 echo
2403
2404 $as_echo "## ---------------- ##
2405 ## Cache variables. ##
2406 ## ---------------- ##"
2407 echo
2408 # The following way of writing the cache mishandles newlines in values,
2409 (
2410 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2411 eval ac_val=\$$ac_var
2412 case $ac_val in #(
2413 *${as_nl}*)
2414 case $ac_var in #(
2415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2417 esac
2418 case $ac_var in #(
2419 _ | IFS | as_nl) ;; #(
2420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2421 *) { eval $ac_var=; unset $ac_var;} ;;
2422 esac ;;
2423 esac
2424 done
2425 (set) 2>&1 |
2426 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2427 *${as_nl}ac_space=\ *)
2428 sed -n \
2429 "s/'\''/'\''\\\\'\'''\''/g;
2430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2431 ;; #(
2432 *)
2433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2434 ;;
2435 esac |
2436 sort
2437 )
2438 echo
2439
2440 $as_echo "## ----------------- ##
2441 ## Output variables. ##
2442 ## ----------------- ##"
2443 echo
2444 for ac_var in $ac_subst_vars
2445 do
2446 eval ac_val=\$$ac_var
2447 case $ac_val in
2448 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2449 esac
2450 $as_echo "$ac_var='\''$ac_val'\''"
2451 done | sort
2452 echo
2453
2454 if test -n "$ac_subst_files"; then
2455 $as_echo "## ------------------- ##
2456 ## File substitutions. ##
2457 ## ------------------- ##"
2458 echo
2459 for ac_var in $ac_subst_files
2460 do
2461 eval ac_val=\$$ac_var
2462 case $ac_val in
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464 esac
2465 $as_echo "$ac_var='\''$ac_val'\''"
2466 done | sort
2467 echo
2468 fi
2469
2470 if test -s confdefs.h; then
2471 $as_echo "## ----------- ##
2472 ## confdefs.h. ##
2473 ## ----------- ##"
2474 echo
2475 cat confdefs.h
2476 echo
2477 fi
2478 test "$ac_signal" != 0 &&
2479 $as_echo "$as_me: caught signal $ac_signal"
2480 $as_echo "$as_me: exit $exit_status"
2481 } >&5
2482 rm -f core *.core core.conftest.* &&
2483 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2484 exit $exit_status
2485 ' 0
2486 for ac_signal in 1 2 13 15; do
2487 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2488 done
2489 ac_signal=0
2490
2491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2492 rm -f -r conftest* confdefs.h
2493
2494 $as_echo "/* confdefs.h */" > confdefs.h
2495
2496 # Predefined preprocessor variables.
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_NAME "$PACKAGE_NAME"
2500 _ACEOF
2501
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2504 _ACEOF
2505
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2508 _ACEOF
2509
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_STRING "$PACKAGE_STRING"
2512 _ACEOF
2513
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2516 _ACEOF
2517
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_URL "$PACKAGE_URL"
2520 _ACEOF
2521
2522
2523 # Let the site file select an alternate cache file if it wants to.
2524 # Prefer an explicitly selected file to automatically selected ones.
2525 ac_site_file1=NONE
2526 ac_site_file2=NONE
2527 if test -n "$CONFIG_SITE"; then
2528 # We do not want a PATH search for config.site.
2529 case $CONFIG_SITE in #((
2530 -*) ac_site_file1=./$CONFIG_SITE;;
2531 */*) ac_site_file1=$CONFIG_SITE;;
2532 *) ac_site_file1=./$CONFIG_SITE;;
2533 esac
2534 elif test "x$prefix" != xNONE; then
2535 ac_site_file1=$prefix/share/config.site
2536 ac_site_file2=$prefix/etc/config.site
2537 else
2538 ac_site_file1=$ac_default_prefix/share/config.site
2539 ac_site_file2=$ac_default_prefix/etc/config.site
2540 fi
2541 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2542 do
2543 test "x$ac_site_file" = xNONE && continue
2544 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2546 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2547 sed 's/^/| /' "$ac_site_file" >&5
2548 . "$ac_site_file" \
2549 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 as_fn_error $? "failed to load site script $ac_site_file
2552 See \`config.log' for more details" "$LINENO" 5; }
2553 fi
2554 done
2555
2556 if test -r "$cache_file"; then
2557 # Some versions of bash will fail to source /dev/null (special files
2558 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2559 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2561 $as_echo "$as_me: loading cache $cache_file" >&6;}
2562 case $cache_file in
2563 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2564 *) . "./$cache_file";;
2565 esac
2566 fi
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2569 $as_echo "$as_me: creating cache $cache_file" >&6;}
2570 >$cache_file
2571 fi
2572
2573 as_fn_append ac_header_list " unistd.h"
2574 as_fn_append ac_func_list " secure_getenv"
2575 as_fn_append ac_func_list " __secure_getenv"
2576 as_fn_append ac_func_list " getuid"
2577 as_fn_append ac_func_list " geteuid"
2578 as_fn_append ac_func_list " getgid"
2579 as_fn_append ac_func_list " getegid"
2580 # Check that the precious variables saved in the cache have kept the same
2581 # value.
2582 ac_cache_corrupted=false
2583 for ac_var in $ac_precious_vars; do
2584 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2585 eval ac_new_set=\$ac_env_${ac_var}_set
2586 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2587 eval ac_new_val=\$ac_env_${ac_var}_value
2588 case $ac_old_set,$ac_new_set in
2589 set,)
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2591 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2592 ac_cache_corrupted=: ;;
2593 ,set)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2595 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2596 ac_cache_corrupted=: ;;
2597 ,);;
2598 *)
2599 if test "x$ac_old_val" != "x$ac_new_val"; then
2600 # differences in whitespace do not lead to failure.
2601 ac_old_val_w=`echo x $ac_old_val`
2602 ac_new_val_w=`echo x $ac_new_val`
2603 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2605 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2606 ac_cache_corrupted=:
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2609 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2610 eval $ac_var=\$ac_old_val
2611 fi
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2613 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2615 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2616 fi;;
2617 esac
2618 # Pass precious variables to config.status.
2619 if test "$ac_new_set" = set; then
2620 case $ac_new_val in
2621 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2622 *) ac_arg=$ac_var=$ac_new_val ;;
2623 esac
2624 case " $ac_configure_args " in
2625 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2626 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2627 esac
2628 fi
2629 done
2630 if $ac_cache_corrupted; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2634 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2635 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2636 fi
2637 ## -------------------- ##
2638 ## Main body of script. ##
2639 ## -------------------- ##
2640
2641 ac_ext=c
2642 ac_cpp='$CPP $CPPFLAGS'
2643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646
2647
2648
2649
2650
2651 ac_config_headers="$ac_config_headers config.h"
2652
2653
2654 # -------
2655 # Options
2656 # -------
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2659 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2660 # Check whether --enable-version-specific-runtime-libs was given.
2661 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2662 enableval=$enable_version_specific_runtime_libs;
2663 case "$enableval" in
2664 yes|no) ;;
2665 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2666 esac
2667
2668 else
2669 enable_version_specific_runtime_libs=no
2670 fi
2671
2672
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2674 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2675
2676 # We would like our source tree to be readonly. However when releases or
2677 # pre-releases are generated, the flex/bison generated files as well as the
2678 # various formats of manuals need to be included along with the rest of the
2679 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2680 # just that.
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2682 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2683 # Check whether --enable-generated-files-in-srcdir was given.
2684 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2685 enableval=$enable_generated_files_in_srcdir;
2686 case "$enableval" in
2687 yes|no) ;;
2688 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2689 esac
2690
2691 else
2692 enable_generated_files_in_srcdir=no
2693 fi
2694
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2697 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2698 if test "$enable_generated_files_in_srcdir" = yes; then
2699 GENINSRC_TRUE=
2700 GENINSRC_FALSE='#'
2701 else
2702 GENINSRC_TRUE='#'
2703 GENINSRC_FALSE=
2704 fi
2705
2706
2707
2708 # -------
2709 # -------
2710
2711 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2712 #
2713 # You will slowly go insane if you do not grok the following fact: when
2714 # building this library, the top-level /target/ becomes the library's /host/.
2715 #
2716 # configure then causes --target to default to --host, exactly like any
2717 # other package using autoconf. Therefore, 'target' and 'host' will
2718 # always be the same. This makes sense both for native and cross compilers
2719 # just think about it for a little while. :-)
2720 #
2721 # Also, if this library is being configured as part of a cross compiler, the
2722 # top-level configure script will pass the "real" host as $with_cross_host.
2723 #
2724 # Do not delete or change the following two lines. For why, see
2725 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2726 ac_aux_dir=
2727 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2728 if test -f "$ac_dir/install-sh"; then
2729 ac_aux_dir=$ac_dir
2730 ac_install_sh="$ac_aux_dir/install-sh -c"
2731 break
2732 elif test -f "$ac_dir/install.sh"; then
2733 ac_aux_dir=$ac_dir
2734 ac_install_sh="$ac_aux_dir/install.sh -c"
2735 break
2736 elif test -f "$ac_dir/shtool"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/shtool install -c"
2739 break
2740 fi
2741 done
2742 if test -z "$ac_aux_dir"; then
2743 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2744 fi
2745
2746 # These three variables are undocumented and unsupported,
2747 # and are intended to be withdrawn in a future Autoconf release.
2748 # They can cause serious problems if a builder's source tree is in a directory
2749 # whose full name contains unusual characters.
2750 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2751 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2752 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2753
2754
2755 # Make sure we can run config.sub.
2756 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2757 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2758
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2760 $as_echo_n "checking build system type... " >&6; }
2761 if ${ac_cv_build+:} false; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 ac_build_alias=$build_alias
2765 test "x$ac_build_alias" = x &&
2766 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2767 test "x$ac_build_alias" = x &&
2768 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2771
2772 fi
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2774 $as_echo "$ac_cv_build" >&6; }
2775 case $ac_cv_build in
2776 *-*-*) ;;
2777 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2778 esac
2779 build=$ac_cv_build
2780 ac_save_IFS=$IFS; IFS='-'
2781 set x $ac_cv_build
2782 shift
2783 build_cpu=$1
2784 build_vendor=$2
2785 shift; shift
2786 # Remember, the first character of IFS is used to create $*,
2787 # except with old shells:
2788 build_os=$*
2789 IFS=$ac_save_IFS
2790 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2791
2792
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2794 $as_echo_n "checking host system type... " >&6; }
2795 if ${ac_cv_host+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test "x$host_alias" = x; then
2799 ac_cv_host=$ac_cv_build
2800 else
2801 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2803 fi
2804
2805 fi
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2807 $as_echo "$ac_cv_host" >&6; }
2808 case $ac_cv_host in
2809 *-*-*) ;;
2810 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2811 esac
2812 host=$ac_cv_host
2813 ac_save_IFS=$IFS; IFS='-'
2814 set x $ac_cv_host
2815 shift
2816 host_cpu=$1
2817 host_vendor=$2
2818 shift; shift
2819 # Remember, the first character of IFS is used to create $*,
2820 # except with old shells:
2821 host_os=$*
2822 IFS=$ac_save_IFS
2823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2824
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2827 $as_echo_n "checking target system type... " >&6; }
2828 if ${ac_cv_target+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test "x$target_alias" = x; then
2832 ac_cv_target=$ac_cv_host
2833 else
2834 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2836 fi
2837
2838 fi
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2840 $as_echo "$ac_cv_target" >&6; }
2841 case $ac_cv_target in
2842 *-*-*) ;;
2843 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2844 esac
2845 target=$ac_cv_target
2846 ac_save_IFS=$IFS; IFS='-'
2847 set x $ac_cv_target
2848 shift
2849 target_cpu=$1
2850 target_vendor=$2
2851 shift; shift
2852 # Remember, the first character of IFS is used to create $*,
2853 # except with old shells:
2854 target_os=$*
2855 IFS=$ac_save_IFS
2856 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2857
2858
2859 # The aliases save the names the user supplied, while $host etc.
2860 # will get canonicalized.
2861 test -n "$target_alias" &&
2862 test "$program_prefix$program_suffix$program_transform_name" = \
2863 NONENONEs,x,x, &&
2864 program_prefix=${target_alias}-
2865
2866 target_alias=${target_alias-$host_alias}
2867
2868 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2869 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2870 # 1.9.0: minimum required version
2871 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2872 # of other PACKAGE_* variables will, however, and there's nothing
2873 # we can do about that; they come from AC_INIT).
2874 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2875 # file in the top srcdir, etc, etc), so stop complaining.
2876 # no-dist: we don't want 'dist' and related rules.
2877 # -Wall: turns on all automake warnings...
2878 # -Wno-portability: ...except this one, since GNU make is required.
2879 # -Wno-override: ... and this one, since we do want this in testsuite.
2880 am__api_version='1.15'
2881
2882 # Find a good install program. We prefer a C program (faster),
2883 # so one script is as good as another. But avoid the broken or
2884 # incompatible versions:
2885 # SysV /etc/install, /usr/sbin/install
2886 # SunOS /usr/etc/install
2887 # IRIX /sbin/install
2888 # AIX /bin/install
2889 # AmigaOS /C/install, which installs bootblocks on floppy discs
2890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2893 # OS/2's system install, which has a completely different semantic
2894 # ./install, which can be erroneously created by make from ./install.sh.
2895 # Reject install programs that cannot install multiple files.
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2897 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2898 if test -z "$INSTALL"; then
2899 if ${ac_cv_path_install+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 # Account for people who put trailing slashes in PATH elements.
2908 case $as_dir/ in #((
2909 ./ | .// | /[cC]/* | \
2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2911 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2912 /usr/ucb/* ) ;;
2913 *)
2914 # OSF1 and SCO ODT 3.0 have their own names for install.
2915 # Don't use installbsd from OSF since it installs stuff as root
2916 # by default.
2917 for ac_prog in ginstall scoinst install; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2920 if test $ac_prog = install &&
2921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2922 # AIX install. It has an incompatible calling convention.
2923 :
2924 elif test $ac_prog = install &&
2925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2926 # program-specific install script used by HP pwplus--don't use.
2927 :
2928 else
2929 rm -rf conftest.one conftest.two conftest.dir
2930 echo one > conftest.one
2931 echo two > conftest.two
2932 mkdir conftest.dir
2933 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2934 test -s conftest.one && test -s conftest.two &&
2935 test -s conftest.dir/conftest.one &&
2936 test -s conftest.dir/conftest.two
2937 then
2938 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2939 break 3
2940 fi
2941 fi
2942 fi
2943 done
2944 done
2945 ;;
2946 esac
2947
2948 done
2949 IFS=$as_save_IFS
2950
2951 rm -rf conftest.one conftest.two conftest.dir
2952
2953 fi
2954 if test "${ac_cv_path_install+set}" = set; then
2955 INSTALL=$ac_cv_path_install
2956 else
2957 # As a last resort, use the slow shell script. Don't cache a
2958 # value for INSTALL within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the value is a relative name.
2961 INSTALL=$ac_install_sh
2962 fi
2963 fi
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2965 $as_echo "$INSTALL" >&6; }
2966
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2970
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2972
2973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2976 $as_echo_n "checking whether build environment is sane... " >&6; }
2977 # Reject unsafe characters in $srcdir or the absolute working directory
2978 # name. Accept space and tab only in the latter.
2979 am_lf='
2980 '
2981 case `pwd` in
2982 *[\\\"\#\$\&\'\`$am_lf]*)
2983 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2984 esac
2985 case $srcdir in
2986 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2987 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2988 esac
2989
2990 # Do 'set' in a subshell so we don't clobber the current shell's
2991 # arguments. Must try -L first in case configure is actually a
2992 # symlink; some systems play weird games with the mod time of symlinks
2993 # (eg FreeBSD returns the mod time of the symlink's containing
2994 # directory).
2995 if (
2996 am_has_slept=no
2997 for am_try in 1 2; do
2998 echo "timestamp, slept: $am_has_slept" > conftest.file
2999 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3000 if test "$*" = "X"; then
3001 # -L didn't work.
3002 set X `ls -t "$srcdir/configure" conftest.file`
3003 fi
3004 if test "$*" != "X $srcdir/configure conftest.file" \
3005 && test "$*" != "X conftest.file $srcdir/configure"; then
3006
3007 # If neither matched, then we have a broken ls. This can happen
3008 # if, for instance, CONFIG_SHELL is bash and it inherits a
3009 # broken ls alias from the environment. This has actually
3010 # happened. Such a system could not be considered "sane".
3011 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3012 alias in your environment" "$LINENO" 5
3013 fi
3014 if test "$2" = conftest.file || test $am_try -eq 2; then
3015 break
3016 fi
3017 # Just in case.
3018 sleep 1
3019 am_has_slept=yes
3020 done
3021 test "$2" = conftest.file
3022 )
3023 then
3024 # Ok.
3025 :
3026 else
3027 as_fn_error $? "newly created file is older than distributed files!
3028 Check your system clock" "$LINENO" 5
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3031 $as_echo "yes" >&6; }
3032 # If we didn't sleep, we still need to ensure time stamps of config.status and
3033 # generated files are strictly newer.
3034 am_sleep_pid=
3035 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3036 ( sleep 1 ) &
3037 am_sleep_pid=$!
3038 fi
3039
3040 rm -f conftest.file
3041
3042 test "$program_prefix" != NONE &&
3043 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3044 # Use a double $ so make ignores it.
3045 test "$program_suffix" != NONE &&
3046 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3047 # Double any \ or $.
3048 # By default was `s,x,x', remove it if useless.
3049 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3050 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3051
3052 # Expand $ac_aux_dir to an absolute path.
3053 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3054
3055 if test x"${MISSING+set}" != xset; then
3056 case $am_aux_dir in
3057 *\ * | *\ *)
3058 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3059 *)
3060 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3061 esac
3062 fi
3063 # Use eval to expand $SHELL
3064 if eval "$MISSING --is-lightweight"; then
3065 am_missing_run="$MISSING "
3066 else
3067 am_missing_run=
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3069 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3070 fi
3071
3072 if test x"${install_sh+set}" != xset; then
3073 case $am_aux_dir in
3074 *\ * | *\ *)
3075 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3076 *)
3077 install_sh="\${SHELL} $am_aux_dir/install-sh"
3078 esac
3079 fi
3080
3081 # Installed binaries are usually stripped using 'strip' when the user
3082 # run "make install-strip". However 'strip' might not be the right
3083 # tool to use in cross-compilation environments, therefore Automake
3084 # will honor the 'STRIP' environment variable to overrule this program.
3085 if test "$cross_compiling" != no; then
3086 if test -n "$ac_tool_prefix"; then
3087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3088 set dummy ${ac_tool_prefix}strip; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_STRIP+:} false; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 if test -n "$STRIP"; then
3095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 STRIP=$ac_cv_prog_STRIP
3115 if test -n "$STRIP"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3117 $as_echo "$STRIP" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124 fi
3125 if test -z "$ac_cv_prog_STRIP"; then
3126 ac_ct_STRIP=$STRIP
3127 # Extract the first word of "strip", so it can be a program name with args.
3128 set dummy strip; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$ac_ct_STRIP"; then
3135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_ac_ct_STRIP="strip"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3155 if test -n "$ac_ct_STRIP"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3157 $as_echo "$ac_ct_STRIP" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163 if test "x$ac_ct_STRIP" = x; then
3164 STRIP=":"
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3171 esac
3172 STRIP=$ac_ct_STRIP
3173 fi
3174 else
3175 STRIP="$ac_cv_prog_STRIP"
3176 fi
3177
3178 fi
3179 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3180
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3182 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3183 if test -z "$MKDIR_P"; then
3184 if ${ac_cv_path_mkdir+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3189 do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_prog in mkdir gmkdir; do
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3195 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3196 'mkdir (GNU coreutils) '* | \
3197 'mkdir (coreutils) '* | \
3198 'mkdir (fileutils) '4.1*)
3199 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3200 break 3;;
3201 esac
3202 done
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi
3208
3209 test -d ./--version && rmdir ./--version
3210 if test "${ac_cv_path_mkdir+set}" = set; then
3211 MKDIR_P="$ac_cv_path_mkdir -p"
3212 else
3213 # As a last resort, use the slow shell script. Don't cache a
3214 # value for MKDIR_P within a source directory, because that will
3215 # break other packages using the cache if that directory is
3216 # removed, or if the value is a relative name.
3217 MKDIR_P="$ac_install_sh -d"
3218 fi
3219 fi
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3221 $as_echo "$MKDIR_P" >&6; }
3222
3223 for ac_prog in gawk mawk nawk awk
3224 do
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226 set dummy $ac_prog; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_AWK+:} false; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -n "$AWK"; then
3233 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_AWK="$ac_prog"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 fi
3251 fi
3252 AWK=$ac_cv_prog_AWK
3253 if test -n "$AWK"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3255 $as_echo "$AWK" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261
3262 test -n "$AWK" && break
3263 done
3264
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3266 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3267 set x ${MAKE-make}
3268 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3269 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 cat >conftest.make <<\_ACEOF
3273 SHELL = /bin/sh
3274 all:
3275 @echo '@@@%%%=$(MAKE)=@@@%%%'
3276 _ACEOF
3277 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3278 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3279 *@@@%%%=?*=@@@%%%*)
3280 eval ac_cv_prog_make_${ac_make}_set=yes;;
3281 *)
3282 eval ac_cv_prog_make_${ac_make}_set=no;;
3283 esac
3284 rm -f conftest.make
3285 fi
3286 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3289 SET_MAKE=
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 SET_MAKE="MAKE=${MAKE-make}"
3294 fi
3295
3296 rm -rf .tst 2>/dev/null
3297 mkdir .tst 2>/dev/null
3298 if test -d .tst; then
3299 am__leading_dot=.
3300 else
3301 am__leading_dot=_
3302 fi
3303 rmdir .tst 2>/dev/null
3304
3305 # Check whether --enable-silent-rules was given.
3306 if test "${enable_silent_rules+set}" = set; then :
3307 enableval=$enable_silent_rules;
3308 fi
3309
3310 case $enable_silent_rules in # (((
3311 yes) AM_DEFAULT_VERBOSITY=0;;
3312 no) AM_DEFAULT_VERBOSITY=1;;
3313 *) AM_DEFAULT_VERBOSITY=1;;
3314 esac
3315 am_make=${MAKE-make}
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3317 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3318 if ${am_cv_make_support_nested_variables+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 if $as_echo 'TRUE=$(BAR$(V))
3322 BAR0=false
3323 BAR1=true
3324 V=1
3325 am__doit:
3326 @$(TRUE)
3327 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3328 am_cv_make_support_nested_variables=yes
3329 else
3330 am_cv_make_support_nested_variables=no
3331 fi
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3334 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3335 if test $am_cv_make_support_nested_variables = yes; then
3336 AM_V='$(V)'
3337 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3338 else
3339 AM_V=$AM_DEFAULT_VERBOSITY
3340 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3341 fi
3342 AM_BACKSLASH='\'
3343
3344 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3345 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3346 # is not polluted with repeated "-I."
3347 am__isrc=' -I$(srcdir)'
3348 # test to see if srcdir already configured
3349 if test -f $srcdir/config.status; then
3350 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3351 fi
3352 fi
3353
3354 # test whether we have cygpath
3355 if test -z "$CYGPATH_W"; then
3356 if (cygpath --version) >/dev/null 2>/dev/null; then
3357 CYGPATH_W='cygpath -w'
3358 else
3359 CYGPATH_W=echo
3360 fi
3361 fi
3362
3363
3364 # Define the identity of the package.
3365 PACKAGE='libgomp'
3366 VERSION='1.0'
3367
3368
3369 cat >>confdefs.h <<_ACEOF
3370 #define PACKAGE "$PACKAGE"
3371 _ACEOF
3372
3373
3374 cat >>confdefs.h <<_ACEOF
3375 #define VERSION "$VERSION"
3376 _ACEOF
3377
3378 # Some tools Automake needs.
3379
3380 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3381
3382
3383 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3384
3385
3386 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3387
3388
3389 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3390
3391
3392 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3393
3394 # For better backward compatibility. To be removed once Automake 1.9.x
3395 # dies out for good. For more background, see:
3396 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3397 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3398 mkdir_p='$(MKDIR_P)'
3399
3400 # We need awk for the "check" target (and possibly the TAP driver). The
3401 # system "awk" is bad on some platforms.
3402 # Always define AMTAR for backward compatibility. Yes, it's still used
3403 # in the wild :-( We should find a proper way to deprecate it ...
3404 AMTAR='$${TAR-tar}'
3405
3406
3407 # We'll loop over all known methods to create a tar archive until one works.
3408 _am_tools='gnutar pax cpio none'
3409
3410 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3411
3412
3413
3414
3415
3416
3417 # POSIX will say in a future version that running "rm -f" with no argument
3418 # is OK; and we want to be able to make that assumption in our Makefile
3419 # recipes. So use an aggressive probe to check that the usage we want is
3420 # actually supported "in the wild" to an acceptable degree.
3421 # See automake bug#10828.
3422 # To make any issue more visible, cause the running configure to be aborted
3423 # by default if the 'rm' program in use doesn't match our expectations; the
3424 # user can still override this though.
3425 if rm -f && rm -fr && rm -rf; then : OK; else
3426 cat >&2 <<'END'
3427 Oops!
3428
3429 Your 'rm' program seems unable to run without file operands specified
3430 on the command line, even when the '-f' option is present. This is contrary
3431 to the behaviour of most rm programs out there, and not conforming with
3432 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3433
3434 Please tell bug-automake@gnu.org about your system, including the value
3435 of your $PATH and any error possibly output before this message. This
3436 can help us improve future automake versions.
3437
3438 END
3439 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3440 echo 'Configuration will proceed anyway, since you have set the' >&2
3441 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3442 echo >&2
3443 else
3444 cat >&2 <<'END'
3445 Aborting the configuration process, to ensure you take notice of the issue.
3446
3447 You can download and install GNU coreutils to get an 'rm' implementation
3448 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3449
3450 If you want to complete the configuration process using your problematic
3451 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3452 to "yes", and re-run configure.
3453
3454 END
3455 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3456 fi
3457 fi
3458
3459 # Default to --enable-multilib
3460 # Check whether --enable-multilib was given.
3461 if test "${enable_multilib+set}" = set; then :
3462 enableval=$enable_multilib; case "$enableval" in
3463 yes) multilib=yes ;;
3464 no) multilib=no ;;
3465 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3466 esac
3467 else
3468 multilib=yes
3469 fi
3470
3471
3472 # We may get other options which we leave undocumented:
3473 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3474 # See config-ml.in if you want the gory details.
3475
3476 if test "$srcdir" = "."; then
3477 if test "$with_target_subdir" != "."; then
3478 multi_basedir="$srcdir/$with_multisrctop../.."
3479 else
3480 multi_basedir="$srcdir/$with_multisrctop.."
3481 fi
3482 else
3483 multi_basedir="$srcdir/.."
3484 fi
3485
3486
3487 # Even if the default multilib is not a cross compilation,
3488 # it may be that some of the other multilibs are.
3489 if test $cross_compiling = no && test $multilib = yes \
3490 && test "x${with_multisubdir}" != x ; then
3491 cross_compiling=maybe
3492 fi
3493
3494 ac_config_commands="$ac_config_commands default-1"
3495
3496
3497 # Calculate toolexeclibdir
3498 # Also toolexecdir, though it's only used in toolexeclibdir
3499 case ${enable_version_specific_runtime_libs} in
3500 yes)
3501 # Need the gcc compiler version to know where to install libraries
3502 # and header files if --enable-version-specific-runtime-libs option
3503 # is selected.
3504 toolexecdir='$(libdir)/gcc/$(target_alias)'
3505 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3506 ;;
3507 no)
3508 if test -n "$with_cross_host" &&
3509 test x"$with_cross_host" != x"no"; then
3510 # Install a library built with a cross compiler in tooldir, not libdir.
3511 toolexecdir='$(exec_prefix)/$(target_alias)'
3512 toolexeclibdir='$(toolexecdir)/lib'
3513 else
3514 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3515 toolexeclibdir='$(libdir)'
3516 fi
3517 multi_os_directory=`$CC -print-multi-os-directory`
3518 case $multi_os_directory in
3519 .) ;; # Avoid trailing /.
3520 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3521 esac
3522 ;;
3523 esac
3524
3525
3526
3527 # Check the compiler.
3528 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3529 # We must force CC to /not/ be precious variables; otherwise
3530 # the wrong, non-multilib-adjusted value will be used in multilibs.
3531 # As a side effect, we have to subst CFLAGS ourselves.
3532
3533
3534
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_CC+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC="$CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562 done
3563 done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 CC=$ac_cv_prog_CC
3569 if test -n "$CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3572 else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577
3578 fi
3579 if test -z "$ac_cv_prog_CC"; then
3580 ac_ct_CC=$CC
3581 # Extract the first word of "gcc", so it can be a program name with args.
3582 set dummy gcc; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_CC="gcc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602 done
3603 done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617 if test "x$ac_ct_CC" = x; then
3618 CC=""
3619 else
3620 case $cross_compiling:$ac_tool_warned in
3621 yes:)
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3624 ac_tool_warned=yes ;;
3625 esac
3626 CC=$ac_ct_CC
3627 fi
3628 else
3629 CC="$ac_cv_prog_CC"
3630 fi
3631
3632 if test -z "$CC"; then
3633 if test -n "$ac_tool_prefix"; then
3634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3635 set dummy ${ac_tool_prefix}cc; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if ${ac_cv_prog_CC+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 ac_cv_prog_CC="${ac_tool_prefix}cc"
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 break 2
3654 fi
3655 done
3656 done
3657 IFS=$as_save_IFS
3658
3659 fi
3660 fi
3661 CC=$ac_cv_prog_CC
3662 if test -n "$CC"; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3664 $as_echo "$CC" >&6; }
3665 else
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668 fi
3669
3670
3671 fi
3672 fi
3673 if test -z "$CC"; then
3674 # Extract the first word of "cc", so it can be a program name with args.
3675 set dummy cc; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CC+:} false; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC="$CC" # Let the user override the test.
3683 else
3684 ac_prog_rejected=no
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3693 ac_prog_rejected=yes
3694 continue
3695 fi
3696 ac_cv_prog_CC="cc"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3699 fi
3700 done
3701 done
3702 IFS=$as_save_IFS
3703
3704 if test $ac_prog_rejected = yes; then
3705 # We found a bogon in the path, so make sure we never use it.
3706 set dummy $ac_cv_prog_CC
3707 shift
3708 if test $# != 0; then
3709 # We chose a different compiler from the bogus one.
3710 # However, it has the same basename, so the bogon will be chosen
3711 # first if we set CC to just the basename; use the full file name.
3712 shift
3713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3714 fi
3715 fi
3716 fi
3717 fi
3718 CC=$ac_cv_prog_CC
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3725 fi
3726
3727
3728 fi
3729 if test -z "$CC"; then
3730 if test -n "$ac_tool_prefix"; then
3731 for ac_prog in cl.exe
3732 do
3733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if ${ac_cv_prog_CC+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 if test -n "$CC"; then
3741 ac_cv_prog_CC="$CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754 done
3755 done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 CC=$ac_cv_prog_CC
3761 if test -n "$CC"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3763 $as_echo "$CC" >&6; }
3764 else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 fi
3768
3769
3770 test -n "$CC" && break
3771 done
3772 fi
3773 if test -z "$CC"; then
3774 ac_ct_CC=$CC
3775 for ac_prog in cl.exe
3776 do
3777 # Extract the first word of "$ac_prog", so it can be a program name with args.
3778 set dummy $ac_prog; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if test -n "$ac_ct_CC"; then
3785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3789 do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_ac_ct_CC="$ac_prog"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798 done
3799 done
3800 IFS=$as_save_IFS
3801
3802 fi
3803 fi
3804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3805 if test -n "$ac_ct_CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3807 $as_echo "$ac_ct_CC" >&6; }
3808 else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3811 fi
3812
3813
3814 test -n "$ac_ct_CC" && break
3815 done
3816
3817 if test "x$ac_ct_CC" = x; then
3818 CC=""
3819 else
3820 case $cross_compiling:$ac_tool_warned in
3821 yes:)
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3824 ac_tool_warned=yes ;;
3825 esac
3826 CC=$ac_ct_CC
3827 fi
3828 fi
3829
3830 fi
3831
3832
3833 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "no acceptable C compiler found in \$PATH
3836 See \`config.log' for more details" "$LINENO" 5; }
3837
3838 # Provide some information about the compiler.
3839 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3840 set X $ac_compile
3841 ac_compiler=$2
3842 for ac_option in --version -v -V -qversion; do
3843 { { ac_try="$ac_compiler $ac_option >&5"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3851 ac_status=$?
3852 if test -s conftest.err; then
3853 sed '10a\
3854 ... rest of stderr output deleted ...
3855 10q' conftest.err >conftest.er1
3856 cat conftest.er1 >&5
3857 fi
3858 rm -f conftest.er1 conftest.err
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }
3861 done
3862
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 ac_clean_files_save=$ac_clean_files
3875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3876 # Try to create an executable without -o first, disregard a.out.
3877 # It will help us diagnose broken compilers, and finding out an intuition
3878 # of exeext.
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3880 $as_echo_n "checking whether the C compiler works... " >&6; }
3881 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3882
3883 # The possible output files:
3884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3885
3886 ac_rmfiles=
3887 for ac_file in $ac_files
3888 do
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3892 esac
3893 done
3894 rm -f $ac_rmfiles
3895
3896 if { { ac_try="$ac_link_default"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 $as_echo "$ac_try_echo"; } >&5
3903 (eval "$ac_link_default") 2>&5
3904 ac_status=$?
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }; then :
3907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3909 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3910 # so that the user can short-circuit this test for compilers unknown to
3911 # Autoconf.
3912 for ac_file in $ac_files ''
3913 do
3914 test -f "$ac_file" || continue
3915 case $ac_file in
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3917 ;;
3918 [ab].out )
3919 # We found the default executable, but exeext='' is most
3920 # certainly right.
3921 break;;
3922 *.* )
3923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3924 then :; else
3925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 fi
3927 # We set ac_cv_exeext here because the later test for it is not
3928 # safe: cross compilers may not add the suffix if given an `-o'
3929 # argument, so we may need to know it at that point already.
3930 # Even if this section looks crufty: it has the advantage of
3931 # actually working.
3932 break;;
3933 * )
3934 break;;
3935 esac
3936 done
3937 test "$ac_cv_exeext" = no && ac_cv_exeext=
3938
3939 else
3940 ac_file=''
3941 fi
3942 if test -z "$ac_file"; then :
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 $as_echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error 77 "C compiler cannot create executables
3951 See \`config.log' for more details" "$LINENO" 5; }
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3957 $as_echo_n "checking for C compiler default output file name... " >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3959 $as_echo "$ac_file" >&6; }
3960 ac_exeext=$ac_cv_exeext
3961
3962 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3963 ac_clean_files=$ac_clean_files_save
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3965 $as_echo_n "checking for suffix of executables... " >&6; }
3966 if { { ac_try="$ac_link"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_link") 2>&5
3974 ac_status=$?
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3979 # work properly (i.e., refer to `conftest.exe'), while it won't with
3980 # `rm'.
3981 for ac_file in conftest.exe conftest conftest.*; do
3982 test -f "$ac_file" || continue
3983 case $ac_file in
3984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986 break;;
3987 * ) break;;
3988 esac
3989 done
3990 else
3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3994 See \`config.log' for more details" "$LINENO" 5; }
3995 fi
3996 rm -f conftest conftest$ac_cv_exeext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3998 $as_echo "$ac_cv_exeext" >&6; }
3999
4000 rm -f conftest.$ac_ext
4001 EXEEXT=$ac_cv_exeext
4002 ac_exeext=$EXEEXT
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <stdio.h>
4006 int
4007 main ()
4008 {
4009 FILE *f = fopen ("conftest.out", "w");
4010 return ferror (f) || fclose (f) != 0;
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 ac_clean_files="$ac_clean_files conftest.out"
4017 # Check that the compiler produces executables we can run. If not, either
4018 # the compiler is broken, or we cross compile.
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4020 $as_echo_n "checking whether we are cross compiling... " >&6; }
4021 if test "$cross_compiling" != yes; then
4022 { { ac_try="$ac_link"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_link") 2>&5
4030 ac_status=$?
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4033 if { ac_try='./conftest$ac_cv_exeext'
4034 { { case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_try") 2>&5
4041 ac_status=$?
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; }; then
4044 cross_compiling=no
4045 else
4046 if test "$cross_compiling" = maybe; then
4047 cross_compiling=yes
4048 else
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "cannot run C compiled programs.
4052 If you meant to cross compile, use \`--host'.
4053 See \`config.log' for more details" "$LINENO" 5; }
4054 fi
4055 fi
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4058 $as_echo "$cross_compiling" >&6; }
4059
4060 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4061 ac_clean_files=$ac_clean_files_save
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4063 $as_echo_n "checking for suffix of object files... " >&6; }
4064 if ${ac_cv_objext+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069
4070 int
4071 main ()
4072 {
4073
4074 ;
4075 return 0;
4076 }
4077 _ACEOF
4078 rm -f conftest.o conftest.obj
4079 if { { ac_try="$ac_compile"
4080 case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4085 $as_echo "$ac_try_echo"; } >&5
4086 (eval "$ac_compile") 2>&5
4087 ac_status=$?
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }; then :
4090 for ac_file in conftest.o conftest.obj conftest.*; do
4091 test -f "$ac_file" || continue;
4092 case $ac_file in
4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4095 break;;
4096 esac
4097 done
4098 else
4099 $as_echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4104 as_fn_error $? "cannot compute suffix of object files: cannot compile
4105 See \`config.log' for more details" "$LINENO" 5; }
4106 fi
4107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4110 $as_echo "$ac_cv_objext" >&6; }
4111 OBJEXT=$ac_cv_objext
4112 ac_objext=$OBJEXT
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4114 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4115 if ${ac_cv_c_compiler_gnu+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main ()
4123 {
4124 #ifndef __GNUC__
4125 choke me
4126 #endif
4127
4128 ;
4129 return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133 ac_compiler_gnu=yes
4134 else
4135 ac_compiler_gnu=no
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4139
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4142 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4143 if test $ac_compiler_gnu = yes; then
4144 GCC=yes
4145 else
4146 GCC=
4147 fi
4148 ac_test_CFLAGS=${CFLAGS+set}
4149 ac_save_CFLAGS=$CFLAGS
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4151 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4152 if ${ac_cv_prog_cc_g+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 ac_save_c_werror_flag=$ac_c_werror_flag
4156 ac_c_werror_flag=yes
4157 ac_cv_prog_cc_g=no
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161
4162 int
4163 main ()
4164 {
4165
4166 ;
4167 return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4172 else
4173 CFLAGS=""
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176
4177 int
4178 main ()
4179 {
4180
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186
4187 else
4188 ac_c_werror_flag=$ac_save_c_werror_flag
4189 CFLAGS="-g"
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192
4193 int
4194 main ()
4195 {
4196
4197 ;
4198 return 0;
4199 }
4200 _ACEOF
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_cv_prog_cc_g=yes
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4210 fi
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4212 $as_echo "$ac_cv_prog_cc_g" >&6; }
4213 if test "$ac_test_CFLAGS" = set; then
4214 CFLAGS=$ac_save_CFLAGS
4215 elif test $ac_cv_prog_cc_g = yes; then
4216 if test "$GCC" = yes; then
4217 CFLAGS="-g -O2"
4218 else
4219 CFLAGS="-g"
4220 fi
4221 else
4222 if test "$GCC" = yes; then
4223 CFLAGS="-O2"
4224 else
4225 CFLAGS=
4226 fi
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4229 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4230 if ${ac_cv_prog_cc_c89+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 ac_cv_prog_cc_c89=no
4234 ac_save_CC=$CC
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <stdarg.h>
4238 #include <stdio.h>
4239 struct stat;
4240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4241 struct buf { int x; };
4242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4243 static char *e (p, i)
4244 char **p;
4245 int i;
4246 {
4247 return p[i];
4248 }
4249 static char *f (char * (*g) (char **, int), char **p, ...)
4250 {
4251 char *s;
4252 va_list v;
4253 va_start (v,p);
4254 s = g (p, va_arg (v,int));
4255 va_end (v);
4256 return s;
4257 }
4258
4259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4260 function prototypes and stuff, but not '\xHH' hex character constants.
4261 These don't provoke an error unfortunately, instead are silently treated
4262 as 'x'. The following induces an error, until -std is added to get
4263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4264 array size at least. It's necessary to write '\x00'==0 to get something
4265 that's true only with -std. */
4266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4267
4268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4269 inside strings and character constants. */
4270 #define FOO(x) 'x'
4271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4272
4273 int test (int i, double x);
4274 struct s1 {int (*f) (int a);};
4275 struct s2 {int (*f) (double a);};
4276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277 int argc;
4278 char **argv;
4279 int
4280 main ()
4281 {
4282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4289 do
4290 CC="$ac_save_CC $ac_arg"
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_prog_cc_c89=$ac_arg
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext
4295 test "x$ac_cv_prog_cc_c89" != "xno" && break
4296 done
4297 rm -f conftest.$ac_ext
4298 CC=$ac_save_CC
4299
4300 fi
4301 # AC_CACHE_VAL
4302 case "x$ac_cv_prog_cc_c89" in
4303 x)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 $as_echo "none needed" >&6; } ;;
4306 xno)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4308 $as_echo "unsupported" >&6; } ;;
4309 *)
4310 CC="$CC $ac_cv_prog_cc_c89"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4312 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4313 esac
4314 if test "x$ac_cv_prog_cc_c89" != xno; then :
4315
4316 fi
4317
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4330 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4331 if ${am_cv_prog_cc_c_o+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 int
4338 main ()
4339 {
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 # Make sure it works both with $CC and with simple cc.
4346 # Following AC_PROG_CC_C_O, we do the test twice because some
4347 # compilers refuse to overwrite an existing .o file with -o,
4348 # though they will create one.
4349 am_cv_prog_cc_c_o=yes
4350 for am_i in 1 2; do
4351 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4352 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } \
4356 && test -f conftest2.$ac_objext; then
4357 : OK
4358 else
4359 am_cv_prog_cc_c_o=no
4360 break
4361 fi
4362 done
4363 rm -f core conftest*
4364 unset am_i
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4367 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4368 if test "$am_cv_prog_cc_c_o" != yes; then
4369 # Losing compiler, so override with the script.
4370 # FIXME: It is wrong to rewrite CC.
4371 # But if we don't then we get into trouble of one sort or another.
4372 # A longer-term fix would be to have automake use am__CC in this case,
4373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4374 CC="$am_aux_dir/compile $CC"
4375 fi
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381
4382 DEPDIR="${am__leading_dot}deps"
4383
4384 ac_config_commands="$ac_config_commands depfiles"
4385
4386
4387 am_make=${MAKE-make}
4388 cat > confinc << 'END'
4389 am__doit:
4390 @echo this is the am__doit target
4391 .PHONY: am__doit
4392 END
4393 # If we don't find an include directive, just comment out the code.
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4395 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4396 am__include="#"
4397 am__quote=
4398 _am_result=none
4399 # First try GNU make style include.
4400 echo "include confinc" > confmf
4401 # Ignore all kinds of additional output from 'make'.
4402 case `$am_make -s -f confmf 2> /dev/null` in #(
4403 *the\ am__doit\ target*)
4404 am__include=include
4405 am__quote=
4406 _am_result=GNU
4407 ;;
4408 esac
4409 # Now try BSD make style include.
4410 if test "$am__include" = "#"; then
4411 echo '.include "confinc"' > confmf
4412 case `$am_make -s -f confmf 2> /dev/null` in #(
4413 *the\ am__doit\ target*)
4414 am__include=.include
4415 am__quote="\""
4416 _am_result=BSD
4417 ;;
4418 esac
4419 fi
4420
4421
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4423 $as_echo "$_am_result" >&6; }
4424 rm -f confinc confmf
4425
4426 # Check whether --enable-dependency-tracking was given.
4427 if test "${enable_dependency_tracking+set}" = set; then :
4428 enableval=$enable_dependency_tracking;
4429 fi
4430
4431 if test "x$enable_dependency_tracking" != xno; then
4432 am_depcomp="$ac_aux_dir/depcomp"
4433 AMDEPBACKSLASH='\'
4434 am__nodep='_no'
4435 fi
4436 if test "x$enable_dependency_tracking" != xno; then
4437 AMDEP_TRUE=
4438 AMDEP_FALSE='#'
4439 else
4440 AMDEP_TRUE='#'
4441 AMDEP_FALSE=
4442 fi
4443
4444
4445
4446 depcc="$CC" am_compiler_list=
4447
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4449 $as_echo_n "checking dependency style of $depcc... " >&6; }
4450 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4454 # We make a subdir and do the tests there. Otherwise we can end up
4455 # making bogus files that we don't know about and never remove. For
4456 # instance it was reported that on HP-UX the gcc test will end up
4457 # making a dummy file named 'D' -- because '-MD' means "put the output
4458 # in D".
4459 rm -rf conftest.dir
4460 mkdir conftest.dir
4461 # Copy depcomp to subdir because otherwise we won't find it if we're
4462 # using a relative directory.
4463 cp "$am_depcomp" conftest.dir
4464 cd conftest.dir
4465 # We will build objects and dependencies in a subdirectory because
4466 # it helps to detect inapplicable dependency modes. For instance
4467 # both Tru64's cc and ICC support -MD to output dependencies as a
4468 # side effect of compilation, but ICC will put the dependencies in
4469 # the current directory while Tru64 will put them in the object
4470 # directory.
4471 mkdir sub
4472
4473 am_cv_CC_dependencies_compiler_type=none
4474 if test "$am_compiler_list" = ""; then
4475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4476 fi
4477 am__universal=false
4478 case " $depcc " in #(
4479 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4480 esac
4481
4482 for depmode in $am_compiler_list; do
4483 # Setup a source with many dependencies, because some compilers
4484 # like to wrap large dependency lists on column 80 (with \), and
4485 # we should not choose a depcomp mode which is confused by this.
4486 #
4487 # We need to recreate these files for each test, as the compiler may
4488 # overwrite some of them when testing with obscure command lines.
4489 # This happens at least with the AIX C compiler.
4490 : > sub/conftest.c
4491 for i in 1 2 3 4 5 6; do
4492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4493 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4494 # Solaris 10 /bin/sh.
4495 echo '/* dummy */' > sub/conftst$i.h
4496 done
4497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4498
4499 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4500 # mode. It turns out that the SunPro C++ compiler does not properly
4501 # handle '-M -o', and we need to detect this. Also, some Intel
4502 # versions had trouble with output in subdirs.
4503 am__obj=sub/conftest.${OBJEXT-o}
4504 am__minus_obj="-o $am__obj"
4505 case $depmode in
4506 gcc)
4507 # This depmode causes a compiler race in universal mode.
4508 test "$am__universal" = false || continue
4509 ;;
4510 nosideeffect)
4511 # After this tag, mechanisms are not by side-effect, so they'll
4512 # only be used when explicitly requested.
4513 if test "x$enable_dependency_tracking" = xyes; then
4514 continue
4515 else
4516 break
4517 fi
4518 ;;
4519 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4520 # This compiler won't grok '-c -o', but also, the minuso test has
4521 # not run yet. These depmodes are late enough in the game, and
4522 # so weak that their functioning should not be impacted.
4523 am__obj=conftest.${OBJEXT-o}
4524 am__minus_obj=
4525 ;;
4526 none) break ;;
4527 esac
4528 if depmode=$depmode \
4529 source=sub/conftest.c object=$am__obj \
4530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4532 >/dev/null 2>conftest.err &&
4533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537 # icc doesn't choke on unknown options, it will just issue warnings
4538 # or remarks (even with -Werror). So we grep stderr for any message
4539 # that says an option was ignored or not supported.
4540 # When given -MP, icc 7.0 and 7.1 complain thusly:
4541 # icc: Command line warning: ignoring option '-M'; no argument required
4542 # The diagnosis changed in icc 8.0:
4543 # icc: Command line remark: option '-MP' not supported
4544 if (grep 'ignoring option' conftest.err ||
4545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546 am_cv_CC_dependencies_compiler_type=$depmode
4547 break
4548 fi
4549 fi
4550 done
4551
4552 cd ..
4553 rm -rf conftest.dir
4554 else
4555 am_cv_CC_dependencies_compiler_type=none
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4560 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4562
4563 if
4564 test "x$enable_dependency_tracking" != xno \
4565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4566 am__fastdepCC_TRUE=
4567 am__fastdepCC_FALSE='#'
4568 else
4569 am__fastdepCC_TRUE='#'
4570 am__fastdepCC_FALSE=
4571 fi
4572
4573
4574
4575
4576
4577
4578 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4579 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4580 # in both places for now and restore CFLAGS at the end of config.
4581 save_CFLAGS="$CFLAGS"
4582
4583 # Add -Wall -Werror if we are using GCC.
4584 if test "x$GCC" = "xyes"; then
4585 XCFLAGS="$XCFLAGS -Wall -Werror"
4586 fi
4587
4588 # Find other programs we need.
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}ar; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_AR+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$AR"; then
4598 ac_cv_prog_AR="$AR" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_AR="${ac_tool_prefix}ar"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 AR=$ac_cv_prog_AR
4618 if test -n "$AR"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4620 $as_echo "$AR" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626
4627 fi
4628 if test -z "$ac_cv_prog_AR"; then
4629 ac_ct_AR=$AR
4630 # Extract the first word of "ar", so it can be a program name with args.
4631 set dummy ar; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$ac_ct_AR"; then
4638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_ac_ct_AR="ar"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4650 fi
4651 done
4652 done
4653 IFS=$as_save_IFS
4654
4655 fi
4656 fi
4657 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4658 if test -n "$ac_ct_AR"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4660 $as_echo "$ac_ct_AR" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666 if test "x$ac_ct_AR" = x; then
4667 AR=""
4668 else
4669 case $cross_compiling:$ac_tool_warned in
4670 yes:)
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673 ac_tool_warned=yes ;;
4674 esac
4675 AR=$ac_ct_AR
4676 fi
4677 else
4678 AR="$ac_cv_prog_AR"
4679 fi
4680
4681 if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if ${ac_cv_prog_RANLIB+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -n "$RANLIB"; then
4690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 fi
4708 fi
4709 RANLIB=$ac_cv_prog_RANLIB
4710 if test -n "$RANLIB"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4712 $as_echo "$RANLIB" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717
4718
4719 fi
4720 if test -z "$ac_cv_prog_RANLIB"; then
4721 ac_ct_RANLIB=$RANLIB
4722 # Extract the first word of "ranlib", so it can be a program name with args.
4723 set dummy ranlib; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -n "$ac_ct_RANLIB"; then
4730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_prog_ac_ct_RANLIB="ranlib"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4742 fi
4743 done
4744 done
4745 IFS=$as_save_IFS
4746
4747 fi
4748 fi
4749 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4750 if test -n "$ac_ct_RANLIB"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4752 $as_echo "$ac_ct_RANLIB" >&6; }
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4756 fi
4757
4758 if test "x$ac_ct_RANLIB" = x; then
4759 RANLIB="ranlib-not-found-in-path-error"
4760 else
4761 case $cross_compiling:$ac_tool_warned in
4762 yes:)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765 ac_tool_warned=yes ;;
4766 esac
4767 RANLIB=$ac_ct_RANLIB
4768 fi
4769 else
4770 RANLIB="$ac_cv_prog_RANLIB"
4771 fi
4772
4773 # Extract the first word of "perl", so it can be a program name with args.
4774 set dummy perl; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if ${ac_cv_path_PERL+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 case $PERL in
4781 [\\/]* | ?:[\\/]*)
4782 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4783 ;;
4784 *)
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4801 ;;
4802 esac
4803 fi
4804 PERL=$ac_cv_path_PERL
4805 if test -n "$PERL"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4807 $as_echo "$PERL" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4812
4813
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4815 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4816 set x ${MAKE-make}
4817 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4818 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 cat >conftest.make <<\_ACEOF
4822 SHELL = /bin/sh
4823 all:
4824 @echo '@@@%%%=$(MAKE)=@@@%%%'
4825 _ACEOF
4826 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4827 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4828 *@@@%%%=?*=@@@%%%*)
4829 eval ac_cv_prog_make_${ac_make}_set=yes;;
4830 *)
4831 eval ac_cv_prog_make_${ac_make}_set=no;;
4832 esac
4833 rm -f conftest.make
4834 fi
4835 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4837 $as_echo "yes" >&6; }
4838 SET_MAKE=
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 SET_MAKE="MAKE=${MAKE-make}"
4843 fi
4844
4845
4846
4847 # See if makeinfo has been installed and is modern enough
4848 # that we can use it.
4849
4850 # Extract the first word of "makeinfo", so it can be a program name with args.
4851 set dummy makeinfo; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if ${ac_cv_prog_MAKEINFO+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -n "$MAKEINFO"; then
4858 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_MAKEINFO="makeinfo"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 MAKEINFO=$ac_cv_prog_MAKEINFO
4878 if test -n "$MAKEINFO"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4880 $as_echo "$MAKEINFO" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884 fi
4885
4886
4887 if test -n "$MAKEINFO"; then
4888 # Found it, now check the version.
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4890 $as_echo_n "checking for modern makeinfo... " >&6; }
4891 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4895 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4896
4897 case $ac_prog_version in
4898 '') gcc_cv_prog_makeinfo_modern=no;;
4899 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4900 *) gcc_cv_prog_makeinfo_modern=no;;
4901 esac
4902
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4905 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4906 else
4907 gcc_cv_prog_makeinfo_modern=no
4908 fi
4909 if test $gcc_cv_prog_makeinfo_modern = no; then
4910 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4911 fi
4912
4913 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4914 BUILD_INFO_TRUE=
4915 BUILD_INFO_FALSE='#'
4916 else
4917 BUILD_INFO_TRUE='#'
4918 BUILD_INFO_FALSE=
4919 fi
4920
4921
4922
4923 # Configure libtool
4924 case `pwd` in
4925 *\ * | *\ *)
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4927 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4928 esac
4929
4930
4931
4932 macro_version='2.2.7a'
4933 macro_revision='1.3134'
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947 ltmain="$ac_aux_dir/ltmain.sh"
4948
4949 # Backslashify metacharacters that are still active within
4950 # double-quoted strings.
4951 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4952
4953 # Same as above, but do not quote variable references.
4954 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4955
4956 # Sed substitution to delay expansion of an escaped shell variable in a
4957 # double_quote_subst'ed string.
4958 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4959
4960 # Sed substitution to delay expansion of an escaped single quote.
4961 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4962
4963 # Sed substitution to avoid accidental globbing in evaled expressions
4964 no_glob_subst='s/\*/\\\*/g'
4965
4966 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4967 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4971 $as_echo_n "checking how to print strings... " >&6; }
4972 # Test print first, because it will be a builtin if present.
4973 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4974 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4975 ECHO='print -r --'
4976 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4977 ECHO='printf %s\n'
4978 else
4979 # Use this function as a fallback that always works.
4980 func_fallback_echo ()
4981 {
4982 eval 'cat <<_LTECHO_EOF
4983 $1
4984 _LTECHO_EOF'
4985 }
4986 ECHO='func_fallback_echo'
4987 fi
4988
4989 # func_echo_all arg...
4990 # Invoke $ECHO with all args, space-separated.
4991 func_echo_all ()
4992 {
4993 $ECHO ""
4994 }
4995
4996 case "$ECHO" in
4997 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4998 $as_echo "printf" >&6; } ;;
4999 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5000 $as_echo "print -r" >&6; } ;;
5001 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5002 $as_echo "cat" >&6; } ;;
5003 esac
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5019 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5020 if ${ac_cv_path_SED+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5024 for ac_i in 1 2 3 4 5 6 7; do
5025 ac_script="$ac_script$as_nl$ac_script"
5026 done
5027 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5028 { ac_script=; unset ac_script;}
5029 if test -z "$SED"; then
5030 ac_path_SED_found=false
5031 # Loop through the user's path and test for each of PROGNAME-LIST
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_prog in sed gsed; do
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5040 as_fn_executable_p "$ac_path_SED" || continue
5041 # Check for GNU ac_path_SED and select it if it is found.
5042 # Check for GNU $ac_path_SED
5043 case `"$ac_path_SED" --version 2>&1` in
5044 *GNU*)
5045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5046 *)
5047 ac_count=0
5048 $as_echo_n 0123456789 >"conftest.in"
5049 while :
5050 do
5051 cat "conftest.in" "conftest.in" >"conftest.tmp"
5052 mv "conftest.tmp" "conftest.in"
5053 cp "conftest.in" "conftest.nl"
5054 $as_echo '' >> "conftest.nl"
5055 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5057 as_fn_arith $ac_count + 1 && ac_count=$as_val
5058 if test $ac_count -gt ${ac_path_SED_max-0}; then
5059 # Best one so far, save it but keep looking for a better one
5060 ac_cv_path_SED="$ac_path_SED"
5061 ac_path_SED_max=$ac_count
5062 fi
5063 # 10*(2^10) chars as input seems more than enough
5064 test $ac_count -gt 10 && break
5065 done
5066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5067 esac
5068
5069 $ac_path_SED_found && break 3
5070 done
5071 done
5072 done
5073 IFS=$as_save_IFS
5074 if test -z "$ac_cv_path_SED"; then
5075 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5076 fi
5077 else
5078 ac_cv_path_SED=$SED
5079 fi
5080
5081 fi
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5083 $as_echo "$ac_cv_path_SED" >&6; }
5084 SED="$ac_cv_path_SED"
5085 rm -f conftest.sed
5086
5087 test -z "$SED" && SED=sed
5088 Xsed="$SED -e 1s/^X//"
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if ${ac_cv_path_GREP+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -z "$GREP"; then
5106 ac_path_GREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in grep ggrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5116 as_fn_executable_p "$ac_path_GREP" || continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118 # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5120 *GNU*)
5121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5122 *)
5123 ac_count=0
5124 $as_echo_n 0123456789 >"conftest.in"
5125 while :
5126 do
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'GREP' >> "conftest.nl"
5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_GREP="$ac_path_GREP"
5137 ac_path_GREP_max=$ac_count
5138 fi
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5141 done
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145 $ac_path_GREP_found && break 3
5146 done
5147 done
5148 done
5149 IFS=$as_save_IFS
5150 if test -z "$ac_cv_path_GREP"; then
5151 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152 fi
5153 else
5154 ac_cv_path_GREP=$GREP
5155 fi
5156
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160 GREP="$ac_cv_path_GREP"
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if ${ac_cv_path_EGREP+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5169 then ac_cv_path_EGREP="$GREP -E"
5170 else
5171 if test -z "$EGREP"; then
5172 ac_path_EGREP_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176 do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in egrep; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5182 as_fn_executable_p "$ac_path_EGREP" || continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184 # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5186 *GNU*)
5187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5188 *)
5189 ac_count=0
5190 $as_echo_n 0123456789 >"conftest.in"
5191 while :
5192 do
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'EGREP' >> "conftest.nl"
5197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_EGREP="$ac_path_EGREP"
5203 ac_path_EGREP_max=$ac_count
5204 fi
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5207 done
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209 esac
5210
5211 $ac_path_EGREP_found && break 3
5212 done
5213 done
5214 done
5215 IFS=$as_save_IFS
5216 if test -z "$ac_cv_path_EGREP"; then
5217 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218 fi
5219 else
5220 ac_cv_path_EGREP=$EGREP
5221 fi
5222
5223 fi
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227 EGREP="$ac_cv_path_EGREP"
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5231 $as_echo_n "checking for fgrep... " >&6; }
5232 if ${ac_cv_path_FGREP+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5236 then ac_cv_path_FGREP="$GREP -F"
5237 else
5238 if test -z "$FGREP"; then
5239 ac_path_FGREP_found=false
5240 # Loop through the user's path and test for each of PROGNAME-LIST
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5243 do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_prog in fgrep; do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5249 as_fn_executable_p "$ac_path_FGREP" || continue
5250 # Check for GNU ac_path_FGREP and select it if it is found.
5251 # Check for GNU $ac_path_FGREP
5252 case `"$ac_path_FGREP" --version 2>&1` in
5253 *GNU*)
5254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5255 *)
5256 ac_count=0
5257 $as_echo_n 0123456789 >"conftest.in"
5258 while :
5259 do
5260 cat "conftest.in" "conftest.in" >"conftest.tmp"
5261 mv "conftest.tmp" "conftest.in"
5262 cp "conftest.in" "conftest.nl"
5263 $as_echo 'FGREP' >> "conftest.nl"
5264 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266 as_fn_arith $ac_count + 1 && ac_count=$as_val
5267 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5268 # Best one so far, save it but keep looking for a better one
5269 ac_cv_path_FGREP="$ac_path_FGREP"
5270 ac_path_FGREP_max=$ac_count
5271 fi
5272 # 10*(2^10) chars as input seems more than enough
5273 test $ac_count -gt 10 && break
5274 done
5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5276 esac
5277
5278 $ac_path_FGREP_found && break 3
5279 done
5280 done
5281 done
5282 IFS=$as_save_IFS
5283 if test -z "$ac_cv_path_FGREP"; then
5284 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5285 fi
5286 else
5287 ac_cv_path_FGREP=$FGREP
5288 fi
5289
5290 fi
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5293 $as_echo "$ac_cv_path_FGREP" >&6; }
5294 FGREP="$ac_cv_path_FGREP"
5295
5296
5297 test -z "$GREP" && GREP=grep
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317 # Check whether --with-gnu-ld was given.
5318 if test "${with_gnu_ld+set}" = set; then :
5319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5320 else
5321 with_gnu_ld=no
5322 fi
5323
5324 ac_prog=ld
5325 if test "$GCC" = yes; then
5326 # Check if gcc -print-prog-name=ld gives a path.
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5328 $as_echo_n "checking for ld used by $CC... " >&6; }
5329 case $host in
5330 *-*-mingw*)
5331 # gcc leaves a trailing carriage return which upsets mingw
5332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5333 *)
5334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5335 esac
5336 case $ac_prog in
5337 # Accept absolute paths.
5338 [\\/]* | ?:[\\/]*)
5339 re_direlt='/[^/][^/]*/\.\./'
5340 # Canonicalize the pathname of ld
5341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5344 done
5345 test -z "$LD" && LD="$ac_prog"
5346 ;;
5347 "")
5348 # If it fails, then pretend we aren't using GCC.
5349 ac_prog=ld
5350 ;;
5351 *)
5352 # If it is relative, then search for the first ld in PATH.
5353 with_gnu_ld=unknown
5354 ;;
5355 esac
5356 elif test "$with_gnu_ld" = yes; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5358 $as_echo_n "checking for GNU ld... " >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5361 $as_echo_n "checking for non-GNU ld... " >&6; }
5362 fi
5363 if ${lt_cv_path_LD+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test -z "$LD"; then
5367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5368 for ac_dir in $PATH; do
5369 IFS="$lt_save_ifs"
5370 test -z "$ac_dir" && ac_dir=.
5371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5372 lt_cv_path_LD="$ac_dir/$ac_prog"
5373 # Check to see if the program is GNU ld. I'd rather use --version,
5374 # but apparently some variants of GNU ld only accept -v.
5375 # Break only if it was the GNU/non-GNU ld that we prefer.
5376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5377 *GNU* | *'with BFD'*)
5378 test "$with_gnu_ld" != no && break
5379 ;;
5380 *)
5381 test "$with_gnu_ld" != yes && break
5382 ;;
5383 esac
5384 fi
5385 done
5386 IFS="$lt_save_ifs"
5387 else
5388 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5389 fi
5390 fi
5391
5392 LD="$lt_cv_path_LD"
5393 if test -n "$LD"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5395 $as_echo "$LD" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5402 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5403 if ${lt_cv_prog_gnu_ld+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5407 case `$LD -v 2>&1 </dev/null` in
5408 *GNU* | *'with BFD'*)
5409 lt_cv_prog_gnu_ld=yes
5410 ;;
5411 *)
5412 lt_cv_prog_gnu_ld=no
5413 ;;
5414 esac
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5417 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5418 with_gnu_ld=$lt_cv_prog_gnu_ld
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5429 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5430 if ${lt_cv_path_NM+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$NM"; then
5434 # Let the user override the test.
5435 lt_cv_path_NM="$NM"
5436 else
5437 lt_nm_to_check="${ac_tool_prefix}nm"
5438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5439 lt_nm_to_check="$lt_nm_to_check nm"
5440 fi
5441 for lt_tmp_nm in $lt_nm_to_check; do
5442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5443 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5444 IFS="$lt_save_ifs"
5445 test -z "$ac_dir" && ac_dir=.
5446 tmp_nm="$ac_dir/$lt_tmp_nm"
5447 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5448 # Check to see if the nm accepts a BSD-compat flag.
5449 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5450 # nm: unknown option "B" ignored
5451 # Tru64's nm complains that /dev/null is an invalid object file
5452 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5453 */dev/null* | *'Invalid file or object type'*)
5454 lt_cv_path_NM="$tmp_nm -B"
5455 break
5456 ;;
5457 *)
5458 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5459 */dev/null*)
5460 lt_cv_path_NM="$tmp_nm -p"
5461 break
5462 ;;
5463 *)
5464 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5465 continue # so that we can try to find one that supports BSD flags
5466 ;;
5467 esac
5468 ;;
5469 esac
5470 fi
5471 done
5472 IFS="$lt_save_ifs"
5473 done
5474 : ${lt_cv_path_NM=no}
5475 fi
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5478 $as_echo "$lt_cv_path_NM" >&6; }
5479 if test "$lt_cv_path_NM" != "no"; then
5480 NM="$lt_cv_path_NM"
5481 else
5482 # Didn't find any BSD compatible name lister, look for dumpbin.
5483 if test -n "$DUMPBIN"; then :
5484 # Let the user override the test.
5485 else
5486 if test -n "$ac_tool_prefix"; then
5487 for ac_prog in dumpbin "link -dump"
5488 do
5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_prog_DUMPBIN+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 if test -n "$DUMPBIN"; then
5497 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510 done
5511 done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 DUMPBIN=$ac_cv_prog_DUMPBIN
5517 if test -n "$DUMPBIN"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5519 $as_echo "$DUMPBIN" >&6; }
5520 else
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5524
5525
5526 test -n "$DUMPBIN" && break
5527 done
5528 fi
5529 if test -z "$DUMPBIN"; then
5530 ac_ct_DUMPBIN=$DUMPBIN
5531 for ac_prog in dumpbin "link -dump"
5532 do
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$ac_ct_DUMPBIN"; then
5541 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5561 if test -n "$ac_ct_DUMPBIN"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5563 $as_echo "$ac_ct_DUMPBIN" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569
5570 test -n "$ac_ct_DUMPBIN" && break
5571 done
5572
5573 if test "x$ac_ct_DUMPBIN" = x; then
5574 DUMPBIN=":"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582 DUMPBIN=$ac_ct_DUMPBIN
5583 fi
5584 fi
5585
5586 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5587 *COFF*)
5588 DUMPBIN="$DUMPBIN -symbols"
5589 ;;
5590 *)
5591 DUMPBIN=:
5592 ;;
5593 esac
5594 fi
5595
5596 if test "$DUMPBIN" != ":"; then
5597 NM="$DUMPBIN"
5598 fi
5599 fi
5600 test -z "$NM" && NM=nm
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5608 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5609 if ${lt_cv_nm_interface+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 lt_cv_nm_interface="BSD nm"
5613 echo "int some_variable = 0;" > conftest.$ac_ext
5614 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5615 (eval "$ac_compile" 2>conftest.err)
5616 cat conftest.err >&5
5617 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5618 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5619 cat conftest.err >&5
5620 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5621 cat conftest.out >&5
5622 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5623 lt_cv_nm_interface="MS dumpbin"
5624 fi
5625 rm -f conftest*
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5628 $as_echo "$lt_cv_nm_interface" >&6; }
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5631 $as_echo_n "checking whether ln -s works... " >&6; }
5632 LN_S=$as_ln_s
5633 if test "$LN_S" = "ln -s"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635 $as_echo "yes" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5638 $as_echo "no, using $LN_S" >&6; }
5639 fi
5640
5641 # find the maximum length of command line arguments
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5643 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5644 if ${lt_cv_sys_max_cmd_len+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 i=0
5648 teststring="ABCD"
5649
5650 case $build_os in
5651 msdosdjgpp*)
5652 # On DJGPP, this test can blow up pretty badly due to problems in libc
5653 # (any single argument exceeding 2000 bytes causes a buffer overrun
5654 # during glob expansion). Even if it were fixed, the result of this
5655 # check would be larger than it should be.
5656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5657 ;;
5658
5659 gnu*)
5660 # Under GNU Hurd, this test is not required because there is
5661 # no limit to the length of command line arguments.
5662 # Libtool will interpret -1 as no limit whatsoever
5663 lt_cv_sys_max_cmd_len=-1;
5664 ;;
5665
5666 cygwin* | mingw* | cegcc*)
5667 # On Win9x/ME, this test blows up -- it succeeds, but takes
5668 # about 5 minutes as the teststring grows exponentially.
5669 # Worse, since 9x/ME are not pre-emptively multitasking,
5670 # you end up with a "frozen" computer, even though with patience
5671 # the test eventually succeeds (with a max line length of 256k).
5672 # Instead, let's just punt: use the minimum linelength reported by
5673 # all of the supported platforms: 8192 (on NT/2K/XP).
5674 lt_cv_sys_max_cmd_len=8192;
5675 ;;
5676
5677 mint*)
5678 # On MiNT this can take a long time and run out of memory.
5679 lt_cv_sys_max_cmd_len=8192;
5680 ;;
5681
5682 amigaos*)
5683 # On AmigaOS with pdksh, this test takes hours, literally.
5684 # So we just punt and use a minimum line length of 8192.
5685 lt_cv_sys_max_cmd_len=8192;
5686 ;;
5687
5688 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5689 # This has been around since 386BSD, at least. Likely further.
5690 if test -x /sbin/sysctl; then
5691 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5692 elif test -x /usr/sbin/sysctl; then
5693 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5694 else
5695 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5696 fi
5697 # And add a safety zone
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5700 ;;
5701
5702 interix*)
5703 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5704 lt_cv_sys_max_cmd_len=196608
5705 ;;
5706
5707 osf*)
5708 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5709 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5710 # nice to cause kernel panics so lets avoid the loop below.
5711 # First set a reasonable default.
5712 lt_cv_sys_max_cmd_len=16384
5713 #
5714 if test -x /sbin/sysconfig; then
5715 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5716 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5717 esac
5718 fi
5719 ;;
5720 sco3.2v5*)
5721 lt_cv_sys_max_cmd_len=102400
5722 ;;
5723 sysv5* | sco5v6* | sysv4.2uw2*)
5724 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5725 if test -n "$kargmax"; then
5726 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5727 else
5728 lt_cv_sys_max_cmd_len=32768
5729 fi
5730 ;;
5731 *)
5732 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5733 if test -n "$lt_cv_sys_max_cmd_len"; then
5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5736 else
5737 # Make teststring a little bigger before we do anything with it.
5738 # a 1K string should be a reasonable start.
5739 for i in 1 2 3 4 5 6 7 8 ; do
5740 teststring=$teststring$teststring
5741 done
5742 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5743 # If test is not a shell built-in, we'll probably end up computing a
5744 # maximum length that is only half of the actual maximum length, but
5745 # we can't tell.
5746 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5747 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5748 test $i != 17 # 1/2 MB should be enough
5749 do
5750 i=`expr $i + 1`
5751 teststring=$teststring$teststring
5752 done
5753 # Only check the string length outside the loop.
5754 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5755 teststring=
5756 # Add a significant safety factor because C++ compilers can tack on
5757 # massive amounts of additional arguments before passing them to the
5758 # linker. It appears as though 1/2 is a usable value.
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5760 fi
5761 ;;
5762 esac
5763
5764 fi
5765
5766 if test -n $lt_cv_sys_max_cmd_len ; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5768 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5771 $as_echo "none" >&6; }
5772 fi
5773 max_cmd_len=$lt_cv_sys_max_cmd_len
5774
5775
5776
5777
5778
5779
5780 : ${CP="cp -f"}
5781 : ${MV="mv -f"}
5782 : ${RM="rm -f"}
5783
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5785 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5786 # Try some XSI features
5787 xsi_shell=no
5788 ( _lt_dummy="a/b/c"
5789 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5790 = c,a/b,, \
5791 && eval 'test $(( 1 + 1 )) -eq 2 \
5792 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5793 && xsi_shell=yes
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5795 $as_echo "$xsi_shell" >&6; }
5796
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5799 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5800 lt_shell_append=no
5801 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5802 >/dev/null 2>&1 \
5803 && lt_shell_append=yes
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5805 $as_echo "$lt_shell_append" >&6; }
5806
5807
5808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5809 lt_unset=unset
5810 else
5811 lt_unset=false
5812 fi
5813
5814
5815
5816
5817
5818 # test EBCDIC or ASCII
5819 case `echo X|tr X '\101'` in
5820 A) # ASCII based system
5821 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5822 lt_SP2NL='tr \040 \012'
5823 lt_NL2SP='tr \015\012 \040\040'
5824 ;;
5825 *) # EBCDIC based system
5826 lt_SP2NL='tr \100 \n'
5827 lt_NL2SP='tr \r\n \100\100'
5828 ;;
5829 esac
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5840 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5841 if ${lt_cv_ld_reload_flag+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 lt_cv_ld_reload_flag='-r'
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5847 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5848 reload_flag=$lt_cv_ld_reload_flag
5849 case $reload_flag in
5850 "" | " "*) ;;
5851 *) reload_flag=" $reload_flag" ;;
5852 esac
5853 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5854 case $host_os in
5855 darwin*)
5856 if test "$GCC" = yes; then
5857 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5858 else
5859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5860 fi
5861 ;;
5862 esac
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_OBJDUMP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -n "$OBJDUMP"; then
5881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 OBJDUMP=$ac_cv_prog_OBJDUMP
5901 if test -n "$OBJDUMP"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5903 $as_echo "$OBJDUMP" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910 fi
5911 if test -z "$ac_cv_prog_OBJDUMP"; then
5912 ac_ct_OBJDUMP=$OBJDUMP
5913 # Extract the first word of "objdump", so it can be a program name with args.
5914 set dummy objdump; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 if test -n "$ac_ct_OBJDUMP"; then
5921 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934 done
5935 done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5941 if test -n "$ac_ct_OBJDUMP"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5943 $as_echo "$ac_ct_OBJDUMP" >&6; }
5944 else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949 if test "x$ac_ct_OBJDUMP" = x; then
5950 OBJDUMP="false"
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953 yes:)
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5957 esac
5958 OBJDUMP=$ac_ct_OBJDUMP
5959 fi
5960 else
5961 OBJDUMP="$ac_cv_prog_OBJDUMP"
5962 fi
5963
5964 test -z "$OBJDUMP" && OBJDUMP=objdump
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5975 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5976 if ${lt_cv_deplibs_check_method+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 lt_cv_file_magic_cmd='$MAGIC_CMD'
5980 lt_cv_file_magic_test_file=
5981 lt_cv_deplibs_check_method='unknown'
5982 # Need to set the preceding variable on all platforms that support
5983 # interlibrary dependencies.
5984 # 'none' -- dependencies not supported.
5985 # `unknown' -- same as none, but documents that we really don't know.
5986 # 'pass_all' -- all dependencies passed with no checks.
5987 # 'test_compile' -- check by making test program.
5988 # 'file_magic [[regex]]' -- check by looking for files in library path
5989 # which responds to the $file_magic_cmd with a given extended regex.
5990 # If you have `file' or equivalent on your system and you're not sure
5991 # whether `pass_all' will *always* work, you probably want this one.
5992
5993 case $host_os in
5994 aix[4-9]*)
5995 lt_cv_deplibs_check_method=pass_all
5996 ;;
5997
5998 beos*)
5999 lt_cv_deplibs_check_method=pass_all
6000 ;;
6001
6002 bsdi[45]*)
6003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6004 lt_cv_file_magic_cmd='/usr/bin/file -L'
6005 lt_cv_file_magic_test_file=/shlib/libc.so
6006 ;;
6007
6008 cygwin*)
6009 # func_win32_libid is a shell function defined in ltmain.sh
6010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6011 lt_cv_file_magic_cmd='func_win32_libid'
6012 ;;
6013
6014 mingw* | pw32*)
6015 # Base MSYS/MinGW do not provide the 'file' command needed by
6016 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6017 # unless we find 'file', for example because we are cross-compiling.
6018 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6019 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6021 lt_cv_file_magic_cmd='func_win32_libid'
6022 else
6023 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6024 lt_cv_file_magic_cmd='$OBJDUMP -f'
6025 fi
6026 ;;
6027
6028 cegcc*)
6029 # use the weaker test based on 'objdump'. See mingw*.
6030 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6031 lt_cv_file_magic_cmd='$OBJDUMP -f'
6032 ;;
6033
6034 darwin* | rhapsody*)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037
6038 freebsd* | dragonfly*)
6039 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6040 case $host_cpu in
6041 i*86 )
6042 # Not sure whether the presence of OpenBSD here was a mistake.
6043 # Let's accept both of them until this is cleared up.
6044 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6045 lt_cv_file_magic_cmd=/usr/bin/file
6046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6047 ;;
6048 esac
6049 else
6050 lt_cv_deplibs_check_method=pass_all
6051 fi
6052 ;;
6053
6054 gnu*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057
6058 haiku*)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061
6062 hpux10.20* | hpux11*)
6063 lt_cv_file_magic_cmd=/usr/bin/file
6064 case $host_cpu in
6065 ia64*)
6066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6067 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6068 ;;
6069 hppa*64*)
6070 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]'
6071 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6072 ;;
6073 *)
6074 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6075 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6076 ;;
6077 esac
6078 ;;
6079
6080 interix[3-9]*)
6081 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6083 ;;
6084
6085 irix5* | irix6* | nonstopux*)
6086 case $LD in
6087 *-32|*"-32 ") libmagic=32-bit;;
6088 *-n32|*"-n32 ") libmagic=N32;;
6089 *-64|*"-64 ") libmagic=64-bit;;
6090 *) libmagic=never-match;;
6091 esac
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094
6095 # This must be Linux ELF.
6096 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6097 lt_cv_deplibs_check_method=pass_all
6098 ;;
6099
6100 netbsd*)
6101 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6103 else
6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6105 fi
6106 ;;
6107
6108 newos6*)
6109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6110 lt_cv_file_magic_cmd=/usr/bin/file
6111 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6112 ;;
6113
6114 *nto* | *qnx*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118 openbsd*)
6119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6121 else
6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6123 fi
6124 ;;
6125
6126 osf3* | osf4* | osf5*)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129
6130 rdos*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 solaris*)
6135 lt_cv_deplibs_check_method=pass_all
6136 ;;
6137
6138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6139 lt_cv_deplibs_check_method=pass_all
6140 ;;
6141
6142 sysv4 | sysv4.3*)
6143 case $host_vendor in
6144 motorola)
6145 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]'
6146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6147 ;;
6148 ncr)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151 sequent)
6152 lt_cv_file_magic_cmd='/bin/file'
6153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6154 ;;
6155 sni)
6156 lt_cv_file_magic_cmd='/bin/file'
6157 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6158 lt_cv_file_magic_test_file=/lib/libc.so
6159 ;;
6160 siemens)
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163 pc)
6164 lt_cv_deplibs_check_method=pass_all
6165 ;;
6166 esac
6167 ;;
6168
6169 tpf*)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172 esac
6173
6174 fi
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6176 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6177 file_magic_cmd=$lt_cv_file_magic_cmd
6178 deplibs_check_method=$lt_cv_deplibs_check_method
6179 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}ar; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if ${ac_cv_prog_AR+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$AR"; then
6201 ac_cv_prog_AR="$AR" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_AR="${ac_tool_prefix}ar"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 AR=$ac_cv_prog_AR
6221 if test -n "$AR"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6223 $as_echo "$AR" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6227 fi
6228
6229
6230 fi
6231 if test -z "$ac_cv_prog_AR"; then
6232 ac_ct_AR=$AR
6233 # Extract the first word of "ar", so it can be a program name with args.
6234 set dummy ar; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if test -n "$ac_ct_AR"; then
6241 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6250 ac_cv_prog_ac_ct_AR="ar"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6261 if test -n "$ac_ct_AR"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6263 $as_echo "$ac_ct_AR" >&6; }
6264 else
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6267 fi
6268
6269 if test "x$ac_ct_AR" = x; then
6270 AR="false"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278 AR=$ac_ct_AR
6279 fi
6280 else
6281 AR="$ac_cv_prog_AR"
6282 fi
6283
6284 test -z "$AR" && AR=ar
6285 test -z "$AR_FLAGS" && AR_FLAGS=cru
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6299 set dummy ${ac_tool_prefix}strip; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if ${ac_cv_prog_STRIP+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 if test -n "$STRIP"; then
6306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 STRIP=$ac_cv_prog_STRIP
6326 if test -n "$STRIP"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6328 $as_echo "$STRIP" >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6332 fi
6333
6334
6335 fi
6336 if test -z "$ac_cv_prog_STRIP"; then
6337 ac_ct_STRIP=$STRIP
6338 # Extract the first word of "strip", so it can be a program name with args.
6339 set dummy strip; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$ac_ct_STRIP"; then
6346 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355 ac_cv_prog_ac_ct_STRIP="strip"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6358 fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363 fi
6364 fi
6365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6366 if test -n "$ac_ct_STRIP"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6368 $as_echo "$ac_ct_STRIP" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6372 fi
6373
6374 if test "x$ac_ct_STRIP" = x; then
6375 STRIP=":"
6376 else
6377 case $cross_compiling:$ac_tool_warned in
6378 yes:)
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381 ac_tool_warned=yes ;;
6382 esac
6383 STRIP=$ac_ct_STRIP
6384 fi
6385 else
6386 STRIP="$ac_cv_prog_STRIP"
6387 fi
6388
6389 test -z "$STRIP" && STRIP=:
6390
6391
6392
6393
6394
6395
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6398 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_RANLIB+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 if test -n "$RANLIB"; then
6405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 RANLIB=$ac_cv_prog_RANLIB
6425 if test -n "$RANLIB"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6427 $as_echo "$RANLIB" >&6; }
6428 else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433
6434 fi
6435 if test -z "$ac_cv_prog_RANLIB"; then
6436 ac_ct_RANLIB=$RANLIB
6437 # Extract the first word of "ranlib", so it can be a program name with args.
6438 set dummy ranlib; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$ac_ct_RANLIB"; then
6445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_RANLIB="ranlib"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462 fi
6463 fi
6464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6465 if test -n "$ac_ct_RANLIB"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6467 $as_echo "$ac_ct_RANLIB" >&6; }
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6471 fi
6472
6473 if test "x$ac_ct_RANLIB" = x; then
6474 RANLIB=":"
6475 else
6476 case $cross_compiling:$ac_tool_warned in
6477 yes:)
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480 ac_tool_warned=yes ;;
6481 esac
6482 RANLIB=$ac_ct_RANLIB
6483 fi
6484 else
6485 RANLIB="$ac_cv_prog_RANLIB"
6486 fi
6487
6488 test -z "$RANLIB" && RANLIB=:
6489
6490
6491
6492
6493
6494
6495 # Determine commands to create old-style static archives.
6496 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6497 old_postinstall_cmds='chmod 644 $oldlib'
6498 old_postuninstall_cmds=
6499
6500 if test -n "$RANLIB"; then
6501 case $host_os in
6502 openbsd*)
6503 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6504 ;;
6505 *)
6506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6507 ;;
6508 esac
6509 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6510 fi
6511
6512 case $host_os in
6513 darwin*)
6514 lock_old_archive_extraction=yes ;;
6515 *)
6516 lock_old_archive_extraction=no ;;
6517 esac
6518
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 # If no C compiler was specified, use CC.
6558 LTCC=${LTCC-"$CC"}
6559
6560 # If no C compiler flags were specified, use CFLAGS.
6561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6562
6563 # Allow CC to be a program name with arguments.
6564 compiler=$CC
6565
6566
6567 # Check for command to grab the raw symbol name followed by C symbol from nm.
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6569 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6570 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573
6574 # These are sane defaults that work on at least a few old systems.
6575 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6576
6577 # Character class describing NM global symbol codes.
6578 symcode='[BCDEGRST]'
6579
6580 # Regexp to match symbols that can be accessed directly from C.
6581 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6582
6583 # Define system-specific variables.
6584 case $host_os in
6585 aix*)
6586 symcode='[BCDT]'
6587 ;;
6588 cygwin* | mingw* | pw32* | cegcc*)
6589 symcode='[ABCDGISTW]'
6590 ;;
6591 hpux*)
6592 if test "$host_cpu" = ia64; then
6593 symcode='[ABCDEGRST]'
6594 fi
6595 ;;
6596 irix* | nonstopux*)
6597 symcode='[BCDEGRST]'
6598 ;;
6599 osf*)
6600 symcode='[BCDEGQRST]'
6601 ;;
6602 solaris*)
6603 symcode='[BDRT]'
6604 ;;
6605 sco3.2v5*)
6606 symcode='[DT]'
6607 ;;
6608 sysv4.2uw2*)
6609 symcode='[DT]'
6610 ;;
6611 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6612 symcode='[ABDT]'
6613 ;;
6614 sysv4)
6615 symcode='[DFNSTU]'
6616 ;;
6617 esac
6618
6619 # If we're using GNU nm, then use its standard symbol codes.
6620 case `$NM -V 2>&1` in
6621 *GNU* | *'with BFD'*)
6622 symcode='[ABCDGIRSTW]' ;;
6623 esac
6624
6625 # Transform an extracted symbol line into a proper C declaration.
6626 # Some systems (esp. on ia64) link data and code symbols differently,
6627 # so use this general approach.
6628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6629
6630 # Transform an extracted symbol line into symbol name and symbol address
6631 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6632 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'"
6633
6634 # Handle CRLF in mingw tool chain
6635 opt_cr=
6636 case $build_os in
6637 mingw*)
6638 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6639 ;;
6640 esac
6641
6642 # Try without a prefix underscore, then with it.
6643 for ac_symprfx in "" "_"; do
6644
6645 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6646 symxfrm="\\1 $ac_symprfx\\2 \\2"
6647
6648 # Write the raw and C identifiers.
6649 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6650 # Fake it for dumpbin and say T for any non-static function
6651 # and D for any global variable.
6652 # Also find C++ and __fastcall symbols from MSVC++,
6653 # which start with @ or ?.
6654 lt_cv_sys_global_symbol_pipe="$AWK '"\
6655 " {last_section=section; section=\$ 3};"\
6656 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6657 " \$ 0!~/External *\|/{next};"\
6658 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6659 " {if(hide[section]) next};"\
6660 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6661 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6662 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6663 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6664 " ' prfx=^$ac_symprfx"
6665 else
6666 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6667 fi
6668
6669 # Check to see that the pipe works correctly.
6670 pipe_works=no
6671
6672 rm -f conftest*
6673 cat > conftest.$ac_ext <<_LT_EOF
6674 #ifdef __cplusplus
6675 extern "C" {
6676 #endif
6677 char nm_test_var;
6678 void nm_test_func(void);
6679 void nm_test_func(void){}
6680 #ifdef __cplusplus
6681 }
6682 #endif
6683 int main(){nm_test_var='a';nm_test_func();return(0);}
6684 _LT_EOF
6685
6686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6687 (eval $ac_compile) 2>&5
6688 ac_status=$?
6689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690 test $ac_status = 0; }; then
6691 # Now try to grab the symbols.
6692 nlist=conftest.nm
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6694 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6695 ac_status=$?
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; } && test -s "$nlist"; then
6698 # Try sorting and uniquifying the output.
6699 if sort "$nlist" | uniq > "$nlist"T; then
6700 mv -f "$nlist"T "$nlist"
6701 else
6702 rm -f "$nlist"T
6703 fi
6704
6705 # Make sure that we snagged all the symbols we need.
6706 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6707 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6708 cat <<_LT_EOF > conftest.$ac_ext
6709 #ifdef __cplusplus
6710 extern "C" {
6711 #endif
6712
6713 _LT_EOF
6714 # Now generate the symbol file.
6715 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6716
6717 cat <<_LT_EOF >> conftest.$ac_ext
6718
6719 /* The mapping between symbol names and symbols. */
6720 const struct {
6721 const char *name;
6722 void *address;
6723 }
6724 lt__PROGRAM__LTX_preloaded_symbols[] =
6725 {
6726 { "@PROGRAM@", (void *) 0 },
6727 _LT_EOF
6728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6729 cat <<\_LT_EOF >> conftest.$ac_ext
6730 {0, (void *) 0}
6731 };
6732
6733 /* This works around a problem in FreeBSD linker */
6734 #ifdef FREEBSD_WORKAROUND
6735 static const void *lt_preloaded_setup() {
6736 return lt__PROGRAM__LTX_preloaded_symbols;
6737 }
6738 #endif
6739
6740 #ifdef __cplusplus
6741 }
6742 #endif
6743 _LT_EOF
6744 # Now try linking the two files.
6745 mv conftest.$ac_objext conftstm.$ac_objext
6746 lt_save_LIBS="$LIBS"
6747 lt_save_CFLAGS="$CFLAGS"
6748 LIBS="conftstm.$ac_objext"
6749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6751 (eval $ac_link) 2>&5
6752 ac_status=$?
6753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6755 pipe_works=yes
6756 fi
6757 LIBS="$lt_save_LIBS"
6758 CFLAGS="$lt_save_CFLAGS"
6759 else
6760 echo "cannot find nm_test_func in $nlist" >&5
6761 fi
6762 else
6763 echo "cannot find nm_test_var in $nlist" >&5
6764 fi
6765 else
6766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6767 fi
6768 else
6769 echo "$progname: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6771 fi
6772 rm -rf conftest* conftst*
6773
6774 # Do not use the global_symbol_pipe unless it works.
6775 if test "$pipe_works" = yes; then
6776 break
6777 else
6778 lt_cv_sys_global_symbol_pipe=
6779 fi
6780 done
6781
6782 fi
6783
6784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6785 lt_cv_sys_global_symbol_to_cdecl=
6786 fi
6787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6789 $as_echo "failed" >&6; }
6790 else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6792 $as_echo "ok" >&6; }
6793 fi
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817 # Check whether --enable-libtool-lock was given.
6818 if test "${enable_libtool_lock+set}" = set; then :
6819 enableval=$enable_libtool_lock;
6820 fi
6821
6822 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6823
6824 # Some flags need to be propagated to the compiler or linker for good
6825 # libtool support.
6826 case $host in
6827 ia64-*-hpux*)
6828 # Find out which ABI we are using.
6829 echo 'int i;' > conftest.$ac_ext
6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6831 (eval $ac_compile) 2>&5
6832 ac_status=$?
6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834 test $ac_status = 0; }; then
6835 case `/usr/bin/file conftest.$ac_objext` in
6836 *ELF-32*)
6837 HPUX_IA64_MODE="32"
6838 ;;
6839 *ELF-64*)
6840 HPUX_IA64_MODE="64"
6841 ;;
6842 esac
6843 fi
6844 rm -rf conftest*
6845 ;;
6846 *-*-irix6*)
6847 # Find out which ABI we are using.
6848 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853 test $ac_status = 0; }; then
6854 if test "$lt_cv_prog_gnu_ld" = yes; then
6855 case `/usr/bin/file conftest.$ac_objext` in
6856 *32-bit*)
6857 LD="${LD-ld} -melf32bsmip"
6858 ;;
6859 *N32*)
6860 LD="${LD-ld} -melf32bmipn32"
6861 ;;
6862 *64-bit*)
6863 LD="${LD-ld} -melf64bmip"
6864 ;;
6865 esac
6866 else
6867 case `/usr/bin/file conftest.$ac_objext` in
6868 *32-bit*)
6869 LD="${LD-ld} -32"
6870 ;;
6871 *N32*)
6872 LD="${LD-ld} -n32"
6873 ;;
6874 *64-bit*)
6875 LD="${LD-ld} -64"
6876 ;;
6877 esac
6878 fi
6879 fi
6880 rm -rf conftest*
6881 ;;
6882
6883 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6884 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6885 # Find out which ABI we are using.
6886 echo 'int i;' > conftest.$ac_ext
6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }; then
6892 case `/usr/bin/file conftest.o` in
6893 *32-bit*)
6894 case $host in
6895 x86_64-*kfreebsd*-gnu)
6896 LD="${LD-ld} -m elf_i386_fbsd"
6897 ;;
6898 x86_64-*linux*)
6899 case `/usr/bin/file conftest.o` in
6900 *x86-64*)
6901 LD="${LD-ld} -m elf32_x86_64"
6902 ;;
6903 *)
6904 LD="${LD-ld} -m elf_i386"
6905 ;;
6906 esac
6907 ;;
6908 powerpc64le-*linux*)
6909 LD="${LD-ld} -m elf32lppclinux"
6910 ;;
6911 powerpc64-*linux*)
6912 LD="${LD-ld} -m elf32ppclinux"
6913 ;;
6914 s390x-*linux*)
6915 LD="${LD-ld} -m elf_s390"
6916 ;;
6917 sparc64-*linux*)
6918 LD="${LD-ld} -m elf32_sparc"
6919 ;;
6920 esac
6921 ;;
6922 *64-bit*)
6923 case $host in
6924 x86_64-*kfreebsd*-gnu)
6925 LD="${LD-ld} -m elf_x86_64_fbsd"
6926 ;;
6927 x86_64-*linux*)
6928 LD="${LD-ld} -m elf_x86_64"
6929 ;;
6930 powerpcle-*linux*)
6931 LD="${LD-ld} -m elf64lppc"
6932 ;;
6933 powerpc-*linux*)
6934 LD="${LD-ld} -m elf64ppc"
6935 ;;
6936 s390*-*linux*|s390*-*tpf*)
6937 LD="${LD-ld} -m elf64_s390"
6938 ;;
6939 sparc*-*linux*)
6940 LD="${LD-ld} -m elf64_sparc"
6941 ;;
6942 esac
6943 ;;
6944 esac
6945 fi
6946 rm -rf conftest*
6947 ;;
6948
6949 *-*-sco3.2v5*)
6950 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6951 SAVE_CFLAGS="$CFLAGS"
6952 CFLAGS="$CFLAGS -belf"
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6954 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6955 if ${lt_cv_cc_needs_belf+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 ac_ext=c
6959 ac_cpp='$CPP $CPPFLAGS'
6960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6963
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966
6967 int
6968 main ()
6969 {
6970
6971 ;
6972 return 0;
6973 }
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 lt_cv_cc_needs_belf=yes
6977 else
6978 lt_cv_cc_needs_belf=no
6979 fi
6980 rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6982 ac_ext=c
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987
6988 fi
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6990 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6991 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6993 CFLAGS="$SAVE_CFLAGS"
6994 fi
6995 ;;
6996 sparc*-*solaris*)
6997 # Find out which ABI we are using.
6998 echo 'int i;' > conftest.$ac_ext
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000 (eval $ac_compile) 2>&5
7001 ac_status=$?
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; }; then
7004 case `/usr/bin/file conftest.o` in
7005 *64-bit*)
7006 case $lt_cv_prog_gnu_ld in
7007 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7008 *)
7009 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7010 LD="${LD-ld} -64"
7011 fi
7012 ;;
7013 esac
7014 ;;
7015 esac
7016 fi
7017 rm -rf conftest*
7018 ;;
7019 esac
7020
7021 need_locks="$enable_libtool_lock"
7022
7023
7024 case $host_os in
7025 rhapsody* | darwin*)
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$DSYMUTIL"; then
7035 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7055 if test -n "$DSYMUTIL"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7057 $as_echo "$DSYMUTIL" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062
7063
7064 fi
7065 if test -z "$ac_cv_prog_DSYMUTIL"; then
7066 ac_ct_DSYMUTIL=$DSYMUTIL
7067 # Extract the first word of "dsymutil", so it can be a program name with args.
7068 set dummy dsymutil; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$ac_ct_DSYMUTIL"; then
7075 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7095 if test -n "$ac_ct_DSYMUTIL"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7097 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103 if test "x$ac_ct_DSYMUTIL" = x; then
7104 DSYMUTIL=":"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 DSYMUTIL=$ac_ct_DSYMUTIL
7113 fi
7114 else
7115 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7116 fi
7117
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_NMEDIT+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$NMEDIT"; then
7127 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 NMEDIT=$ac_cv_prog_NMEDIT
7147 if test -n "$NMEDIT"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7149 $as_echo "$NMEDIT" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155
7156 fi
7157 if test -z "$ac_cv_prog_NMEDIT"; then
7158 ac_ct_NMEDIT=$NMEDIT
7159 # Extract the first word of "nmedit", so it can be a program name with args.
7160 set dummy nmedit; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$ac_ct_NMEDIT"; then
7167 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7187 if test -n "$ac_ct_NMEDIT"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7189 $as_echo "$ac_ct_NMEDIT" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195 if test "x$ac_ct_NMEDIT" = x; then
7196 NMEDIT=":"
7197 else
7198 case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204 NMEDIT=$ac_ct_NMEDIT
7205 fi
7206 else
7207 NMEDIT="$ac_cv_prog_NMEDIT"
7208 fi
7209
7210 if test -n "$ac_tool_prefix"; then
7211 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7212 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_LIPO+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 if test -n "$LIPO"; then
7219 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232 done
7233 done
7234 IFS=$as_save_IFS
7235
7236 fi
7237 fi
7238 LIPO=$ac_cv_prog_LIPO
7239 if test -n "$LIPO"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7241 $as_echo "$LIPO" >&6; }
7242 else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7245 fi
7246
7247
7248 fi
7249 if test -z "$ac_cv_prog_LIPO"; then
7250 ac_ct_LIPO=$LIPO
7251 # Extract the first word of "lipo", so it can be a program name with args.
7252 set dummy lipo; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 if test -n "$ac_ct_LIPO"; then
7259 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_ac_ct_LIPO="lipo"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272 done
7273 done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7279 if test -n "$ac_ct_LIPO"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7281 $as_echo "$ac_ct_LIPO" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287 if test "x$ac_ct_LIPO" = x; then
7288 LIPO=":"
7289 else
7290 case $cross_compiling:$ac_tool_warned in
7291 yes:)
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7294 ac_tool_warned=yes ;;
7295 esac
7296 LIPO=$ac_ct_LIPO
7297 fi
7298 else
7299 LIPO="$ac_cv_prog_LIPO"
7300 fi
7301
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}otool; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_OTOOL+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 if test -n "$OTOOL"; then
7311 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7323 fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328 fi
7329 fi
7330 OTOOL=$ac_cv_prog_OTOOL
7331 if test -n "$OTOOL"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7333 $as_echo "$OTOOL" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339
7340 fi
7341 if test -z "$ac_cv_prog_OTOOL"; then
7342 ac_ct_OTOOL=$OTOOL
7343 # Extract the first word of "otool", so it can be a program name with args.
7344 set dummy otool; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$ac_ct_OTOOL"; then
7351 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_OTOOL="otool"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368 fi
7369 fi
7370 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7371 if test -n "$ac_ct_OTOOL"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7373 $as_echo "$ac_ct_OTOOL" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7377 fi
7378
7379 if test "x$ac_ct_OTOOL" = x; then
7380 OTOOL=":"
7381 else
7382 case $cross_compiling:$ac_tool_warned in
7383 yes:)
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386 ac_tool_warned=yes ;;
7387 esac
7388 OTOOL=$ac_ct_OTOOL
7389 fi
7390 else
7391 OTOOL="$ac_cv_prog_OTOOL"
7392 fi
7393
7394 if test -n "$ac_tool_prefix"; then
7395 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7396 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_OTOOL64+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 if test -n "$OTOOL64"; then
7403 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 OTOOL64=$ac_cv_prog_OTOOL64
7423 if test -n "$OTOOL64"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7425 $as_echo "$OTOOL64" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431
7432 fi
7433 if test -z "$ac_cv_prog_OTOOL64"; then
7434 ac_ct_OTOOL64=$OTOOL64
7435 # Extract the first word of "otool64", so it can be a program name with args.
7436 set dummy otool64; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 if test -n "$ac_ct_OTOOL64"; then
7443 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_ac_ct_OTOOL64="otool64"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7463 if test -n "$ac_ct_OTOOL64"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7465 $as_echo "$ac_ct_OTOOL64" >&6; }
7466 else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471 if test "x$ac_ct_OTOOL64" = x; then
7472 OTOOL64=":"
7473 else
7474 case $cross_compiling:$ac_tool_warned in
7475 yes:)
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned=yes ;;
7479 esac
7480 OTOOL64=$ac_ct_OTOOL64
7481 fi
7482 else
7483 OTOOL64="$ac_cv_prog_OTOOL64"
7484 fi
7485
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7513 $as_echo_n "checking for -single_module linker flag... " >&6; }
7514 if ${lt_cv_apple_cc_single_mod+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 lt_cv_apple_cc_single_mod=no
7518 if test -z "${LT_MULTI_MODULE}"; then
7519 # By default we will add the -single_module flag. You can override
7520 # by either setting the environment variable LT_MULTI_MODULE
7521 # non-empty at configure time, or by adding -multi_module to the
7522 # link flags.
7523 rm -rf libconftest.dylib*
7524 echo "int foo(void){return 1;}" > conftest.c
7525 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7526 -dynamiclib -Wl,-single_module conftest.c" >&5
7527 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7528 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7529 _lt_result=$?
7530 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7531 lt_cv_apple_cc_single_mod=yes
7532 else
7533 cat conftest.err >&5
7534 fi
7535 rm -rf libconftest.dylib*
7536 rm -f conftest.*
7537 fi
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7540 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7542 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7543 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 lt_cv_ld_exported_symbols_list=no
7547 save_LDFLAGS=$LDFLAGS
7548 echo "_main" > conftest.sym
7549 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552
7553 int
7554 main ()
7555 {
7556
7557 ;
7558 return 0;
7559 }
7560 _ACEOF
7561 if ac_fn_c_try_link "$LINENO"; then :
7562 lt_cv_ld_exported_symbols_list=yes
7563 else
7564 lt_cv_ld_exported_symbols_list=no
7565 fi
7566 rm -f core conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7568 LDFLAGS="$save_LDFLAGS"
7569
7570 fi
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7572 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7574 $as_echo_n "checking for -force_load linker flag... " >&6; }
7575 if ${lt_cv_ld_force_load+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 lt_cv_ld_force_load=no
7579 cat > conftest.c << _LT_EOF
7580 int forced_loaded() { return 2;}
7581 _LT_EOF
7582 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7583 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7584 echo "$AR cru libconftest.a conftest.o" >&5
7585 $AR cru libconftest.a conftest.o 2>&5
7586 cat > conftest.c << _LT_EOF
7587 int main() { return 0;}
7588 _LT_EOF
7589 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7590 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7591 _lt_result=$?
7592 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7593 lt_cv_ld_force_load=yes
7594 else
7595 cat conftest.err >&5
7596 fi
7597 rm -f conftest.err libconftest.a conftest conftest.c
7598 rm -rf conftest.dSYM
7599
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7602 $as_echo "$lt_cv_ld_force_load" >&6; }
7603 case $host_os in
7604 rhapsody* | darwin1.[012])
7605 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7606 darwin1.*)
7607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7608 darwin*) # darwin 5.x on
7609 # if running on 10.5 or later, the deployment target defaults
7610 # to the OS version, if on x86, and 10.4, the deployment
7611 # target defaults to 10.4. Don't you love it?
7612 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7613 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7614 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7615 10.[012][,.]*)
7616 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7617 10.*)
7618 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7619 esac
7620 ;;
7621 esac
7622 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7623 _lt_dar_single_mod='$single_module'
7624 fi
7625 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7626 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7627 else
7628 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7629 fi
7630 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7631 _lt_dsymutil='~$DSYMUTIL $lib || :'
7632 else
7633 _lt_dsymutil=
7634 fi
7635 ;;
7636 esac
7637
7638 ac_ext=c
7639 ac_cpp='$CPP $CPPFLAGS'
7640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7644 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7645 # On Suns, sometimes $CPP names a directory.
7646 if test -n "$CPP" && test -d "$CPP"; then
7647 CPP=
7648 fi
7649 if test -z "$CPP"; then
7650 if ${ac_cv_prog_CPP+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 # Double quotes because CPP needs to be expanded
7654 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7655 do
7656 ac_preproc_ok=false
7657 for ac_c_preproc_warn_flag in '' yes
7658 do
7659 # Use a header file that comes with gcc, so configuring glibc
7660 # with a fresh cross-compiler works.
7661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7662 # <limits.h> exists even on freestanding compilers.
7663 # On the NeXT, cc -E runs the code through the compiler's parser,
7664 # not just through cpp. "Syntax error" is here to catch this case.
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 #ifdef __STDC__
7668 # include <limits.h>
7669 #else
7670 # include <assert.h>
7671 #endif
7672 Syntax error
7673 _ACEOF
7674 if ac_fn_c_try_cpp "$LINENO"; then :
7675
7676 else
7677 # Broken: fails on valid input.
7678 continue
7679 fi
7680 rm -f conftest.err conftest.i conftest.$ac_ext
7681
7682 # OK, works on sane cases. Now check whether nonexistent headers
7683 # can be detected and how.
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 #include <ac_nonexistent.h>
7687 _ACEOF
7688 if ac_fn_c_try_cpp "$LINENO"; then :
7689 # Broken: success on invalid input.
7690 continue
7691 else
7692 # Passes both tests.
7693 ac_preproc_ok=:
7694 break
7695 fi
7696 rm -f conftest.err conftest.i conftest.$ac_ext
7697
7698 done
7699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7700 rm -f conftest.i conftest.err conftest.$ac_ext
7701 if $ac_preproc_ok; then :
7702 break
7703 fi
7704
7705 done
7706 ac_cv_prog_CPP=$CPP
7707
7708 fi
7709 CPP=$ac_cv_prog_CPP
7710 else
7711 ac_cv_prog_CPP=$CPP
7712 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7714 $as_echo "$CPP" >&6; }
7715 ac_preproc_ok=false
7716 for ac_c_preproc_warn_flag in '' yes
7717 do
7718 # Use a header file that comes with gcc, so configuring glibc
7719 # with a fresh cross-compiler works.
7720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 # <limits.h> exists even on freestanding compilers.
7722 # On the NeXT, cc -E runs the code through the compiler's parser,
7723 # not just through cpp. "Syntax error" is here to catch this case.
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 #ifdef __STDC__
7727 # include <limits.h>
7728 #else
7729 # include <assert.h>
7730 #endif
7731 Syntax error
7732 _ACEOF
7733 if ac_fn_c_try_cpp "$LINENO"; then :
7734
7735 else
7736 # Broken: fails on valid input.
7737 continue
7738 fi
7739 rm -f conftest.err conftest.i conftest.$ac_ext
7740
7741 # OK, works on sane cases. Now check whether nonexistent headers
7742 # can be detected and how.
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 #include <ac_nonexistent.h>
7746 _ACEOF
7747 if ac_fn_c_try_cpp "$LINENO"; then :
7748 # Broken: success on invalid input.
7749 continue
7750 else
7751 # Passes both tests.
7752 ac_preproc_ok=:
7753 break
7754 fi
7755 rm -f conftest.err conftest.i conftest.$ac_ext
7756
7757 done
7758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7759 rm -f conftest.i conftest.err conftest.$ac_ext
7760 if $ac_preproc_ok; then :
7761
7762 else
7763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7765 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7766 See \`config.log' for more details" "$LINENO" 5; }
7767 fi
7768
7769 ac_ext=c
7770 ac_cpp='$CPP $CPPFLAGS'
7771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7774
7775
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7777 $as_echo_n "checking for ANSI C header files... " >&6; }
7778 if ${ac_cv_header_stdc+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 #include <stdlib.h>
7784 #include <stdarg.h>
7785 #include <string.h>
7786 #include <float.h>
7787
7788 int
7789 main ()
7790 {
7791
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797 ac_cv_header_stdc=yes
7798 else
7799 ac_cv_header_stdc=no
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802
7803 if test $ac_cv_header_stdc = yes; then
7804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #include <string.h>
7808
7809 _ACEOF
7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811 $EGREP "memchr" >/dev/null 2>&1; then :
7812
7813 else
7814 ac_cv_header_stdc=no
7815 fi
7816 rm -f conftest*
7817
7818 fi
7819
7820 if test $ac_cv_header_stdc = yes; then
7821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 #include <stdlib.h>
7825
7826 _ACEOF
7827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7828 $EGREP "free" >/dev/null 2>&1; then :
7829
7830 else
7831 ac_cv_header_stdc=no
7832 fi
7833 rm -f conftest*
7834
7835 fi
7836
7837 if test $ac_cv_header_stdc = yes; then
7838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7839 if test "$cross_compiling" = yes; then :
7840 :
7841 else
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 #include <ctype.h>
7845 #include <stdlib.h>
7846 #if ((' ' & 0x0FF) == 0x020)
7847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7849 #else
7850 # define ISLOWER(c) \
7851 (('a' <= (c) && (c) <= 'i') \
7852 || ('j' <= (c) && (c) <= 'r') \
7853 || ('s' <= (c) && (c) <= 'z'))
7854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7855 #endif
7856
7857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7858 int
7859 main ()
7860 {
7861 int i;
7862 for (i = 0; i < 256; i++)
7863 if (XOR (islower (i), ISLOWER (i))
7864 || toupper (i) != TOUPPER (i))
7865 return 2;
7866 return 0;
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_run "$LINENO"; then :
7870
7871 else
7872 ac_cv_header_stdc=no
7873 fi
7874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7875 conftest.$ac_objext conftest.beam conftest.$ac_ext
7876 fi
7877
7878 fi
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7881 $as_echo "$ac_cv_header_stdc" >&6; }
7882 if test $ac_cv_header_stdc = yes; then
7883
7884 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7885
7886 fi
7887
7888 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7889 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7890 inttypes.h stdint.h unistd.h
7891 do :
7892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7893 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7894 "
7895 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7896 cat >>confdefs.h <<_ACEOF
7897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7898 _ACEOF
7899
7900 fi
7901
7902 done
7903
7904
7905 for ac_header in dlfcn.h
7906 do :
7907 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7908 "
7909 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7910 cat >>confdefs.h <<_ACEOF
7911 #define HAVE_DLFCN_H 1
7912 _ACEOF
7913
7914 fi
7915
7916 done
7917
7918
7919
7920
7921
7922 # Set options
7923
7924
7925
7926 enable_dlopen=no
7927
7928
7929 enable_win32_dll=no
7930
7931
7932 # Check whether --enable-shared was given.
7933 if test "${enable_shared+set}" = set; then :
7934 enableval=$enable_shared; p=${PACKAGE-default}
7935 case $enableval in
7936 yes) enable_shared=yes ;;
7937 no) enable_shared=no ;;
7938 *)
7939 enable_shared=no
7940 # Look at the argument we got. We use all the common list separators.
7941 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7942 for pkg in $enableval; do
7943 IFS="$lt_save_ifs"
7944 if test "X$pkg" = "X$p"; then
7945 enable_shared=yes
7946 fi
7947 done
7948 IFS="$lt_save_ifs"
7949 ;;
7950 esac
7951 else
7952 enable_shared=yes
7953 fi
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963 # Check whether --enable-static was given.
7964 if test "${enable_static+set}" = set; then :
7965 enableval=$enable_static; p=${PACKAGE-default}
7966 case $enableval in
7967 yes) enable_static=yes ;;
7968 no) enable_static=no ;;
7969 *)
7970 enable_static=no
7971 # Look at the argument we got. We use all the common list separators.
7972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7973 for pkg in $enableval; do
7974 IFS="$lt_save_ifs"
7975 if test "X$pkg" = "X$p"; then
7976 enable_static=yes
7977 fi
7978 done
7979 IFS="$lt_save_ifs"
7980 ;;
7981 esac
7982 else
7983 enable_static=yes
7984 fi
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995 # Check whether --with-pic was given.
7996 if test "${with_pic+set}" = set; then :
7997 withval=$with_pic; pic_mode="$withval"
7998 else
7999 pic_mode=default
8000 fi
8001
8002
8003 test -z "$pic_mode" && pic_mode=default
8004
8005
8006
8007
8008
8009
8010
8011 # Check whether --enable-fast-install was given.
8012 if test "${enable_fast_install+set}" = set; then :
8013 enableval=$enable_fast_install; p=${PACKAGE-default}
8014 case $enableval in
8015 yes) enable_fast_install=yes ;;
8016 no) enable_fast_install=no ;;
8017 *)
8018 enable_fast_install=no
8019 # Look at the argument we got. We use all the common list separators.
8020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8021 for pkg in $enableval; do
8022 IFS="$lt_save_ifs"
8023 if test "X$pkg" = "X$p"; then
8024 enable_fast_install=yes
8025 fi
8026 done
8027 IFS="$lt_save_ifs"
8028 ;;
8029 esac
8030 else
8031 enable_fast_install=yes
8032 fi
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044 # This can be used to rebuild libtool when needed
8045 LIBTOOL_DEPS="$ltmain"
8046
8047 # Always use our own libtool.
8048 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8049
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 test -z "$LN_S" && LN_S="ln -s"
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090 if test -n "${ZSH_VERSION+set}" ; then
8091 setopt NO_GLOB_SUBST
8092 fi
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8095 $as_echo_n "checking for objdir... " >&6; }
8096 if ${lt_cv_objdir+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 rm -f .libs 2>/dev/null
8100 mkdir .libs 2>/dev/null
8101 if test -d .libs; then
8102 lt_cv_objdir=.libs
8103 else
8104 # MS-DOS does not allow filenames that begin with a dot.
8105 lt_cv_objdir=_libs
8106 fi
8107 rmdir .libs 2>/dev/null
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8110 $as_echo "$lt_cv_objdir" >&6; }
8111 objdir=$lt_cv_objdir
8112
8113
8114
8115
8116
8117 cat >>confdefs.h <<_ACEOF
8118 #define LT_OBJDIR "$lt_cv_objdir/"
8119 _ACEOF
8120
8121
8122
8123
8124 case $host_os in
8125 aix3*)
8126 # AIX sometimes has problems with the GCC collect2 program. For some
8127 # reason, if we set the COLLECT_NAMES environment variable, the problems
8128 # vanish in a puff of smoke.
8129 if test "X${COLLECT_NAMES+set}" != Xset; then
8130 COLLECT_NAMES=
8131 export COLLECT_NAMES
8132 fi
8133 ;;
8134 esac
8135
8136 # Global variables:
8137 ofile=libtool
8138 can_build_shared=yes
8139
8140 # All known linkers require a `.a' archive for static linking (except MSVC,
8141 # which needs '.lib').
8142 libext=a
8143
8144 with_gnu_ld="$lt_cv_prog_gnu_ld"
8145
8146 old_CC="$CC"
8147 old_CFLAGS="$CFLAGS"
8148
8149 # Set sane defaults for various variables
8150 test -z "$CC" && CC=cc
8151 test -z "$LTCC" && LTCC=$CC
8152 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8153 test -z "$LD" && LD=ld
8154 test -z "$ac_objext" && ac_objext=o
8155
8156 for cc_temp in $compiler""; do
8157 case $cc_temp in
8158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8160 \-*) ;;
8161 *) break;;
8162 esac
8163 done
8164 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8165
8166
8167 # Only perform the check for file, if the check method requires it
8168 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8169 case $deplibs_check_method in
8170 file_magic*)
8171 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8173 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8174 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 case $MAGIC_CMD in
8178 [\\/*] | ?:[\\/]*)
8179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8180 ;;
8181 *)
8182 lt_save_MAGIC_CMD="$MAGIC_CMD"
8183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8184 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8185 for ac_dir in $ac_dummy; do
8186 IFS="$lt_save_ifs"
8187 test -z "$ac_dir" && ac_dir=.
8188 if test -f $ac_dir/${ac_tool_prefix}file; then
8189 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8190 if test -n "$file_magic_test_file"; then
8191 case $deplibs_check_method in
8192 "file_magic "*)
8193 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8196 $EGREP "$file_magic_regex" > /dev/null; then
8197 :
8198 else
8199 cat <<_LT_EOF 1>&2
8200
8201 *** Warning: the command libtool uses to detect shared libraries,
8202 *** $file_magic_cmd, produces output that libtool cannot recognize.
8203 *** The result is that libtool may fail to recognize shared libraries
8204 *** as such. This will affect the creation of libtool libraries that
8205 *** depend on shared libraries, but programs linked with such libtool
8206 *** libraries will work regardless of this problem. Nevertheless, you
8207 *** may want to report the problem to your system manager and/or to
8208 *** bug-libtool@gnu.org
8209
8210 _LT_EOF
8211 fi ;;
8212 esac
8213 fi
8214 break
8215 fi
8216 done
8217 IFS="$lt_save_ifs"
8218 MAGIC_CMD="$lt_save_MAGIC_CMD"
8219 ;;
8220 esac
8221 fi
8222
8223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8224 if test -n "$MAGIC_CMD"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8226 $as_echo "$MAGIC_CMD" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8230 fi
8231
8232
8233
8234
8235
8236 if test -z "$lt_cv_path_MAGIC_CMD"; then
8237 if test -n "$ac_tool_prefix"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8239 $as_echo_n "checking for file... " >&6; }
8240 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 case $MAGIC_CMD in
8244 [\\/*] | ?:[\\/]*)
8245 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8246 ;;
8247 *)
8248 lt_save_MAGIC_CMD="$MAGIC_CMD"
8249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8250 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8251 for ac_dir in $ac_dummy; do
8252 IFS="$lt_save_ifs"
8253 test -z "$ac_dir" && ac_dir=.
8254 if test -f $ac_dir/file; then
8255 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8256 if test -n "$file_magic_test_file"; then
8257 case $deplibs_check_method in
8258 "file_magic "*)
8259 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8262 $EGREP "$file_magic_regex" > /dev/null; then
8263 :
8264 else
8265 cat <<_LT_EOF 1>&2
8266
8267 *** Warning: the command libtool uses to detect shared libraries,
8268 *** $file_magic_cmd, produces output that libtool cannot recognize.
8269 *** The result is that libtool may fail to recognize shared libraries
8270 *** as such. This will affect the creation of libtool libraries that
8271 *** depend on shared libraries, but programs linked with such libtool
8272 *** libraries will work regardless of this problem. Nevertheless, you
8273 *** may want to report the problem to your system manager and/or to
8274 *** bug-libtool@gnu.org
8275
8276 _LT_EOF
8277 fi ;;
8278 esac
8279 fi
8280 break
8281 fi
8282 done
8283 IFS="$lt_save_ifs"
8284 MAGIC_CMD="$lt_save_MAGIC_CMD"
8285 ;;
8286 esac
8287 fi
8288
8289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8290 if test -n "$MAGIC_CMD"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8292 $as_echo "$MAGIC_CMD" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8296 fi
8297
8298
8299 else
8300 MAGIC_CMD=:
8301 fi
8302 fi
8303
8304 fi
8305 ;;
8306 esac
8307
8308 # Use C for the default configuration in the libtool script
8309
8310 lt_save_CC="$CC"
8311 ac_ext=c
8312 ac_cpp='$CPP $CPPFLAGS'
8313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8316
8317
8318 # Source file extension for C test sources.
8319 ac_ext=c
8320
8321 # Object file extension for compiled C test sources.
8322 objext=o
8323 objext=$objext
8324
8325 # Code to be used in simple compile tests
8326 lt_simple_compile_test_code="int some_variable = 0;"
8327
8328 # Code to be used in simple link tests
8329 lt_simple_link_test_code='int main(){return(0);}'
8330
8331
8332
8333
8334
8335
8336
8337 # If no C compiler was specified, use CC.
8338 LTCC=${LTCC-"$CC"}
8339
8340 # If no C compiler flags were specified, use CFLAGS.
8341 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8342
8343 # Allow CC to be a program name with arguments.
8344 compiler=$CC
8345
8346 # Save the default compiler, since it gets overwritten when the other
8347 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8348 compiler_DEFAULT=$CC
8349
8350 # save warnings/boilerplate of simple test code
8351 ac_outfile=conftest.$ac_objext
8352 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8353 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8354 _lt_compiler_boilerplate=`cat conftest.err`
8355 $RM conftest*
8356
8357 ac_outfile=conftest.$ac_objext
8358 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8359 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8360 _lt_linker_boilerplate=`cat conftest.err`
8361 $RM -r conftest*
8362
8363
8364 ## CAVEAT EMPTOR:
8365 ## There is no encapsulation within the following macros, do not change
8366 ## the running order or otherwise move them around unless you know exactly
8367 ## what you are doing...
8368 if test -n "$compiler"; then
8369
8370 lt_prog_compiler_no_builtin_flag=
8371
8372 if test "$GCC" = yes; then
8373 case $cc_basename in
8374 nvcc*)
8375 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8376 *)
8377 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8378 esac
8379
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8381 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8382 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 lt_cv_prog_compiler_rtti_exceptions=no
8386 ac_outfile=conftest.$ac_objext
8387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8388 lt_compiler_flag="-fno-rtti -fno-exceptions"
8389 # Insert the option either (1) after the last *FLAGS variable, or
8390 # (2) before a word containing "conftest.", or (3) at the end.
8391 # Note that $ac_compile itself does not contain backslashes and begins
8392 # with a dollar sign (not a hyphen), so the echo should work correctly.
8393 # The option is referenced via a variable to avoid confusing sed.
8394 lt_compile=`echo "$ac_compile" | $SED \
8395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8397 -e 's:$: $lt_compiler_flag:'`
8398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8399 (eval "$lt_compile" 2>conftest.err)
8400 ac_status=$?
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 if (exit $ac_status) && test -s "$ac_outfile"; then
8404 # The compiler can only warn and ignore the option if not recognized
8405 # So say no if there are warnings other than the usual output.
8406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8409 lt_cv_prog_compiler_rtti_exceptions=yes
8410 fi
8411 fi
8412 $RM conftest*
8413
8414 fi
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8416 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8417
8418 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8419 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8420 else
8421 :
8422 fi
8423
8424 fi
8425
8426
8427
8428
8429
8430
8431 lt_prog_compiler_wl=
8432 lt_prog_compiler_pic=
8433 lt_prog_compiler_static=
8434
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8436 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8437
8438 if test "$GCC" = yes; then
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_static='-static'
8441
8442 case $host_os in
8443 aix*)
8444 # All AIX code is PIC.
8445 if test "$host_cpu" = ia64; then
8446 # AIX 5 now supports IA64 processor
8447 lt_prog_compiler_static='-Bstatic'
8448 fi
8449 lt_prog_compiler_pic='-fPIC'
8450 ;;
8451
8452 amigaos*)
8453 case $host_cpu in
8454 powerpc)
8455 # see comment about AmigaOS4 .so support
8456 lt_prog_compiler_pic='-fPIC'
8457 ;;
8458 m68k)
8459 # FIXME: we need at least 68020 code to build shared libraries, but
8460 # adding the `-m68020' flag to GCC prevents building anything better,
8461 # like `-m68040'.
8462 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8463 ;;
8464 esac
8465 ;;
8466
8467 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8468 # PIC is the default for these OSes.
8469 ;;
8470
8471 mingw* | cygwin* | pw32* | os2* | cegcc*)
8472 # This hack is so that the source file can tell whether it is being
8473 # built for inclusion in a dll (and should export symbols for example).
8474 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8475 # (--disable-auto-import) libraries
8476 lt_prog_compiler_pic='-DDLL_EXPORT'
8477 ;;
8478
8479 darwin* | rhapsody*)
8480 # PIC is the default on this platform
8481 # Common symbols not allowed in MH_DYLIB files
8482 lt_prog_compiler_pic='-fno-common'
8483 ;;
8484
8485 haiku*)
8486 # PIC is the default for Haiku.
8487 # The "-static" flag exists, but is broken.
8488 lt_prog_compiler_static=
8489 ;;
8490
8491 hpux*)
8492 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8493 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8494 # sets the default TLS model and affects inlining.
8495 case $host_cpu in
8496 hppa*64*)
8497 # +Z the default
8498 ;;
8499 *)
8500 lt_prog_compiler_pic='-fPIC'
8501 ;;
8502 esac
8503 ;;
8504
8505 interix[3-9]*)
8506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8507 # Instead, we relocate shared libraries at runtime.
8508 ;;
8509
8510 msdosdjgpp*)
8511 # Just because we use GCC doesn't mean we suddenly get shared libraries
8512 # on systems that don't support them.
8513 lt_prog_compiler_can_build_shared=no
8514 enable_shared=no
8515 ;;
8516
8517 *nto* | *qnx*)
8518 # QNX uses GNU C++, but need to define -shared option too, otherwise
8519 # it will coredump.
8520 lt_prog_compiler_pic='-fPIC -shared'
8521 ;;
8522
8523 sysv4*MP*)
8524 if test -d /usr/nec; then
8525 lt_prog_compiler_pic=-Kconform_pic
8526 fi
8527 ;;
8528
8529 *)
8530 lt_prog_compiler_pic='-fPIC'
8531 ;;
8532 esac
8533
8534 case $cc_basename in
8535 nvcc*) # Cuda Compiler Driver 2.2
8536 lt_prog_compiler_wl='-Xlinker '
8537 lt_prog_compiler_pic='-Xcompiler -fPIC'
8538 ;;
8539 esac
8540 else
8541 # PORTME Check for flag to pass linker flags through the system compiler.
8542 case $host_os in
8543 aix*)
8544 lt_prog_compiler_wl='-Wl,'
8545 if test "$host_cpu" = ia64; then
8546 # AIX 5 now supports IA64 processor
8547 lt_prog_compiler_static='-Bstatic'
8548 else
8549 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8550 fi
8551 ;;
8552
8553 mingw* | cygwin* | pw32* | os2* | cegcc*)
8554 # This hack is so that the source file can tell whether it is being
8555 # built for inclusion in a dll (and should export symbols for example).
8556 lt_prog_compiler_pic='-DDLL_EXPORT'
8557 ;;
8558
8559 hpux9* | hpux10* | hpux11*)
8560 lt_prog_compiler_wl='-Wl,'
8561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8562 # not for PA HP-UX.
8563 case $host_cpu in
8564 hppa*64*|ia64*)
8565 # +Z the default
8566 ;;
8567 *)
8568 lt_prog_compiler_pic='+Z'
8569 ;;
8570 esac
8571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8572 lt_prog_compiler_static='${wl}-a ${wl}archive'
8573 ;;
8574
8575 irix5* | irix6* | nonstopux*)
8576 lt_prog_compiler_wl='-Wl,'
8577 # PIC (with -KPIC) is the default.
8578 lt_prog_compiler_static='-non_shared'
8579 ;;
8580
8581 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8582 case $cc_basename in
8583 # old Intel for x86_64 which still supported -KPIC.
8584 ecc*)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='-KPIC'
8587 lt_prog_compiler_static='-static'
8588 ;;
8589 # icc used to be incompatible with GCC.
8590 # ICC 10 doesn't accept -KPIC any more.
8591 icc* | ifort*)
8592 lt_prog_compiler_wl='-Wl,'
8593 lt_prog_compiler_pic='-fPIC'
8594 lt_prog_compiler_static='-static'
8595 ;;
8596 # Lahey Fortran 8.1.
8597 lf95*)
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='--shared'
8600 lt_prog_compiler_static='--static'
8601 ;;
8602 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8603 # Portland Group compilers (*not* the Pentium gcc compiler,
8604 # which looks to be a dead project)
8605 lt_prog_compiler_wl='-Wl,'
8606 lt_prog_compiler_pic='-fpic'
8607 lt_prog_compiler_static='-Bstatic'
8608 ;;
8609 ccc*)
8610 lt_prog_compiler_wl='-Wl,'
8611 # All Alpha code is PIC.
8612 lt_prog_compiler_static='-non_shared'
8613 ;;
8614 xl* | bgxl* | bgf* | mpixl*)
8615 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8616 lt_prog_compiler_wl='-Wl,'
8617 lt_prog_compiler_pic='-qpic'
8618 lt_prog_compiler_static='-qstaticlink'
8619 ;;
8620 *)
8621 case `$CC -V 2>&1 | sed 5q` in
8622 *Sun\ F* | *Sun*Fortran*)
8623 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8624 lt_prog_compiler_pic='-KPIC'
8625 lt_prog_compiler_static='-Bstatic'
8626 lt_prog_compiler_wl=''
8627 ;;
8628 *Sun\ C*)
8629 # Sun C 5.9
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 lt_prog_compiler_wl='-Wl,'
8633 ;;
8634 esac
8635 ;;
8636 esac
8637 ;;
8638
8639 newsos6)
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
8643
8644 *nto* | *qnx*)
8645 # QNX uses GNU C++, but need to define -shared option too, otherwise
8646 # it will coredump.
8647 lt_prog_compiler_pic='-fPIC -shared'
8648 ;;
8649
8650 osf3* | osf4* | osf5*)
8651 lt_prog_compiler_wl='-Wl,'
8652 # All OSF/1 code is PIC.
8653 lt_prog_compiler_static='-non_shared'
8654 ;;
8655
8656 rdos*)
8657 lt_prog_compiler_static='-non_shared'
8658 ;;
8659
8660 solaris*)
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8663 case $cc_basename in
8664 f77* | f90* | f95*)
8665 lt_prog_compiler_wl='-Qoption ld ';;
8666 *)
8667 lt_prog_compiler_wl='-Wl,';;
8668 esac
8669 ;;
8670
8671 sunos4*)
8672 lt_prog_compiler_wl='-Qoption ld '
8673 lt_prog_compiler_pic='-PIC'
8674 lt_prog_compiler_static='-Bstatic'
8675 ;;
8676
8677 sysv4 | sysv4.2uw2* | sysv4.3*)
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-Bstatic'
8681 ;;
8682
8683 sysv4*MP*)
8684 if test -d /usr/nec ;then
8685 lt_prog_compiler_pic='-Kconform_pic'
8686 lt_prog_compiler_static='-Bstatic'
8687 fi
8688 ;;
8689
8690 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='-KPIC'
8693 lt_prog_compiler_static='-Bstatic'
8694 ;;
8695
8696 unicos*)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_can_build_shared=no
8699 ;;
8700
8701 uts4*)
8702 lt_prog_compiler_pic='-pic'
8703 lt_prog_compiler_static='-Bstatic'
8704 ;;
8705
8706 *)
8707 lt_prog_compiler_can_build_shared=no
8708 ;;
8709 esac
8710 fi
8711
8712 case $host_os in
8713 # For platforms which do not support PIC, -DPIC is meaningless:
8714 *djgpp*)
8715 lt_prog_compiler_pic=
8716 ;;
8717 *)
8718 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8719 ;;
8720 esac
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8722 $as_echo "$lt_prog_compiler_pic" >&6; }
8723
8724
8725
8726
8727
8728
8729 #
8730 # Check to make sure the PIC flag actually works.
8731 #
8732 if test -n "$lt_prog_compiler_pic"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8734 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8735 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 lt_cv_prog_compiler_pic_works=no
8739 ac_outfile=conftest.$ac_objext
8740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8741 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8742 # Insert the option either (1) after the last *FLAGS variable, or
8743 # (2) before a word containing "conftest.", or (3) at the end.
8744 # Note that $ac_compile itself does not contain backslashes and begins
8745 # with a dollar sign (not a hyphen), so the echo should work correctly.
8746 # The option is referenced via a variable to avoid confusing sed.
8747 lt_compile=`echo "$ac_compile" | $SED \
8748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8750 -e 's:$: $lt_compiler_flag:'`
8751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8752 (eval "$lt_compile" 2>conftest.err)
8753 ac_status=$?
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 if (exit $ac_status) && test -s "$ac_outfile"; then
8757 # The compiler can only warn and ignore the option if not recognized
8758 # So say no if there are warnings other than the usual output.
8759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8762 lt_cv_prog_compiler_pic_works=yes
8763 fi
8764 fi
8765 $RM conftest*
8766
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8769 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8770
8771 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8772 case $lt_prog_compiler_pic in
8773 "" | " "*) ;;
8774 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8775 esac
8776 else
8777 lt_prog_compiler_pic=
8778 lt_prog_compiler_can_build_shared=no
8779 fi
8780
8781 fi
8782
8783
8784
8785
8786
8787
8788 #
8789 # Check to make sure the static flag actually works.
8790 #
8791 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8793 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8794 if ${lt_cv_prog_compiler_static_works+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 lt_cv_prog_compiler_static_works=no
8798 save_LDFLAGS="$LDFLAGS"
8799 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8802 # The linker can only warn and ignore the option if not recognized
8803 # So say no if there are warnings
8804 if test -s conftest.err; then
8805 # Append any errors to the config.log.
8806 cat conftest.err 1>&5
8807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8809 if diff conftest.exp conftest.er2 >/dev/null; then
8810 lt_cv_prog_compiler_static_works=yes
8811 fi
8812 else
8813 lt_cv_prog_compiler_static_works=yes
8814 fi
8815 fi
8816 $RM -r conftest*
8817 LDFLAGS="$save_LDFLAGS"
8818
8819 fi
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8821 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8822
8823 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8824 :
8825 else
8826 lt_prog_compiler_static=
8827 fi
8828
8829
8830
8831
8832
8833
8834
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8836 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8837 if ${lt_cv_prog_compiler_c_o+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 lt_cv_prog_compiler_c_o=no
8841 $RM -r conftest 2>/dev/null
8842 mkdir conftest
8843 cd conftest
8844 mkdir out
8845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8846
8847 lt_compiler_flag="-o out/conftest2.$ac_objext"
8848 # Insert the option either (1) after the last *FLAGS variable, or
8849 # (2) before a word containing "conftest.", or (3) at the end.
8850 # Note that $ac_compile itself does not contain backslashes and begins
8851 # with a dollar sign (not a hyphen), so the echo should work correctly.
8852 lt_compile=`echo "$ac_compile" | $SED \
8853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855 -e 's:$: $lt_compiler_flag:'`
8856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857 (eval "$lt_compile" 2>out/conftest.err)
8858 ac_status=$?
8859 cat out/conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8862 then
8863 # The compiler can only warn and ignore the option if not recognized
8864 # So say no if there are warnings
8865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8868 lt_cv_prog_compiler_c_o=yes
8869 fi
8870 fi
8871 chmod u+w . 2>&5
8872 $RM conftest*
8873 # SGI C++ compiler will create directory out/ii_files/ for
8874 # template instantiation
8875 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8876 $RM out/* && rmdir out
8877 cd ..
8878 $RM -r conftest
8879 $RM conftest*
8880
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8883 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8884
8885
8886
8887
8888
8889
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8891 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8892 if ${lt_cv_prog_compiler_c_o+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 lt_cv_prog_compiler_c_o=no
8896 $RM -r conftest 2>/dev/null
8897 mkdir conftest
8898 cd conftest
8899 mkdir out
8900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8901
8902 lt_compiler_flag="-o out/conftest2.$ac_objext"
8903 # Insert the option either (1) after the last *FLAGS variable, or
8904 # (2) before a word containing "conftest.", or (3) at the end.
8905 # Note that $ac_compile itself does not contain backslashes and begins
8906 # with a dollar sign (not a hyphen), so the echo should work correctly.
8907 lt_compile=`echo "$ac_compile" | $SED \
8908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8910 -e 's:$: $lt_compiler_flag:'`
8911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8912 (eval "$lt_compile" 2>out/conftest.err)
8913 ac_status=$?
8914 cat out/conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8917 then
8918 # The compiler can only warn and ignore the option if not recognized
8919 # So say no if there are warnings
8920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8923 lt_cv_prog_compiler_c_o=yes
8924 fi
8925 fi
8926 chmod u+w . 2>&5
8927 $RM conftest*
8928 # SGI C++ compiler will create directory out/ii_files/ for
8929 # template instantiation
8930 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8931 $RM out/* && rmdir out
8932 cd ..
8933 $RM -r conftest
8934 $RM conftest*
8935
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8938 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8939
8940
8941
8942
8943 hard_links="nottested"
8944 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8945 # do not overwrite the value of need_locks provided by the user
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8947 $as_echo_n "checking if we can lock with hard links... " >&6; }
8948 hard_links=yes
8949 $RM conftest*
8950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8951 touch conftest.a
8952 ln conftest.a conftest.b 2>&5 || hard_links=no
8953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8955 $as_echo "$hard_links" >&6; }
8956 if test "$hard_links" = no; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8958 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8959 need_locks=warn
8960 fi
8961 else
8962 need_locks=no
8963 fi
8964
8965
8966
8967
8968
8969
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8971 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8972
8973 runpath_var=
8974 allow_undefined_flag=
8975 always_export_symbols=no
8976 archive_cmds=
8977 archive_expsym_cmds=
8978 compiler_needs_object=no
8979 enable_shared_with_static_runtimes=no
8980 export_dynamic_flag_spec=
8981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8982 hardcode_automatic=no
8983 hardcode_direct=no
8984 hardcode_direct_absolute=no
8985 hardcode_libdir_flag_spec=
8986 hardcode_libdir_flag_spec_ld=
8987 hardcode_libdir_separator=
8988 hardcode_minus_L=no
8989 hardcode_shlibpath_var=unsupported
8990 inherit_rpath=no
8991 link_all_deplibs=unknown
8992 module_cmds=
8993 module_expsym_cmds=
8994 old_archive_from_new_cmds=
8995 old_archive_from_expsyms_cmds=
8996 thread_safe_flag_spec=
8997 whole_archive_flag_spec=
8998 # include_expsyms should be a list of space-separated symbols to be *always*
8999 # included in the symbol list
9000 include_expsyms=
9001 # exclude_expsyms can be an extended regexp of symbols to exclude
9002 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9003 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9004 # as well as any symbol that contains `d'.
9005 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9006 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9007 # platforms (ab)use it in PIC code, but their linkers get confused if
9008 # the symbol is explicitly referenced. Since portable code cannot
9009 # rely on this symbol name, it's probably fine to never include it in
9010 # preloaded symbol tables.
9011 # Exclude shared library initialization/finalization symbols.
9012 extract_expsyms_cmds=
9013
9014 case $host_os in
9015 cygwin* | mingw* | pw32* | cegcc*)
9016 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9017 # When not using gcc, we currently assume that we are using
9018 # Microsoft Visual C++.
9019 if test "$GCC" != yes; then
9020 with_gnu_ld=no
9021 fi
9022 ;;
9023 interix*)
9024 # we just hope/assume this is gcc and not c89 (= MSVC++)
9025 with_gnu_ld=yes
9026 ;;
9027 openbsd*)
9028 with_gnu_ld=no
9029 ;;
9030 esac
9031
9032 ld_shlibs=yes
9033
9034 # On some targets, GNU ld is compatible enough with the native linker
9035 # that we're better off using the native interface for both.
9036 lt_use_gnu_ld_interface=no
9037 if test "$with_gnu_ld" = yes; then
9038 case $host_os in
9039 aix*)
9040 # The AIX port of GNU ld has always aspired to compatibility
9041 # with the native linker. However, as the warning in the GNU ld
9042 # block says, versions before 2.19.5* couldn't really create working
9043 # shared libraries, regardless of the interface used.
9044 case `$LD -v 2>&1` in
9045 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9046 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9047 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9048 *)
9049 lt_use_gnu_ld_interface=yes
9050 ;;
9051 esac
9052 ;;
9053 *)
9054 lt_use_gnu_ld_interface=yes
9055 ;;
9056 esac
9057 fi
9058
9059 if test "$lt_use_gnu_ld_interface" = yes; then
9060 # If archive_cmds runs LD, not CC, wlarc should be empty
9061 wlarc='${wl}'
9062
9063 # Set some defaults for GNU ld with shared library support. These
9064 # are reset later if shared libraries are not supported. Putting them
9065 # here allows them to be overridden if necessary.
9066 runpath_var=LD_RUN_PATH
9067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9068 export_dynamic_flag_spec='${wl}--export-dynamic'
9069 # ancient GNU ld didn't support --whole-archive et. al.
9070 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9071 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9072 else
9073 whole_archive_flag_spec=
9074 fi
9075 supports_anon_versioning=no
9076 case `$LD -v 2>&1` in
9077 *GNU\ gold*) supports_anon_versioning=yes ;;
9078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9081 *\ 2.11.*) ;; # other 2.11 versions
9082 *) supports_anon_versioning=yes ;;
9083 esac
9084
9085 # See if GNU ld supports shared libraries.
9086 case $host_os in
9087 aix[3-9]*)
9088 # On AIX/PPC, the GNU linker is very broken
9089 if test "$host_cpu" != ia64; then
9090 ld_shlibs=no
9091 cat <<_LT_EOF 1>&2
9092
9093 *** Warning: the GNU linker, at least up to release 2.19, is reported
9094 *** to be unable to reliably create shared libraries on AIX.
9095 *** Therefore, libtool is disabling shared libraries support. If you
9096 *** really care for shared libraries, you may want to install binutils
9097 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9098 *** You will then need to restart the configuration process.
9099
9100 _LT_EOF
9101 fi
9102 ;;
9103
9104 amigaos*)
9105 case $host_cpu in
9106 powerpc)
9107 # see comment about AmigaOS4 .so support
9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109 archive_expsym_cmds=''
9110 ;;
9111 m68k)
9112 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)'
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_minus_L=yes
9115 ;;
9116 esac
9117 ;;
9118
9119 beos*)
9120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 allow_undefined_flag=unsupported
9122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9123 # support --undefined. This deserves some investigation. FIXME
9124 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125 else
9126 ld_shlibs=no
9127 fi
9128 ;;
9129
9130 cygwin* | mingw* | pw32* | cegcc*)
9131 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9132 # as there is no search path for DLLs.
9133 hardcode_libdir_flag_spec='-L$libdir'
9134 export_dynamic_flag_spec='${wl}--export-all-symbols'
9135 allow_undefined_flag=unsupported
9136 always_export_symbols=no
9137 enable_shared_with_static_runtimes=yes
9138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9139
9140 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9142 # If the export-symbols file already is a .def file (1st line
9143 # is EXPORTS), use it as is; otherwise, prepend...
9144 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9145 cp $export_symbols $output_objdir/$soname.def;
9146 else
9147 echo EXPORTS > $output_objdir/$soname.def;
9148 cat $export_symbols >> $output_objdir/$soname.def;
9149 fi~
9150 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9151 else
9152 ld_shlibs=no
9153 fi
9154 ;;
9155
9156 haiku*)
9157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158 link_all_deplibs=yes
9159 ;;
9160
9161 interix[3-9]*)
9162 hardcode_direct=no
9163 hardcode_shlibpath_var=no
9164 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9165 export_dynamic_flag_spec='${wl}-E'
9166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9167 # Instead, shared libraries are loaded at an image base (0x10000000 by
9168 # default) and relocated if they conflict, which is a slow very memory
9169 # consuming and fragmenting process. To avoid this, we pick a random,
9170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9173 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'
9174 ;;
9175
9176 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9177 tmp_diet=no
9178 if test "$host_os" = linux-dietlibc; then
9179 case $cc_basename in
9180 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9181 esac
9182 fi
9183 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9184 && test "$tmp_diet" = no
9185 then
9186 tmp_addflag=' $pic_flag'
9187 tmp_sharedflag='-shared'
9188 case $cc_basename,$host_cpu in
9189 pgcc*) # Portland Group C compiler
9190 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'
9191 tmp_addflag=' $pic_flag'
9192 ;;
9193 pgf77* | pgf90* | pgf95* | pgfortran*)
9194 # Portland Group f77 and f90 compilers
9195 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'
9196 tmp_addflag=' $pic_flag -Mnomain' ;;
9197 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9198 tmp_addflag=' -i_dynamic' ;;
9199 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9200 tmp_addflag=' -i_dynamic -nofor_main' ;;
9201 ifc* | ifort*) # Intel Fortran compiler
9202 tmp_addflag=' -nofor_main' ;;
9203 lf95*) # Lahey Fortran 8.1
9204 whole_archive_flag_spec=
9205 tmp_sharedflag='--shared' ;;
9206 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9207 tmp_sharedflag='-qmkshrobj'
9208 tmp_addflag= ;;
9209 nvcc*) # Cuda Compiler Driver 2.2
9210 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'
9211 compiler_needs_object=yes
9212 ;;
9213 esac
9214 case `$CC -V 2>&1 | sed 5q` in
9215 *Sun\ C*) # Sun C 5.9
9216 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'
9217 compiler_needs_object=yes
9218 tmp_sharedflag='-G' ;;
9219 *Sun\ F*) # Sun Fortran 8.3
9220 tmp_sharedflag='-G' ;;
9221 esac
9222 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223
9224 if test "x$supports_anon_versioning" = xyes; then
9225 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9227 echo "local: *; };" >> $output_objdir/$libname.ver~
9228 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9229 fi
9230
9231 case $cc_basename in
9232 xlf* | bgf* | bgxlf* | mpixlf*)
9233 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9234 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9235 hardcode_libdir_flag_spec=
9236 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9237 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9238 if test "x$supports_anon_versioning" = xyes; then
9239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9241 echo "local: *; };" >> $output_objdir/$libname.ver~
9242 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9243 fi
9244 ;;
9245 esac
9246 else
9247 ld_shlibs=no
9248 fi
9249 ;;
9250
9251 netbsd*)
9252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9253 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9254 wlarc=
9255 else
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9258 fi
9259 ;;
9260
9261 solaris*)
9262 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9263 ld_shlibs=no
9264 cat <<_LT_EOF 1>&2
9265
9266 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9267 *** create shared libraries on Solaris systems. Therefore, libtool
9268 *** is disabling shared libraries support. We urge you to upgrade GNU
9269 *** binutils to release 2.9.1 or newer. Another option is to modify
9270 *** your PATH or compiler configuration so that the native linker is
9271 *** used, and then restart.
9272
9273 _LT_EOF
9274 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9277 else
9278 ld_shlibs=no
9279 fi
9280 ;;
9281
9282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9283 case `$LD -v 2>&1` in
9284 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9285 ld_shlibs=no
9286 cat <<_LT_EOF 1>&2
9287
9288 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9289 *** reliably create shared libraries on SCO systems. Therefore, libtool
9290 *** is disabling shared libraries support. We urge you to upgrade GNU
9291 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9292 *** your PATH or compiler configuration so that the native linker is
9293 *** used, and then restart.
9294
9295 _LT_EOF
9296 ;;
9297 *)
9298 # For security reasons, it is highly recommended that you always
9299 # use absolute paths for naming shared libraries, and exclude the
9300 # DT_RUNPATH tag from executables and libraries. But doing so
9301 # requires that you compile everything twice, which is a pain.
9302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9306 else
9307 ld_shlibs=no
9308 fi
9309 ;;
9310 esac
9311 ;;
9312
9313 sunos4*)
9314 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9315 wlarc=
9316 hardcode_direct=yes
9317 hardcode_shlibpath_var=no
9318 ;;
9319
9320 *)
9321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9324 else
9325 ld_shlibs=no
9326 fi
9327 ;;
9328 esac
9329
9330 if test "$ld_shlibs" = no; then
9331 runpath_var=
9332 hardcode_libdir_flag_spec=
9333 export_dynamic_flag_spec=
9334 whole_archive_flag_spec=
9335 fi
9336 else
9337 # PORTME fill in a description of your system's linker (not GNU ld)
9338 case $host_os in
9339 aix3*)
9340 allow_undefined_flag=unsupported
9341 always_export_symbols=yes
9342 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'
9343 # Note: this linker hardcodes the directories in LIBPATH if there
9344 # are no directories specified by -L.
9345 hardcode_minus_L=yes
9346 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9347 # Neither direct hardcoding nor static linking is supported with a
9348 # broken collect2.
9349 hardcode_direct=unsupported
9350 fi
9351 ;;
9352
9353 aix[4-9]*)
9354 if test "$host_cpu" = ia64; then
9355 # On IA64, the linker does run time linking by default, so we don't
9356 # have to do anything special.
9357 aix_use_runtimelinking=no
9358 exp_sym_flag='-Bexport'
9359 no_entry_flag=""
9360 else
9361 # If we're using GNU nm, then we don't want the "-C" option.
9362 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9363 # Also, AIX nm treats weak defined symbols like other global
9364 # defined symbols, whereas GNU nm marks them as "W".
9365 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9366 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'
9367 else
9368 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'
9369 fi
9370 aix_use_runtimelinking=no
9371
9372 # Test if we are trying to use run time linking or normal
9373 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9374 # need to do runtime linking.
9375 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9376 for ld_flag in $LDFLAGS; do
9377 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9378 aix_use_runtimelinking=yes
9379 break
9380 fi
9381 done
9382 ;;
9383 esac
9384
9385 exp_sym_flag='-bexport'
9386 no_entry_flag='-bnoentry'
9387 fi
9388
9389 # When large executables or shared objects are built, AIX ld can
9390 # have problems creating the table of contents. If linking a library
9391 # or program results in "error TOC overflow" add -mminimal-toc to
9392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9394
9395 archive_cmds=''
9396 hardcode_direct=yes
9397 hardcode_direct_absolute=yes
9398 hardcode_libdir_separator=':'
9399 link_all_deplibs=yes
9400 file_list_spec='${wl}-f,'
9401
9402 if test "$GCC" = yes; then
9403 case $host_os in aix4.[012]|aix4.[012].*)
9404 # We only want to do this on AIX 4.2 and lower, the check
9405 # below for broken collect2 doesn't work under 4.3+
9406 collect2name=`${CC} -print-prog-name=collect2`
9407 if test -f "$collect2name" &&
9408 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9409 then
9410 # We have reworked collect2
9411 :
9412 else
9413 # We have old collect2
9414 hardcode_direct=unsupported
9415 # It fails to find uninstalled libraries when the uninstalled
9416 # path is not listed in the libpath. Setting hardcode_minus_L
9417 # to unsupported forces relinking
9418 hardcode_minus_L=yes
9419 hardcode_libdir_flag_spec='-L$libdir'
9420 hardcode_libdir_separator=
9421 fi
9422 ;;
9423 esac
9424 shared_flag='-shared'
9425 if test "$aix_use_runtimelinking" = yes; then
9426 shared_flag="$shared_flag "'${wl}-G'
9427 fi
9428 else
9429 # not using gcc
9430 if test "$host_cpu" = ia64; then
9431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9432 # chokes on -Wl,-G. The following line is correct:
9433 shared_flag='-G'
9434 else
9435 if test "$aix_use_runtimelinking" = yes; then
9436 shared_flag='${wl}-G'
9437 else
9438 shared_flag='${wl}-bM:SRE'
9439 fi
9440 fi
9441 fi
9442
9443 export_dynamic_flag_spec='${wl}-bexpall'
9444 # It seems that -bexpall does not export symbols beginning with
9445 # underscore (_), so it is better to generate a list of symbols to export.
9446 always_export_symbols=yes
9447 if test "$aix_use_runtimelinking" = yes; then
9448 # Warning - without using the other runtime loading flags (-brtl),
9449 # -berok will link without error, but may produce a broken library.
9450 allow_undefined_flag='-berok'
9451 # Determine the default libpath from the value encoded in an
9452 # empty executable.
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455
9456 int
9457 main ()
9458 {
9459
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 if ac_fn_c_try_link "$LINENO"; then :
9465
9466 lt_aix_libpath_sed='
9467 /Import File Strings/,/^$/ {
9468 /^0/ {
9469 s/^0 *\(.*\)$/\1/
9470 p
9471 }
9472 }'
9473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9474 # Check for a 64-bit object if we didn't find anything.
9475 if test -z "$aix_libpath"; then
9476 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477 fi
9478 fi
9479 rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext conftest.$ac_ext
9481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9482
9483 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9484 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"
9485 else
9486 if test "$host_cpu" = ia64; then
9487 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9488 allow_undefined_flag="-z nodefs"
9489 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"
9490 else
9491 # Determine the default libpath from the value encoded in an
9492 # empty executable.
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9495
9496 int
9497 main ()
9498 {
9499
9500 ;
9501 return 0;
9502 }
9503 _ACEOF
9504 if ac_fn_c_try_link "$LINENO"; then :
9505
9506 lt_aix_libpath_sed='
9507 /Import File Strings/,/^$/ {
9508 /^0/ {
9509 s/^0 *\(.*\)$/\1/
9510 p
9511 }
9512 }'
9513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9514 # Check for a 64-bit object if we didn't find anything.
9515 if test -z "$aix_libpath"; then
9516 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9517 fi
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9522
9523 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9524 # Warning - without using the other run time loading flags,
9525 # -berok will link without error, but may produce a broken library.
9526 no_undefined_flag=' ${wl}-bernotok'
9527 allow_undefined_flag=' ${wl}-berok'
9528 if test "$with_gnu_ld" = yes; then
9529 # We only use this code for GNU lds that support --whole-archive.
9530 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9531 else
9532 # Exported symbols can be pulled into shared objects from archives
9533 whole_archive_flag_spec='$convenience'
9534 fi
9535 archive_cmds_need_lc=yes
9536 # This is similar to how AIX traditionally builds its shared libraries.
9537 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'
9538 fi
9539 fi
9540 ;;
9541
9542 amigaos*)
9543 case $host_cpu in
9544 powerpc)
9545 # see comment about AmigaOS4 .so support
9546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds=''
9548 ;;
9549 m68k)
9550 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)'
9551 hardcode_libdir_flag_spec='-L$libdir'
9552 hardcode_minus_L=yes
9553 ;;
9554 esac
9555 ;;
9556
9557 bsdi[45]*)
9558 export_dynamic_flag_spec=-rdynamic
9559 ;;
9560
9561 cygwin* | mingw* | pw32* | cegcc*)
9562 # When not using gcc, we currently assume that we are using
9563 # Microsoft Visual C++.
9564 # hardcode_libdir_flag_spec is actually meaningless, as there is
9565 # no search path for DLLs.
9566 hardcode_libdir_flag_spec=' '
9567 allow_undefined_flag=unsupported
9568 # Tell ltmain to make .lib files, not .a files.
9569 libext=lib
9570 # Tell ltmain to make .dll files, not .so files.
9571 shrext_cmds=".dll"
9572 # FIXME: Setting linknames here is a bad hack.
9573 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9574 # The linker will automatically build a .lib file if we build a DLL.
9575 old_archive_from_new_cmds='true'
9576 # FIXME: Should let the user specify the lib program.
9577 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9578 fix_srcfile_path='`cygpath -w "$srcfile"`'
9579 enable_shared_with_static_runtimes=yes
9580 ;;
9581
9582 darwin* | rhapsody*)
9583
9584
9585 archive_cmds_need_lc=no
9586 hardcode_direct=no
9587 hardcode_automatic=yes
9588 hardcode_shlibpath_var=unsupported
9589 if test "$lt_cv_ld_force_load" = "yes"; then
9590 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\"`'
9591 else
9592 whole_archive_flag_spec=''
9593 fi
9594 link_all_deplibs=yes
9595 allow_undefined_flag="$_lt_dar_allow_undefined"
9596 case $cc_basename in
9597 ifort*) _lt_dar_can_shared=yes ;;
9598 *) _lt_dar_can_shared=$GCC ;;
9599 esac
9600 if test "$_lt_dar_can_shared" = "yes"; then
9601 output_verbose_link_cmd=func_echo_all
9602 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9603 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9604 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}"
9605 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}"
9606
9607 else
9608 ld_shlibs=no
9609 fi
9610
9611 ;;
9612
9613 dgux*)
9614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615 hardcode_libdir_flag_spec='-L$libdir'
9616 hardcode_shlibpath_var=no
9617 ;;
9618
9619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9620 # support. Future versions do this automatically, but an explicit c++rt0.o
9621 # does not break anything, and helps significantly (at the cost of a little
9622 # extra space).
9623 freebsd2.2*)
9624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9625 hardcode_libdir_flag_spec='-R$libdir'
9626 hardcode_direct=yes
9627 hardcode_shlibpath_var=no
9628 ;;
9629
9630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9631 freebsd2.*)
9632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_direct=yes
9634 hardcode_minus_L=yes
9635 hardcode_shlibpath_var=no
9636 ;;
9637
9638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9639 freebsd* | dragonfly*)
9640 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9641 hardcode_libdir_flag_spec='-R$libdir'
9642 hardcode_direct=yes
9643 hardcode_shlibpath_var=no
9644 ;;
9645
9646 hpux9*)
9647 if test "$GCC" = yes; then
9648 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'
9649 else
9650 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'
9651 fi
9652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9653 hardcode_libdir_separator=:
9654 hardcode_direct=yes
9655
9656 # hardcode_minus_L: Not really in the search PATH,
9657 # but as the default location of the library.
9658 hardcode_minus_L=yes
9659 export_dynamic_flag_spec='${wl}-E'
9660 ;;
9661
9662 hpux10*)
9663 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9665 else
9666 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9667 fi
9668 if test "$with_gnu_ld" = no; then
9669 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9670 hardcode_libdir_flag_spec_ld='+b $libdir'
9671 hardcode_libdir_separator=:
9672 hardcode_direct=yes
9673 hardcode_direct_absolute=yes
9674 export_dynamic_flag_spec='${wl}-E'
9675 # hardcode_minus_L: Not really in the search PATH,
9676 # but as the default location of the library.
9677 hardcode_minus_L=yes
9678 fi
9679 ;;
9680
9681 hpux11*)
9682 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9683 case $host_cpu in
9684 hppa*64*)
9685 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9686 ;;
9687 ia64*)
9688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9689 ;;
9690 *)
9691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9692 ;;
9693 esac
9694 else
9695 case $host_cpu in
9696 hppa*64*)
9697 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 ;;
9699 ia64*)
9700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9701 ;;
9702 *)
9703
9704 # Older versions of the 11.00 compiler do not understand -b yet
9705 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9707 $as_echo_n "checking if $CC understands -b... " >&6; }
9708 if ${lt_cv_prog_compiler__b+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 lt_cv_prog_compiler__b=no
9712 save_LDFLAGS="$LDFLAGS"
9713 LDFLAGS="$LDFLAGS -b"
9714 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9716 # The linker can only warn and ignore the option if not recognized
9717 # So say no if there are warnings
9718 if test -s conftest.err; then
9719 # Append any errors to the config.log.
9720 cat conftest.err 1>&5
9721 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9723 if diff conftest.exp conftest.er2 >/dev/null; then
9724 lt_cv_prog_compiler__b=yes
9725 fi
9726 else
9727 lt_cv_prog_compiler__b=yes
9728 fi
9729 fi
9730 $RM -r conftest*
9731 LDFLAGS="$save_LDFLAGS"
9732
9733 fi
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9735 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9736
9737 if test x"$lt_cv_prog_compiler__b" = xyes; then
9738 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9739 else
9740 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9741 fi
9742
9743 ;;
9744 esac
9745 fi
9746 if test "$with_gnu_ld" = no; then
9747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9748 hardcode_libdir_separator=:
9749
9750 case $host_cpu in
9751 hppa*64*|ia64*)
9752 hardcode_direct=no
9753 hardcode_shlibpath_var=no
9754 ;;
9755 *)
9756 hardcode_direct=yes
9757 hardcode_direct_absolute=yes
9758 export_dynamic_flag_spec='${wl}-E'
9759
9760 # hardcode_minus_L: Not really in the search PATH,
9761 # but as the default location of the library.
9762 hardcode_minus_L=yes
9763 ;;
9764 esac
9765 fi
9766 ;;
9767
9768 irix5* | irix6* | nonstopux*)
9769 if test "$GCC" = yes; then
9770 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'
9771 # Try to use the -exported_symbol ld option, if it does not
9772 # work, assume that -exports_file does not work either and
9773 # implicitly export all symbols.
9774 save_LDFLAGS="$LDFLAGS"
9775 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 int foo(void) {}
9779 _ACEOF
9780 if ac_fn_c_try_link "$LINENO"; then :
9781 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'
9782
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9786 LDFLAGS="$save_LDFLAGS"
9787 else
9788 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'
9789 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'
9790 fi
9791 archive_cmds_need_lc='no'
9792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9793 hardcode_libdir_separator=:
9794 inherit_rpath=yes
9795 link_all_deplibs=yes
9796 ;;
9797
9798 netbsd*)
9799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9801 else
9802 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9803 fi
9804 hardcode_libdir_flag_spec='-R$libdir'
9805 hardcode_direct=yes
9806 hardcode_shlibpath_var=no
9807 ;;
9808
9809 newsos6)
9810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811 hardcode_direct=yes
9812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9813 hardcode_libdir_separator=:
9814 hardcode_shlibpath_var=no
9815 ;;
9816
9817 *nto* | *qnx*)
9818 ;;
9819
9820 openbsd*)
9821 if test -f /usr/libexec/ld.so; then
9822 hardcode_direct=yes
9823 hardcode_shlibpath_var=no
9824 hardcode_direct_absolute=yes
9825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9829 export_dynamic_flag_spec='${wl}-E'
9830 else
9831 case $host_os in
9832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9834 hardcode_libdir_flag_spec='-R$libdir'
9835 ;;
9836 *)
9837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9839 ;;
9840 esac
9841 fi
9842 else
9843 ld_shlibs=no
9844 fi
9845 ;;
9846
9847 os2*)
9848 hardcode_libdir_flag_spec='-L$libdir'
9849 hardcode_minus_L=yes
9850 allow_undefined_flag=unsupported
9851 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'
9852 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9853 ;;
9854
9855 osf3*)
9856 if test "$GCC" = yes; then
9857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9858 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'
9859 else
9860 allow_undefined_flag=' -expect_unresolved \*'
9861 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'
9862 fi
9863 archive_cmds_need_lc='no'
9864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865 hardcode_libdir_separator=:
9866 ;;
9867
9868 osf4* | osf5*) # as osf3* with the addition of -msym flag
9869 if test "$GCC" = yes; then
9870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9871 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'
9872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9873 else
9874 allow_undefined_flag=' -expect_unresolved \*'
9875 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'
9876 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~
9877 $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'
9878
9879 # Both c and cxx compiler support -rpath directly
9880 hardcode_libdir_flag_spec='-rpath $libdir'
9881 fi
9882 archive_cmds_need_lc='no'
9883 hardcode_libdir_separator=:
9884 ;;
9885
9886 solaris*)
9887 no_undefined_flag=' -z defs'
9888 if test "$GCC" = yes; then
9889 wlarc='${wl}'
9890 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9892 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9893 else
9894 case `$CC -V 2>&1` in
9895 *"Compilers 5.0"*)
9896 wlarc=''
9897 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9899 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9900 ;;
9901 *)
9902 wlarc='${wl}'
9903 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9905 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9906 ;;
9907 esac
9908 fi
9909 hardcode_libdir_flag_spec='-R$libdir'
9910 hardcode_shlibpath_var=no
9911 case $host_os in
9912 solaris2.[0-5] | solaris2.[0-5].*) ;;
9913 *)
9914 # The compiler driver will combine and reorder linker options,
9915 # but understands `-z linker_flag'. GCC discards it without `$wl',
9916 # but is careful enough not to reorder.
9917 # Supported since Solaris 2.6 (maybe 2.5.1?)
9918 if test "$GCC" = yes; then
9919 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9920 else
9921 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9922 fi
9923 ;;
9924 esac
9925 link_all_deplibs=yes
9926 ;;
9927
9928 sunos4*)
9929 if test "x$host_vendor" = xsequent; then
9930 # Use $CC to link under sequent, because it throws in some extra .o
9931 # files that make .init and .fini sections work.
9932 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9933 else
9934 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9935 fi
9936 hardcode_libdir_flag_spec='-L$libdir'
9937 hardcode_direct=yes
9938 hardcode_minus_L=yes
9939 hardcode_shlibpath_var=no
9940 ;;
9941
9942 sysv4)
9943 case $host_vendor in
9944 sni)
9945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946 hardcode_direct=yes # is this really true???
9947 ;;
9948 siemens)
9949 ## LD is ld it makes a PLAMLIB
9950 ## CC just makes a GrossModule.
9951 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9952 reload_cmds='$CC -r -o $output$reload_objs'
9953 hardcode_direct=no
9954 ;;
9955 motorola)
9956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9958 ;;
9959 esac
9960 runpath_var='LD_RUN_PATH'
9961 hardcode_shlibpath_var=no
9962 ;;
9963
9964 sysv4.3*)
9965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9966 hardcode_shlibpath_var=no
9967 export_dynamic_flag_spec='-Bexport'
9968 ;;
9969
9970 sysv4*MP*)
9971 if test -d /usr/nec; then
9972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_shlibpath_var=no
9974 runpath_var=LD_RUN_PATH
9975 hardcode_runpath_var=yes
9976 ld_shlibs=yes
9977 fi
9978 ;;
9979
9980 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9981 no_undefined_flag='${wl}-z,text'
9982 archive_cmds_need_lc=no
9983 hardcode_shlibpath_var=no
9984 runpath_var='LD_RUN_PATH'
9985
9986 if test "$GCC" = yes; then
9987 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989 else
9990 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 fi
9993 ;;
9994
9995 sysv5* | sco3.2v5* | sco5v6*)
9996 # Note: We can NOT use -z defs as we might desire, because we do not
9997 # link with -lc, and that would cause any symbols used from libc to
9998 # always be unresolved, which means just about no library would
9999 # ever link correctly. If we're not using GNU ld we use -z text
10000 # though, which does catch some bad symbols but isn't as heavy-handed
10001 # as -z defs.
10002 no_undefined_flag='${wl}-z,text'
10003 allow_undefined_flag='${wl}-z,nodefs'
10004 archive_cmds_need_lc=no
10005 hardcode_shlibpath_var=no
10006 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10007 hardcode_libdir_separator=':'
10008 link_all_deplibs=yes
10009 export_dynamic_flag_spec='${wl}-Bexport'
10010 runpath_var='LD_RUN_PATH'
10011
10012 if test "$GCC" = yes; then
10013 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 else
10016 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 fi
10019 ;;
10020
10021 uts4*)
10022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 hardcode_libdir_flag_spec='-L$libdir'
10024 hardcode_shlibpath_var=no
10025 ;;
10026
10027 *)
10028 ld_shlibs=no
10029 ;;
10030 esac
10031
10032 if test x$host_vendor = xsni; then
10033 case $host in
10034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10035 export_dynamic_flag_spec='${wl}-Blargedynsym'
10036 ;;
10037 esac
10038 fi
10039 fi
10040
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10042 $as_echo "$ld_shlibs" >&6; }
10043 test "$ld_shlibs" = no && can_build_shared=no
10044
10045 with_gnu_ld=$with_gnu_ld
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061 #
10062 # Do we need to explicitly link libc?
10063 #
10064 case "x$archive_cmds_need_lc" in
10065 x|xyes)
10066 # Assume -lc should be added
10067 archive_cmds_need_lc=yes
10068
10069 if test "$enable_shared" = yes && test "$GCC" = yes; then
10070 case $archive_cmds in
10071 *'~'*)
10072 # FIXME: we may have to deal with multi-command sequences.
10073 ;;
10074 '$CC '*)
10075 # Test whether the compiler implicitly links with -lc since on some
10076 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10077 # to ld, don't add -lc before -lgcc.
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10079 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10080 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 $RM conftest*
10084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10085
10086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10087 (eval $ac_compile) 2>&5
10088 ac_status=$?
10089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10090 test $ac_status = 0; } 2>conftest.err; then
10091 soname=conftest
10092 lib=conftest
10093 libobjs=conftest.$ac_objext
10094 deplibs=
10095 wl=$lt_prog_compiler_wl
10096 pic_flag=$lt_prog_compiler_pic
10097 compiler_flags=-v
10098 linker_flags=-v
10099 verstring=
10100 output_objdir=.
10101 libname=conftest
10102 lt_save_allow_undefined_flag=$allow_undefined_flag
10103 allow_undefined_flag=
10104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10105 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10106 ac_status=$?
10107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10108 test $ac_status = 0; }
10109 then
10110 lt_cv_archive_cmds_need_lc=no
10111 else
10112 lt_cv_archive_cmds_need_lc=yes
10113 fi
10114 allow_undefined_flag=$lt_save_allow_undefined_flag
10115 else
10116 cat conftest.err 1>&5
10117 fi
10118 $RM conftest*
10119
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10122 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10123 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10124 ;;
10125 esac
10126 fi
10127 ;;
10128 esac
10129
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10287 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10288
10289 if test "$GCC" = yes; then
10290 case $host_os in
10291 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10292 *) lt_awk_arg="/^libraries:/" ;;
10293 esac
10294 case $host_os in
10295 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10296 *) lt_sed_strip_eq="s,=/,/,g" ;;
10297 esac
10298 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10299 case $lt_search_path_spec in
10300 *\;*)
10301 # if the path contains ";" then we assume it to be the separator
10302 # otherwise default to the standard path separator (i.e. ":") - it is
10303 # assumed that no part of a normal pathname contains ";" but that should
10304 # okay in the real world where ";" in dirpaths is itself problematic.
10305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10306 ;;
10307 *)
10308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10309 ;;
10310 esac
10311 # Ok, now we have the path, separated by spaces, we can step through it
10312 # and add multilib dir if necessary.
10313 lt_tmp_lt_search_path_spec=
10314 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10315 for lt_sys_path in $lt_search_path_spec; do
10316 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10318 else
10319 test -d "$lt_sys_path" && \
10320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10321 fi
10322 done
10323 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10324 BEGIN {RS=" "; FS="/|\n";} {
10325 lt_foo="";
10326 lt_count=0;
10327 for (lt_i = NF; lt_i > 0; lt_i--) {
10328 if ($lt_i != "" && $lt_i != ".") {
10329 if ($lt_i == "..") {
10330 lt_count++;
10331 } else {
10332 if (lt_count == 0) {
10333 lt_foo="/" $lt_i lt_foo;
10334 } else {
10335 lt_count--;
10336 }
10337 }
10338 }
10339 }
10340 if (lt_foo != "") { lt_freq[lt_foo]++; }
10341 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10342 }'`
10343 # AWK program above erroneously prepends '/' to C:/dos/paths
10344 # for these hosts.
10345 case $host_os in
10346 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10347 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10348 esac
10349 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10350 else
10351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10352 fi
10353 library_names_spec=
10354 libname_spec='lib$name'
10355 soname_spec=
10356 shrext_cmds=".so"
10357 postinstall_cmds=
10358 postuninstall_cmds=
10359 finish_cmds=
10360 finish_eval=
10361 shlibpath_var=
10362 shlibpath_overrides_runpath=unknown
10363 version_type=none
10364 dynamic_linker="$host_os ld.so"
10365 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10366 need_lib_prefix=unknown
10367 hardcode_into_libs=no
10368
10369 # when you set need_version to no, make sure it does not cause -set_version
10370 # flags to be left without arguments
10371 need_version=unknown
10372
10373 case $host_os in
10374 aix3*)
10375 version_type=linux
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10377 shlibpath_var=LIBPATH
10378
10379 # AIX 3 has no versioning support, so we append a major version to the name.
10380 soname_spec='${libname}${release}${shared_ext}$major'
10381 ;;
10382
10383 aix[4-9]*)
10384 version_type=linux
10385 need_lib_prefix=no
10386 need_version=no
10387 hardcode_into_libs=yes
10388 if test "$host_cpu" = ia64; then
10389 # AIX 5 supports IA64
10390 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 else
10393 # With GCC up to 2.95.x, collect2 would create an import file
10394 # for dependence libraries. The import file would start with
10395 # the line `#! .'. This would cause the generated library to
10396 # depend on `.', always an invalid library. This was fixed in
10397 # development snapshots of GCC prior to 3.0.
10398 case $host_os in
10399 aix4 | aix4.[01] | aix4.[01].*)
10400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10401 echo ' yes '
10402 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10403 :
10404 else
10405 can_build_shared=no
10406 fi
10407 ;;
10408 esac
10409 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10410 # soname into executable. Probably we can add versioning support to
10411 # collect2, so additional links can be useful in future.
10412 if test "$aix_use_runtimelinking" = yes; then
10413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10414 # instead of lib<name>.a to let people know that these are not
10415 # typical AIX shared libraries.
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417 else
10418 # We preserve .a as extension for shared libraries through AIX4.2
10419 # and later when we are not doing run time linking.
10420 library_names_spec='${libname}${release}.a $libname.a'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 fi
10423 shlibpath_var=LIBPATH
10424 fi
10425 ;;
10426
10427 amigaos*)
10428 case $host_cpu in
10429 powerpc)
10430 # Since July 2007 AmigaOS4 officially supports .so libraries.
10431 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 ;;
10434 m68k)
10435 library_names_spec='$libname.ixlibrary $libname.a'
10436 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10437 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'
10438 ;;
10439 esac
10440 ;;
10441
10442 beos*)
10443 library_names_spec='${libname}${shared_ext}'
10444 dynamic_linker="$host_os ld.so"
10445 shlibpath_var=LIBRARY_PATH
10446 ;;
10447
10448 bsdi[45]*)
10449 version_type=linux
10450 need_version=no
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10454 shlibpath_var=LD_LIBRARY_PATH
10455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10457 # the default ld.so.conf also contains /usr/contrib/lib and
10458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10459 # libtool to hard-code these into programs
10460 ;;
10461
10462 cygwin* | mingw* | pw32* | cegcc*)
10463 version_type=windows
10464 shrext_cmds=".dll"
10465 need_version=no
10466 need_lib_prefix=no
10467
10468 case $GCC,$host_os in
10469 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10470 library_names_spec='$libname.dll.a'
10471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10472 postinstall_cmds='base_file=`basename \${file}`~
10473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10474 dldir=$destdir/`dirname \$dlpath`~
10475 test -d \$dldir || mkdir -p \$dldir~
10476 $install_prog $dir/$dlname \$dldir/$dlname~
10477 chmod a+x \$dldir/$dlname~
10478 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10479 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10480 fi'
10481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10482 dlpath=$dir/\$dldll~
10483 $RM \$dlpath'
10484 shlibpath_overrides_runpath=yes
10485
10486 case $host_os in
10487 cygwin*)
10488 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10489 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10490
10491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10492 ;;
10493 mingw* | cegcc*)
10494 # MinGW DLLs use traditional 'lib' prefix
10495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10496 ;;
10497 pw32*)
10498 # pw32 DLLs use 'pw' prefix rather than 'lib'
10499 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10500 ;;
10501 esac
10502 ;;
10503
10504 *)
10505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10506 ;;
10507 esac
10508 dynamic_linker='Win32 ld.exe'
10509 # FIXME: first we should search . and the directory the executable is in
10510 shlibpath_var=PATH
10511 ;;
10512
10513 darwin* | rhapsody*)
10514 dynamic_linker="$host_os dyld"
10515 version_type=darwin
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10519 soname_spec='${libname}${release}${major}$shared_ext'
10520 shlibpath_overrides_runpath=yes
10521 shlibpath_var=DYLD_LIBRARY_PATH
10522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10523
10524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10526 ;;
10527
10528 dgux*)
10529 version_type=linux
10530 need_lib_prefix=no
10531 need_version=no
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 ;;
10536
10537 freebsd* | dragonfly*)
10538 # DragonFly does not have aout. When/if they implement a new
10539 # versioning mechanism, adjust this.
10540 if test -x /usr/bin/objformat; then
10541 objformat=`/usr/bin/objformat`
10542 else
10543 case $host_os in
10544 freebsd[23].*) objformat=aout ;;
10545 *) objformat=elf ;;
10546 esac
10547 fi
10548 version_type=freebsd-$objformat
10549 case $version_type in
10550 freebsd-elf*)
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10552 need_version=no
10553 need_lib_prefix=no
10554 ;;
10555 freebsd-*)
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10557 need_version=yes
10558 ;;
10559 esac
10560 shlibpath_var=LD_LIBRARY_PATH
10561 case $host_os in
10562 freebsd2.*)
10563 shlibpath_overrides_runpath=yes
10564 ;;
10565 freebsd3.[01]* | freebsdelf3.[01]*)
10566 shlibpath_overrides_runpath=yes
10567 hardcode_into_libs=yes
10568 ;;
10569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10571 shlibpath_overrides_runpath=no
10572 hardcode_into_libs=yes
10573 ;;
10574 *) # from 4.6 on, and DragonFly
10575 shlibpath_overrides_runpath=yes
10576 hardcode_into_libs=yes
10577 ;;
10578 esac
10579 ;;
10580
10581 gnu*)
10582 version_type=linux
10583 need_lib_prefix=no
10584 need_version=no
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10586 soname_spec='${libname}${release}${shared_ext}$major'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 hardcode_into_libs=yes
10589 ;;
10590
10591 haiku*)
10592 version_type=linux
10593 need_lib_prefix=no
10594 need_version=no
10595 dynamic_linker="$host_os runtime_loader"
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LIBRARY_PATH
10599 shlibpath_overrides_runpath=yes
10600 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10601 hardcode_into_libs=yes
10602 ;;
10603
10604 hpux9* | hpux10* | hpux11*)
10605 # Give a soname corresponding to the major version so that dld.sl refuses to
10606 # link against other versions.
10607 version_type=sunos
10608 need_lib_prefix=no
10609 need_version=no
10610 case $host_cpu in
10611 ia64*)
10612 shrext_cmds='.so'
10613 hardcode_into_libs=yes
10614 dynamic_linker="$host_os dld.so"
10615 shlibpath_var=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 if test "X$HPUX_IA64_MODE" = X32; then
10620 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10621 else
10622 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10623 fi
10624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10625 ;;
10626 hppa*64*)
10627 shrext_cmds='.sl'
10628 hardcode_into_libs=yes
10629 dynamic_linker="$host_os dld.sl"
10630 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10636 ;;
10637 *)
10638 shrext_cmds='.sl'
10639 dynamic_linker="$host_os dld.sl"
10640 shlibpath_var=SHLIB_PATH
10641 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 ;;
10645 esac
10646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10647 postinstall_cmds='chmod 555 $lib'
10648 # or fails outright, so override atomically:
10649 install_override_mode=555
10650 ;;
10651
10652 interix[3-9]*)
10653 version_type=linux
10654 need_lib_prefix=no
10655 need_version=no
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 shlibpath_overrides_runpath=no
10661 hardcode_into_libs=yes
10662 ;;
10663
10664 irix5* | irix6* | nonstopux*)
10665 case $host_os in
10666 nonstopux*) version_type=nonstopux ;;
10667 *)
10668 if test "$lt_cv_prog_gnu_ld" = yes; then
10669 version_type=linux
10670 else
10671 version_type=irix
10672 fi ;;
10673 esac
10674 need_lib_prefix=no
10675 need_version=no
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10678 case $host_os in
10679 irix5* | nonstopux*)
10680 libsuff= shlibsuff=
10681 ;;
10682 *)
10683 case $LD in # libtool.m4 will add one of these switches to LD
10684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10685 libsuff= shlibsuff= libmagic=32-bit;;
10686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10687 libsuff=32 shlibsuff=N32 libmagic=N32;;
10688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10690 *) libsuff= shlibsuff= libmagic=never-match;;
10691 esac
10692 ;;
10693 esac
10694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10695 shlibpath_overrides_runpath=no
10696 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10697 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10698 hardcode_into_libs=yes
10699 ;;
10700
10701 # No shared lib support for Linux oldld, aout, or coff.
10702 linux*oldld* | linux*aout* | linux*coff*)
10703 dynamic_linker=no
10704 ;;
10705
10706 # This must be Linux ELF.
10707 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10708 version_type=linux
10709 need_lib_prefix=no
10710 need_version=no
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 shlibpath_overrides_runpath=no
10716
10717 # Some binutils ld are patched to set DT_RUNPATH
10718 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 lt_cv_shlibpath_overrides_runpath=no
10722 save_LDFLAGS=$LDFLAGS
10723 save_libdir=$libdir
10724 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10725 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10728
10729 int
10730 main ()
10731 {
10732
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"; then :
10738 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10739 lt_cv_shlibpath_overrides_runpath=yes
10740 fi
10741 fi
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LDFLAGS=$save_LDFLAGS
10745 libdir=$save_libdir
10746
10747 fi
10748
10749 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10750
10751 # This implies no fast_install, which is unacceptable.
10752 # Some rework will be needed to allow for fast_install
10753 # before this can be enabled.
10754 hardcode_into_libs=yes
10755
10756 # Append ld.so.conf contents to the search path
10757 if test -f /etc/ld.so.conf; then
10758 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' ' '`
10759 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10760 fi
10761
10762 # We used to test for /lib/ld.so.1 and disable shared libraries on
10763 # powerpc, because MkLinux only supported shared libraries with the
10764 # GNU dynamic linker. Since this was broken with cross compilers,
10765 # most powerpc-linux boxes support dynamic linking these days and
10766 # people can always --disable-shared, the test was removed, and we
10767 # assume the GNU/Linux dynamic linker is in use.
10768 dynamic_linker='GNU/Linux ld.so'
10769 ;;
10770
10771 netbsd*)
10772 version_type=sunos
10773 need_lib_prefix=no
10774 need_version=no
10775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10778 dynamic_linker='NetBSD (a.out) ld.so'
10779 else
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 dynamic_linker='NetBSD ld.elf_so'
10783 fi
10784 shlibpath_var=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath=yes
10786 hardcode_into_libs=yes
10787 ;;
10788
10789 newsos6)
10790 version_type=linux
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes
10794 ;;
10795
10796 *nto* | *qnx*)
10797 version_type=qnx
10798 need_lib_prefix=no
10799 need_version=no
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath=no
10804 hardcode_into_libs=yes
10805 dynamic_linker='ldqnx.so'
10806 ;;
10807
10808 openbsd*)
10809 version_type=sunos
10810 sys_lib_dlsearch_path_spec="/usr/lib"
10811 need_lib_prefix=no
10812 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10813 case $host_os in
10814 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10815 *) need_version=no ;;
10816 esac
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10819 shlibpath_var=LD_LIBRARY_PATH
10820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10821 case $host_os in
10822 openbsd2.[89] | openbsd2.[89].*)
10823 shlibpath_overrides_runpath=no
10824 ;;
10825 *)
10826 shlibpath_overrides_runpath=yes
10827 ;;
10828 esac
10829 else
10830 shlibpath_overrides_runpath=yes
10831 fi
10832 ;;
10833
10834 os2*)
10835 libname_spec='$name'
10836 shrext_cmds=".dll"
10837 need_lib_prefix=no
10838 library_names_spec='$libname${shared_ext} $libname.a'
10839 dynamic_linker='OS/2 ld.exe'
10840 shlibpath_var=LIBPATH
10841 ;;
10842
10843 osf3* | osf4* | osf5*)
10844 version_type=osf
10845 need_lib_prefix=no
10846 need_version=no
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10852 ;;
10853
10854 rdos*)
10855 dynamic_linker=no
10856 ;;
10857
10858 solaris*)
10859 version_type=linux
10860 need_lib_prefix=no
10861 need_version=no
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 shlibpath_var=LD_LIBRARY_PATH
10865 shlibpath_overrides_runpath=yes
10866 hardcode_into_libs=yes
10867 # ldd complains unless libraries are executable
10868 postinstall_cmds='chmod +x $lib'
10869 ;;
10870
10871 sunos4*)
10872 version_type=sunos
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=yes
10877 if test "$with_gnu_ld" = yes; then
10878 need_lib_prefix=no
10879 fi
10880 need_version=yes
10881 ;;
10882
10883 sysv4 | sysv4.3*)
10884 version_type=linux
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 case $host_vendor in
10889 sni)
10890 shlibpath_overrides_runpath=no
10891 need_lib_prefix=no
10892 runpath_var=LD_RUN_PATH
10893 ;;
10894 siemens)
10895 need_lib_prefix=no
10896 ;;
10897 motorola)
10898 need_lib_prefix=no
10899 need_version=no
10900 shlibpath_overrides_runpath=no
10901 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10902 ;;
10903 esac
10904 ;;
10905
10906 sysv4*MP*)
10907 if test -d /usr/nec ;then
10908 version_type=linux
10909 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10910 soname_spec='$libname${shared_ext}.$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 fi
10913 ;;
10914
10915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10916 version_type=freebsd-elf
10917 need_lib_prefix=no
10918 need_version=no
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 hardcode_into_libs=yes
10924 if test "$with_gnu_ld" = yes; then
10925 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10926 else
10927 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10928 case $host_os in
10929 sco3.2v5*)
10930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10931 ;;
10932 esac
10933 fi
10934 sys_lib_dlsearch_path_spec='/usr/lib'
10935 ;;
10936
10937 tpf*)
10938 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10939 version_type=linux
10940 need_lib_prefix=no
10941 need_version=no
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=no
10945 hardcode_into_libs=yes
10946 ;;
10947
10948 uts4*)
10949 version_type=linux
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 ;;
10954
10955 *)
10956 dynamic_linker=no
10957 ;;
10958 esac
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10960 $as_echo "$dynamic_linker" >&6; }
10961 test "$dynamic_linker" = no && can_build_shared=no
10962
10963 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10964 if test "$GCC" = yes; then
10965 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10966 fi
10967
10968 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10969 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10970 fi
10971 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10972 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10973 fi
10974
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11068 hardcode_action=
11069 if test -n "$hardcode_libdir_flag_spec" ||
11070 test -n "$runpath_var" ||
11071 test "X$hardcode_automatic" = "Xyes" ; then
11072
11073 # We can hardcode non-existent directories.
11074 if test "$hardcode_direct" != no &&
11075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11076 # have to relink, otherwise we might link with an installed library
11077 # when we should be linking with a yet-to-be-installed one
11078 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11079 test "$hardcode_minus_L" != no; then
11080 # Linking always hardcodes the temporary library directory.
11081 hardcode_action=relink
11082 else
11083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11084 hardcode_action=immediate
11085 fi
11086 else
11087 # We cannot hardcode anything, or else we can only hardcode existing
11088 # directories.
11089 hardcode_action=unsupported
11090 fi
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11092 $as_echo "$hardcode_action" >&6; }
11093
11094 if test "$hardcode_action" = relink ||
11095 test "$inherit_rpath" = yes; then
11096 # Fast installation is not supported
11097 enable_fast_install=no
11098 elif test "$shlibpath_overrides_runpath" = yes ||
11099 test "$enable_shared" = no; then
11100 # Fast installation is not necessary
11101 enable_fast_install=needless
11102 fi
11103
11104
11105
11106
11107
11108
11109 if test "x$enable_dlopen" != xyes; then
11110 enable_dlopen=unknown
11111 enable_dlopen_self=unknown
11112 enable_dlopen_self_static=unknown
11113 else
11114 lt_cv_dlopen=no
11115 lt_cv_dlopen_libs=
11116
11117 case $host_os in
11118 beos*)
11119 lt_cv_dlopen="load_add_on"
11120 lt_cv_dlopen_libs=
11121 lt_cv_dlopen_self=yes
11122 ;;
11123
11124 mingw* | pw32* | cegcc*)
11125 lt_cv_dlopen="LoadLibrary"
11126 lt_cv_dlopen_libs=
11127 ;;
11128
11129 cygwin*)
11130 lt_cv_dlopen="dlopen"
11131 lt_cv_dlopen_libs=
11132 ;;
11133
11134 darwin*)
11135 # if libdl is installed we need to link against it
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11138 if ${ac_cv_lib_dl_dlopen+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 ac_check_lib_save_LIBS=$LIBS
11142 LIBS="-ldl $LIBS"
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145
11146 /* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11149 #ifdef __cplusplus
11150 extern "C"
11151 #endif
11152 char dlopen ();
11153 int
11154 main ()
11155 {
11156 return dlopen ();
11157 ;
11158 return 0;
11159 }
11160 _ACEOF
11161 if ac_fn_c_try_link "$LINENO"; then :
11162 ac_cv_lib_dl_dlopen=yes
11163 else
11164 ac_cv_lib_dl_dlopen=no
11165 fi
11166 rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11169 fi
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11172 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11174 else
11175
11176 lt_cv_dlopen="dyld"
11177 lt_cv_dlopen_libs=
11178 lt_cv_dlopen_self=yes
11179
11180 fi
11181
11182 ;;
11183
11184 *)
11185 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11186 if test "x$ac_cv_func_shl_load" = xyes; then :
11187 lt_cv_dlopen="shl_load"
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11190 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11191 if ${ac_cv_lib_dld_shl_load+:} false; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 ac_check_lib_save_LIBS=$LIBS
11195 LIBS="-ldld $LIBS"
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198
11199 /* Override any GCC internal prototype to avoid an error.
11200 Use char because int might match the return type of a GCC
11201 builtin and then its argument prototype would still apply. */
11202 #ifdef __cplusplus
11203 extern "C"
11204 #endif
11205 char shl_load ();
11206 int
11207 main ()
11208 {
11209 return shl_load ();
11210 ;
11211 return 0;
11212 }
11213 _ACEOF
11214 if ac_fn_c_try_link "$LINENO"; then :
11215 ac_cv_lib_dld_shl_load=yes
11216 else
11217 ac_cv_lib_dld_shl_load=no
11218 fi
11219 rm -f core conftest.err conftest.$ac_objext \
11220 conftest$ac_exeext conftest.$ac_ext
11221 LIBS=$ac_check_lib_save_LIBS
11222 fi
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11224 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11225 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11226 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11227 else
11228 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11229 if test "x$ac_cv_func_dlopen" = xyes; then :
11230 lt_cv_dlopen="dlopen"
11231 else
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11234 if ${ac_cv_lib_dl_dlopen+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 ac_check_lib_save_LIBS=$LIBS
11238 LIBS="-ldl $LIBS"
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241
11242 /* Override any GCC internal prototype to avoid an error.
11243 Use char because int might match the return type of a GCC
11244 builtin and then its argument prototype would still apply. */
11245 #ifdef __cplusplus
11246 extern "C"
11247 #endif
11248 char dlopen ();
11249 int
11250 main ()
11251 {
11252 return dlopen ();
11253 ;
11254 return 0;
11255 }
11256 _ACEOF
11257 if ac_fn_c_try_link "$LINENO"; then :
11258 ac_cv_lib_dl_dlopen=yes
11259 else
11260 ac_cv_lib_dl_dlopen=no
11261 fi
11262 rm -f core conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11264 LIBS=$ac_check_lib_save_LIBS
11265 fi
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11268 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11272 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11273 if ${ac_cv_lib_svld_dlopen+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-lsvld $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char dlopen ();
11288 int
11289 main ()
11290 {
11291 return dlopen ();
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_svld_dlopen=yes
11298 else
11299 ac_cv_lib_svld_dlopen=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11306 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11307 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11309 else
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11311 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11312 if ${ac_cv_lib_dld_dld_link+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 ac_check_lib_save_LIBS=$LIBS
11316 LIBS="-ldld $LIBS"
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11319
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char dld_link ();
11327 int
11328 main ()
11329 {
11330 return dld_link ();
11331 ;
11332 return 0;
11333 }
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"; then :
11336 ac_cv_lib_dld_dld_link=yes
11337 else
11338 ac_cv_lib_dld_dld_link=no
11339 fi
11340 rm -f core conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11342 LIBS=$ac_check_lib_save_LIBS
11343 fi
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11345 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11346 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11347 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11348 fi
11349
11350
11351 fi
11352
11353
11354 fi
11355
11356
11357 fi
11358
11359
11360 fi
11361
11362
11363 fi
11364
11365 ;;
11366 esac
11367
11368 if test "x$lt_cv_dlopen" != xno; then
11369 enable_dlopen=yes
11370 else
11371 enable_dlopen=no
11372 fi
11373
11374 case $lt_cv_dlopen in
11375 dlopen)
11376 save_CPPFLAGS="$CPPFLAGS"
11377 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11378
11379 save_LDFLAGS="$LDFLAGS"
11380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11381
11382 save_LIBS="$LIBS"
11383 LIBS="$lt_cv_dlopen_libs $LIBS"
11384
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11386 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11387 if ${lt_cv_dlopen_self+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 if test "$cross_compiling" = yes; then :
11391 lt_cv_dlopen_self=cross
11392 else
11393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11394 lt_status=$lt_dlunknown
11395 cat > conftest.$ac_ext <<_LT_EOF
11396 #line 11396 "configure"
11397 #include "confdefs.h"
11398
11399 #if HAVE_DLFCN_H
11400 #include <dlfcn.h>
11401 #endif
11402
11403 #include <stdio.h>
11404
11405 #ifdef RTLD_GLOBAL
11406 # define LT_DLGLOBAL RTLD_GLOBAL
11407 #else
11408 # ifdef DL_GLOBAL
11409 # define LT_DLGLOBAL DL_GLOBAL
11410 # else
11411 # define LT_DLGLOBAL 0
11412 # endif
11413 #endif
11414
11415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11416 find out it does not work in some platform. */
11417 #ifndef LT_DLLAZY_OR_NOW
11418 # ifdef RTLD_LAZY
11419 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11420 # else
11421 # ifdef DL_LAZY
11422 # define LT_DLLAZY_OR_NOW DL_LAZY
11423 # else
11424 # ifdef RTLD_NOW
11425 # define LT_DLLAZY_OR_NOW RTLD_NOW
11426 # else
11427 # ifdef DL_NOW
11428 # define LT_DLLAZY_OR_NOW DL_NOW
11429 # else
11430 # define LT_DLLAZY_OR_NOW 0
11431 # endif
11432 # endif
11433 # endif
11434 # endif
11435 #endif
11436
11437 /* When -fvisbility=hidden is used, assume the code has been annotated
11438 correspondingly for the symbols needed. */
11439 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11440 void fnord () __attribute__((visibility("default")));
11441 #endif
11442
11443 void fnord () { int i=42; }
11444 int main ()
11445 {
11446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11447 int status = $lt_dlunknown;
11448
11449 if (self)
11450 {
11451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11452 else
11453 {
11454 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11455 else puts (dlerror ());
11456 }
11457 /* dlclose (self); */
11458 }
11459 else
11460 puts (dlerror ());
11461
11462 return status;
11463 }
11464 _LT_EOF
11465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11466 (eval $ac_link) 2>&5
11467 ac_status=$?
11468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11469 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11470 (./conftest; exit; ) >&5 2>/dev/null
11471 lt_status=$?
11472 case x$lt_status in
11473 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11474 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11475 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11476 esac
11477 else :
11478 # compilation failed
11479 lt_cv_dlopen_self=no
11480 fi
11481 fi
11482 rm -fr conftest*
11483
11484
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11487 $as_echo "$lt_cv_dlopen_self" >&6; }
11488
11489 if test "x$lt_cv_dlopen_self" = xyes; then
11490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11492 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11493 if ${lt_cv_dlopen_self_static+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 if test "$cross_compiling" = yes; then :
11497 lt_cv_dlopen_self_static=cross
11498 else
11499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11500 lt_status=$lt_dlunknown
11501 cat > conftest.$ac_ext <<_LT_EOF
11502 #line 11502 "configure"
11503 #include "confdefs.h"
11504
11505 #if HAVE_DLFCN_H
11506 #include <dlfcn.h>
11507 #endif
11508
11509 #include <stdio.h>
11510
11511 #ifdef RTLD_GLOBAL
11512 # define LT_DLGLOBAL RTLD_GLOBAL
11513 #else
11514 # ifdef DL_GLOBAL
11515 # define LT_DLGLOBAL DL_GLOBAL
11516 # else
11517 # define LT_DLGLOBAL 0
11518 # endif
11519 #endif
11520
11521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11522 find out it does not work in some platform. */
11523 #ifndef LT_DLLAZY_OR_NOW
11524 # ifdef RTLD_LAZY
11525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11526 # else
11527 # ifdef DL_LAZY
11528 # define LT_DLLAZY_OR_NOW DL_LAZY
11529 # else
11530 # ifdef RTLD_NOW
11531 # define LT_DLLAZY_OR_NOW RTLD_NOW
11532 # else
11533 # ifdef DL_NOW
11534 # define LT_DLLAZY_OR_NOW DL_NOW
11535 # else
11536 # define LT_DLLAZY_OR_NOW 0
11537 # endif
11538 # endif
11539 # endif
11540 # endif
11541 #endif
11542
11543 /* When -fvisbility=hidden is used, assume the code has been annotated
11544 correspondingly for the symbols needed. */
11545 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11546 void fnord () __attribute__((visibility("default")));
11547 #endif
11548
11549 void fnord () { int i=42; }
11550 int main ()
11551 {
11552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553 int status = $lt_dlunknown;
11554
11555 if (self)
11556 {
11557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11558 else
11559 {
11560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11561 else puts (dlerror ());
11562 }
11563 /* dlclose (self); */
11564 }
11565 else
11566 puts (dlerror ());
11567
11568 return status;
11569 }
11570 _LT_EOF
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11572 (eval $ac_link) 2>&5
11573 ac_status=$?
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11576 (./conftest; exit; ) >&5 2>/dev/null
11577 lt_status=$?
11578 case x$lt_status in
11579 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11580 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11581 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11582 esac
11583 else :
11584 # compilation failed
11585 lt_cv_dlopen_self_static=no
11586 fi
11587 fi
11588 rm -fr conftest*
11589
11590
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11593 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11594 fi
11595
11596 CPPFLAGS="$save_CPPFLAGS"
11597 LDFLAGS="$save_LDFLAGS"
11598 LIBS="$save_LIBS"
11599 ;;
11600 esac
11601
11602 case $lt_cv_dlopen_self in
11603 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11604 *) enable_dlopen_self=unknown ;;
11605 esac
11606
11607 case $lt_cv_dlopen_self_static in
11608 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11609 *) enable_dlopen_self_static=unknown ;;
11610 esac
11611 fi
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629 striplib=
11630 old_striplib=
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11632 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11633 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11634 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11635 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11637 $as_echo "yes" >&6; }
11638 else
11639 # FIXME - insert some real tests, host_os isn't really good enough
11640 case $host_os in
11641 darwin*)
11642 if test -n "$STRIP" ; then
11643 striplib="$STRIP -x"
11644 old_striplib="$STRIP -S"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11646 $as_echo "yes" >&6; }
11647 else
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 $as_echo "no" >&6; }
11650 fi
11651 ;;
11652 *)
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11655 ;;
11656 esac
11657 fi
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670 # Report which library types will actually be built
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11672 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11674 $as_echo "$can_build_shared" >&6; }
11675
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11677 $as_echo_n "checking whether to build shared libraries... " >&6; }
11678 test "$can_build_shared" = "no" && enable_shared=no
11679
11680 # On AIX, shared libraries and static libraries use the same namespace, and
11681 # are all built from PIC.
11682 case $host_os in
11683 aix3*)
11684 test "$enable_shared" = yes && enable_static=no
11685 if test -n "$RANLIB"; then
11686 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11687 postinstall_cmds='$RANLIB $lib'
11688 fi
11689 ;;
11690
11691 aix[4-9]*)
11692 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11693 test "$enable_shared" = yes && enable_static=no
11694 fi
11695 ;;
11696 esac
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11698 $as_echo "$enable_shared" >&6; }
11699
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11701 $as_echo_n "checking whether to build static libraries... " >&6; }
11702 # Make sure either enable_shared or enable_static is yes.
11703 test "$enable_shared" = yes || enable_static=yes
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11705 $as_echo "$enable_static" >&6; }
11706
11707
11708
11709
11710 fi
11711 ac_ext=c
11712 ac_cpp='$CPP $CPPFLAGS'
11713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11716
11717 CC="$lt_save_CC"
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731 ac_config_commands="$ac_config_commands libtool"
11732
11733
11734
11735
11736 # Only expand once:
11737
11738
11739
11740
11741
11742 case $host in
11743 *-cygwin* | *-mingw*)
11744 # 'host' will be top-level target in the case of a target lib,
11745 # we must compare to with_cross_host to decide if this is a native
11746 # or cross-compiler and select where to install dlls appropriately.
11747 if test -n "$with_cross_host" &&
11748 test x"$with_cross_host" != x"no"; then
11749 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11750 else
11751 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11752 fi
11753 ;;
11754 *)
11755 lt_host_flags=
11756 ;;
11757 esac
11758
11759
11760
11761
11762
11763
11764
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11766 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11767 # Check whether --enable-maintainer-mode was given.
11768 if test "${enable_maintainer_mode+set}" = set; then :
11769 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11770 else
11771 USE_MAINTAINER_MODE=no
11772 fi
11773
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11775 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11776 if test $USE_MAINTAINER_MODE = yes; then
11777 MAINTAINER_MODE_TRUE=
11778 MAINTAINER_MODE_FALSE='#'
11779 else
11780 MAINTAINER_MODE_TRUE='#'
11781 MAINTAINER_MODE_FALSE=
11782 fi
11783
11784 MAINT=$MAINTAINER_MODE_TRUE
11785
11786
11787
11788 # Create a spec file, so that compile/link tests don't fail
11789 test -f libgfortran.spec || touch libgfortran.spec
11790 FCFLAGS="$FCFLAGS -L."
11791
11792 # We need gfortran to compile parts of the library
11793 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11794 #AC_PROG_FC(gfortran)
11795 case `echo $GFORTRAN` in
11796 -* | no* )
11797 FC=no ;;
11798 *)
11799 set dummy $GFORTRAN; ac_word=$2
11800 if test -x "$ac_word"; then
11801 FC="$GFORTRAN"
11802 else
11803 FC=no
11804 fi ;;
11805 esac
11806 ac_ext=${ac_fc_srcext-f}
11807 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11808 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11809 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11810 if test -n "$ac_tool_prefix"; then
11811 for ac_prog in gfortran
11812 do
11813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_prog_FC+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 if test -n "$FC"; then
11821 ac_cv_prog_FC="$FC" # Let the user override the test.
11822 else
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11825 do
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11833 fi
11834 done
11835 done
11836 IFS=$as_save_IFS
11837
11838 fi
11839 fi
11840 FC=$ac_cv_prog_FC
11841 if test -n "$FC"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11843 $as_echo "$FC" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11847 fi
11848
11849
11850 test -n "$FC" && break
11851 done
11852 fi
11853 if test -z "$FC"; then
11854 ac_ct_FC=$FC
11855 for ac_prog in gfortran
11856 do
11857 # Extract the first word of "$ac_prog", so it can be a program name with args.
11858 set dummy $ac_prog; ac_word=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 if test -n "$ac_ct_FC"; then
11865 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11866 else
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11869 do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_prog_ac_ct_FC="$ac_prog"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11877 fi
11878 done
11879 done
11880 IFS=$as_save_IFS
11881
11882 fi
11883 fi
11884 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11885 if test -n "$ac_ct_FC"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11887 $as_echo "$ac_ct_FC" >&6; }
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11891 fi
11892
11893
11894 test -n "$ac_ct_FC" && break
11895 done
11896
11897 if test "x$ac_ct_FC" = x; then
11898 FC=""
11899 else
11900 case $cross_compiling:$ac_tool_warned in
11901 yes:)
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11904 ac_tool_warned=yes ;;
11905 esac
11906 FC=$ac_ct_FC
11907 fi
11908 fi
11909
11910
11911 # Provide some information about the compiler.
11912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11913 set X $ac_compile
11914 ac_compiler=$2
11915 for ac_option in --version -v -V -qversion; do
11916 { { ac_try="$ac_compiler $ac_option >&5"
11917 case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11920 esac
11921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11922 $as_echo "$ac_try_echo"; } >&5
11923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11924 ac_status=$?
11925 if test -s conftest.err; then
11926 sed '10a\
11927 ... rest of stderr output deleted ...
11928 10q' conftest.err >conftest.er1
11929 cat conftest.er1 >&5
11930 fi
11931 rm -f conftest.er1 conftest.err
11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933 test $ac_status = 0; }
11934 done
11935 rm -f a.out
11936
11937 # If we don't use `.F' as extension, the preprocessor is not run on the
11938 # input file. (Note that this only needs to work for GNU compilers.)
11939 ac_save_ext=$ac_ext
11940 ac_ext=F
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11942 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11943 if ${ac_cv_fc_compiler_gnu+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 cat > conftest.$ac_ext <<_ACEOF
11947 program main
11948 #ifndef __GNUC__
11949 choke me
11950 #endif
11951
11952 end
11953 _ACEOF
11954 if ac_fn_fc_try_compile "$LINENO"; then :
11955 ac_compiler_gnu=yes
11956 else
11957 ac_compiler_gnu=no
11958 fi
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11961
11962 fi
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11964 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11965 ac_ext=$ac_save_ext
11966 ac_test_FCFLAGS=${FCFLAGS+set}
11967 ac_save_FCFLAGS=$FCFLAGS
11968 FCFLAGS=
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11970 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11971 if ${ac_cv_prog_fc_g+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 FCFLAGS=-g
11975 cat > conftest.$ac_ext <<_ACEOF
11976 program main
11977
11978 end
11979 _ACEOF
11980 if ac_fn_fc_try_compile "$LINENO"; then :
11981 ac_cv_prog_fc_g=yes
11982 else
11983 ac_cv_prog_fc_g=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11989 $as_echo "$ac_cv_prog_fc_g" >&6; }
11990 if test "$ac_test_FCFLAGS" = set; then
11991 FCFLAGS=$ac_save_FCFLAGS
11992 elif test $ac_cv_prog_fc_g = yes; then
11993 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11994 FCFLAGS="-g -O2"
11995 else
11996 FCFLAGS="-g"
11997 fi
11998 else
11999 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12000 FCFLAGS="-O2"
12001 else
12002 FCFLAGS=
12003 fi
12004 fi
12005
12006 if test $ac_compiler_gnu = yes; then
12007 GFC=yes
12008 else
12009 GFC=
12010 fi
12011 ac_ext=c
12012 ac_cpp='$CPP $CPPFLAGS'
12013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12016
12017 ac_ext=${ac_fc_srcext-f}
12018 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12019 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12020 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12021
12022
12023 if test -z "$FC" || test "X$FC" = "Xno"; then
12024 _lt_disable_FC=yes
12025 fi
12026
12027 archive_cmds_need_lc_FC=no
12028 allow_undefined_flag_FC=
12029 always_export_symbols_FC=no
12030 archive_expsym_cmds_FC=
12031 export_dynamic_flag_spec_FC=
12032 hardcode_direct_FC=no
12033 hardcode_direct_absolute_FC=no
12034 hardcode_libdir_flag_spec_FC=
12035 hardcode_libdir_flag_spec_ld_FC=
12036 hardcode_libdir_separator_FC=
12037 hardcode_minus_L_FC=no
12038 hardcode_automatic_FC=no
12039 inherit_rpath_FC=no
12040 module_cmds_FC=
12041 module_expsym_cmds_FC=
12042 link_all_deplibs_FC=unknown
12043 old_archive_cmds_FC=$old_archive_cmds
12044 reload_flag_FC=$reload_flag
12045 reload_cmds_FC=$reload_cmds
12046 no_undefined_flag_FC=
12047 whole_archive_flag_spec_FC=
12048 enable_shared_with_static_runtimes_FC=no
12049
12050 # Source file extension for fc test sources.
12051 ac_ext=${ac_fc_srcext-f}
12052
12053 # Object file extension for compiled fc test sources.
12054 objext=o
12055 objext_FC=$objext
12056
12057 # No sense in running all these tests if we already determined that
12058 # the FC compiler isn't working. Some variables (like enable_shared)
12059 # are currently assumed to apply to all compilers on this platform,
12060 # and will be corrupted by setting them based on a non-working compiler.
12061 if test "$_lt_disable_FC" != yes; then
12062 # Code to be used in simple compile tests
12063 lt_simple_compile_test_code="\
12064 subroutine t
12065 return
12066 end
12067 "
12068
12069 # Code to be used in simple link tests
12070 lt_simple_link_test_code="\
12071 program t
12072 end
12073 "
12074
12075 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12076
12077
12078
12079
12080
12081
12082 # If no C compiler was specified, use CC.
12083 LTCC=${LTCC-"$CC"}
12084
12085 # If no C compiler flags were specified, use CFLAGS.
12086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12087
12088 # Allow CC to be a program name with arguments.
12089 compiler=$CC
12090
12091
12092 # save warnings/boilerplate of simple test code
12093 ac_outfile=conftest.$ac_objext
12094 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12096 _lt_compiler_boilerplate=`cat conftest.err`
12097 $RM conftest*
12098
12099 ac_outfile=conftest.$ac_objext
12100 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12102 _lt_linker_boilerplate=`cat conftest.err`
12103 $RM -r conftest*
12104
12105
12106 # Allow CC to be a program name with arguments.
12107 lt_save_CC="$CC"
12108 lt_save_GCC=$GCC
12109 CC=${FC-"f95"}
12110 compiler=$CC
12111 GCC=$ac_cv_fc_compiler_gnu
12112
12113 compiler_FC=$CC
12114 for cc_temp in $compiler""; do
12115 case $cc_temp in
12116 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12117 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12118 \-*) ;;
12119 *) break;;
12120 esac
12121 done
12122 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12123
12124
12125 if test -n "$compiler"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12127 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12129 $as_echo "$can_build_shared" >&6; }
12130
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12132 $as_echo_n "checking whether to build shared libraries... " >&6; }
12133 test "$can_build_shared" = "no" && enable_shared=no
12134
12135 # On AIX, shared libraries and static libraries use the same namespace, and
12136 # are all built from PIC.
12137 case $host_os in
12138 aix3*)
12139 test "$enable_shared" = yes && enable_static=no
12140 if test -n "$RANLIB"; then
12141 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12142 postinstall_cmds='$RANLIB $lib'
12143 fi
12144 ;;
12145 aix[4-9]*)
12146 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12147 test "$enable_shared" = yes && enable_static=no
12148 fi
12149 ;;
12150 esac
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12152 $as_echo "$enable_shared" >&6; }
12153
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12155 $as_echo_n "checking whether to build static libraries... " >&6; }
12156 # Make sure either enable_shared or enable_static is yes.
12157 test "$enable_shared" = yes || enable_static=yes
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12159 $as_echo "$enable_static" >&6; }
12160
12161 GCC_FC="$ac_cv_fc_compiler_gnu"
12162 LD_FC="$LD"
12163
12164 ## CAVEAT EMPTOR:
12165 ## There is no encapsulation within the following macros, do not change
12166 ## the running order or otherwise move them around unless you know exactly
12167 ## what you are doing...
12168 # Dependencies to place before and after the object being linked:
12169 predep_objects_FC=
12170 postdep_objects_FC=
12171 predeps_FC=
12172 postdeps_FC=
12173 compiler_lib_search_path_FC=
12174
12175 cat > conftest.$ac_ext <<_LT_EOF
12176 subroutine foo
12177 implicit none
12178 integer a
12179 a=0
12180 return
12181 end
12182 _LT_EOF
12183
12184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12185 (eval $ac_compile) 2>&5
12186 ac_status=$?
12187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12188 test $ac_status = 0; }; then
12189 # Parse the compiler output and extract the necessary
12190 # objects, libraries and library flags.
12191
12192 # Sentinel used to keep track of whether or not we are before
12193 # the conftest object file.
12194 pre_test_object_deps_done=no
12195
12196 for p in `eval "$output_verbose_link_cmd"`; do
12197 case $p in
12198
12199 -L* | -R* | -l*)
12200 # Some compilers place space between "-{L,R}" and the path.
12201 # Remove the space.
12202 if test $p = "-L" ||
12203 test $p = "-R"; then
12204 prev=$p
12205 continue
12206 else
12207 prev=
12208 fi
12209
12210 if test "$pre_test_object_deps_done" = no; then
12211 case $p in
12212 -L* | -R*)
12213 # Internal compiler library paths should come after those
12214 # provided the user. The postdeps already come after the
12215 # user supplied libs so there is no need to process them.
12216 if test -z "$compiler_lib_search_path_FC"; then
12217 compiler_lib_search_path_FC="${prev}${p}"
12218 else
12219 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12220 fi
12221 ;;
12222 # The "-l" case would never come before the object being
12223 # linked, so don't bother handling this case.
12224 esac
12225 else
12226 if test -z "$postdeps_FC"; then
12227 postdeps_FC="${prev}${p}"
12228 else
12229 postdeps_FC="${postdeps_FC} ${prev}${p}"
12230 fi
12231 fi
12232 ;;
12233
12234 *.$objext)
12235 # This assumes that the test object file only shows up
12236 # once in the compiler output.
12237 if test "$p" = "conftest.$objext"; then
12238 pre_test_object_deps_done=yes
12239 continue
12240 fi
12241
12242 if test "$pre_test_object_deps_done" = no; then
12243 if test -z "$predep_objects_FC"; then
12244 predep_objects_FC="$p"
12245 else
12246 predep_objects_FC="$predep_objects_FC $p"
12247 fi
12248 else
12249 if test -z "$postdep_objects_FC"; then
12250 postdep_objects_FC="$p"
12251 else
12252 postdep_objects_FC="$postdep_objects_FC $p"
12253 fi
12254 fi
12255 ;;
12256
12257 *) ;; # Ignore the rest.
12258
12259 esac
12260 done
12261
12262 # Clean up.
12263 rm -f a.out a.exe
12264 else
12265 echo "libtool.m4: error: problem compiling FC test program"
12266 fi
12267
12268 $RM -f confest.$objext
12269
12270 # PORTME: override above test on systems where it is broken
12271
12272
12273 case " $postdeps_FC " in
12274 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12275 esac
12276 compiler_lib_search_dirs_FC=
12277 if test -n "${compiler_lib_search_path_FC}"; then
12278 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12279 fi
12280
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 lt_prog_compiler_wl_FC=
12312 lt_prog_compiler_pic_FC=
12313 lt_prog_compiler_static_FC=
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12316 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12317
12318 if test "$GCC" = yes; then
12319 lt_prog_compiler_wl_FC='-Wl,'
12320 lt_prog_compiler_static_FC='-static'
12321
12322 case $host_os in
12323 aix*)
12324 # All AIX code is PIC.
12325 if test "$host_cpu" = ia64; then
12326 # AIX 5 now supports IA64 processor
12327 lt_prog_compiler_static_FC='-Bstatic'
12328 fi
12329 lt_prog_compiler_pic_FC='-fPIC'
12330 ;;
12331
12332 amigaos*)
12333 case $host_cpu in
12334 powerpc)
12335 # see comment about AmigaOS4 .so support
12336 lt_prog_compiler_pic_FC='-fPIC'
12337 ;;
12338 m68k)
12339 # FIXME: we need at least 68020 code to build shared libraries, but
12340 # adding the `-m68020' flag to GCC prevents building anything better,
12341 # like `-m68040'.
12342 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12343 ;;
12344 esac
12345 ;;
12346
12347 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12348 # PIC is the default for these OSes.
12349 ;;
12350
12351 mingw* | cygwin* | pw32* | os2* | cegcc*)
12352 # This hack is so that the source file can tell whether it is being
12353 # built for inclusion in a dll (and should export symbols for example).
12354 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12355 # (--disable-auto-import) libraries
12356 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12357 ;;
12358
12359 darwin* | rhapsody*)
12360 # PIC is the default on this platform
12361 # Common symbols not allowed in MH_DYLIB files
12362 lt_prog_compiler_pic_FC='-fno-common'
12363 ;;
12364
12365 haiku*)
12366 # PIC is the default for Haiku.
12367 # The "-static" flag exists, but is broken.
12368 lt_prog_compiler_static_FC=
12369 ;;
12370
12371 hpux*)
12372 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12373 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12374 # sets the default TLS model and affects inlining.
12375 case $host_cpu in
12376 hppa*64*)
12377 # +Z the default
12378 ;;
12379 *)
12380 lt_prog_compiler_pic_FC='-fPIC'
12381 ;;
12382 esac
12383 ;;
12384
12385 interix[3-9]*)
12386 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12387 # Instead, we relocate shared libraries at runtime.
12388 ;;
12389
12390 msdosdjgpp*)
12391 # Just because we use GCC doesn't mean we suddenly get shared libraries
12392 # on systems that don't support them.
12393 lt_prog_compiler_can_build_shared_FC=no
12394 enable_shared=no
12395 ;;
12396
12397 *nto* | *qnx*)
12398 # QNX uses GNU C++, but need to define -shared option too, otherwise
12399 # it will coredump.
12400 lt_prog_compiler_pic_FC='-fPIC -shared'
12401 ;;
12402
12403 sysv4*MP*)
12404 if test -d /usr/nec; then
12405 lt_prog_compiler_pic_FC=-Kconform_pic
12406 fi
12407 ;;
12408
12409 *)
12410 lt_prog_compiler_pic_FC='-fPIC'
12411 ;;
12412 esac
12413
12414 case $cc_basename in
12415 nvcc*) # Cuda Compiler Driver 2.2
12416 lt_prog_compiler_wl_FC='-Xlinker '
12417 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12418 ;;
12419 esac
12420 else
12421 # PORTME Check for flag to pass linker flags through the system compiler.
12422 case $host_os in
12423 aix*)
12424 lt_prog_compiler_wl_FC='-Wl,'
12425 if test "$host_cpu" = ia64; then
12426 # AIX 5 now supports IA64 processor
12427 lt_prog_compiler_static_FC='-Bstatic'
12428 else
12429 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12430 fi
12431 ;;
12432
12433 mingw* | cygwin* | pw32* | os2* | cegcc*)
12434 # This hack is so that the source file can tell whether it is being
12435 # built for inclusion in a dll (and should export symbols for example).
12436 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12437 ;;
12438
12439 hpux9* | hpux10* | hpux11*)
12440 lt_prog_compiler_wl_FC='-Wl,'
12441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12442 # not for PA HP-UX.
12443 case $host_cpu in
12444 hppa*64*|ia64*)
12445 # +Z the default
12446 ;;
12447 *)
12448 lt_prog_compiler_pic_FC='+Z'
12449 ;;
12450 esac
12451 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12452 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12453 ;;
12454
12455 irix5* | irix6* | nonstopux*)
12456 lt_prog_compiler_wl_FC='-Wl,'
12457 # PIC (with -KPIC) is the default.
12458 lt_prog_compiler_static_FC='-non_shared'
12459 ;;
12460
12461 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12462 case $cc_basename in
12463 # old Intel for x86_64 which still supported -KPIC.
12464 ecc*)
12465 lt_prog_compiler_wl_FC='-Wl,'
12466 lt_prog_compiler_pic_FC='-KPIC'
12467 lt_prog_compiler_static_FC='-static'
12468 ;;
12469 # icc used to be incompatible with GCC.
12470 # ICC 10 doesn't accept -KPIC any more.
12471 icc* | ifort*)
12472 lt_prog_compiler_wl_FC='-Wl,'
12473 lt_prog_compiler_pic_FC='-fPIC'
12474 lt_prog_compiler_static_FC='-static'
12475 ;;
12476 # Lahey Fortran 8.1.
12477 lf95*)
12478 lt_prog_compiler_wl_FC='-Wl,'
12479 lt_prog_compiler_pic_FC='--shared'
12480 lt_prog_compiler_static_FC='--static'
12481 ;;
12482 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12483 # Portland Group compilers (*not* the Pentium gcc compiler,
12484 # which looks to be a dead project)
12485 lt_prog_compiler_wl_FC='-Wl,'
12486 lt_prog_compiler_pic_FC='-fpic'
12487 lt_prog_compiler_static_FC='-Bstatic'
12488 ;;
12489 ccc*)
12490 lt_prog_compiler_wl_FC='-Wl,'
12491 # All Alpha code is PIC.
12492 lt_prog_compiler_static_FC='-non_shared'
12493 ;;
12494 xl* | bgxl* | bgf* | mpixl*)
12495 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12496 lt_prog_compiler_wl_FC='-Wl,'
12497 lt_prog_compiler_pic_FC='-qpic'
12498 lt_prog_compiler_static_FC='-qstaticlink'
12499 ;;
12500 *)
12501 case `$CC -V 2>&1 | sed 5q` in
12502 *Sun\ F* | *Sun*Fortran*)
12503 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12504 lt_prog_compiler_pic_FC='-KPIC'
12505 lt_prog_compiler_static_FC='-Bstatic'
12506 lt_prog_compiler_wl_FC=''
12507 ;;
12508 *Sun\ C*)
12509 # Sun C 5.9
12510 lt_prog_compiler_pic_FC='-KPIC'
12511 lt_prog_compiler_static_FC='-Bstatic'
12512 lt_prog_compiler_wl_FC='-Wl,'
12513 ;;
12514 esac
12515 ;;
12516 esac
12517 ;;
12518
12519 newsos6)
12520 lt_prog_compiler_pic_FC='-KPIC'
12521 lt_prog_compiler_static_FC='-Bstatic'
12522 ;;
12523
12524 *nto* | *qnx*)
12525 # QNX uses GNU C++, but need to define -shared option too, otherwise
12526 # it will coredump.
12527 lt_prog_compiler_pic_FC='-fPIC -shared'
12528 ;;
12529
12530 osf3* | osf4* | osf5*)
12531 lt_prog_compiler_wl_FC='-Wl,'
12532 # All OSF/1 code is PIC.
12533 lt_prog_compiler_static_FC='-non_shared'
12534 ;;
12535
12536 rdos*)
12537 lt_prog_compiler_static_FC='-non_shared'
12538 ;;
12539
12540 solaris*)
12541 lt_prog_compiler_pic_FC='-KPIC'
12542 lt_prog_compiler_static_FC='-Bstatic'
12543 case $cc_basename in
12544 f77* | f90* | f95*)
12545 lt_prog_compiler_wl_FC='-Qoption ld ';;
12546 *)
12547 lt_prog_compiler_wl_FC='-Wl,';;
12548 esac
12549 ;;
12550
12551 sunos4*)
12552 lt_prog_compiler_wl_FC='-Qoption ld '
12553 lt_prog_compiler_pic_FC='-PIC'
12554 lt_prog_compiler_static_FC='-Bstatic'
12555 ;;
12556
12557 sysv4 | sysv4.2uw2* | sysv4.3*)
12558 lt_prog_compiler_wl_FC='-Wl,'
12559 lt_prog_compiler_pic_FC='-KPIC'
12560 lt_prog_compiler_static_FC='-Bstatic'
12561 ;;
12562
12563 sysv4*MP*)
12564 if test -d /usr/nec ;then
12565 lt_prog_compiler_pic_FC='-Kconform_pic'
12566 lt_prog_compiler_static_FC='-Bstatic'
12567 fi
12568 ;;
12569
12570 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12571 lt_prog_compiler_wl_FC='-Wl,'
12572 lt_prog_compiler_pic_FC='-KPIC'
12573 lt_prog_compiler_static_FC='-Bstatic'
12574 ;;
12575
12576 unicos*)
12577 lt_prog_compiler_wl_FC='-Wl,'
12578 lt_prog_compiler_can_build_shared_FC=no
12579 ;;
12580
12581 uts4*)
12582 lt_prog_compiler_pic_FC='-pic'
12583 lt_prog_compiler_static_FC='-Bstatic'
12584 ;;
12585
12586 *)
12587 lt_prog_compiler_can_build_shared_FC=no
12588 ;;
12589 esac
12590 fi
12591
12592 case $host_os in
12593 # For platforms which do not support PIC, -DPIC is meaningless:
12594 *djgpp*)
12595 lt_prog_compiler_pic_FC=
12596 ;;
12597 *)
12598 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12599 ;;
12600 esac
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12602 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12603
12604
12605
12606 #
12607 # Check to make sure the PIC flag actually works.
12608 #
12609 if test -n "$lt_prog_compiler_pic_FC"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12611 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12612 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 lt_cv_prog_compiler_pic_works_FC=no
12616 ac_outfile=conftest.$ac_objext
12617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12618 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12619 # Insert the option either (1) after the last *FLAGS variable, or
12620 # (2) before a word containing "conftest.", or (3) at the end.
12621 # Note that $ac_compile itself does not contain backslashes and begins
12622 # with a dollar sign (not a hyphen), so the echo should work correctly.
12623 # The option is referenced via a variable to avoid confusing sed.
12624 lt_compile=`echo "$ac_compile" | $SED \
12625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12627 -e 's:$: $lt_compiler_flag:'`
12628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12629 (eval "$lt_compile" 2>conftest.err)
12630 ac_status=$?
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 if (exit $ac_status) && test -s "$ac_outfile"; then
12634 # The compiler can only warn and ignore the option if not recognized
12635 # So say no if there are warnings other than the usual output.
12636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12639 lt_cv_prog_compiler_pic_works_FC=yes
12640 fi
12641 fi
12642 $RM conftest*
12643
12644 fi
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12646 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12647
12648 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12649 case $lt_prog_compiler_pic_FC in
12650 "" | " "*) ;;
12651 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12652 esac
12653 else
12654 lt_prog_compiler_pic_FC=
12655 lt_prog_compiler_can_build_shared_FC=no
12656 fi
12657
12658 fi
12659
12660
12661
12662 #
12663 # Check to make sure the static flag actually works.
12664 #
12665 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12667 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12668 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671 lt_cv_prog_compiler_static_works_FC=no
12672 save_LDFLAGS="$LDFLAGS"
12673 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12674 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12676 # The linker can only warn and ignore the option if not recognized
12677 # So say no if there are warnings
12678 if test -s conftest.err; then
12679 # Append any errors to the config.log.
12680 cat conftest.err 1>&5
12681 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12683 if diff conftest.exp conftest.er2 >/dev/null; then
12684 lt_cv_prog_compiler_static_works_FC=yes
12685 fi
12686 else
12687 lt_cv_prog_compiler_static_works_FC=yes
12688 fi
12689 fi
12690 $RM -r conftest*
12691 LDFLAGS="$save_LDFLAGS"
12692
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12695 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12696
12697 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12698 :
12699 else
12700 lt_prog_compiler_static_FC=
12701 fi
12702
12703
12704
12705
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12707 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12708 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 lt_cv_prog_compiler_c_o_FC=no
12712 $RM -r conftest 2>/dev/null
12713 mkdir conftest
12714 cd conftest
12715 mkdir out
12716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12717
12718 lt_compiler_flag="-o out/conftest2.$ac_objext"
12719 # Insert the option either (1) after the last *FLAGS variable, or
12720 # (2) before a word containing "conftest.", or (3) at the end.
12721 # Note that $ac_compile itself does not contain backslashes and begins
12722 # with a dollar sign (not a hyphen), so the echo should work correctly.
12723 lt_compile=`echo "$ac_compile" | $SED \
12724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12726 -e 's:$: $lt_compiler_flag:'`
12727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12728 (eval "$lt_compile" 2>out/conftest.err)
12729 ac_status=$?
12730 cat out/conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12733 then
12734 # The compiler can only warn and ignore the option if not recognized
12735 # So say no if there are warnings
12736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12737 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12738 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12739 lt_cv_prog_compiler_c_o_FC=yes
12740 fi
12741 fi
12742 chmod u+w . 2>&5
12743 $RM conftest*
12744 # SGI C++ compiler will create directory out/ii_files/ for
12745 # template instantiation
12746 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12747 $RM out/* && rmdir out
12748 cd ..
12749 $RM -r conftest
12750 $RM conftest*
12751
12752 fi
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12754 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12755
12756
12757
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12759 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12760 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12761 $as_echo_n "(cached) " >&6
12762 else
12763 lt_cv_prog_compiler_c_o_FC=no
12764 $RM -r conftest 2>/dev/null
12765 mkdir conftest
12766 cd conftest
12767 mkdir out
12768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12769
12770 lt_compiler_flag="-o out/conftest2.$ac_objext"
12771 # Insert the option either (1) after the last *FLAGS variable, or
12772 # (2) before a word containing "conftest.", or (3) at the end.
12773 # Note that $ac_compile itself does not contain backslashes and begins
12774 # with a dollar sign (not a hyphen), so the echo should work correctly.
12775 lt_compile=`echo "$ac_compile" | $SED \
12776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12778 -e 's:$: $lt_compiler_flag:'`
12779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12780 (eval "$lt_compile" 2>out/conftest.err)
12781 ac_status=$?
12782 cat out/conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12785 then
12786 # The compiler can only warn and ignore the option if not recognized
12787 # So say no if there are warnings
12788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12791 lt_cv_prog_compiler_c_o_FC=yes
12792 fi
12793 fi
12794 chmod u+w . 2>&5
12795 $RM conftest*
12796 # SGI C++ compiler will create directory out/ii_files/ for
12797 # template instantiation
12798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12799 $RM out/* && rmdir out
12800 cd ..
12801 $RM -r conftest
12802 $RM conftest*
12803
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12806 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12807
12808
12809
12810
12811 hard_links="nottested"
12812 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12813 # do not overwrite the value of need_locks provided by the user
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12815 $as_echo_n "checking if we can lock with hard links... " >&6; }
12816 hard_links=yes
12817 $RM conftest*
12818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12819 touch conftest.a
12820 ln conftest.a conftest.b 2>&5 || hard_links=no
12821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12823 $as_echo "$hard_links" >&6; }
12824 if test "$hard_links" = no; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12826 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12827 need_locks=warn
12828 fi
12829 else
12830 need_locks=no
12831 fi
12832
12833
12834
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12836 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12837
12838 runpath_var=
12839 allow_undefined_flag_FC=
12840 always_export_symbols_FC=no
12841 archive_cmds_FC=
12842 archive_expsym_cmds_FC=
12843 compiler_needs_object_FC=no
12844 enable_shared_with_static_runtimes_FC=no
12845 export_dynamic_flag_spec_FC=
12846 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12847 hardcode_automatic_FC=no
12848 hardcode_direct_FC=no
12849 hardcode_direct_absolute_FC=no
12850 hardcode_libdir_flag_spec_FC=
12851 hardcode_libdir_flag_spec_ld_FC=
12852 hardcode_libdir_separator_FC=
12853 hardcode_minus_L_FC=no
12854 hardcode_shlibpath_var_FC=unsupported
12855 inherit_rpath_FC=no
12856 link_all_deplibs_FC=unknown
12857 module_cmds_FC=
12858 module_expsym_cmds_FC=
12859 old_archive_from_new_cmds_FC=
12860 old_archive_from_expsyms_cmds_FC=
12861 thread_safe_flag_spec_FC=
12862 whole_archive_flag_spec_FC=
12863 # include_expsyms should be a list of space-separated symbols to be *always*
12864 # included in the symbol list
12865 include_expsyms_FC=
12866 # exclude_expsyms can be an extended regexp of symbols to exclude
12867 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12868 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12869 # as well as any symbol that contains `d'.
12870 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12871 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12872 # platforms (ab)use it in PIC code, but their linkers get confused if
12873 # the symbol is explicitly referenced. Since portable code cannot
12874 # rely on this symbol name, it's probably fine to never include it in
12875 # preloaded symbol tables.
12876 # Exclude shared library initialization/finalization symbols.
12877 extract_expsyms_cmds=
12878
12879 case $host_os in
12880 cygwin* | mingw* | pw32* | cegcc*)
12881 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12882 # When not using gcc, we currently assume that we are using
12883 # Microsoft Visual C++.
12884 if test "$GCC" != yes; then
12885 with_gnu_ld=no
12886 fi
12887 ;;
12888 interix*)
12889 # we just hope/assume this is gcc and not c89 (= MSVC++)
12890 with_gnu_ld=yes
12891 ;;
12892 openbsd*)
12893 with_gnu_ld=no
12894 ;;
12895 esac
12896
12897 ld_shlibs_FC=yes
12898
12899 # On some targets, GNU ld is compatible enough with the native linker
12900 # that we're better off using the native interface for both.
12901 lt_use_gnu_ld_interface=no
12902 if test "$with_gnu_ld" = yes; then
12903 case $host_os in
12904 aix*)
12905 # The AIX port of GNU ld has always aspired to compatibility
12906 # with the native linker. However, as the warning in the GNU ld
12907 # block says, versions before 2.19.5* couldn't really create working
12908 # shared libraries, regardless of the interface used.
12909 case `$LD -v 2>&1` in
12910 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12911 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12912 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12913 *)
12914 lt_use_gnu_ld_interface=yes
12915 ;;
12916 esac
12917 ;;
12918 *)
12919 lt_use_gnu_ld_interface=yes
12920 ;;
12921 esac
12922 fi
12923
12924 if test "$lt_use_gnu_ld_interface" = yes; then
12925 # If archive_cmds runs LD, not CC, wlarc should be empty
12926 wlarc='${wl}'
12927
12928 # Set some defaults for GNU ld with shared library support. These
12929 # are reset later if shared libraries are not supported. Putting them
12930 # here allows them to be overridden if necessary.
12931 runpath_var=LD_RUN_PATH
12932 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12933 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12934 # ancient GNU ld didn't support --whole-archive et. al.
12935 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12936 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12937 else
12938 whole_archive_flag_spec_FC=
12939 fi
12940 supports_anon_versioning=no
12941 case `$LD -v 2>&1` in
12942 *GNU\ gold*) supports_anon_versioning=yes ;;
12943 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12944 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12945 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12946 *\ 2.11.*) ;; # other 2.11 versions
12947 *) supports_anon_versioning=yes ;;
12948 esac
12949
12950 # See if GNU ld supports shared libraries.
12951 case $host_os in
12952 aix[3-9]*)
12953 # On AIX/PPC, the GNU linker is very broken
12954 if test "$host_cpu" != ia64; then
12955 ld_shlibs_FC=no
12956 cat <<_LT_EOF 1>&2
12957
12958 *** Warning: the GNU linker, at least up to release 2.19, is reported
12959 *** to be unable to reliably create shared libraries on AIX.
12960 *** Therefore, libtool is disabling shared libraries support. If you
12961 *** really care for shared libraries, you may want to install binutils
12962 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12963 *** You will then need to restart the configuration process.
12964
12965 _LT_EOF
12966 fi
12967 ;;
12968
12969 amigaos*)
12970 case $host_cpu in
12971 powerpc)
12972 # see comment about AmigaOS4 .so support
12973 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 archive_expsym_cmds_FC=''
12975 ;;
12976 m68k)
12977 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)'
12978 hardcode_libdir_flag_spec_FC='-L$libdir'
12979 hardcode_minus_L_FC=yes
12980 ;;
12981 esac
12982 ;;
12983
12984 beos*)
12985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12986 allow_undefined_flag_FC=unsupported
12987 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12988 # support --undefined. This deserves some investigation. FIXME
12989 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990 else
12991 ld_shlibs_FC=no
12992 fi
12993 ;;
12994
12995 cygwin* | mingw* | pw32* | cegcc*)
12996 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12997 # as there is no search path for DLLs.
12998 hardcode_libdir_flag_spec_FC='-L$libdir'
12999 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13000 allow_undefined_flag_FC=unsupported
13001 always_export_symbols_FC=no
13002 enable_shared_with_static_runtimes_FC=yes
13003 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13004
13005 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13006 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13007 # If the export-symbols file already is a .def file (1st line
13008 # is EXPORTS), use it as is; otherwise, prepend...
13009 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13010 cp $export_symbols $output_objdir/$soname.def;
13011 else
13012 echo EXPORTS > $output_objdir/$soname.def;
13013 cat $export_symbols >> $output_objdir/$soname.def;
13014 fi~
13015 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13016 else
13017 ld_shlibs_FC=no
13018 fi
13019 ;;
13020
13021 haiku*)
13022 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023 link_all_deplibs_FC=yes
13024 ;;
13025
13026 interix[3-9]*)
13027 hardcode_direct_FC=no
13028 hardcode_shlibpath_var_FC=no
13029 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13030 export_dynamic_flag_spec_FC='${wl}-E'
13031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13032 # Instead, shared libraries are loaded at an image base (0x10000000 by
13033 # default) and relocated if they conflict, which is a slow very memory
13034 # consuming and fragmenting process. To avoid this, we pick a random,
13035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13037 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'
13038 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'
13039 ;;
13040
13041 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13042 tmp_diet=no
13043 if test "$host_os" = linux-dietlibc; then
13044 case $cc_basename in
13045 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13046 esac
13047 fi
13048 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13049 && test "$tmp_diet" = no
13050 then
13051 tmp_addflag=' $pic_flag'
13052 tmp_sharedflag='-shared'
13053 case $cc_basename,$host_cpu in
13054 pgcc*) # Portland Group C compiler
13055 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'
13056 tmp_addflag=' $pic_flag'
13057 ;;
13058 pgf77* | pgf90* | pgf95* | pgfortran*)
13059 # Portland Group f77 and f90 compilers
13060 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'
13061 tmp_addflag=' $pic_flag -Mnomain' ;;
13062 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13063 tmp_addflag=' -i_dynamic' ;;
13064 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13065 tmp_addflag=' -i_dynamic -nofor_main' ;;
13066 ifc* | ifort*) # Intel Fortran compiler
13067 tmp_addflag=' -nofor_main' ;;
13068 lf95*) # Lahey Fortran 8.1
13069 whole_archive_flag_spec_FC=
13070 tmp_sharedflag='--shared' ;;
13071 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13072 tmp_sharedflag='-qmkshrobj'
13073 tmp_addflag= ;;
13074 nvcc*) # Cuda Compiler Driver 2.2
13075 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'
13076 compiler_needs_object_FC=yes
13077 ;;
13078 esac
13079 case `$CC -V 2>&1 | sed 5q` in
13080 *Sun\ C*) # Sun C 5.9
13081 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'
13082 compiler_needs_object_FC=yes
13083 tmp_sharedflag='-G' ;;
13084 *Sun\ F*) # Sun Fortran 8.3
13085 tmp_sharedflag='-G' ;;
13086 esac
13087 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088
13089 if test "x$supports_anon_versioning" = xyes; then
13090 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13092 echo "local: *; };" >> $output_objdir/$libname.ver~
13093 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13094 fi
13095
13096 case $cc_basename in
13097 xlf* | bgf* | bgxlf* | mpixlf*)
13098 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13099 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13100 hardcode_libdir_flag_spec_FC=
13101 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13102 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13103 if test "x$supports_anon_versioning" = xyes; then
13104 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13105 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13106 echo "local: *; };" >> $output_objdir/$libname.ver~
13107 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13108 fi
13109 ;;
13110 esac
13111 else
13112 ld_shlibs_FC=no
13113 fi
13114 ;;
13115
13116 netbsd*)
13117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13118 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13119 wlarc=
13120 else
13121 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13123 fi
13124 ;;
13125
13126 solaris*)
13127 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13128 ld_shlibs_FC=no
13129 cat <<_LT_EOF 1>&2
13130
13131 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13132 *** create shared libraries on Solaris systems. Therefore, libtool
13133 *** is disabling shared libraries support. We urge you to upgrade GNU
13134 *** binutils to release 2.9.1 or newer. Another option is to modify
13135 *** your PATH or compiler configuration so that the native linker is
13136 *** used, and then restart.
13137
13138 _LT_EOF
13139 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13140 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13141 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13142 else
13143 ld_shlibs_FC=no
13144 fi
13145 ;;
13146
13147 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13148 case `$LD -v 2>&1` in
13149 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13150 ld_shlibs_FC=no
13151 cat <<_LT_EOF 1>&2
13152
13153 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13154 *** reliably create shared libraries on SCO systems. Therefore, libtool
13155 *** is disabling shared libraries support. We urge you to upgrade GNU
13156 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13157 *** your PATH or compiler configuration so that the native linker is
13158 *** used, and then restart.
13159
13160 _LT_EOF
13161 ;;
13162 *)
13163 # For security reasons, it is highly recommended that you always
13164 # use absolute paths for naming shared libraries, and exclude the
13165 # DT_RUNPATH tag from executables and libraries. But doing so
13166 # requires that you compile everything twice, which is a pain.
13167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13168 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13169 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13170 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13171 else
13172 ld_shlibs_FC=no
13173 fi
13174 ;;
13175 esac
13176 ;;
13177
13178 sunos4*)
13179 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13180 wlarc=
13181 hardcode_direct_FC=yes
13182 hardcode_shlibpath_var_FC=no
13183 ;;
13184
13185 *)
13186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13187 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13188 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13189 else
13190 ld_shlibs_FC=no
13191 fi
13192 ;;
13193 esac
13194
13195 if test "$ld_shlibs_FC" = no; then
13196 runpath_var=
13197 hardcode_libdir_flag_spec_FC=
13198 export_dynamic_flag_spec_FC=
13199 whole_archive_flag_spec_FC=
13200 fi
13201 else
13202 # PORTME fill in a description of your system's linker (not GNU ld)
13203 case $host_os in
13204 aix3*)
13205 allow_undefined_flag_FC=unsupported
13206 always_export_symbols_FC=yes
13207 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'
13208 # Note: this linker hardcodes the directories in LIBPATH if there
13209 # are no directories specified by -L.
13210 hardcode_minus_L_FC=yes
13211 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13212 # Neither direct hardcoding nor static linking is supported with a
13213 # broken collect2.
13214 hardcode_direct_FC=unsupported
13215 fi
13216 ;;
13217
13218 aix[4-9]*)
13219 if test "$host_cpu" = ia64; then
13220 # On IA64, the linker does run time linking by default, so we don't
13221 # have to do anything special.
13222 aix_use_runtimelinking=no
13223 exp_sym_flag='-Bexport'
13224 no_entry_flag=""
13225 else
13226 # If we're using GNU nm, then we don't want the "-C" option.
13227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13228 # Also, AIX nm treats weak defined symbols like other global
13229 # defined symbols, whereas GNU nm marks them as "W".
13230 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13231 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'
13232 else
13233 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'
13234 fi
13235 aix_use_runtimelinking=no
13236
13237 # Test if we are trying to use run time linking or normal
13238 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13239 # need to do runtime linking.
13240 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13241 for ld_flag in $LDFLAGS; do
13242 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13243 aix_use_runtimelinking=yes
13244 break
13245 fi
13246 done
13247 ;;
13248 esac
13249
13250 exp_sym_flag='-bexport'
13251 no_entry_flag='-bnoentry'
13252 fi
13253
13254 # When large executables or shared objects are built, AIX ld can
13255 # have problems creating the table of contents. If linking a library
13256 # or program results in "error TOC overflow" add -mminimal-toc to
13257 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13258 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13259
13260 archive_cmds_FC=''
13261 hardcode_direct_FC=yes
13262 hardcode_direct_absolute_FC=yes
13263 hardcode_libdir_separator_FC=':'
13264 link_all_deplibs_FC=yes
13265 file_list_spec_FC='${wl}-f,'
13266
13267 if test "$GCC" = yes; then
13268 case $host_os in aix4.[012]|aix4.[012].*)
13269 # We only want to do this on AIX 4.2 and lower, the check
13270 # below for broken collect2 doesn't work under 4.3+
13271 collect2name=`${CC} -print-prog-name=collect2`
13272 if test -f "$collect2name" &&
13273 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13274 then
13275 # We have reworked collect2
13276 :
13277 else
13278 # We have old collect2
13279 hardcode_direct_FC=unsupported
13280 # It fails to find uninstalled libraries when the uninstalled
13281 # path is not listed in the libpath. Setting hardcode_minus_L
13282 # to unsupported forces relinking
13283 hardcode_minus_L_FC=yes
13284 hardcode_libdir_flag_spec_FC='-L$libdir'
13285 hardcode_libdir_separator_FC=
13286 fi
13287 ;;
13288 esac
13289 shared_flag='-shared'
13290 if test "$aix_use_runtimelinking" = yes; then
13291 shared_flag="$shared_flag "'${wl}-G'
13292 fi
13293 else
13294 # not using gcc
13295 if test "$host_cpu" = ia64; then
13296 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13297 # chokes on -Wl,-G. The following line is correct:
13298 shared_flag='-G'
13299 else
13300 if test "$aix_use_runtimelinking" = yes; then
13301 shared_flag='${wl}-G'
13302 else
13303 shared_flag='${wl}-bM:SRE'
13304 fi
13305 fi
13306 fi
13307
13308 export_dynamic_flag_spec_FC='${wl}-bexpall'
13309 # It seems that -bexpall does not export symbols beginning with
13310 # underscore (_), so it is better to generate a list of symbols to export.
13311 always_export_symbols_FC=yes
13312 if test "$aix_use_runtimelinking" = yes; then
13313 # Warning - without using the other runtime loading flags (-brtl),
13314 # -berok will link without error, but may produce a broken library.
13315 allow_undefined_flag_FC='-berok'
13316 # Determine the default libpath from the value encoded in an
13317 # empty executable.
13318 cat > conftest.$ac_ext <<_ACEOF
13319 program main
13320
13321 end
13322 _ACEOF
13323 if ac_fn_fc_try_link "$LINENO"; then :
13324
13325 lt_aix_libpath_sed='
13326 /Import File Strings/,/^$/ {
13327 /^0/ {
13328 s/^0 *\(.*\)$/\1/
13329 p
13330 }
13331 }'
13332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13333 # Check for a 64-bit object if we didn't find anything.
13334 if test -z "$aix_libpath"; then
13335 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13336 fi
13337 fi
13338 rm -f core conftest.err conftest.$ac_objext \
13339 conftest$ac_exeext conftest.$ac_ext
13340 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13341
13342 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13343 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"
13344 else
13345 if test "$host_cpu" = ia64; then
13346 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13347 allow_undefined_flag_FC="-z nodefs"
13348 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"
13349 else
13350 # Determine the default libpath from the value encoded in an
13351 # empty executable.
13352 cat > conftest.$ac_ext <<_ACEOF
13353 program main
13354
13355 end
13356 _ACEOF
13357 if ac_fn_fc_try_link "$LINENO"; then :
13358
13359 lt_aix_libpath_sed='
13360 /Import File Strings/,/^$/ {
13361 /^0/ {
13362 s/^0 *\(.*\)$/\1/
13363 p
13364 }
13365 }'
13366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13367 # Check for a 64-bit object if we didn't find anything.
13368 if test -z "$aix_libpath"; then
13369 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13370 fi
13371 fi
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13375
13376 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13377 # Warning - without using the other run time loading flags,
13378 # -berok will link without error, but may produce a broken library.
13379 no_undefined_flag_FC=' ${wl}-bernotok'
13380 allow_undefined_flag_FC=' ${wl}-berok'
13381 if test "$with_gnu_ld" = yes; then
13382 # We only use this code for GNU lds that support --whole-archive.
13383 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13384 else
13385 # Exported symbols can be pulled into shared objects from archives
13386 whole_archive_flag_spec_FC='$convenience'
13387 fi
13388 archive_cmds_need_lc_FC=yes
13389 # This is similar to how AIX traditionally builds its shared libraries.
13390 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'
13391 fi
13392 fi
13393 ;;
13394
13395 amigaos*)
13396 case $host_cpu in
13397 powerpc)
13398 # see comment about AmigaOS4 .so support
13399 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13400 archive_expsym_cmds_FC=''
13401 ;;
13402 m68k)
13403 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)'
13404 hardcode_libdir_flag_spec_FC='-L$libdir'
13405 hardcode_minus_L_FC=yes
13406 ;;
13407 esac
13408 ;;
13409
13410 bsdi[45]*)
13411 export_dynamic_flag_spec_FC=-rdynamic
13412 ;;
13413
13414 cygwin* | mingw* | pw32* | cegcc*)
13415 # When not using gcc, we currently assume that we are using
13416 # Microsoft Visual C++.
13417 # hardcode_libdir_flag_spec is actually meaningless, as there is
13418 # no search path for DLLs.
13419 hardcode_libdir_flag_spec_FC=' '
13420 allow_undefined_flag_FC=unsupported
13421 # Tell ltmain to make .lib files, not .a files.
13422 libext=lib
13423 # Tell ltmain to make .dll files, not .so files.
13424 shrext_cmds=".dll"
13425 # FIXME: Setting linknames here is a bad hack.
13426 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13427 # The linker will automatically build a .lib file if we build a DLL.
13428 old_archive_from_new_cmds_FC='true'
13429 # FIXME: Should let the user specify the lib program.
13430 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13431 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13432 enable_shared_with_static_runtimes_FC=yes
13433 ;;
13434
13435 darwin* | rhapsody*)
13436
13437
13438 archive_cmds_need_lc_FC=no
13439 hardcode_direct_FC=no
13440 hardcode_automatic_FC=yes
13441 hardcode_shlibpath_var_FC=unsupported
13442 if test "$lt_cv_ld_force_load" = "yes"; then
13443 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\"`'
13444 else
13445 whole_archive_flag_spec_FC=''
13446 fi
13447 link_all_deplibs_FC=yes
13448 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13449 case $cc_basename in
13450 ifort*) _lt_dar_can_shared=yes ;;
13451 *) _lt_dar_can_shared=$GCC ;;
13452 esac
13453 if test "$_lt_dar_can_shared" = "yes"; then
13454 output_verbose_link_cmd=func_echo_all
13455 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}"
13456 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13457 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}"
13458 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}"
13459
13460 else
13461 ld_shlibs_FC=no
13462 fi
13463
13464 ;;
13465
13466 dgux*)
13467 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468 hardcode_libdir_flag_spec_FC='-L$libdir'
13469 hardcode_shlibpath_var_FC=no
13470 ;;
13471
13472 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13473 # support. Future versions do this automatically, but an explicit c++rt0.o
13474 # does not break anything, and helps significantly (at the cost of a little
13475 # extra space).
13476 freebsd2.2*)
13477 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13478 hardcode_libdir_flag_spec_FC='-R$libdir'
13479 hardcode_direct_FC=yes
13480 hardcode_shlibpath_var_FC=no
13481 ;;
13482
13483 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13484 freebsd2.*)
13485 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13486 hardcode_direct_FC=yes
13487 hardcode_minus_L_FC=yes
13488 hardcode_shlibpath_var_FC=no
13489 ;;
13490
13491 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13492 freebsd* | dragonfly*)
13493 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13494 hardcode_libdir_flag_spec_FC='-R$libdir'
13495 hardcode_direct_FC=yes
13496 hardcode_shlibpath_var_FC=no
13497 ;;
13498
13499 hpux9*)
13500 if test "$GCC" = yes; then
13501 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'
13502 else
13503 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'
13504 fi
13505 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13506 hardcode_libdir_separator_FC=:
13507 hardcode_direct_FC=yes
13508
13509 # hardcode_minus_L: Not really in the search PATH,
13510 # but as the default location of the library.
13511 hardcode_minus_L_FC=yes
13512 export_dynamic_flag_spec_FC='${wl}-E'
13513 ;;
13514
13515 hpux10*)
13516 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13517 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13518 else
13519 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13520 fi
13521 if test "$with_gnu_ld" = no; then
13522 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13523 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13524 hardcode_libdir_separator_FC=:
13525 hardcode_direct_FC=yes
13526 hardcode_direct_absolute_FC=yes
13527 export_dynamic_flag_spec_FC='${wl}-E'
13528 # hardcode_minus_L: Not really in the search PATH,
13529 # but as the default location of the library.
13530 hardcode_minus_L_FC=yes
13531 fi
13532 ;;
13533
13534 hpux11*)
13535 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13536 case $host_cpu in
13537 hppa*64*)
13538 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13539 ;;
13540 ia64*)
13541 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13542 ;;
13543 *)
13544 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13545 ;;
13546 esac
13547 else
13548 case $host_cpu in
13549 hppa*64*)
13550 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 ;;
13552 ia64*)
13553 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13554 ;;
13555 *)
13556 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13557 ;;
13558 esac
13559 fi
13560 if test "$with_gnu_ld" = no; then
13561 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13562 hardcode_libdir_separator_FC=:
13563
13564 case $host_cpu in
13565 hppa*64*|ia64*)
13566 hardcode_direct_FC=no
13567 hardcode_shlibpath_var_FC=no
13568 ;;
13569 *)
13570 hardcode_direct_FC=yes
13571 hardcode_direct_absolute_FC=yes
13572 export_dynamic_flag_spec_FC='${wl}-E'
13573
13574 # hardcode_minus_L: Not really in the search PATH,
13575 # but as the default location of the library.
13576 hardcode_minus_L_FC=yes
13577 ;;
13578 esac
13579 fi
13580 ;;
13581
13582 irix5* | irix6* | nonstopux*)
13583 if test "$GCC" = yes; then
13584 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'
13585 # Try to use the -exported_symbol ld option, if it does not
13586 # work, assume that -exports_file does not work either and
13587 # implicitly export all symbols.
13588 save_LDFLAGS="$LDFLAGS"
13589 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13590 cat > conftest.$ac_ext <<_ACEOF
13591 int foo(void) {}
13592 _ACEOF
13593 if ac_fn_fc_try_link "$LINENO"; then :
13594 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'
13595
13596 fi
13597 rm -f core conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13599 LDFLAGS="$save_LDFLAGS"
13600 else
13601 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'
13602 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'
13603 fi
13604 archive_cmds_need_lc_FC='no'
13605 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13606 hardcode_libdir_separator_FC=:
13607 inherit_rpath_FC=yes
13608 link_all_deplibs_FC=yes
13609 ;;
13610
13611 netbsd*)
13612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13613 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13614 else
13615 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13616 fi
13617 hardcode_libdir_flag_spec_FC='-R$libdir'
13618 hardcode_direct_FC=yes
13619 hardcode_shlibpath_var_FC=no
13620 ;;
13621
13622 newsos6)
13623 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13624 hardcode_direct_FC=yes
13625 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13626 hardcode_libdir_separator_FC=:
13627 hardcode_shlibpath_var_FC=no
13628 ;;
13629
13630 *nto* | *qnx*)
13631 ;;
13632
13633 openbsd*)
13634 if test -f /usr/libexec/ld.so; then
13635 hardcode_direct_FC=yes
13636 hardcode_shlibpath_var_FC=no
13637 hardcode_direct_absolute_FC=yes
13638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13639 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13640 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13641 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13642 export_dynamic_flag_spec_FC='${wl}-E'
13643 else
13644 case $host_os in
13645 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13646 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13647 hardcode_libdir_flag_spec_FC='-R$libdir'
13648 ;;
13649 *)
13650 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13651 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13652 ;;
13653 esac
13654 fi
13655 else
13656 ld_shlibs_FC=no
13657 fi
13658 ;;
13659
13660 os2*)
13661 hardcode_libdir_flag_spec_FC='-L$libdir'
13662 hardcode_minus_L_FC=yes
13663 allow_undefined_flag_FC=unsupported
13664 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'
13665 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13666 ;;
13667
13668 osf3*)
13669 if test "$GCC" = yes; then
13670 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13671 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'
13672 else
13673 allow_undefined_flag_FC=' -expect_unresolved \*'
13674 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'
13675 fi
13676 archive_cmds_need_lc_FC='no'
13677 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13678 hardcode_libdir_separator_FC=:
13679 ;;
13680
13681 osf4* | osf5*) # as osf3* with the addition of -msym flag
13682 if test "$GCC" = yes; then
13683 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13684 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'
13685 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13686 else
13687 allow_undefined_flag_FC=' -expect_unresolved \*'
13688 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'
13689 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~
13690 $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'
13691
13692 # Both c and cxx compiler support -rpath directly
13693 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13694 fi
13695 archive_cmds_need_lc_FC='no'
13696 hardcode_libdir_separator_FC=:
13697 ;;
13698
13699 solaris*)
13700 no_undefined_flag_FC=' -z defs'
13701 if test "$GCC" = yes; then
13702 wlarc='${wl}'
13703 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13705 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13706 else
13707 case `$CC -V 2>&1` in
13708 *"Compilers 5.0"*)
13709 wlarc=''
13710 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13711 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13713 ;;
13714 *)
13715 wlarc='${wl}'
13716 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13717 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13719 ;;
13720 esac
13721 fi
13722 hardcode_libdir_flag_spec_FC='-R$libdir'
13723 hardcode_shlibpath_var_FC=no
13724 case $host_os in
13725 solaris2.[0-5] | solaris2.[0-5].*) ;;
13726 *)
13727 # The compiler driver will combine and reorder linker options,
13728 # but understands `-z linker_flag'. GCC discards it without `$wl',
13729 # but is careful enough not to reorder.
13730 # Supported since Solaris 2.6 (maybe 2.5.1?)
13731 if test "$GCC" = yes; then
13732 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13733 else
13734 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13735 fi
13736 ;;
13737 esac
13738 link_all_deplibs_FC=yes
13739 ;;
13740
13741 sunos4*)
13742 if test "x$host_vendor" = xsequent; then
13743 # Use $CC to link under sequent, because it throws in some extra .o
13744 # files that make .init and .fini sections work.
13745 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13746 else
13747 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13748 fi
13749 hardcode_libdir_flag_spec_FC='-L$libdir'
13750 hardcode_direct_FC=yes
13751 hardcode_minus_L_FC=yes
13752 hardcode_shlibpath_var_FC=no
13753 ;;
13754
13755 sysv4)
13756 case $host_vendor in
13757 sni)
13758 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13759 hardcode_direct_FC=yes # is this really true???
13760 ;;
13761 siemens)
13762 ## LD is ld it makes a PLAMLIB
13763 ## CC just makes a GrossModule.
13764 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13765 reload_cmds_FC='$CC -r -o $output$reload_objs'
13766 hardcode_direct_FC=no
13767 ;;
13768 motorola)
13769 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13771 ;;
13772 esac
13773 runpath_var='LD_RUN_PATH'
13774 hardcode_shlibpath_var_FC=no
13775 ;;
13776
13777 sysv4.3*)
13778 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13779 hardcode_shlibpath_var_FC=no
13780 export_dynamic_flag_spec_FC='-Bexport'
13781 ;;
13782
13783 sysv4*MP*)
13784 if test -d /usr/nec; then
13785 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13786 hardcode_shlibpath_var_FC=no
13787 runpath_var=LD_RUN_PATH
13788 hardcode_runpath_var=yes
13789 ld_shlibs_FC=yes
13790 fi
13791 ;;
13792
13793 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13794 no_undefined_flag_FC='${wl}-z,text'
13795 archive_cmds_need_lc_FC=no
13796 hardcode_shlibpath_var_FC=no
13797 runpath_var='LD_RUN_PATH'
13798
13799 if test "$GCC" = yes; then
13800 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13802 else
13803 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 fi
13806 ;;
13807
13808 sysv5* | sco3.2v5* | sco5v6*)
13809 # Note: We can NOT use -z defs as we might desire, because we do not
13810 # link with -lc, and that would cause any symbols used from libc to
13811 # always be unresolved, which means just about no library would
13812 # ever link correctly. If we're not using GNU ld we use -z text
13813 # though, which does catch some bad symbols but isn't as heavy-handed
13814 # as -z defs.
13815 no_undefined_flag_FC='${wl}-z,text'
13816 allow_undefined_flag_FC='${wl}-z,nodefs'
13817 archive_cmds_need_lc_FC=no
13818 hardcode_shlibpath_var_FC=no
13819 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13820 hardcode_libdir_separator_FC=':'
13821 link_all_deplibs_FC=yes
13822 export_dynamic_flag_spec_FC='${wl}-Bexport'
13823 runpath_var='LD_RUN_PATH'
13824
13825 if test "$GCC" = yes; then
13826 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 else
13829 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 fi
13832 ;;
13833
13834 uts4*)
13835 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836 hardcode_libdir_flag_spec_FC='-L$libdir'
13837 hardcode_shlibpath_var_FC=no
13838 ;;
13839
13840 *)
13841 ld_shlibs_FC=no
13842 ;;
13843 esac
13844
13845 if test x$host_vendor = xsni; then
13846 case $host in
13847 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13848 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13849 ;;
13850 esac
13851 fi
13852 fi
13853
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13855 $as_echo "$ld_shlibs_FC" >&6; }
13856 test "$ld_shlibs_FC" = no && can_build_shared=no
13857
13858 with_gnu_ld_FC=$with_gnu_ld
13859
13860
13861
13862
13863
13864
13865 #
13866 # Do we need to explicitly link libc?
13867 #
13868 case "x$archive_cmds_need_lc_FC" in
13869 x|xyes)
13870 # Assume -lc should be added
13871 archive_cmds_need_lc_FC=yes
13872
13873 if test "$enable_shared" = yes && test "$GCC" = yes; then
13874 case $archive_cmds_FC in
13875 *'~'*)
13876 # FIXME: we may have to deal with multi-command sequences.
13877 ;;
13878 '$CC '*)
13879 # Test whether the compiler implicitly links with -lc since on some
13880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13881 # to ld, don't add -lc before -lgcc.
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13883 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13884 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13885 $as_echo_n "(cached) " >&6
13886 else
13887 $RM conftest*
13888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13889
13890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13891 (eval $ac_compile) 2>&5
13892 ac_status=$?
13893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894 test $ac_status = 0; } 2>conftest.err; then
13895 soname=conftest
13896 lib=conftest
13897 libobjs=conftest.$ac_objext
13898 deplibs=
13899 wl=$lt_prog_compiler_wl_FC
13900 pic_flag=$lt_prog_compiler_pic_FC
13901 compiler_flags=-v
13902 linker_flags=-v
13903 verstring=
13904 output_objdir=.
13905 libname=conftest
13906 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13907 allow_undefined_flag_FC=
13908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13909 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13910 ac_status=$?
13911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13912 test $ac_status = 0; }
13913 then
13914 lt_cv_archive_cmds_need_lc_FC=no
13915 else
13916 lt_cv_archive_cmds_need_lc_FC=yes
13917 fi
13918 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13919 else
13920 cat conftest.err 1>&5
13921 fi
13922 $RM conftest*
13923
13924 fi
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13926 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13927 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13928 ;;
13929 esac
13930 fi
13931 ;;
13932 esac
13933
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13998 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13999
14000 library_names_spec=
14001 libname_spec='lib$name'
14002 soname_spec=
14003 shrext_cmds=".so"
14004 postinstall_cmds=
14005 postuninstall_cmds=
14006 finish_cmds=
14007 finish_eval=
14008 shlibpath_var=
14009 shlibpath_overrides_runpath=unknown
14010 version_type=none
14011 dynamic_linker="$host_os ld.so"
14012 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14013 need_lib_prefix=unknown
14014 hardcode_into_libs=no
14015
14016 # when you set need_version to no, make sure it does not cause -set_version
14017 # flags to be left without arguments
14018 need_version=unknown
14019
14020 case $host_os in
14021 aix3*)
14022 version_type=linux
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14024 shlibpath_var=LIBPATH
14025
14026 # AIX 3 has no versioning support, so we append a major version to the name.
14027 soname_spec='${libname}${release}${shared_ext}$major'
14028 ;;
14029
14030 aix[4-9]*)
14031 version_type=linux
14032 need_lib_prefix=no
14033 need_version=no
14034 hardcode_into_libs=yes
14035 if test "$host_cpu" = ia64; then
14036 # AIX 5 supports IA64
14037 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14038 shlibpath_var=LD_LIBRARY_PATH
14039 else
14040 # With GCC up to 2.95.x, collect2 would create an import file
14041 # for dependence libraries. The import file would start with
14042 # the line `#! .'. This would cause the generated library to
14043 # depend on `.', always an invalid library. This was fixed in
14044 # development snapshots of GCC prior to 3.0.
14045 case $host_os in
14046 aix4 | aix4.[01] | aix4.[01].*)
14047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14048 echo ' yes '
14049 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14050 :
14051 else
14052 can_build_shared=no
14053 fi
14054 ;;
14055 esac
14056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14057 # soname into executable. Probably we can add versioning support to
14058 # collect2, so additional links can be useful in future.
14059 if test "$aix_use_runtimelinking" = yes; then
14060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14061 # instead of lib<name>.a to let people know that these are not
14062 # typical AIX shared libraries.
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14064 else
14065 # We preserve .a as extension for shared libraries through AIX4.2
14066 # and later when we are not doing run time linking.
14067 library_names_spec='${libname}${release}.a $libname.a'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 fi
14070 shlibpath_var=LIBPATH
14071 fi
14072 ;;
14073
14074 amigaos*)
14075 case $host_cpu in
14076 powerpc)
14077 # Since July 2007 AmigaOS4 officially supports .so libraries.
14078 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 ;;
14081 m68k)
14082 library_names_spec='$libname.ixlibrary $libname.a'
14083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14084 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'
14085 ;;
14086 esac
14087 ;;
14088
14089 beos*)
14090 library_names_spec='${libname}${shared_ext}'
14091 dynamic_linker="$host_os ld.so"
14092 shlibpath_var=LIBRARY_PATH
14093 ;;
14094
14095 bsdi[45]*)
14096 version_type=linux
14097 need_version=no
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099 soname_spec='${libname}${release}${shared_ext}$major'
14100 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14101 shlibpath_var=LD_LIBRARY_PATH
14102 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14103 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14104 # the default ld.so.conf also contains /usr/contrib/lib and
14105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14106 # libtool to hard-code these into programs
14107 ;;
14108
14109 cygwin* | mingw* | pw32* | cegcc*)
14110 version_type=windows
14111 shrext_cmds=".dll"
14112 need_version=no
14113 need_lib_prefix=no
14114
14115 case $GCC,$host_os in
14116 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14117 library_names_spec='$libname.dll.a'
14118 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14119 postinstall_cmds='base_file=`basename \${file}`~
14120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14121 dldir=$destdir/`dirname \$dlpath`~
14122 test -d \$dldir || mkdir -p \$dldir~
14123 $install_prog $dir/$dlname \$dldir/$dlname~
14124 chmod a+x \$dldir/$dlname~
14125 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14126 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14127 fi'
14128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14129 dlpath=$dir/\$dldll~
14130 $RM \$dlpath'
14131 shlibpath_overrides_runpath=yes
14132
14133 case $host_os in
14134 cygwin*)
14135 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14136 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14137
14138 ;;
14139 mingw* | cegcc*)
14140 # MinGW DLLs use traditional 'lib' prefix
14141 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14142 ;;
14143 pw32*)
14144 # pw32 DLLs use 'pw' prefix rather than 'lib'
14145 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14146 ;;
14147 esac
14148 ;;
14149
14150 *)
14151 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14152 ;;
14153 esac
14154 dynamic_linker='Win32 ld.exe'
14155 # FIXME: first we should search . and the directory the executable is in
14156 shlibpath_var=PATH
14157 ;;
14158
14159 darwin* | rhapsody*)
14160 dynamic_linker="$host_os dyld"
14161 version_type=darwin
14162 need_lib_prefix=no
14163 need_version=no
14164 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14165 soname_spec='${libname}${release}${major}$shared_ext'
14166 shlibpath_overrides_runpath=yes
14167 shlibpath_var=DYLD_LIBRARY_PATH
14168 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14169
14170 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14171 ;;
14172
14173 dgux*)
14174 version_type=linux
14175 need_lib_prefix=no
14176 need_version=no
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14178 soname_spec='${libname}${release}${shared_ext}$major'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 ;;
14181
14182 freebsd* | dragonfly*)
14183 # DragonFly does not have aout. When/if they implement a new
14184 # versioning mechanism, adjust this.
14185 if test -x /usr/bin/objformat; then
14186 objformat=`/usr/bin/objformat`
14187 else
14188 case $host_os in
14189 freebsd[23].*) objformat=aout ;;
14190 *) objformat=elf ;;
14191 esac
14192 fi
14193 version_type=freebsd-$objformat
14194 case $version_type in
14195 freebsd-elf*)
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14197 need_version=no
14198 need_lib_prefix=no
14199 ;;
14200 freebsd-*)
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14202 need_version=yes
14203 ;;
14204 esac
14205 shlibpath_var=LD_LIBRARY_PATH
14206 case $host_os in
14207 freebsd2.*)
14208 shlibpath_overrides_runpath=yes
14209 ;;
14210 freebsd3.[01]* | freebsdelf3.[01]*)
14211 shlibpath_overrides_runpath=yes
14212 hardcode_into_libs=yes
14213 ;;
14214 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14215 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14216 shlibpath_overrides_runpath=no
14217 hardcode_into_libs=yes
14218 ;;
14219 *) # from 4.6 on, and DragonFly
14220 shlibpath_overrides_runpath=yes
14221 hardcode_into_libs=yes
14222 ;;
14223 esac
14224 ;;
14225
14226 gnu*)
14227 version_type=linux
14228 need_lib_prefix=no
14229 need_version=no
14230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14231 soname_spec='${libname}${release}${shared_ext}$major'
14232 shlibpath_var=LD_LIBRARY_PATH
14233 hardcode_into_libs=yes
14234 ;;
14235
14236 haiku*)
14237 version_type=linux
14238 need_lib_prefix=no
14239 need_version=no
14240 dynamic_linker="$host_os runtime_loader"
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14242 soname_spec='${libname}${release}${shared_ext}$major'
14243 shlibpath_var=LIBRARY_PATH
14244 shlibpath_overrides_runpath=yes
14245 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14246 hardcode_into_libs=yes
14247 ;;
14248
14249 hpux9* | hpux10* | hpux11*)
14250 # Give a soname corresponding to the major version so that dld.sl refuses to
14251 # link against other versions.
14252 version_type=sunos
14253 need_lib_prefix=no
14254 need_version=no
14255 case $host_cpu in
14256 ia64*)
14257 shrext_cmds='.so'
14258 hardcode_into_libs=yes
14259 dynamic_linker="$host_os dld.so"
14260 shlibpath_var=LD_LIBRARY_PATH
14261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263 soname_spec='${libname}${release}${shared_ext}$major'
14264 if test "X$HPUX_IA64_MODE" = X32; then
14265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14266 else
14267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14268 fi
14269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14270 ;;
14271 hppa*64*)
14272 shrext_cmds='.sl'
14273 hardcode_into_libs=yes
14274 dynamic_linker="$host_os dld.sl"
14275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14278 soname_spec='${libname}${release}${shared_ext}$major'
14279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14281 ;;
14282 *)
14283 shrext_cmds='.sl'
14284 dynamic_linker="$host_os dld.sl"
14285 shlibpath_var=SHLIB_PATH
14286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288 soname_spec='${libname}${release}${shared_ext}$major'
14289 ;;
14290 esac
14291 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14292 postinstall_cmds='chmod 555 $lib'
14293 # or fails outright, so override atomically:
14294 install_override_mode=555
14295 ;;
14296
14297 interix[3-9]*)
14298 version_type=linux
14299 need_lib_prefix=no
14300 need_version=no
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 shlibpath_overrides_runpath=no
14306 hardcode_into_libs=yes
14307 ;;
14308
14309 irix5* | irix6* | nonstopux*)
14310 case $host_os in
14311 nonstopux*) version_type=nonstopux ;;
14312 *)
14313 if test "$lt_cv_prog_gnu_ld" = yes; then
14314 version_type=linux
14315 else
14316 version_type=irix
14317 fi ;;
14318 esac
14319 need_lib_prefix=no
14320 need_version=no
14321 soname_spec='${libname}${release}${shared_ext}$major'
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14323 case $host_os in
14324 irix5* | nonstopux*)
14325 libsuff= shlibsuff=
14326 ;;
14327 *)
14328 case $LD in # libtool.m4 will add one of these switches to LD
14329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14330 libsuff= shlibsuff= libmagic=32-bit;;
14331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14332 libsuff=32 shlibsuff=N32 libmagic=N32;;
14333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14335 *) libsuff= shlibsuff= libmagic=never-match;;
14336 esac
14337 ;;
14338 esac
14339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14340 shlibpath_overrides_runpath=no
14341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14343 hardcode_into_libs=yes
14344 ;;
14345
14346 # No shared lib support for Linux oldld, aout, or coff.
14347 linux*oldld* | linux*aout* | linux*coff*)
14348 dynamic_linker=no
14349 ;;
14350
14351 # This must be Linux ELF.
14352 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14353 version_type=linux
14354 need_lib_prefix=no
14355 need_version=no
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14359 shlibpath_var=LD_LIBRARY_PATH
14360 shlibpath_overrides_runpath=no
14361
14362 # Some binutils ld are patched to set DT_RUNPATH
14363 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366 lt_cv_shlibpath_overrides_runpath=no
14367 save_LDFLAGS=$LDFLAGS
14368 save_libdir=$libdir
14369 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14370 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14371 cat > conftest.$ac_ext <<_ACEOF
14372 program main
14373
14374 end
14375 _ACEOF
14376 if ac_fn_fc_try_link "$LINENO"; then :
14377 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14378 lt_cv_shlibpath_overrides_runpath=yes
14379 fi
14380 fi
14381 rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext conftest.$ac_ext
14383 LDFLAGS=$save_LDFLAGS
14384 libdir=$save_libdir
14385
14386 fi
14387
14388 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14389
14390 # This implies no fast_install, which is unacceptable.
14391 # Some rework will be needed to allow for fast_install
14392 # before this can be enabled.
14393 hardcode_into_libs=yes
14394
14395 # Append ld.so.conf contents to the search path
14396 if test -f /etc/ld.so.conf; then
14397 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' ' '`
14398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14399 fi
14400
14401 # We used to test for /lib/ld.so.1 and disable shared libraries on
14402 # powerpc, because MkLinux only supported shared libraries with the
14403 # GNU dynamic linker. Since this was broken with cross compilers,
14404 # most powerpc-linux boxes support dynamic linking these days and
14405 # people can always --disable-shared, the test was removed, and we
14406 # assume the GNU/Linux dynamic linker is in use.
14407 dynamic_linker='GNU/Linux ld.so'
14408 ;;
14409
14410 netbsd*)
14411 version_type=sunos
14412 need_lib_prefix=no
14413 need_version=no
14414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14417 dynamic_linker='NetBSD (a.out) ld.so'
14418 else
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14420 soname_spec='${libname}${release}${shared_ext}$major'
14421 dynamic_linker='NetBSD ld.elf_so'
14422 fi
14423 shlibpath_var=LD_LIBRARY_PATH
14424 shlibpath_overrides_runpath=yes
14425 hardcode_into_libs=yes
14426 ;;
14427
14428 newsos6)
14429 version_type=linux
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 shlibpath_var=LD_LIBRARY_PATH
14432 shlibpath_overrides_runpath=yes
14433 ;;
14434
14435 *nto* | *qnx*)
14436 version_type=qnx
14437 need_lib_prefix=no
14438 need_version=no
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath=no
14443 hardcode_into_libs=yes
14444 dynamic_linker='ldqnx.so'
14445 ;;
14446
14447 openbsd*)
14448 version_type=sunos
14449 sys_lib_dlsearch_path_spec="/usr/lib"
14450 need_lib_prefix=no
14451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14452 case $host_os in
14453 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14454 *) need_version=no ;;
14455 esac
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14460 case $host_os in
14461 openbsd2.[89] | openbsd2.[89].*)
14462 shlibpath_overrides_runpath=no
14463 ;;
14464 *)
14465 shlibpath_overrides_runpath=yes
14466 ;;
14467 esac
14468 else
14469 shlibpath_overrides_runpath=yes
14470 fi
14471 ;;
14472
14473 os2*)
14474 libname_spec='$name'
14475 shrext_cmds=".dll"
14476 need_lib_prefix=no
14477 library_names_spec='$libname${shared_ext} $libname.a'
14478 dynamic_linker='OS/2 ld.exe'
14479 shlibpath_var=LIBPATH
14480 ;;
14481
14482 osf3* | osf4* | osf5*)
14483 version_type=osf
14484 need_lib_prefix=no
14485 need_version=no
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14491 ;;
14492
14493 rdos*)
14494 dynamic_linker=no
14495 ;;
14496
14497 solaris*)
14498 version_type=linux
14499 need_lib_prefix=no
14500 need_version=no
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502 soname_spec='${libname}${release}${shared_ext}$major'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath=yes
14505 hardcode_into_libs=yes
14506 # ldd complains unless libraries are executable
14507 postinstall_cmds='chmod +x $lib'
14508 ;;
14509
14510 sunos4*)
14511 version_type=sunos
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14514 shlibpath_var=LD_LIBRARY_PATH
14515 shlibpath_overrides_runpath=yes
14516 if test "$with_gnu_ld" = yes; then
14517 need_lib_prefix=no
14518 fi
14519 need_version=yes
14520 ;;
14521
14522 sysv4 | sysv4.3*)
14523 version_type=linux
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 shlibpath_var=LD_LIBRARY_PATH
14527 case $host_vendor in
14528 sni)
14529 shlibpath_overrides_runpath=no
14530 need_lib_prefix=no
14531 runpath_var=LD_RUN_PATH
14532 ;;
14533 siemens)
14534 need_lib_prefix=no
14535 ;;
14536 motorola)
14537 need_lib_prefix=no
14538 need_version=no
14539 shlibpath_overrides_runpath=no
14540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14541 ;;
14542 esac
14543 ;;
14544
14545 sysv4*MP*)
14546 if test -d /usr/nec ;then
14547 version_type=linux
14548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14549 soname_spec='$libname${shared_ext}.$major'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 fi
14552 ;;
14553
14554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14555 version_type=freebsd-elf
14556 need_lib_prefix=no
14557 need_version=no
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath=yes
14562 hardcode_into_libs=yes
14563 if test "$with_gnu_ld" = yes; then
14564 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14565 else
14566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14567 case $host_os in
14568 sco3.2v5*)
14569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14570 ;;
14571 esac
14572 fi
14573 sys_lib_dlsearch_path_spec='/usr/lib'
14574 ;;
14575
14576 tpf*)
14577 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14578 version_type=linux
14579 need_lib_prefix=no
14580 need_version=no
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 shlibpath_var=LD_LIBRARY_PATH
14583 shlibpath_overrides_runpath=no
14584 hardcode_into_libs=yes
14585 ;;
14586
14587 uts4*)
14588 version_type=linux
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590 soname_spec='${libname}${release}${shared_ext}$major'
14591 shlibpath_var=LD_LIBRARY_PATH
14592 ;;
14593
14594 *)
14595 dynamic_linker=no
14596 ;;
14597 esac
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14599 $as_echo "$dynamic_linker" >&6; }
14600 test "$dynamic_linker" = no && can_build_shared=no
14601
14602 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14603 if test "$GCC" = yes; then
14604 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14605 fi
14606
14607 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14608 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14609 fi
14610 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14611 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14612 fi
14613
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14652 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14653 hardcode_action_FC=
14654 if test -n "$hardcode_libdir_flag_spec_FC" ||
14655 test -n "$runpath_var_FC" ||
14656 test "X$hardcode_automatic_FC" = "Xyes" ; then
14657
14658 # We can hardcode non-existent directories.
14659 if test "$hardcode_direct_FC" != no &&
14660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14661 # have to relink, otherwise we might link with an installed library
14662 # when we should be linking with a yet-to-be-installed one
14663 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14664 test "$hardcode_minus_L_FC" != no; then
14665 # Linking always hardcodes the temporary library directory.
14666 hardcode_action_FC=relink
14667 else
14668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14669 hardcode_action_FC=immediate
14670 fi
14671 else
14672 # We cannot hardcode anything, or else we can only hardcode existing
14673 # directories.
14674 hardcode_action_FC=unsupported
14675 fi
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14677 $as_echo "$hardcode_action_FC" >&6; }
14678
14679 if test "$hardcode_action_FC" = relink ||
14680 test "$inherit_rpath_FC" = yes; then
14681 # Fast installation is not supported
14682 enable_fast_install=no
14683 elif test "$shlibpath_overrides_runpath" = yes ||
14684 test "$enable_shared" = no; then
14685 # Fast installation is not necessary
14686 enable_fast_install=needless
14687 fi
14688
14689
14690
14691
14692
14693
14694
14695 fi # test -n "$compiler"
14696
14697 GCC=$lt_save_GCC
14698 CC="$lt_save_CC"
14699 fi # test "$_lt_disable_FC" != yes
14700
14701 ac_ext=c
14702 ac_cpp='$CPP $CPPFLAGS'
14703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14706
14707
14708 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14709
14710 # For libtool versioning info, format is CURRENT:REVISION:AGE
14711 libtool_VERSION=1:0:0
14712
14713
14714 # Check header files.
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14716 $as_echo_n "checking for ANSI C header files... " >&6; }
14717 if ${ac_cv_header_stdc+:} false; then :
14718 $as_echo_n "(cached) " >&6
14719 else
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14722 #include <stdlib.h>
14723 #include <stdarg.h>
14724 #include <string.h>
14725 #include <float.h>
14726
14727 int
14728 main ()
14729 {
14730
14731 ;
14732 return 0;
14733 }
14734 _ACEOF
14735 if ac_fn_c_try_compile "$LINENO"; then :
14736 ac_cv_header_stdc=yes
14737 else
14738 ac_cv_header_stdc=no
14739 fi
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741
14742 if test $ac_cv_header_stdc = yes; then
14743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14746 #include <string.h>
14747
14748 _ACEOF
14749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14750 $EGREP "memchr" >/dev/null 2>&1; then :
14751
14752 else
14753 ac_cv_header_stdc=no
14754 fi
14755 rm -f conftest*
14756
14757 fi
14758
14759 if test $ac_cv_header_stdc = yes; then
14760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 #include <stdlib.h>
14764
14765 _ACEOF
14766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14767 $EGREP "free" >/dev/null 2>&1; then :
14768
14769 else
14770 ac_cv_header_stdc=no
14771 fi
14772 rm -f conftest*
14773
14774 fi
14775
14776 if test $ac_cv_header_stdc = yes; then
14777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14778 if test "$cross_compiling" = yes; then :
14779 :
14780 else
14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14783 #include <ctype.h>
14784 #include <stdlib.h>
14785 #if ((' ' & 0x0FF) == 0x020)
14786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14788 #else
14789 # define ISLOWER(c) \
14790 (('a' <= (c) && (c) <= 'i') \
14791 || ('j' <= (c) && (c) <= 'r') \
14792 || ('s' <= (c) && (c) <= 'z'))
14793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14794 #endif
14795
14796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14797 int
14798 main ()
14799 {
14800 int i;
14801 for (i = 0; i < 256; i++)
14802 if (XOR (islower (i), ISLOWER (i))
14803 || toupper (i) != TOUPPER (i))
14804 return 2;
14805 return 0;
14806 }
14807 _ACEOF
14808 if ac_fn_c_try_run "$LINENO"; then :
14809
14810 else
14811 ac_cv_header_stdc=no
14812 fi
14813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14814 conftest.$ac_objext conftest.beam conftest.$ac_ext
14815 fi
14816
14817 fi
14818 fi
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14820 $as_echo "$ac_cv_header_stdc" >&6; }
14821 if test $ac_cv_header_stdc = yes; then
14822
14823 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14824
14825 fi
14826
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14828 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14829 if ${ac_cv_header_time+:} false; then :
14830 $as_echo_n "(cached) " >&6
14831 else
14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14834 #include <sys/types.h>
14835 #include <sys/time.h>
14836 #include <time.h>
14837
14838 int
14839 main ()
14840 {
14841 if ((struct tm *) 0)
14842 return 0;
14843 ;
14844 return 0;
14845 }
14846 _ACEOF
14847 if ac_fn_c_try_compile "$LINENO"; then :
14848 ac_cv_header_time=yes
14849 else
14850 ac_cv_header_time=no
14851 fi
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 fi
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14855 $as_echo "$ac_cv_header_time" >&6; }
14856 if test $ac_cv_header_time = yes; then
14857
14858 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14859
14860 fi
14861
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14863 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14864 if ${gcc_cv_header_string+:} false; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14869 #include <string.h>
14870 #include <strings.h>
14871 int
14872 main ()
14873 {
14874
14875 ;
14876 return 0;
14877 }
14878 _ACEOF
14879 if ac_fn_c_try_compile "$LINENO"; then :
14880 gcc_cv_header_string=yes
14881 else
14882 gcc_cv_header_string=no
14883 fi
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14887 $as_echo "$gcc_cv_header_string" >&6; }
14888 if test $gcc_cv_header_string = yes; then
14889
14890 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14891
14892 fi
14893
14894 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14895 do :
14896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14897 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14899 cat >>confdefs.h <<_ACEOF
14900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14901 _ACEOF
14902
14903 fi
14904
14905 done
14906
14907
14908
14909
14910 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14911
14912 acx_cv_header_stdint=stddef.h
14913 acx_cv_header_stdint_kind="(already complete)"
14914 for i in stdint.h $inttype_headers; do
14915 unset ac_cv_type_uintptr_t
14916 unset ac_cv_type_uintmax_t
14917 unset ac_cv_type_int_least32_t
14918 unset ac_cv_type_int_fast32_t
14919 unset ac_cv_type_uint64_t
14920 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14921 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14922 #include <$i>
14923 "
14924 if test "x$ac_cv_type_uintmax_t" = xyes; then :
14925 acx_cv_header_stdint=$i
14926 else
14927 continue
14928 fi
14929
14930 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14931 #include <$i>
14932 "
14933 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14934
14935 else
14936 acx_cv_header_stdint_kind="(mostly complete)"
14937 fi
14938
14939 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14940 #include <$i>
14941 "
14942 if test "x$ac_cv_type_int_least32_t" = xyes; then :
14943
14944 else
14945 acx_cv_header_stdint_kind="(mostly complete)"
14946 fi
14947
14948 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14949 #include <$i>
14950 "
14951 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
14952
14953 else
14954 acx_cv_header_stdint_kind="(mostly complete)"
14955 fi
14956
14957 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14958 #include <$i>
14959 "
14960 if test "x$ac_cv_type_uint64_t" = xyes; then :
14961
14962 else
14963 acx_cv_header_stdint_kind="(lacks uint64_t)"
14964 fi
14965
14966 break
14967 done
14968 if test "$acx_cv_header_stdint" = stddef.h; then
14969 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14970 for i in stdint.h $inttype_headers; do
14971 unset ac_cv_type_uintptr_t
14972 unset ac_cv_type_uint32_t
14973 unset ac_cv_type_uint64_t
14974 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14975 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14976 #include <$i>
14977 "
14978 if test "x$ac_cv_type_uint32_t" = xyes; then :
14979 acx_cv_header_stdint=$i
14980 else
14981 continue
14982 fi
14983
14984 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14985 #include <$i>
14986 "
14987 if test "x$ac_cv_type_uint64_t" = xyes; then :
14988
14989 fi
14990
14991 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14992 #include <$i>
14993 "
14994 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14995
14996 fi
14997
14998 break
14999 done
15000 fi
15001 if test "$acx_cv_header_stdint" = stddef.h; then
15002 acx_cv_header_stdint_kind="(u_intXX_t style)"
15003 for i in sys/types.h $inttype_headers; do
15004 unset ac_cv_type_u_int32_t
15005 unset ac_cv_type_u_int64_t
15006 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15007 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15008 #include <$i>
15009 "
15010 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15011 acx_cv_header_stdint=$i
15012 else
15013 continue
15014 fi
15015
15016 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15017 #include <$i>
15018 "
15019 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15020
15021 fi
15022
15023 break
15024 done
15025 fi
15026 if test "$acx_cv_header_stdint" = stddef.h; then
15027 acx_cv_header_stdint_kind="(using manual detection)"
15028 fi
15029
15030 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15031 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15032 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15033 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15034 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15035
15036 # ----------------- Summarize what we found so far
15037
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15039 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15040
15041 case `$as_basename -- gstdint.h ||
15042 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15043 Xgstdint.h : 'X\(//\)$' \| \
15044 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15045 $as_echo X/gstdint.h |
15046 sed '/^.*\/\([^/][^/]*\)\/*$/{
15047 s//\1/
15048 q
15049 }
15050 /^X\/\(\/\/\)$/{
15051 s//\1/
15052 q
15053 }
15054 /^X\/\(\/\).*/{
15055 s//\1/
15056 q
15057 }
15058 s/.*/./; q'` in
15059 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15060 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15061 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15062 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15063 *) ;;
15064 esac
15065
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15067 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15068
15069 # ----------------- done included file, check C basic types --------
15070
15071 # Lacking an uintptr_t? Test size of void *
15072 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15073 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15076 # This bug is HP SR number 8606223364.
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15078 $as_echo_n "checking size of void *... " >&6; }
15079 if ${ac_cv_sizeof_void_p+:} false; then :
15080 $as_echo_n "(cached) " >&6
15081 else
15082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15083
15084 else
15085 if test "$ac_cv_type_void_p" = yes; then
15086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15088 as_fn_error 77 "cannot compute sizeof (void *)
15089 See \`config.log' for more details" "$LINENO" 5; }
15090 else
15091 ac_cv_sizeof_void_p=0
15092 fi
15093 fi
15094
15095 fi
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15097 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15098
15099
15100
15101 cat >>confdefs.h <<_ACEOF
15102 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15103 _ACEOF
15104
15105 ;;
15106 esac
15107
15108 # Lacking an uint64_t? Test size of long
15109 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15110 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15113 # This bug is HP SR number 8606223364.
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15115 $as_echo_n "checking size of long... " >&6; }
15116 if ${ac_cv_sizeof_long+:} false; then :
15117 $as_echo_n "(cached) " >&6
15118 else
15119 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15120
15121 else
15122 if test "$ac_cv_type_long" = yes; then
15123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15125 as_fn_error 77 "cannot compute sizeof (long)
15126 See \`config.log' for more details" "$LINENO" 5; }
15127 else
15128 ac_cv_sizeof_long=0
15129 fi
15130 fi
15131
15132 fi
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15134 $as_echo "$ac_cv_sizeof_long" >&6; }
15135
15136
15137
15138 cat >>confdefs.h <<_ACEOF
15139 #define SIZEOF_LONG $ac_cv_sizeof_long
15140 _ACEOF
15141
15142 ;;
15143 esac
15144
15145 if test $acx_cv_header_stdint = stddef.h; then
15146 # Lacking a good header? Test size of everything and deduce all types.
15147 # The cast to long int works around a bug in the HP C Compiler
15148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15150 # This bug is HP SR number 8606223364.
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15152 $as_echo_n "checking size of int... " >&6; }
15153 if ${ac_cv_sizeof_int+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15157
15158 else
15159 if test "$ac_cv_type_int" = yes; then
15160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15162 as_fn_error 77 "cannot compute sizeof (int)
15163 See \`config.log' for more details" "$LINENO" 5; }
15164 else
15165 ac_cv_sizeof_int=0
15166 fi
15167 fi
15168
15169 fi
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15171 $as_echo "$ac_cv_sizeof_int" >&6; }
15172
15173
15174
15175 cat >>confdefs.h <<_ACEOF
15176 #define SIZEOF_INT $ac_cv_sizeof_int
15177 _ACEOF
15178
15179
15180 # The cast to long int works around a bug in the HP C Compiler
15181 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15182 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15183 # This bug is HP SR number 8606223364.
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15185 $as_echo_n "checking size of short... " >&6; }
15186 if ${ac_cv_sizeof_short+:} false; then :
15187 $as_echo_n "(cached) " >&6
15188 else
15189 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15190
15191 else
15192 if test "$ac_cv_type_short" = yes; then
15193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15195 as_fn_error 77 "cannot compute sizeof (short)
15196 See \`config.log' for more details" "$LINENO" 5; }
15197 else
15198 ac_cv_sizeof_short=0
15199 fi
15200 fi
15201
15202 fi
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15204 $as_echo "$ac_cv_sizeof_short" >&6; }
15205
15206
15207
15208 cat >>confdefs.h <<_ACEOF
15209 #define SIZEOF_SHORT $ac_cv_sizeof_short
15210 _ACEOF
15211
15212
15213 # The cast to long int works around a bug in the HP C Compiler
15214 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15215 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15216 # This bug is HP SR number 8606223364.
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15218 $as_echo_n "checking size of char... " >&6; }
15219 if ${ac_cv_sizeof_char+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15223
15224 else
15225 if test "$ac_cv_type_char" = yes; then
15226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15228 as_fn_error 77 "cannot compute sizeof (char)
15229 See \`config.log' for more details" "$LINENO" 5; }
15230 else
15231 ac_cv_sizeof_char=0
15232 fi
15233 fi
15234
15235 fi
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15237 $as_echo "$ac_cv_sizeof_char" >&6; }
15238
15239
15240
15241 cat >>confdefs.h <<_ACEOF
15242 #define SIZEOF_CHAR $ac_cv_sizeof_char
15243 _ACEOF
15244
15245
15246
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15248 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15249 case "$ac_cv_sizeof_char" in
15250 1) acx_cv_type_int8_t=char ;;
15251 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
15252 esac
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15254 $as_echo "$acx_cv_type_int8_t" >&6; }
15255
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15257 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15258 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15259 2:*) acx_cv_type_int16_t=int ;;
15260 *:2) acx_cv_type_int16_t=short ;;
15261 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
15262 esac
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15264 $as_echo "$acx_cv_type_int16_t" >&6; }
15265
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15267 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15268 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15269 4:*) acx_cv_type_int32_t=int ;;
15270 *:4) acx_cv_type_int32_t=long ;;
15271 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
15272 esac
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15274 $as_echo "$acx_cv_type_int32_t" >&6; }
15275 fi
15276
15277 # These tests are here to make the output prettier
15278
15279 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15280 case "$ac_cv_sizeof_long" in
15281 8) acx_cv_type_int64_t=long ;;
15282 esac
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15284 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15286 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15287 fi
15288
15289 # Now we can use the above types
15290
15291 if test "$ac_cv_type_uintptr_t" != yes; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15293 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15294 case $ac_cv_sizeof_void_p in
15295 2) acx_cv_type_intptr_t=int16_t ;;
15296 4) acx_cv_type_intptr_t=int32_t ;;
15297 8) acx_cv_type_intptr_t=int64_t ;;
15298 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15299 esac
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15301 $as_echo "$acx_cv_type_intptr_t" >&6; }
15302 fi
15303
15304 # ----------------- done all checks, emit header -------------
15305 ac_config_commands="$ac_config_commands gstdint.h"
15306
15307
15308
15309
15310 XPCFLAGS=""
15311 case "$host" in
15312 *-*-rtems*)
15313 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15314 ;;
15315 nvptx*-*-*)
15316 # NVPTX does not support Pthreads, has its own code replacement.
15317 libgomp_use_pthreads=no
15318 # NVPTX is an accelerator-only target
15319 libgomp_offloaded_only=yes
15320 ;;
15321 *)
15322 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15323 # In case the pthread.h system header is not found, this test will fail.
15324 CFLAGS="$CFLAGS -pthread"
15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15327 #include <pthread.h>
15328 void *g(void *d) { return NULL; }
15329 int
15330 main ()
15331 {
15332 pthread_t t; pthread_create(&t,NULL,g,NULL);
15333 ;
15334 return 0;
15335 }
15336 _ACEOF
15337 if ac_fn_c_try_link "$LINENO"; then :
15338 XPCFLAGS=" -Wc,-pthread"
15339 else
15340 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15343 #include <pthread.h>
15344 void *g(void *d) { return NULL; }
15345 int
15346 main ()
15347 {
15348 pthread_t t; pthread_create(&t,NULL,g,NULL);
15349 ;
15350 return 0;
15351 }
15352 _ACEOF
15353 if ac_fn_c_try_link "$LINENO"; then :
15354
15355 else
15356 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15363 esac
15364
15365 if test x$libgomp_use_pthreads != xno; then
15366
15367 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15368
15369 fi
15370
15371 if test x$libgomp_offloaded_only = xyes; then
15372
15373 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15374
15375 fi
15376
15377 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15378 #
15379 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
15380 #
15381 # Contributed by Mentor Embedded.
15382 #
15383 # This file is part of the GNU Offloading and Multi Processing Library
15384 # (libgomp).
15385 #
15386 # Libgomp is free software; you can redistribute it and/or modify it
15387 # under the terms of the GNU General Public License as published by
15388 # the Free Software Foundation; either version 3, or (at your option)
15389 # any later version.
15390 #
15391 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15392 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15393 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15394 # more details.
15395 #
15396 # Under Section 7 of GPL version 3, you are granted additional
15397 # permissions described in the GCC Runtime Library Exception, version
15398 # 3.1, as published by the Free Software Foundation.
15399 #
15400 # You should have received a copy of the GNU General Public License and
15401 # a copy of the GCC Runtime Library Exception along with this program;
15402 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15403 # <http://www.gnu.org/licenses/>.
15404
15405 plugin_support=yes
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15407 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15408 if ${ac_cv_lib_dl_dlsym+:} false; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 ac_check_lib_save_LIBS=$LIBS
15412 LIBS="-ldl $LIBS"
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415
15416 /* Override any GCC internal prototype to avoid an error.
15417 Use char because int might match the return type of a GCC
15418 builtin and then its argument prototype would still apply. */
15419 #ifdef __cplusplus
15420 extern "C"
15421 #endif
15422 char dlsym ();
15423 int
15424 main ()
15425 {
15426 return dlsym ();
15427 ;
15428 return 0;
15429 }
15430 _ACEOF
15431 if ac_fn_c_try_link "$LINENO"; then :
15432 ac_cv_lib_dl_dlsym=yes
15433 else
15434 ac_cv_lib_dl_dlsym=no
15435 fi
15436 rm -f core conftest.err conftest.$ac_objext \
15437 conftest$ac_exeext conftest.$ac_ext
15438 LIBS=$ac_check_lib_save_LIBS
15439 fi
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15441 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15442 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15443 cat >>confdefs.h <<_ACEOF
15444 #define HAVE_LIBDL 1
15445 _ACEOF
15446
15447 LIBS="-ldl $LIBS"
15448
15449 else
15450 plugin_support=no
15451 fi
15452
15453 if test x"$plugin_support" = xyes; then
15454
15455 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15456
15457 elif test "x${enable_offload_targets-no}" != xno; then
15458 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15459 fi
15460
15461
15462
15463 for ac_header in $ac_header_list
15464 do :
15465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15467 "
15468 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15469 cat >>confdefs.h <<_ACEOF
15470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15471 _ACEOF
15472
15473 fi
15474
15475 done
15476
15477
15478
15479
15480
15481
15482
15483 for ac_func in $ac_func_list
15484 do :
15485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15488 cat >>confdefs.h <<_ACEOF
15489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15490 _ACEOF
15491
15492 fi
15493 done
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510 # Look for the CUDA driver package.
15511 CUDA_DRIVER_INCLUDE=
15512 CUDA_DRIVER_LIB=
15513
15514
15515 CUDA_DRIVER_CPPFLAGS=
15516 CUDA_DRIVER_LDFLAGS=
15517
15518 # Check whether --with-cuda-driver was given.
15519 if test "${with_cuda_driver+set}" = set; then :
15520 withval=$with_cuda_driver;
15521 fi
15522
15523
15524 # Check whether --with-cuda-driver-include was given.
15525 if test "${with_cuda_driver_include+set}" = set; then :
15526 withval=$with_cuda_driver_include;
15527 fi
15528
15529
15530 # Check whether --with-cuda-driver-lib was given.
15531 if test "${with_cuda_driver_lib+set}" = set; then :
15532 withval=$with_cuda_driver_lib;
15533 fi
15534
15535 case "x$with_cuda_driver" in
15536 x) ;;
15537 xno)
15538 CUDA_DRIVER_INCLUDE=no
15539 CUDA_DRIVER_LIB=no
15540 ;;
15541 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15542 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15543 ;;
15544 esac
15545 if test "x$with_cuda_driver_include" != x; then
15546 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15547 fi
15548 if test "x$with_cuda_driver_lib" != x; then
15549 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15550 fi
15551 if test "x$CUDA_DRIVER_INCLUDE" != x \
15552 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15553 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15554 fi
15555 if test "x$CUDA_DRIVER_LIB" != x \
15556 && test "x$CUDA_DRIVER_LIB" != xno; then
15557 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15558 fi
15559
15560 PLUGIN_NVPTX=0
15561 PLUGIN_NVPTX_CPPFLAGS=
15562 PLUGIN_NVPTX_LDFLAGS=
15563 PLUGIN_NVPTX_LIBS=
15564 PLUGIN_NVPTX_DYNAMIC=0
15565
15566
15567
15568
15569
15570 # Look for HSA run-time, its includes and libraries
15571
15572 HSA_RUNTIME_INCLUDE=
15573 HSA_RUNTIME_LIB=
15574
15575
15576 HSA_RUNTIME_CPPFLAGS=
15577 HSA_RUNTIME_LDFLAGS=
15578
15579
15580 # Check whether --with-hsa-runtime was given.
15581 if test "${with_hsa_runtime+set}" = set; then :
15582 withval=$with_hsa_runtime;
15583 fi
15584
15585
15586 # Check whether --with-hsa-runtime-include was given.
15587 if test "${with_hsa_runtime_include+set}" = set; then :
15588 withval=$with_hsa_runtime_include;
15589 fi
15590
15591
15592 # Check whether --with-hsa-runtime-lib was given.
15593 if test "${with_hsa_runtime_lib+set}" = set; then :
15594 withval=$with_hsa_runtime_lib;
15595 fi
15596
15597 if test "x$with_hsa_runtime" != x; then
15598 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15599 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15600 fi
15601 if test "x$with_hsa_runtime_include" != x; then
15602 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15603 fi
15604 if test "x$with_hsa_runtime_lib" != x; then
15605 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15606 fi
15607 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15608 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15609 fi
15610 if test "x$HSA_RUNTIME_LIB" != x; then
15611 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15612 fi
15613
15614 PLUGIN_HSA=0
15615 PLUGIN_HSA_CPPFLAGS=
15616 PLUGIN_HSA_LDFLAGS=
15617 PLUGIN_HSA_LIBS=
15618
15619
15620
15621
15622
15623 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15624 # plugins, and configure to find the corresponding offload compilers.
15625 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15626 offload_plugins=
15627 offload_targets=
15628
15629
15630 offload_additional_options=
15631 offload_additional_lib_paths=
15632
15633
15634 if test x"$enable_offload_targets" != x; then
15635 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15636 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15637 tgt=`echo $tgt | sed 's/=.*//'`
15638 tgt_plugin=
15639 case $tgt in
15640 *-intelmic-* | *-intelmicemul-*)
15641 tgt_plugin=intelmic
15642 ;;
15643 nvptx*)
15644 tgt_plugin=nvptx
15645 PLUGIN_NVPTX=$tgt
15646 if test "x$CUDA_DRIVER_LIB" != xno \
15647 && test "x$CUDA_DRIVER_LIB" != xno; then
15648 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15649 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15650 PLUGIN_NVPTX_LIBS='-lcuda'
15651
15652 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15653 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15654 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15655 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15656 PLUGIN_NVPTX_save_LIBS=$LIBS
15657 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15660 #include "cuda.h"
15661 int
15662 main ()
15663 {
15664 CUresult r = cuCtxPushCurrent (NULL);
15665 ;
15666 return 0;
15667 }
15668 _ACEOF
15669 if ac_fn_c_try_link "$LINENO"; then :
15670 PLUGIN_NVPTX=1
15671 fi
15672 rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15674 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15675 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15676 LIBS=$PLUGIN_NVPTX_save_LIBS
15677 fi
15678 case $PLUGIN_NVPTX in
15679 nvptx*)
15680 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15681 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15682 && (test "x$CUDA_DRIVER_LIB" = x \
15683 || test "x$CUDA_DRIVER_LIB" = xno); then
15684 PLUGIN_NVPTX=1
15685 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15686 PLUGIN_NVPTX_LIBS='-ldl'
15687 PLUGIN_NVPTX_DYNAMIC=1
15688 else
15689 PLUGIN_NVPTX=0
15690 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15691 fi
15692 ;;
15693 esac
15694 ;;
15695 hsa*)
15696 case "${target}" in
15697 x86_64-*-*)
15698 case " ${CC} ${CFLAGS} " in
15699 *" -m32 "*)
15700 PLUGIN_HSA=0
15701 ;;
15702 *)
15703 tgt_plugin=hsa
15704 PLUGIN_HSA=$tgt
15705 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15706 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15707 PLUGIN_HSA_LIBS="-ldl"
15708
15709 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15710 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15711 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15712 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15713 PLUGIN_HSA_save_LIBS=$LIBS
15714 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15715
15716 PLUGIN_HSA=1
15717 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15718 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15719 LIBS=$PLUGIN_HSA_save_LIBS
15720 case $PLUGIN_HSA in
15721 hsa*)
15722 HSA_PLUGIN=0
15723 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5
15724 ;;
15725 esac
15726 ;;
15727 esac
15728 ;;
15729 *-*-*)
15730 PLUGIN_HSA=0
15731 ;;
15732 esac
15733 ;;
15734 *)
15735 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15736 ;;
15737 esac
15738 if test x"$tgt_plugin" = x; then
15739 # Not configuring libgomp for this offload target if we're not building
15740 # the corresponding offload plugin.
15741 continue
15742 elif test x"$offload_plugins" = x; then
15743 offload_plugins=$tgt_plugin
15744 offload_targets=$tgt
15745 else
15746 offload_plugins=$offload_plugins,$tgt_plugin
15747 offload_targets=$offload_targets,$tgt
15748 fi
15749 # Configure additional search paths.
15750 if test "$tgt_plugin" = hsa; then
15751 # Offloading compilation is all handled by the target compiler.
15752 :
15753 elif test x"$tgt_dir" != x; then
15754 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15755 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15756 else
15757 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15758 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15759 fi
15760 done
15761 fi
15762
15763 cat >>confdefs.h <<_ACEOF
15764 #define OFFLOAD_PLUGINS "$offload_plugins"
15765 _ACEOF
15766
15767 if test $PLUGIN_NVPTX = 1; then
15768 PLUGIN_NVPTX_TRUE=
15769 PLUGIN_NVPTX_FALSE='#'
15770 else
15771 PLUGIN_NVPTX_TRUE='#'
15772 PLUGIN_NVPTX_FALSE=
15773 fi
15774
15775
15776 cat >>confdefs.h <<_ACEOF
15777 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15778 _ACEOF
15779
15780
15781 cat >>confdefs.h <<_ACEOF
15782 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15783 _ACEOF
15784
15785 if test $PLUGIN_HSA = 1; then
15786 PLUGIN_HSA_TRUE=
15787 PLUGIN_HSA_FALSE='#'
15788 else
15789 PLUGIN_HSA_TRUE='#'
15790 PLUGIN_HSA_FALSE=
15791 fi
15792
15793
15794 cat >>confdefs.h <<_ACEOF
15795 #define PLUGIN_HSA $PLUGIN_HSA
15796 _ACEOF
15797
15798
15799 if test "$HSA_RUNTIME_LIB" != ""; then
15800 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15801 fi
15802
15803
15804 cat >>confdefs.h <<_ACEOF
15805 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15806 _ACEOF
15807
15808
15809
15810 # Check for functions needed.
15811 for ac_func in getloadavg clock_gettime strtoull
15812 do :
15813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15815 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15816 cat >>confdefs.h <<_ACEOF
15817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15818 _ACEOF
15819
15820 fi
15821 done
15822
15823 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15824 do :
15825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15826 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15827 eval as_val=\$$as_ac_var
15828 if test "x$as_val" = 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 int lk;
15892 int
15893 main ()
15894 {
15895 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15896 ;
15897 return 0;
15898 }
15899 _ACEOF
15900 if ac_fn_c_try_link "$LINENO"; then :
15901 save_LIBS="$LIBS"
15902 LIBS="-lpthread $LIBS"
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 #ifndef _GNU_SOURCE
15906 #define _GNU_SOURCE 1
15907 #endif
15908 #include <pthread.h>
15909 pthread_t th; void *status;
15910 int
15911 main ()
15912 {
15913 pthread_tryjoin_np (th, &status);
15914 ;
15915 return 0;
15916 }
15917 _ACEOF
15918 if ac_fn_c_try_link "$LINENO"; then :
15919 enable_linux_futex=yes
15920 else
15921 if test x$cross_compiling = xno; then
15922 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15923 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15925 If so, please configure with --disable-linux-futex" >&5
15926 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15927 If so, please configure with --disable-linux-futex" >&2;}
15928 fi
15929 fi
15930 enable_linux_futex=yes
15931 fi
15932 rm -f core conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
15934 LIBS="$save_LIBS"
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938 ;;
15939 yes)
15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15942 #include <sys/syscall.h>
15943 int lk;
15944 int
15945 main ()
15946 {
15947 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15948 ;
15949 return 0;
15950 }
15951 _ACEOF
15952 if ac_fn_c_try_link "$LINENO"; then :
15953
15954 else
15955 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext \
15958 conftest$ac_exeext conftest.$ac_ext
15959 ;;
15960 esac
15961 ;;
15962 *)
15963 enable_linux_futex=no
15964 ;;
15965 esac
15966 if test x$enable_linux_futex = xyes; then
15967 :
15968 fi
15969
15970
15971 # Check for pthread_{,attr_}[sg]etaffinity_np.
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15974 #define _GNU_SOURCE
15975 #include <pthread.h>
15976 int
15977 main ()
15978 {
15979 cpu_set_t cpuset;
15980 pthread_attr_t attr;
15981 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15982 if (CPU_ISSET (0, &cpuset))
15983 CPU_SET (1, &cpuset);
15984 else
15985 CPU_ZERO (&cpuset);
15986 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15987 pthread_attr_init (&attr);
15988 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15989 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15990 ;
15991 return 0;
15992 }
15993 _ACEOF
15994 if ac_fn_c_try_link "$LINENO"; then :
15995
15996 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15997
15998 fi
15999 rm -f core conftest.err conftest.$ac_objext \
16000 conftest$ac_exeext conftest.$ac_ext
16001
16002 # At least for glibc, clock_gettime is in librt. But don't pull that
16003 # in if it still doesn't give us the function we want.
16004 if test $ac_cv_func_clock_gettime = no; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16006 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16007 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16008 $as_echo_n "(cached) " >&6
16009 else
16010 ac_check_lib_save_LIBS=$LIBS
16011 LIBS="-lrt $LIBS"
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16014
16015 /* Override any GCC internal prototype to avoid an error.
16016 Use char because int might match the return type of a GCC
16017 builtin and then its argument prototype would still apply. */
16018 #ifdef __cplusplus
16019 extern "C"
16020 #endif
16021 char clock_gettime ();
16022 int
16023 main ()
16024 {
16025 return clock_gettime ();
16026 ;
16027 return 0;
16028 }
16029 _ACEOF
16030 if ac_fn_c_try_link "$LINENO"; then :
16031 ac_cv_lib_rt_clock_gettime=yes
16032 else
16033 ac_cv_lib_rt_clock_gettime=no
16034 fi
16035 rm -f core conftest.err conftest.$ac_objext \
16036 conftest$ac_exeext conftest.$ac_ext
16037 LIBS=$ac_check_lib_save_LIBS
16038 fi
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16040 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16041 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16042 LIBS="-lrt $LIBS"
16043
16044 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16045
16046 fi
16047
16048 fi
16049
16050 # Check for uname.
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 #include <string.h>
16054 #include <stdlib.h>
16055 #include <sys/utsname.h>
16056 int
16057 main ()
16058 {
16059 struct utsname buf;
16060 volatile size_t len = 0;
16061 if (!uname (buf))
16062 len = strlen (buf.nodename);
16063 ;
16064 return 0;
16065 }
16066 _ACEOF
16067 if ac_fn_c_try_compile "$LINENO"; then :
16068
16069 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
16070
16071 fi
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073
16074 # Check for gethostname.
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 #include <unistd.h>
16078 int
16079 main ()
16080 {
16081
16082 char buf[256];
16083 if (gethostname (buf, sizeof (buf) - 1) == 0)
16084 buf[255] = '\0';
16085
16086 ;
16087 return 0;
16088 }
16089 _ACEOF
16090 if ac_fn_c_try_compile "$LINENO"; then :
16091
16092 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
16093
16094 fi
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096
16097 # Check for getpid.
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16100 #include <unistd.h>
16101 int
16102 main ()
16103 {
16104 int pid = getpid ();
16105 ;
16106 return 0;
16107 }
16108 _ACEOF
16109 if ac_fn_c_try_compile "$LINENO"; then :
16110
16111 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
16112
16113 fi
16114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115
16116 # See if we support thread-local storage.
16117
16118
16119 # Check whether --enable-tls was given.
16120 if test "${enable_tls+set}" = set; then :
16121 enableval=$enable_tls;
16122 case "$enableval" in
16123 yes|no) ;;
16124 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16125 esac
16126
16127 else
16128 enable_tls=yes
16129 fi
16130
16131
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16133 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16134 if ${gcc_cv_have_tls+:} false; then :
16135 $as_echo_n "(cached) " >&6
16136 else
16137
16138 if test "$cross_compiling" = yes; then :
16139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16140 /* end confdefs.h. */
16141 __thread int a; int b; int main() { return a = b; }
16142 _ACEOF
16143 if ac_fn_c_try_link "$LINENO"; then :
16144 chktls_save_LDFLAGS="$LDFLAGS"
16145 case $host in
16146 *-*-linux*)
16147 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16148 ;;
16149 esac
16150 chktls_save_CFLAGS="$CFLAGS"
16151 CFLAGS="-fPIC $CFLAGS"
16152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 int f() { return 0; }
16155 _ACEOF
16156 if ac_fn_c_try_link "$LINENO"; then :
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16159 __thread int a; int b; int f() { return a = b; }
16160 _ACEOF
16161 if ac_fn_c_try_link "$LINENO"; then :
16162 gcc_cv_have_tls=yes
16163 else
16164 gcc_cv_have_tls=no
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16168 else
16169 gcc_cv_have_tls=yes
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
16173 CFLAGS="$chktls_save_CFLAGS"
16174 LDFLAGS="$chktls_save_LDFLAGS"
16175 else
16176 gcc_cv_have_tls=no
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180
16181
16182 else
16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185 __thread int a; int b; int main() { return a = b; }
16186 _ACEOF
16187 if ac_fn_c_try_run "$LINENO"; then :
16188 chktls_save_LDFLAGS="$LDFLAGS"
16189 LDFLAGS="-static $LDFLAGS"
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 int main() { return 0; }
16193 _ACEOF
16194 if ac_fn_c_try_link "$LINENO"; then :
16195 if test "$cross_compiling" = yes; then :
16196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16198 as_fn_error $? "cannot run test program while cross compiling
16199 See \`config.log' for more details" "$LINENO" 5; }
16200 else
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 __thread int a; int b; int main() { return a = b; }
16204 _ACEOF
16205 if ac_fn_c_try_run "$LINENO"; then :
16206 gcc_cv_have_tls=yes
16207 else
16208 gcc_cv_have_tls=no
16209 fi
16210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16211 conftest.$ac_objext conftest.beam conftest.$ac_ext
16212 fi
16213
16214 else
16215 gcc_cv_have_tls=yes
16216 fi
16217 rm -f core conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219 LDFLAGS="$chktls_save_LDFLAGS"
16220 if test $gcc_cv_have_tls = yes; then
16221 chktls_save_CFLAGS="$CFLAGS"
16222 thread_CFLAGS=failed
16223 for flag in '' '-pthread' '-lpthread'; do
16224 CFLAGS="$flag $chktls_save_CFLAGS"
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16227 #include <pthread.h>
16228 void *g(void *d) { return NULL; }
16229 int
16230 main ()
16231 {
16232 pthread_t t; pthread_create(&t,NULL,g,NULL);
16233 ;
16234 return 0;
16235 }
16236 _ACEOF
16237 if ac_fn_c_try_link "$LINENO"; then :
16238 thread_CFLAGS="$flag"
16239 fi
16240 rm -f core conftest.err conftest.$ac_objext \
16241 conftest$ac_exeext conftest.$ac_ext
16242 if test "X$thread_CFLAGS" != Xfailed; then
16243 break
16244 fi
16245 done
16246 CFLAGS="$chktls_save_CFLAGS"
16247 if test "X$thread_CFLAGS" != Xfailed; then
16248 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16249 if test "$cross_compiling" = yes; then :
16250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16252 as_fn_error $? "cannot run test program while cross compiling
16253 See \`config.log' for more details" "$LINENO" 5; }
16254 else
16255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h. */
16257 #include <pthread.h>
16258 __thread int a;
16259 static int *volatile a_in_other_thread;
16260 static void *
16261 thread_func (void *arg)
16262 {
16263 a_in_other_thread = &a;
16264 return (void *)0;
16265 }
16266 int
16267 main ()
16268 {
16269 pthread_t thread;
16270 void *thread_retval;
16271 int *volatile a_in_main_thread;
16272 a_in_main_thread = &a;
16273 if (pthread_create (&thread, (pthread_attr_t *)0,
16274 thread_func, (void *)0))
16275 return 0;
16276 if (pthread_join (thread, &thread_retval))
16277 return 0;
16278 return (a_in_other_thread == a_in_main_thread);
16279 ;
16280 return 0;
16281 }
16282 _ACEOF
16283 if ac_fn_c_try_run "$LINENO"; then :
16284 gcc_cv_have_tls=yes
16285 else
16286 gcc_cv_have_tls=no
16287 fi
16288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16289 conftest.$ac_objext conftest.beam conftest.$ac_ext
16290 fi
16291
16292 CFLAGS="$chktls_save_CFLAGS"
16293 fi
16294 fi
16295 else
16296 gcc_cv_have_tls=no
16297 fi
16298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16299 conftest.$ac_objext conftest.beam conftest.$ac_ext
16300 fi
16301
16302 fi
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16304 $as_echo "$gcc_cv_have_tls" >&6; }
16305 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16306
16307 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16308
16309 fi
16310
16311 # See if we have emulated thread-local storage.
16312
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16314 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
16315 if ${gcc_cv_use_emutls+:} false; then :
16316 $as_echo_n "(cached) " >&6
16317 else
16318
16319 gcc_cv_use_emutls=no
16320 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16321 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16323 (eval $ac_try) 2>&5
16324 ac_status=$?
16325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16326 test $ac_status = 0; }; }; then
16327 if grep __emutls_get_address conftest.s > /dev/null; then
16328 gcc_cv_use_emutls=yes
16329 fi
16330 fi
16331 rm -f conftest.*
16332
16333 fi
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16335 $as_echo "$gcc_cv_use_emutls" >&6; }
16336 if test "$gcc_cv_use_emutls" = "yes" ; then
16337
16338 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16339
16340 fi
16341
16342 # See what sort of export controls are available.
16343
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16345 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16346 if ${libgomp_cv_have_attribute_visibility+:} false; then :
16347 $as_echo_n "(cached) " >&6
16348 else
16349
16350 save_CFLAGS="$CFLAGS"
16351 CFLAGS="$CFLAGS -Werror"
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 void __attribute__((visibility("hidden"))) foo(void) { }
16355 int
16356 main ()
16357 {
16358
16359 ;
16360 return 0;
16361 }
16362 _ACEOF
16363 if ac_fn_c_try_compile "$LINENO"; then :
16364 libgomp_cv_have_attribute_visibility=yes
16365 else
16366 libgomp_cv_have_attribute_visibility=no
16367 fi
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 CFLAGS="$save_CFLAGS"
16370 fi
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16372 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16373 if test $libgomp_cv_have_attribute_visibility = yes; then
16374
16375 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16376
16377 fi
16378
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16380 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16381 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16382 $as_echo_n "(cached) " >&6
16383 else
16384
16385 save_CFLAGS="$CFLAGS"
16386 CFLAGS="$CFLAGS -Werror"
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 void __attribute__((dllexport)) foo(void) { }
16390 int
16391 main ()
16392 {
16393
16394 ;
16395 return 0;
16396 }
16397 _ACEOF
16398 if ac_fn_c_try_compile "$LINENO"; then :
16399 libgomp_cv_have_attribute_dllexport=yes
16400 else
16401 libgomp_cv_have_attribute_dllexport=no
16402 fi
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 CFLAGS="$save_CFLAGS"
16405 fi
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16407 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16408 if test $libgomp_cv_have_attribute_dllexport = yes; then
16409
16410 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16411
16412 fi
16413
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16415 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16416 if ${libgomp_cv_have_attribute_alias+:} false; then :
16417 $as_echo_n "(cached) " >&6
16418 else
16419
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422
16423 void foo(void) { }
16424 extern void bar(void) __attribute__((alias("foo")));
16425 int
16426 main ()
16427 {
16428 bar();
16429 ;
16430 return 0;
16431 }
16432 _ACEOF
16433 if ac_fn_c_try_link "$LINENO"; then :
16434 libgomp_cv_have_attribute_alias=yes
16435 else
16436 libgomp_cv_have_attribute_alias=no
16437 fi
16438 rm -f core conftest.err conftest.$ac_objext \
16439 conftest$ac_exeext conftest.$ac_ext
16440 fi
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16442 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16443 if test $libgomp_cv_have_attribute_alias = yes; then
16444
16445 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16446
16447 fi
16448
16449
16450 # Check whether --with-gnu-ld was given.
16451 if test "${with_gnu_ld+set}" = set; then :
16452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16453 else
16454 with_gnu_ld=no
16455 fi
16456
16457 ac_prog=ld
16458 if test "$GCC" = yes; then
16459 # Check if gcc -print-prog-name=ld gives a path.
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16461 $as_echo_n "checking for ld used by $CC... " >&6; }
16462 case $host in
16463 *-*-mingw*)
16464 # gcc leaves a trailing carriage return which upsets mingw
16465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16466 *)
16467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16468 esac
16469 case $ac_prog in
16470 # Accept absolute paths.
16471 [\\/]* | ?:[\\/]*)
16472 re_direlt='/[^/][^/]*/\.\./'
16473 # Canonicalize the pathname of ld
16474 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16475 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16476 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16477 done
16478 test -z "$LD" && LD="$ac_prog"
16479 ;;
16480 "")
16481 # If it fails, then pretend we aren't using GCC.
16482 ac_prog=ld
16483 ;;
16484 *)
16485 # If it is relative, then search for the first ld in PATH.
16486 with_gnu_ld=unknown
16487 ;;
16488 esac
16489 elif test "$with_gnu_ld" = yes; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16491 $as_echo_n "checking for GNU ld... " >&6; }
16492 else
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16494 $as_echo_n "checking for non-GNU ld... " >&6; }
16495 fi
16496 if ${lt_cv_path_LD+:} false; then :
16497 $as_echo_n "(cached) " >&6
16498 else
16499 if test -z "$LD"; then
16500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16501 for ac_dir in $PATH; do
16502 IFS="$lt_save_ifs"
16503 test -z "$ac_dir" && ac_dir=.
16504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16505 lt_cv_path_LD="$ac_dir/$ac_prog"
16506 # Check to see if the program is GNU ld. I'd rather use --version,
16507 # but apparently some variants of GNU ld only accept -v.
16508 # Break only if it was the GNU/non-GNU ld that we prefer.
16509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16510 *GNU* | *'with BFD'*)
16511 test "$with_gnu_ld" != no && break
16512 ;;
16513 *)
16514 test "$with_gnu_ld" != yes && break
16515 ;;
16516 esac
16517 fi
16518 done
16519 IFS="$lt_save_ifs"
16520 else
16521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16522 fi
16523 fi
16524
16525 LD="$lt_cv_path_LD"
16526 if test -n "$LD"; then
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16528 $as_echo "$LD" >&6; }
16529 else
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531 $as_echo "no" >&6; }
16532 fi
16533 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16535 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16536 if ${lt_cv_prog_gnu_ld+:} false; then :
16537 $as_echo_n "(cached) " >&6
16538 else
16539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16540 case `$LD -v 2>&1 </dev/null` in
16541 *GNU* | *'with BFD'*)
16542 lt_cv_prog_gnu_ld=yes
16543 ;;
16544 *)
16545 lt_cv_prog_gnu_ld=no
16546 ;;
16547 esac
16548 fi
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16550 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16551 with_gnu_ld=$lt_cv_prog_gnu_ld
16552
16553
16554
16555
16556
16557
16558
16559 # If we're not using GNU ld, then there's no point in even trying these
16560 # tests. Check for that first. We should have already tested for gld
16561 # by now (in libtool), but require it now just to be safe...
16562 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16563 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16564
16565
16566
16567 # The name set by libtool depends on the version of libtool. Shame on us
16568 # for depending on an impl detail, but c'est la vie. Older versions used
16569 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16570 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16571 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16572 # set (hence we're using an older libtool), then set it.
16573 if test x${with_gnu_ld+set} != xset; then
16574 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16575 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16576 with_gnu_ld=no
16577 else
16578 with_gnu_ld=$ac_cv_prog_gnu_ld
16579 fi
16580 fi
16581
16582 # Start by getting the version number. I think the libtool test already
16583 # does some of this, but throws away the result.
16584 libgomp_ld_is_gold=no
16585 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16586 libgomp_ld_is_gold=yes
16587 fi
16588
16589 ldver=`$LD --version 2>/dev/null |
16590 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16591
16592 libgomp_gnu_ld_version=`echo $ldver | \
16593 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16594
16595 # Set --gc-sections.
16596 if test "$with_gnu_ld" = "notbroken"; then
16597 # GNU ld it is! Joy and bunny rabbits!
16598
16599 # All these tests are for C++; save the language and the compiler flags.
16600 # Need to do this so that g++ won't try to link in libstdc++
16601 ac_test_CFLAGS="${CFLAGS+set}"
16602 ac_save_CFLAGS="$CFLAGS"
16603 CFLAGS='-x c++ -Wl,--gc-sections'
16604
16605 # Check for -Wl,--gc-sections
16606 # XXX This test is broken at the moment, as symbols required for linking
16607 # are now in libsupc++ (not built yet). In addition, this test has
16608 # cored on solaris in the past. In addition, --gc-sections doesn't
16609 # really work at the moment (keeps on discarding used sections, first
16610 # .eh_frame and now some of the glibc sections for iconv).
16611 # Bzzzzt. Thanks for playing, maybe next time.
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16613 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16614 if test "$cross_compiling" = yes; then :
16615 ac_sectionLDflags=yes
16616 else
16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16619
16620 int main(void)
16621 {
16622 try { throw 1; }
16623 catch (...) { };
16624 return 0;
16625 }
16626
16627 _ACEOF
16628 if ac_fn_c_try_run "$LINENO"; then :
16629 ac_sectionLDflags=yes
16630 else
16631 ac_sectionLDflags=no
16632 fi
16633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16634 conftest.$ac_objext conftest.beam conftest.$ac_ext
16635 fi
16636
16637 if test "$ac_test_CFLAGS" = set; then
16638 CFLAGS="$ac_save_CFLAGS"
16639 else
16640 # this is the suspicious part
16641 CFLAGS=''
16642 fi
16643 if test "$ac_sectionLDflags" = "yes"; then
16644 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16645 fi
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16647 $as_echo "$ac_sectionLDflags" >&6; }
16648 fi
16649
16650 # Set linker optimization flags.
16651 if test x"$with_gnu_ld" = x"yes"; then
16652 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16653 fi
16654
16655
16656
16657
16658
16659
16660 # Check whether --enable-symvers was given.
16661 if test "${enable_symvers+set}" = set; then :
16662 enableval=$enable_symvers;
16663 case "$enableval" in
16664 yes|no|gnu*|sun) ;;
16665 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16666 esac
16667
16668 else
16669 enable_symvers=yes
16670 fi
16671
16672
16673
16674 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16675 # don't know enough about $LD to do tricks...
16676
16677
16678 # Turn a 'yes' into a suitable default.
16679 if test x$enable_symvers = xyes ; then
16680 # FIXME The following test is too strict, in theory.
16681 if test $enable_shared = no || test "x$LD" = x; then
16682 enable_symvers=no
16683 else
16684 if test $with_gnu_ld = yes ; then
16685 enable_symvers=gnu
16686 else
16687 case ${target_os} in
16688 # Sun symbol versioning exists since Solaris 2.5.
16689 solaris2.[5-9]* | solaris2.1[0-9]*)
16690 enable_symvers=sun ;;
16691 *)
16692 enable_symvers=no ;;
16693 esac
16694 fi
16695 fi
16696 fi
16697
16698 # Check if 'sun' was requested on non-Solaris 2 platforms.
16699 if test x$enable_symvers = xsun ; then
16700 case ${target_os} in
16701 solaris2*)
16702 # All fine.
16703 ;;
16704 *)
16705 # Unlikely to work.
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16707 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16709 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16711 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16712 enable_symvers=no
16713 ;;
16714 esac
16715 fi
16716
16717 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16718 if test $enable_symvers != no; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16720 $as_echo_n "checking for shared libgcc... " >&6; }
16721 ac_save_CFLAGS="$CFLAGS"
16722 CFLAGS=' -lgcc_s'
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16725
16726 int
16727 main ()
16728 {
16729 return 0;
16730 ;
16731 return 0;
16732 }
16733 _ACEOF
16734 if ac_fn_c_try_link "$LINENO"; then :
16735 libgomp_shared_libgcc=yes
16736 else
16737 libgomp_shared_libgcc=no
16738 fi
16739 rm -f core conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16741 CFLAGS="$ac_save_CFLAGS"
16742 if test $libgomp_shared_libgcc = no; then
16743 cat > conftest.c <<EOF
16744 int main (void) { return 0; }
16745 EOF
16746 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16747 -shared -shared-libgcc -o conftest.so \
16748 conftest.c -v 2>&1 >/dev/null \
16749 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16750 rm -f conftest.c conftest.so
16751 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16752 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16755
16756 int
16757 main ()
16758 {
16759 return 0;
16760 ;
16761 return 0;
16762 }
16763 _ACEOF
16764 if ac_fn_c_try_link "$LINENO"; then :
16765 libgomp_shared_libgcc=yes
16766 fi
16767 rm -f core conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16769 CFLAGS="$ac_save_CFLAGS"
16770 fi
16771 fi
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16773 $as_echo "$libgomp_shared_libgcc" >&6; }
16774 fi
16775
16776 # For GNU ld, we need at least this version. The format is described in
16777 # LIBGOMP_CHECK_LINKER_FEATURES above.
16778 libgomp_min_gnu_ld_version=21400
16779 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16780
16781 # Check to see if unspecified "yes" value can win, given results above.
16782 # Change "yes" into either "no" or a style name.
16783 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16784 if test $with_gnu_ld = yes; then
16785 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16786 enable_symvers=gnu
16787 elif test $libgomp_ld_is_gold = yes ; then
16788 enable_symvers=gnu
16789 else
16790 # The right tools, the right setup, but too old. Fallbacks?
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16792 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16794 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16796 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16798 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16799 if test $libgomp_gnu_ld_version -ge 21200 ; then
16800 # Globbing fix is present, proper block support is not.
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16802 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16803 enable_symvers=no
16804 else
16805 # 2.11 or older.
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16807 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16808 enable_symvers=no
16809 fi
16810 fi
16811 elif test $enable_symvers = sun; then
16812 : All interesting versions of Sun ld support sun style symbol versioning.
16813 else
16814 # just fail for now
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16816 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16818 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16820 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16822 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16823 enable_symvers=no
16824 fi
16825 fi
16826
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16828 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16829 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16830 $as_echo_n "(cached) " >&6
16831 else
16832
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16835 void foo (void); __asm (".symver foo, bar@SYMVER");
16836 int
16837 main ()
16838 {
16839
16840 ;
16841 return 0;
16842 }
16843 _ACEOF
16844 if ac_fn_c_try_compile "$LINENO"; then :
16845 libgomp_cv_have_as_symver_directive=yes
16846 else
16847 libgomp_cv_have_as_symver_directive=no
16848 fi
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850 fi
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16852 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16853 if test $libgomp_cv_have_as_symver_directive = yes; then
16854
16855 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16856
16857 fi
16858
16859 if test $enable_symvers != no; then
16860 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16861 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16862 else
16863 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16864 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16865 fi
16866
16867 if test $enable_symvers = gnu; then
16868 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16869 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16870 else
16871 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16872 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16873 fi
16874
16875 if test $enable_symvers = sun; then
16876 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16877 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16878 else
16879 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16880 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16881 fi
16882
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16884 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16885
16886 if test $enable_symvers != no ; then
16887 case ${target_os} in
16888 # The Solaris 2 runtime linker doesn't support the GNU extension of
16889 # binding the same symbol to different versions
16890 solaris2*)
16891 ;;
16892 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16893 *)
16894
16895 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16896
16897 ;;
16898 esac
16899 fi
16900
16901
16902 if test $enable_symvers = gnu; then
16903
16904 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16905
16906 fi
16907
16908 # Get target configury.
16909 . ${srcdir}/configure.tgt
16910 CFLAGS="$save_CFLAGS $XCFLAGS"
16911
16912 # Check for __sync_val_compare_and_swap, but only after the target has
16913 # had a chance to set XCFLAGS.
16914
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16916 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16917 if ${libgomp_cv_have_sync_builtins+:} false; then :
16918 $as_echo_n "(cached) " >&6
16919 else
16920
16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922 /* end confdefs.h. */
16923
16924 int
16925 main ()
16926 {
16927 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16928 ;
16929 return 0;
16930 }
16931 _ACEOF
16932 if ac_fn_c_try_link "$LINENO"; then :
16933 libgomp_cv_have_sync_builtins=yes
16934 else
16935 libgomp_cv_have_sync_builtins=no
16936 fi
16937 rm -f core conftest.err conftest.$ac_objext \
16938 conftest$ac_exeext conftest.$ac_ext
16939 fi
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16941 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16942 if test $libgomp_cv_have_sync_builtins = yes; then
16943
16944 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16945
16946 fi
16947
16948 XCFLAGS="$XCFLAGS$XPCFLAGS"
16949
16950 # Add CET specific flags if CET is enabled
16951 # Check whether --enable-cet was given.
16952 if test "${enable_cet+set}" = set; then :
16953 enableval=$enable_cet;
16954 case "$enableval" in
16955 yes|no|auto) ;;
16956 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16957 esac
16958
16959 else
16960 enable_cet=no
16961 fi
16962
16963
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16965 $as_echo_n "checking for CET support... " >&6; }
16966
16967 case "$host" in
16968 i[34567]86-*-linux* | x86_64-*-linux*)
16969 case "$enable_cet" in
16970 auto)
16971 # Check if target supports multi-byte NOPs
16972 # and if assembler supports CET insn.
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975
16976 int
16977 main ()
16978 {
16979
16980 #if !defined(__SSE2__)
16981 #error target does not support multi-byte NOPs
16982 #else
16983 asm ("setssbsy");
16984 #endif
16985
16986 ;
16987 return 0;
16988 }
16989 _ACEOF
16990 if ac_fn_c_try_compile "$LINENO"; then :
16991 enable_cet=yes
16992 else
16993 enable_cet=no
16994 fi
16995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 ;;
16997 yes)
16998 # Check if assembler supports CET.
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17001
17002 int
17003 main ()
17004 {
17005 asm ("setssbsy");
17006 ;
17007 return 0;
17008 }
17009 _ACEOF
17010 if ac_fn_c_try_compile "$LINENO"; then :
17011
17012 else
17013 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17014 fi
17015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17016 ;;
17017 esac
17018 ;;
17019 *)
17020 enable_cet=no
17021 ;;
17022 esac
17023 if test x$enable_cet = xyes; then
17024 CET_FLAGS="-fcf-protection -mshstk"
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17026 $as_echo "yes" >&6; }
17027 else
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17029 $as_echo "no" >&6; }
17030 fi
17031
17032 XCFLAGS="$XCFLAGS $CET_FLAGS"
17033 FCFLAGS="$FCFLAGS $CET_FLAGS"
17034
17035
17036
17037
17038
17039 # Cleanup and exit.
17040 CFLAGS="$save_CFLAGS"
17041 cat >confcache <<\_ACEOF
17042 # This file is a shell script that caches the results of configure
17043 # tests run on this system so they can be shared between configure
17044 # scripts and configure runs, see configure's option --config-cache.
17045 # It is not useful on other systems. If it contains results you don't
17046 # want to keep, you may remove or edit it.
17047 #
17048 # config.status only pays attention to the cache file if you give it
17049 # the --recheck option to rerun configure.
17050 #
17051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17053 # following values.
17054
17055 _ACEOF
17056
17057 # The following way of writing the cache mishandles newlines in values,
17058 # but we know of no workaround that is simple, portable, and efficient.
17059 # So, we kill variables containing newlines.
17060 # Ultrix sh set writes to stderr and can't be redirected directly,
17061 # and sets the high bit in the cache file unless we assign to the vars.
17062 (
17063 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17064 eval ac_val=\$$ac_var
17065 case $ac_val in #(
17066 *${as_nl}*)
17067 case $ac_var in #(
17068 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17069 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17070 esac
17071 case $ac_var in #(
17072 _ | IFS | as_nl) ;; #(
17073 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17074 *) { eval $ac_var=; unset $ac_var;} ;;
17075 esac ;;
17076 esac
17077 done
17078
17079 (set) 2>&1 |
17080 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17081 *${as_nl}ac_space=\ *)
17082 # `set' does not quote correctly, so add quotes: double-quote
17083 # substitution turns \\\\ into \\, and sed turns \\ into \.
17084 sed -n \
17085 "s/'/'\\\\''/g;
17086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17087 ;; #(
17088 *)
17089 # `set' quotes correctly as required by POSIX, so do not add quotes.
17090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17091 ;;
17092 esac |
17093 sort
17094 ) |
17095 sed '
17096 /^ac_cv_env_/b end
17097 t clear
17098 :clear
17099 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17100 t end
17101 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17102 :end' >>confcache
17103 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17104 if test -w "$cache_file"; then
17105 if test "x$cache_file" != "x/dev/null"; then
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17107 $as_echo "$as_me: updating cache $cache_file" >&6;}
17108 if test ! -f "$cache_file" || test -h "$cache_file"; then
17109 cat confcache >"$cache_file"
17110 else
17111 case $cache_file in #(
17112 */* | ?:*)
17113 mv -f confcache "$cache_file"$$ &&
17114 mv -f "$cache_file"$$ "$cache_file" ;; #(
17115 *)
17116 mv -f confcache "$cache_file" ;;
17117 esac
17118 fi
17119 fi
17120 else
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17122 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17123 fi
17124 fi
17125 rm -f confcache
17126
17127 if test ${multilib} = yes; then
17128 multilib_arg="--enable-multilib"
17129 else
17130 multilib_arg=
17131 fi
17132
17133 # Set up the set of libraries that we need to link against for libgomp.
17134 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
17135 # which will force linkage against -lpthread (or equivalent for the system).
17136 # That's not 100% ideal, but about the best we can do easily.
17137 if test $enable_shared = yes; then
17138 link_gomp="-lgomp %{static: $LIBS}"
17139 else
17140 link_gomp="-lgomp $LIBS"
17141 fi
17142
17143
17144 if test "$ac_cv_fc_compiler_gnu" = yes; then
17145 USE_FORTRAN_TRUE=
17146 USE_FORTRAN_FALSE='#'
17147 else
17148 USE_FORTRAN_TRUE='#'
17149 USE_FORTRAN_FALSE=
17150 fi
17151
17152
17153 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
17154 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
17155 # the underscore here and update the PREREQ. If it doesn't, then we'll
17156 # need to copy this macro to our acinclude.m4.
17157 save_CFLAGS="$CFLAGS"
17158 for i in $config_path; do
17159 if test -f $srcdir/config/$i/omp-lock.h; then
17160 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
17161 break
17162 fi
17163 done
17164
17165 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
17166
17167 else
17168 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
17169 fi
17170
17171
17172 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
17173
17174 fi
17175
17176
17177 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
17178
17179 fi
17180
17181
17182 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
17183
17184 fi
17185
17186
17187 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
17188
17189 else
17190 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
17191 fi
17192
17193
17194 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
17195
17196 fi
17197
17198
17199 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
17200
17201 fi
17202
17203
17204 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
17205
17206 fi
17207
17208
17209
17210 # If the lock fits in an integer, then arrange for Fortran to use that
17211 # integer. If it doesn't, then arrange for Fortran to use a pointer.
17212 # Except that we don't have a way at present to multi-lib the installed
17213 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
17214 # actual target.
17215 OMP_LOCK_KIND=$OMP_LOCK_SIZE
17216 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
17217 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17218 OMP_LOCK_KIND=8
17219 fi
17220 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17221 OMP_NEST_LOCK_KIND=8
17222 fi
17223 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
17224 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
17225 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17226 OMP_LOCK_25_KIND=8
17227 fi
17228 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17229 OMP_NEST_LOCK_25_KIND=8
17230 fi
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244 CFLAGS="$save_CFLAGS"
17245
17246 # Determine what GCC version number to use in filesystem paths.
17247
17248 get_gcc_base_ver="cat"
17249
17250 # Check whether --with-gcc-major-version-only was given.
17251 if test "${with_gcc_major_version_only+set}" = set; then :
17252 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17253 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17254 fi
17255
17256 fi
17257
17258
17259
17260
17261 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17262
17263 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17264
17265 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17266
17267 cat >confcache <<\_ACEOF
17268 # This file is a shell script that caches the results of configure
17269 # tests run on this system so they can be shared between configure
17270 # scripts and configure runs, see configure's option --config-cache.
17271 # It is not useful on other systems. If it contains results you don't
17272 # want to keep, you may remove or edit it.
17273 #
17274 # config.status only pays attention to the cache file if you give it
17275 # the --recheck option to rerun configure.
17276 #
17277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17279 # following values.
17280
17281 _ACEOF
17282
17283 # The following way of writing the cache mishandles newlines in values,
17284 # but we know of no workaround that is simple, portable, and efficient.
17285 # So, we kill variables containing newlines.
17286 # Ultrix sh set writes to stderr and can't be redirected directly,
17287 # and sets the high bit in the cache file unless we assign to the vars.
17288 (
17289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17290 eval ac_val=\$$ac_var
17291 case $ac_val in #(
17292 *${as_nl}*)
17293 case $ac_var in #(
17294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17296 esac
17297 case $ac_var in #(
17298 _ | IFS | as_nl) ;; #(
17299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17300 *) { eval $ac_var=; unset $ac_var;} ;;
17301 esac ;;
17302 esac
17303 done
17304
17305 (set) 2>&1 |
17306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17307 *${as_nl}ac_space=\ *)
17308 # `set' does not quote correctly, so add quotes: double-quote
17309 # substitution turns \\\\ into \\, and sed turns \\ into \.
17310 sed -n \
17311 "s/'/'\\\\''/g;
17312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17313 ;; #(
17314 *)
17315 # `set' quotes correctly as required by POSIX, so do not add quotes.
17316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17317 ;;
17318 esac |
17319 sort
17320 ) |
17321 sed '
17322 /^ac_cv_env_/b end
17323 t clear
17324 :clear
17325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17326 t end
17327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17328 :end' >>confcache
17329 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17330 if test -w "$cache_file"; then
17331 if test "x$cache_file" != "x/dev/null"; then
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17333 $as_echo "$as_me: updating cache $cache_file" >&6;}
17334 if test ! -f "$cache_file" || test -h "$cache_file"; then
17335 cat confcache >"$cache_file"
17336 else
17337 case $cache_file in #(
17338 */* | ?:*)
17339 mv -f confcache "$cache_file"$$ &&
17340 mv -f "$cache_file"$$ "$cache_file" ;; #(
17341 *)
17342 mv -f confcache "$cache_file" ;;
17343 esac
17344 fi
17345 fi
17346 else
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17348 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17349 fi
17350 fi
17351 rm -f confcache
17352
17353 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17354 # Let make expand exec_prefix.
17355 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17356
17357 DEFS=-DHAVE_CONFIG_H
17358
17359 ac_libobjs=
17360 ac_ltlibobjs=
17361 U=
17362 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17363 # 1. Remove the extension, and $U if already installed.
17364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17367 # will be set to the directory where LIBOBJS objects are built.
17368 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17369 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17370 done
17371 LIBOBJS=$ac_libobjs
17372
17373 LTLIBOBJS=$ac_ltlibobjs
17374
17375
17376 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17377 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17379 fi
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17381 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17382 if test -n "$am_sleep_pid"; then
17383 # Hide warnings about reused PIDs.
17384 wait $am_sleep_pid 2>/dev/null
17385 fi
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17387 $as_echo "done" >&6; }
17388 if test -n "$EXEEXT"; then
17389 am__EXEEXT_TRUE=
17390 am__EXEEXT_FALSE='#'
17391 else
17392 am__EXEEXT_TRUE='#'
17393 am__EXEEXT_FALSE=
17394 fi
17395
17396 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17397 as_fn_error $? "conditional \"AMDEP\" was never defined.
17398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17399 fi
17400 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17401 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17403 fi
17404 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17405 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17407 fi
17408 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17409 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17411 fi
17412 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17413 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17415 fi
17416 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17417 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined.
17418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17419 fi
17420 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17421 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17423 fi
17424 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17425 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17427 fi
17428 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17429 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17431 fi
17432 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17433 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17435 fi
17436
17437 : "${CONFIG_STATUS=./config.status}"
17438 ac_write_fail=0
17439 ac_clean_files_save=$ac_clean_files
17440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17442 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17443 as_write_fail=0
17444 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17445 #! $SHELL
17446 # Generated by $as_me.
17447 # Run this file to recreate the current configuration.
17448 # Compiler output produced by configure, useful for debugging
17449 # configure, is in config.log if it exists.
17450
17451 debug=false
17452 ac_cs_recheck=false
17453 ac_cs_silent=false
17454
17455 SHELL=\${CONFIG_SHELL-$SHELL}
17456 export SHELL
17457 _ASEOF
17458 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17459 ## -------------------- ##
17460 ## M4sh Initialization. ##
17461 ## -------------------- ##
17462
17463 # Be more Bourne compatible
17464 DUALCASE=1; export DUALCASE # for MKS sh
17465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17466 emulate sh
17467 NULLCMD=:
17468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17469 # is contrary to our usage. Disable this feature.
17470 alias -g '${1+"$@"}'='"$@"'
17471 setopt NO_GLOB_SUBST
17472 else
17473 case `(set -o) 2>/dev/null` in #(
17474 *posix*) :
17475 set -o posix ;; #(
17476 *) :
17477 ;;
17478 esac
17479 fi
17480
17481
17482 as_nl='
17483 '
17484 export as_nl
17485 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17486 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17489 # Prefer a ksh shell builtin over an external printf program on Solaris,
17490 # but without wasting forks for bash or zsh.
17491 if test -z "$BASH_VERSION$ZSH_VERSION" \
17492 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17493 as_echo='print -r --'
17494 as_echo_n='print -rn --'
17495 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17496 as_echo='printf %s\n'
17497 as_echo_n='printf %s'
17498 else
17499 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17500 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17501 as_echo_n='/usr/ucb/echo -n'
17502 else
17503 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17504 as_echo_n_body='eval
17505 arg=$1;
17506 case $arg in #(
17507 *"$as_nl"*)
17508 expr "X$arg" : "X\\(.*\\)$as_nl";
17509 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17510 esac;
17511 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17512 '
17513 export as_echo_n_body
17514 as_echo_n='sh -c $as_echo_n_body as_echo'
17515 fi
17516 export as_echo_body
17517 as_echo='sh -c $as_echo_body as_echo'
17518 fi
17519
17520 # The user is always right.
17521 if test "${PATH_SEPARATOR+set}" != set; then
17522 PATH_SEPARATOR=:
17523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17524 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17525 PATH_SEPARATOR=';'
17526 }
17527 fi
17528
17529
17530 # IFS
17531 # We need space, tab and new line, in precisely that order. Quoting is
17532 # there to prevent editors from complaining about space-tab.
17533 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17534 # splitting by setting IFS to empty value.)
17535 IFS=" "" $as_nl"
17536
17537 # Find who we are. Look in the path if we contain no directory separator.
17538 as_myself=
17539 case $0 in #((
17540 *[\\/]* ) as_myself=$0 ;;
17541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17542 for as_dir in $PATH
17543 do
17544 IFS=$as_save_IFS
17545 test -z "$as_dir" && as_dir=.
17546 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17547 done
17548 IFS=$as_save_IFS
17549
17550 ;;
17551 esac
17552 # We did not find ourselves, most probably we were run as `sh COMMAND'
17553 # in which case we are not to be found in the path.
17554 if test "x$as_myself" = x; then
17555 as_myself=$0
17556 fi
17557 if test ! -f "$as_myself"; then
17558 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17559 exit 1
17560 fi
17561
17562 # Unset variables that we do not need and which cause bugs (e.g. in
17563 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17564 # suppresses any "Segmentation fault" message there. '((' could
17565 # trigger a bug in pdksh 5.2.14.
17566 for as_var in BASH_ENV ENV MAIL MAILPATH
17567 do eval test x\${$as_var+set} = xset \
17568 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17569 done
17570 PS1='$ '
17571 PS2='> '
17572 PS4='+ '
17573
17574 # NLS nuisances.
17575 LC_ALL=C
17576 export LC_ALL
17577 LANGUAGE=C
17578 export LANGUAGE
17579
17580 # CDPATH.
17581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17582
17583
17584 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17585 # ----------------------------------------
17586 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17587 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17588 # script with STATUS, using 1 if that was 0.
17589 as_fn_error ()
17590 {
17591 as_status=$1; test $as_status -eq 0 && as_status=1
17592 if test "$4"; then
17593 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17594 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17595 fi
17596 $as_echo "$as_me: error: $2" >&2
17597 as_fn_exit $as_status
17598 } # as_fn_error
17599
17600
17601 # as_fn_set_status STATUS
17602 # -----------------------
17603 # Set $? to STATUS, without forking.
17604 as_fn_set_status ()
17605 {
17606 return $1
17607 } # as_fn_set_status
17608
17609 # as_fn_exit STATUS
17610 # -----------------
17611 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17612 as_fn_exit ()
17613 {
17614 set +e
17615 as_fn_set_status $1
17616 exit $1
17617 } # as_fn_exit
17618
17619 # as_fn_unset VAR
17620 # ---------------
17621 # Portably unset VAR.
17622 as_fn_unset ()
17623 {
17624 { eval $1=; unset $1;}
17625 }
17626 as_unset=as_fn_unset
17627 # as_fn_append VAR VALUE
17628 # ----------------------
17629 # Append the text in VALUE to the end of the definition contained in VAR. Take
17630 # advantage of any shell optimizations that allow amortized linear growth over
17631 # repeated appends, instead of the typical quadratic growth present in naive
17632 # implementations.
17633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17634 eval 'as_fn_append ()
17635 {
17636 eval $1+=\$2
17637 }'
17638 else
17639 as_fn_append ()
17640 {
17641 eval $1=\$$1\$2
17642 }
17643 fi # as_fn_append
17644
17645 # as_fn_arith ARG...
17646 # ------------------
17647 # Perform arithmetic evaluation on the ARGs, and store the result in the
17648 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17649 # must be portable across $(()) and expr.
17650 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17651 eval 'as_fn_arith ()
17652 {
17653 as_val=$(( $* ))
17654 }'
17655 else
17656 as_fn_arith ()
17657 {
17658 as_val=`expr "$@" || test $? -eq 1`
17659 }
17660 fi # as_fn_arith
17661
17662
17663 if expr a : '\(a\)' >/dev/null 2>&1 &&
17664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17665 as_expr=expr
17666 else
17667 as_expr=false
17668 fi
17669
17670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17671 as_basename=basename
17672 else
17673 as_basename=false
17674 fi
17675
17676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17677 as_dirname=dirname
17678 else
17679 as_dirname=false
17680 fi
17681
17682 as_me=`$as_basename -- "$0" ||
17683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17684 X"$0" : 'X\(//\)$' \| \
17685 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17686 $as_echo X/"$0" |
17687 sed '/^.*\/\([^/][^/]*\)\/*$/{
17688 s//\1/
17689 q
17690 }
17691 /^X\/\(\/\/\)$/{
17692 s//\1/
17693 q
17694 }
17695 /^X\/\(\/\).*/{
17696 s//\1/
17697 q
17698 }
17699 s/.*/./; q'`
17700
17701 # Avoid depending upon Character Ranges.
17702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17705 as_cr_digits='0123456789'
17706 as_cr_alnum=$as_cr_Letters$as_cr_digits
17707
17708 ECHO_C= ECHO_N= ECHO_T=
17709 case `echo -n x` in #(((((
17710 -n*)
17711 case `echo 'xy\c'` in
17712 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17713 xy) ECHO_C='\c';;
17714 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17715 ECHO_T=' ';;
17716 esac;;
17717 *)
17718 ECHO_N='-n';;
17719 esac
17720
17721 rm -f conf$$ conf$$.exe conf$$.file
17722 if test -d conf$$.dir; then
17723 rm -f conf$$.dir/conf$$.file
17724 else
17725 rm -f conf$$.dir
17726 mkdir conf$$.dir 2>/dev/null
17727 fi
17728 if (echo >conf$$.file) 2>/dev/null; then
17729 if ln -s conf$$.file conf$$ 2>/dev/null; then
17730 as_ln_s='ln -s'
17731 # ... but there are two gotchas:
17732 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17733 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17734 # In both cases, we have to default to `cp -pR'.
17735 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17736 as_ln_s='cp -pR'
17737 elif ln conf$$.file conf$$ 2>/dev/null; then
17738 as_ln_s=ln
17739 else
17740 as_ln_s='cp -pR'
17741 fi
17742 else
17743 as_ln_s='cp -pR'
17744 fi
17745 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17746 rmdir conf$$.dir 2>/dev/null
17747
17748
17749 # as_fn_mkdir_p
17750 # -------------
17751 # Create "$as_dir" as a directory, including parents if necessary.
17752 as_fn_mkdir_p ()
17753 {
17754
17755 case $as_dir in #(
17756 -*) as_dir=./$as_dir;;
17757 esac
17758 test -d "$as_dir" || eval $as_mkdir_p || {
17759 as_dirs=
17760 while :; do
17761 case $as_dir in #(
17762 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17763 *) as_qdir=$as_dir;;
17764 esac
17765 as_dirs="'$as_qdir' $as_dirs"
17766 as_dir=`$as_dirname -- "$as_dir" ||
17767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17768 X"$as_dir" : 'X\(//\)[^/]' \| \
17769 X"$as_dir" : 'X\(//\)$' \| \
17770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17771 $as_echo X"$as_dir" |
17772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17773 s//\1/
17774 q
17775 }
17776 /^X\(\/\/\)[^/].*/{
17777 s//\1/
17778 q
17779 }
17780 /^X\(\/\/\)$/{
17781 s//\1/
17782 q
17783 }
17784 /^X\(\/\).*/{
17785 s//\1/
17786 q
17787 }
17788 s/.*/./; q'`
17789 test -d "$as_dir" && break
17790 done
17791 test -z "$as_dirs" || eval "mkdir $as_dirs"
17792 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17793
17794
17795 } # as_fn_mkdir_p
17796 if mkdir -p . 2>/dev/null; then
17797 as_mkdir_p='mkdir -p "$as_dir"'
17798 else
17799 test -d ./-p && rmdir ./-p
17800 as_mkdir_p=false
17801 fi
17802
17803
17804 # as_fn_executable_p FILE
17805 # -----------------------
17806 # Test if FILE is an executable regular file.
17807 as_fn_executable_p ()
17808 {
17809 test -f "$1" && test -x "$1"
17810 } # as_fn_executable_p
17811 as_test_x='test -x'
17812 as_executable_p=as_fn_executable_p
17813
17814 # Sed expression to map a string onto a valid CPP name.
17815 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17816
17817 # Sed expression to map a string onto a valid variable name.
17818 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17819
17820
17821 exec 6>&1
17822 ## ----------------------------------- ##
17823 ## Main body of $CONFIG_STATUS script. ##
17824 ## ----------------------------------- ##
17825 _ASEOF
17826 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17827
17828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17829 # Save the log message, to keep $0 and so on meaningful, and to
17830 # report actual input values of CONFIG_FILES etc. instead of their
17831 # values after options handling.
17832 ac_log="
17833 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17834 generated by GNU Autoconf 2.69. Invocation command line was
17835
17836 CONFIG_FILES = $CONFIG_FILES
17837 CONFIG_HEADERS = $CONFIG_HEADERS
17838 CONFIG_LINKS = $CONFIG_LINKS
17839 CONFIG_COMMANDS = $CONFIG_COMMANDS
17840 $ $0 $@
17841
17842 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17843 "
17844
17845 _ACEOF
17846
17847 case $ac_config_files in *"
17848 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17849 esac
17850
17851 case $ac_config_headers in *"
17852 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17853 esac
17854
17855
17856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17857 # Files that config.status was made for.
17858 config_files="$ac_config_files"
17859 config_headers="$ac_config_headers"
17860 config_commands="$ac_config_commands"
17861
17862 _ACEOF
17863
17864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17865 ac_cs_usage="\
17866 \`$as_me' instantiates files and other configuration actions
17867 from templates according to the current configuration. Unless the files
17868 and actions are specified as TAGs, all are instantiated by default.
17869
17870 Usage: $0 [OPTION]... [TAG]...
17871
17872 -h, --help print this help, then exit
17873 -V, --version print version number and configuration settings, then exit
17874 --config print configuration, then exit
17875 -q, --quiet, --silent
17876 do not print progress messages
17877 -d, --debug don't remove temporary files
17878 --recheck update $as_me by reconfiguring in the same conditions
17879 --file=FILE[:TEMPLATE]
17880 instantiate the configuration file FILE
17881 --header=FILE[:TEMPLATE]
17882 instantiate the configuration header FILE
17883
17884 Configuration files:
17885 $config_files
17886
17887 Configuration headers:
17888 $config_headers
17889
17890 Configuration commands:
17891 $config_commands
17892
17893 Report bugs to the package provider.
17894 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17895 General help using GNU software: <http://www.gnu.org/gethelp/>."
17896
17897 _ACEOF
17898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17899 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17900 ac_cs_version="\\
17901 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17902 configured by $0, generated by GNU Autoconf 2.69,
17903 with options \\"\$ac_cs_config\\"
17904
17905 Copyright (C) 2012 Free Software Foundation, Inc.
17906 This config.status script is free software; the Free Software Foundation
17907 gives unlimited permission to copy, distribute and modify it."
17908
17909 ac_pwd='$ac_pwd'
17910 srcdir='$srcdir'
17911 INSTALL='$INSTALL'
17912 MKDIR_P='$MKDIR_P'
17913 AWK='$AWK'
17914 test -n "\$AWK" || AWK=awk
17915 _ACEOF
17916
17917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17918 # The default lists apply if the user does not specify any file.
17919 ac_need_defaults=:
17920 while test $# != 0
17921 do
17922 case $1 in
17923 --*=?*)
17924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17926 ac_shift=:
17927 ;;
17928 --*=)
17929 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17930 ac_optarg=
17931 ac_shift=:
17932 ;;
17933 *)
17934 ac_option=$1
17935 ac_optarg=$2
17936 ac_shift=shift
17937 ;;
17938 esac
17939
17940 case $ac_option in
17941 # Handling of the options.
17942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17943 ac_cs_recheck=: ;;
17944 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17945 $as_echo "$ac_cs_version"; exit ;;
17946 --config | --confi | --conf | --con | --co | --c )
17947 $as_echo "$ac_cs_config"; exit ;;
17948 --debug | --debu | --deb | --de | --d | -d )
17949 debug=: ;;
17950 --file | --fil | --fi | --f )
17951 $ac_shift
17952 case $ac_optarg in
17953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17954 '') as_fn_error $? "missing file argument" ;;
17955 esac
17956 as_fn_append CONFIG_FILES " '$ac_optarg'"
17957 ac_need_defaults=false;;
17958 --header | --heade | --head | --hea )
17959 $ac_shift
17960 case $ac_optarg in
17961 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17962 esac
17963 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17964 ac_need_defaults=false;;
17965 --he | --h)
17966 # Conflict between --help and --header
17967 as_fn_error $? "ambiguous option: \`$1'
17968 Try \`$0 --help' for more information.";;
17969 --help | --hel | -h )
17970 $as_echo "$ac_cs_usage"; exit ;;
17971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17973 ac_cs_silent=: ;;
17974
17975 # This is an error.
17976 -*) as_fn_error $? "unrecognized option: \`$1'
17977 Try \`$0 --help' for more information." ;;
17978
17979 *) as_fn_append ac_config_targets " $1"
17980 ac_need_defaults=false ;;
17981
17982 esac
17983 shift
17984 done
17985
17986 ac_configure_extra_args=
17987
17988 if $ac_cs_silent; then
17989 exec 6>/dev/null
17990 ac_configure_extra_args="$ac_configure_extra_args --silent"
17991 fi
17992
17993 _ACEOF
17994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17995 if \$ac_cs_recheck; then
17996 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17997 shift
17998 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17999 CONFIG_SHELL='$SHELL'
18000 export CONFIG_SHELL
18001 exec "\$@"
18002 fi
18003
18004 _ACEOF
18005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18006 exec 5>>config.log
18007 {
18008 echo
18009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18010 ## Running $as_me. ##
18011 _ASBOX
18012 $as_echo "$ac_log"
18013 } >&5
18014
18015 _ACEOF
18016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18017 #
18018 # INIT-COMMANDS
18019 #
18020
18021 srcdir="$srcdir"
18022 host="$host"
18023 target="$target"
18024 with_multisubdir="$with_multisubdir"
18025 with_multisrctop="$with_multisrctop"
18026 with_target_subdir="$with_target_subdir"
18027 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18028 multi_basedir="$multi_basedir"
18029 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18030 CC="$CC"
18031 CXX="$CXX"
18032 GFORTRAN="$GFORTRAN"
18033 GDC="$GDC"
18034 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18035
18036
18037 # The HP-UX ksh and POSIX shell print the target directory to stdout
18038 # if CDPATH is set.
18039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18040
18041 sed_quote_subst='$sed_quote_subst'
18042 double_quote_subst='$double_quote_subst'
18043 delay_variable_subst='$delay_variable_subst'
18044 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18045 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18046 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18047 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18048 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18049 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18050 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18051 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18052 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18053 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18054 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18055 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18056 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18057 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18058 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18059 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18060 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18061 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18062 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18063 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18064 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18065 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18066 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18067 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18068 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18069 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18070 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18071 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18072 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18073 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18074 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18075 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18076 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18077 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18078 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18079 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18080 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18081 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18082 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18083 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18084 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18085 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18086 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18087 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18088 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18089 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18090 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18091 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18092 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"`'
18093 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18094 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18095 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18096 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18097 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18098 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18099 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18100 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18101 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18102 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18103 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18104 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18105 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18106 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18107 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18108 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18109 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18110 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18111 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18112 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18113 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18114 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18115 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18116 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18117 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18118 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18119 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18120 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18121 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18122 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18123 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18124 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18125 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18126 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18127 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18128 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18129 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18130 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18131 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18132 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18133 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18134 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18135 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18136 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18137 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18138 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18139 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18140 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18141 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18142 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18143 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18144 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18145 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18146 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18147 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18148 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18149 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18150 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18151 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18152 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18153 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18154 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18155 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18156 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18157 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18158 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18159 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18160 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18161 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18162 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18163 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18164 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18165 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18166 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18167 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18168 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18169 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18170 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
18171 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
18172 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
18173 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18174 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
18175 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
18176 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
18177 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
18178 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
18179 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
18180 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
18181 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
18182 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
18183 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18184 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18185 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
18186 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
18187 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
18188 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18189 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18190 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
18191 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18192 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
18193 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18194 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18195 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18196 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
18197 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
18198 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
18199 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
18200 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
18201 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18202 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18203 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18204 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18205 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18206 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18207 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18208 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18209 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18210 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18211 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18212 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18213 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18214 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18215 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18216 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18217 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18218 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18219
18220 LTCC='$LTCC'
18221 LTCFLAGS='$LTCFLAGS'
18222 compiler='$compiler_DEFAULT'
18223
18224 # A function that is used when there is no print builtin or printf.
18225 func_fallback_echo ()
18226 {
18227 eval 'cat <<_LTECHO_EOF
18228 \$1
18229 _LTECHO_EOF'
18230 }
18231
18232 # Quote evaled strings.
18233 for var in SHELL \
18234 ECHO \
18235 SED \
18236 GREP \
18237 EGREP \
18238 FGREP \
18239 LD \
18240 NM \
18241 LN_S \
18242 lt_SP2NL \
18243 lt_NL2SP \
18244 reload_flag \
18245 OBJDUMP \
18246 deplibs_check_method \
18247 file_magic_cmd \
18248 AR \
18249 AR_FLAGS \
18250 STRIP \
18251 RANLIB \
18252 CC \
18253 CFLAGS \
18254 compiler \
18255 lt_cv_sys_global_symbol_pipe \
18256 lt_cv_sys_global_symbol_to_cdecl \
18257 lt_cv_sys_global_symbol_to_c_name_address \
18258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18259 lt_prog_compiler_no_builtin_flag \
18260 lt_prog_compiler_wl \
18261 lt_prog_compiler_pic \
18262 lt_prog_compiler_static \
18263 lt_cv_prog_compiler_c_o \
18264 need_locks \
18265 DSYMUTIL \
18266 NMEDIT \
18267 LIPO \
18268 OTOOL \
18269 OTOOL64 \
18270 shrext_cmds \
18271 export_dynamic_flag_spec \
18272 whole_archive_flag_spec \
18273 compiler_needs_object \
18274 with_gnu_ld \
18275 allow_undefined_flag \
18276 no_undefined_flag \
18277 hardcode_libdir_flag_spec \
18278 hardcode_libdir_flag_spec_ld \
18279 hardcode_libdir_separator \
18280 fix_srcfile_path \
18281 exclude_expsyms \
18282 include_expsyms \
18283 file_list_spec \
18284 variables_saved_for_relink \
18285 libname_spec \
18286 library_names_spec \
18287 soname_spec \
18288 install_override_mode \
18289 finish_eval \
18290 old_striplib \
18291 striplib \
18292 compiler_lib_search_dirs \
18293 predep_objects \
18294 postdep_objects \
18295 predeps \
18296 postdeps \
18297 compiler_lib_search_path \
18298 LD_FC \
18299 reload_flag_FC \
18300 compiler_FC \
18301 lt_prog_compiler_no_builtin_flag_FC \
18302 lt_prog_compiler_wl_FC \
18303 lt_prog_compiler_pic_FC \
18304 lt_prog_compiler_static_FC \
18305 lt_cv_prog_compiler_c_o_FC \
18306 export_dynamic_flag_spec_FC \
18307 whole_archive_flag_spec_FC \
18308 compiler_needs_object_FC \
18309 with_gnu_ld_FC \
18310 allow_undefined_flag_FC \
18311 no_undefined_flag_FC \
18312 hardcode_libdir_flag_spec_FC \
18313 hardcode_libdir_flag_spec_ld_FC \
18314 hardcode_libdir_separator_FC \
18315 fix_srcfile_path_FC \
18316 exclude_expsyms_FC \
18317 include_expsyms_FC \
18318 file_list_spec_FC \
18319 compiler_lib_search_dirs_FC \
18320 predep_objects_FC \
18321 postdep_objects_FC \
18322 predeps_FC \
18323 postdeps_FC \
18324 compiler_lib_search_path_FC; do
18325 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18326 *[\\\\\\\`\\"\\\$]*)
18327 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18328 ;;
18329 *)
18330 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18331 ;;
18332 esac
18333 done
18334
18335 # Double-quote double-evaled strings.
18336 for var in reload_cmds \
18337 old_postinstall_cmds \
18338 old_postuninstall_cmds \
18339 old_archive_cmds \
18340 extract_expsyms_cmds \
18341 old_archive_from_new_cmds \
18342 old_archive_from_expsyms_cmds \
18343 archive_cmds \
18344 archive_expsym_cmds \
18345 module_cmds \
18346 module_expsym_cmds \
18347 export_symbols_cmds \
18348 prelink_cmds \
18349 postinstall_cmds \
18350 postuninstall_cmds \
18351 finish_cmds \
18352 sys_lib_search_path_spec \
18353 sys_lib_dlsearch_path_spec \
18354 reload_cmds_FC \
18355 old_archive_cmds_FC \
18356 old_archive_from_new_cmds_FC \
18357 old_archive_from_expsyms_cmds_FC \
18358 archive_cmds_FC \
18359 archive_expsym_cmds_FC \
18360 module_cmds_FC \
18361 module_expsym_cmds_FC \
18362 export_symbols_cmds_FC \
18363 prelink_cmds_FC; do
18364 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18365 *[\\\\\\\`\\"\\\$]*)
18366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18367 ;;
18368 *)
18369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18370 ;;
18371 esac
18372 done
18373
18374 ac_aux_dir='$ac_aux_dir'
18375 xsi_shell='$xsi_shell'
18376 lt_shell_append='$lt_shell_append'
18377
18378 # See if we are running on zsh, and set the options which allow our
18379 # commands through without removal of \ escapes INIT.
18380 if test -n "\${ZSH_VERSION+set}" ; then
18381 setopt NO_GLOB_SUBST
18382 fi
18383
18384
18385 PACKAGE='$PACKAGE'
18386 VERSION='$VERSION'
18387 TIMESTAMP='$TIMESTAMP'
18388 RM='$RM'
18389 ofile='$ofile'
18390
18391
18392
18393
18394
18395
18396 GCC="$GCC"
18397 CC="$CC"
18398 acx_cv_header_stdint="$acx_cv_header_stdint"
18399 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18400 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18401 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18402 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18403 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18404 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18405 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18406 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18407 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18408 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18409 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18410 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18411 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18412
18413
18414 _ACEOF
18415
18416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18417
18418 # Handling of arguments.
18419 for ac_config_target in $ac_config_targets
18420 do
18421 case $ac_config_target in
18422 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18423 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18424 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18425 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18426 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18427 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18428 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18429 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18430 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18432 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18433 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18434 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18435
18436 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18437 esac
18438 done
18439
18440
18441 # If the user did not use the arguments to specify the items to instantiate,
18442 # then the envvar interface is used. Set only those that are not.
18443 # We use the long form for the default assignment because of an extremely
18444 # bizarre bug on SunOS 4.1.3.
18445 if $ac_need_defaults; then
18446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18449 fi
18450
18451 # Have a temporary directory for convenience. Make it in the build tree
18452 # simply because there is no reason against having it here, and in addition,
18453 # creating and moving files from /tmp can sometimes cause problems.
18454 # Hook for its removal unless debugging.
18455 # Note that there is a small window in which the directory will not be cleaned:
18456 # after its creation but before its name has been assigned to `$tmp'.
18457 $debug ||
18458 {
18459 tmp= ac_tmp=
18460 trap 'exit_status=$?
18461 : "${ac_tmp:=$tmp}"
18462 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18463 ' 0
18464 trap 'as_fn_exit 1' 1 2 13 15
18465 }
18466 # Create a (secure) tmp directory for tmp files.
18467
18468 {
18469 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18470 test -d "$tmp"
18471 } ||
18472 {
18473 tmp=./conf$$-$RANDOM
18474 (umask 077 && mkdir "$tmp")
18475 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18476 ac_tmp=$tmp
18477
18478 # Set up the scripts for CONFIG_FILES section.
18479 # No need to generate them if there are no CONFIG_FILES.
18480 # This happens for instance with `./config.status config.h'.
18481 if test -n "$CONFIG_FILES"; then
18482
18483
18484 ac_cr=`echo X | tr X '\015'`
18485 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18486 # But we know of no other shell where ac_cr would be empty at this
18487 # point, so we can use a bashism as a fallback.
18488 if test "x$ac_cr" = x; then
18489 eval ac_cr=\$\'\\r\'
18490 fi
18491 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18492 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18493 ac_cs_awk_cr='\\r'
18494 else
18495 ac_cs_awk_cr=$ac_cr
18496 fi
18497
18498 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18499 _ACEOF
18500
18501
18502 {
18503 echo "cat >conf$$subs.awk <<_ACEOF" &&
18504 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18505 echo "_ACEOF"
18506 } >conf$$subs.sh ||
18507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18508 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18509 ac_delim='%!_!# '
18510 for ac_last_try in false false false false false :; do
18511 . ./conf$$subs.sh ||
18512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18513
18514 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18515 if test $ac_delim_n = $ac_delim_num; then
18516 break
18517 elif $ac_last_try; then
18518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18519 else
18520 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18521 fi
18522 done
18523 rm -f conf$$subs.sh
18524
18525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18526 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18527 _ACEOF
18528 sed -n '
18529 h
18530 s/^/S["/; s/!.*/"]=/
18531 p
18532 g
18533 s/^[^!]*!//
18534 :repl
18535 t repl
18536 s/'"$ac_delim"'$//
18537 t delim
18538 :nl
18539 h
18540 s/\(.\{148\}\)..*/\1/
18541 t more1
18542 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18543 p
18544 n
18545 b repl
18546 :more1
18547 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18548 p
18549 g
18550 s/.\{148\}//
18551 t nl
18552 :delim
18553 h
18554 s/\(.\{148\}\)..*/\1/
18555 t more2
18556 s/["\\]/\\&/g; s/^/"/; s/$/"/
18557 p
18558 b
18559 :more2
18560 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18561 p
18562 g
18563 s/.\{148\}//
18564 t delim
18565 ' <conf$$subs.awk | sed '
18566 /^[^""]/{
18567 N
18568 s/\n//
18569 }
18570 ' >>$CONFIG_STATUS || ac_write_fail=1
18571 rm -f conf$$subs.awk
18572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18573 _ACAWK
18574 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18575 for (key in S) S_is_set[key] = 1
18576 FS = "\a"
18577
18578 }
18579 {
18580 line = $ 0
18581 nfields = split(line, field, "@")
18582 substed = 0
18583 len = length(field[1])
18584 for (i = 2; i < nfields; i++) {
18585 key = field[i]
18586 keylen = length(key)
18587 if (S_is_set[key]) {
18588 value = S[key]
18589 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18590 len += length(value) + length(field[++i])
18591 substed = 1
18592 } else
18593 len += 1 + keylen
18594 }
18595
18596 print line
18597 }
18598
18599 _ACAWK
18600 _ACEOF
18601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18602 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18603 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18604 else
18605 cat
18606 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18607 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18608 _ACEOF
18609
18610 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18611 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18612 # trailing colons and then remove the whole line if VPATH becomes empty
18613 # (actually we leave an empty line to preserve line numbers).
18614 if test "x$srcdir" = x.; then
18615 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18616 h
18617 s///
18618 s/^/:/
18619 s/[ ]*$/:/
18620 s/:\$(srcdir):/:/g
18621 s/:\${srcdir}:/:/g
18622 s/:@srcdir@:/:/g
18623 s/^:*//
18624 s/:*$//
18625 x
18626 s/\(=[ ]*\).*/\1/
18627 G
18628 s/\n//
18629 s/^[^=]*=[ ]*$//
18630 }'
18631 fi
18632
18633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18634 fi # test -n "$CONFIG_FILES"
18635
18636 # Set up the scripts for CONFIG_HEADERS section.
18637 # No need to generate them if there are no CONFIG_HEADERS.
18638 # This happens for instance with `./config.status Makefile'.
18639 if test -n "$CONFIG_HEADERS"; then
18640 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18641 BEGIN {
18642 _ACEOF
18643
18644 # Transform confdefs.h into an awk script `defines.awk', embedded as
18645 # here-document in config.status, that substitutes the proper values into
18646 # config.h.in to produce config.h.
18647
18648 # Create a delimiter string that does not exist in confdefs.h, to ease
18649 # handling of long lines.
18650 ac_delim='%!_!# '
18651 for ac_last_try in false false :; do
18652 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18653 if test -z "$ac_tt"; then
18654 break
18655 elif $ac_last_try; then
18656 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18657 else
18658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18659 fi
18660 done
18661
18662 # For the awk script, D is an array of macro values keyed by name,
18663 # likewise P contains macro parameters if any. Preserve backslash
18664 # newline sequences.
18665
18666 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18667 sed -n '
18668 s/.\{148\}/&'"$ac_delim"'/g
18669 t rset
18670 :rset
18671 s/^[ ]*#[ ]*define[ ][ ]*/ /
18672 t def
18673 d
18674 :def
18675 s/\\$//
18676 t bsnl
18677 s/["\\]/\\&/g
18678 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18679 D["\1"]=" \3"/p
18680 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18681 d
18682 :bsnl
18683 s/["\\]/\\&/g
18684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18685 D["\1"]=" \3\\\\\\n"\\/p
18686 t cont
18687 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18688 t cont
18689 d
18690 :cont
18691 n
18692 s/.\{148\}/&'"$ac_delim"'/g
18693 t clear
18694 :clear
18695 s/\\$//
18696 t bsnlc
18697 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18698 d
18699 :bsnlc
18700 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18701 b cont
18702 ' <confdefs.h | sed '
18703 s/'"$ac_delim"'/"\\\
18704 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18705
18706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18707 for (key in D) D_is_set[key] = 1
18708 FS = "\a"
18709 }
18710 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18711 line = \$ 0
18712 split(line, arg, " ")
18713 if (arg[1] == "#") {
18714 defundef = arg[2]
18715 mac1 = arg[3]
18716 } else {
18717 defundef = substr(arg[1], 2)
18718 mac1 = arg[2]
18719 }
18720 split(mac1, mac2, "(") #)
18721 macro = mac2[1]
18722 prefix = substr(line, 1, index(line, defundef) - 1)
18723 if (D_is_set[macro]) {
18724 # Preserve the white space surrounding the "#".
18725 print prefix "define", macro P[macro] D[macro]
18726 next
18727 } else {
18728 # Replace #undef with comments. This is necessary, for example,
18729 # in the case of _POSIX_SOURCE, which is predefined and required
18730 # on some systems where configure will not decide to define it.
18731 if (defundef == "undef") {
18732 print "/*", prefix defundef, macro, "*/"
18733 next
18734 }
18735 }
18736 }
18737 { print }
18738 _ACAWK
18739 _ACEOF
18740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18741 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18742 fi # test -n "$CONFIG_HEADERS"
18743
18744
18745 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18746 shift
18747 for ac_tag
18748 do
18749 case $ac_tag in
18750 :[FHLC]) ac_mode=$ac_tag; continue;;
18751 esac
18752 case $ac_mode$ac_tag in
18753 :[FHL]*:*);;
18754 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18755 :[FH]-) ac_tag=-:-;;
18756 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18757 esac
18758 ac_save_IFS=$IFS
18759 IFS=:
18760 set x $ac_tag
18761 IFS=$ac_save_IFS
18762 shift
18763 ac_file=$1
18764 shift
18765
18766 case $ac_mode in
18767 :L) ac_source=$1;;
18768 :[FH])
18769 ac_file_inputs=
18770 for ac_f
18771 do
18772 case $ac_f in
18773 -) ac_f="$ac_tmp/stdin";;
18774 *) # Look for the file first in the build tree, then in the source tree
18775 # (if the path is not absolute). The absolute path cannot be DOS-style,
18776 # because $ac_f cannot contain `:'.
18777 test -f "$ac_f" ||
18778 case $ac_f in
18779 [\\/$]*) false;;
18780 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18781 esac ||
18782 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18783 esac
18784 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18785 as_fn_append ac_file_inputs " '$ac_f'"
18786 done
18787
18788 # Let's still pretend it is `configure' which instantiates (i.e., don't
18789 # use $as_me), people would be surprised to read:
18790 # /* config.h. Generated by config.status. */
18791 configure_input='Generated from '`
18792 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18793 `' by configure.'
18794 if test x"$ac_file" != x-; then
18795 configure_input="$ac_file. $configure_input"
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18797 $as_echo "$as_me: creating $ac_file" >&6;}
18798 fi
18799 # Neutralize special characters interpreted by sed in replacement strings.
18800 case $configure_input in #(
18801 *\&* | *\|* | *\\* )
18802 ac_sed_conf_input=`$as_echo "$configure_input" |
18803 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18804 *) ac_sed_conf_input=$configure_input;;
18805 esac
18806
18807 case $ac_tag in
18808 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18810 esac
18811 ;;
18812 esac
18813
18814 ac_dir=`$as_dirname -- "$ac_file" ||
18815 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18816 X"$ac_file" : 'X\(//\)[^/]' \| \
18817 X"$ac_file" : 'X\(//\)$' \| \
18818 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18819 $as_echo X"$ac_file" |
18820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18821 s//\1/
18822 q
18823 }
18824 /^X\(\/\/\)[^/].*/{
18825 s//\1/
18826 q
18827 }
18828 /^X\(\/\/\)$/{
18829 s//\1/
18830 q
18831 }
18832 /^X\(\/\).*/{
18833 s//\1/
18834 q
18835 }
18836 s/.*/./; q'`
18837 as_dir="$ac_dir"; as_fn_mkdir_p
18838 ac_builddir=.
18839
18840 case "$ac_dir" in
18841 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18842 *)
18843 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18844 # A ".." for each directory in $ac_dir_suffix.
18845 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18846 case $ac_top_builddir_sub in
18847 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18848 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18849 esac ;;
18850 esac
18851 ac_abs_top_builddir=$ac_pwd
18852 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18853 # for backward compatibility:
18854 ac_top_builddir=$ac_top_build_prefix
18855
18856 case $srcdir in
18857 .) # We are building in place.
18858 ac_srcdir=.
18859 ac_top_srcdir=$ac_top_builddir_sub
18860 ac_abs_top_srcdir=$ac_pwd ;;
18861 [\\/]* | ?:[\\/]* ) # Absolute name.
18862 ac_srcdir=$srcdir$ac_dir_suffix;
18863 ac_top_srcdir=$srcdir
18864 ac_abs_top_srcdir=$srcdir ;;
18865 *) # Relative name.
18866 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18867 ac_top_srcdir=$ac_top_build_prefix$srcdir
18868 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18869 esac
18870 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18871
18872
18873 case $ac_mode in
18874 :F)
18875 #
18876 # CONFIG_FILE
18877 #
18878
18879 case $INSTALL in
18880 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18881 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18882 esac
18883 ac_MKDIR_P=$MKDIR_P
18884 case $MKDIR_P in
18885 [\\/$]* | ?:[\\/]* ) ;;
18886 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18887 esac
18888 _ACEOF
18889
18890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18891 # If the template does not know about datarootdir, expand it.
18892 # FIXME: This hack should be removed a few years after 2.60.
18893 ac_datarootdir_hack=; ac_datarootdir_seen=
18894 ac_sed_dataroot='
18895 /datarootdir/ {
18896 p
18897 q
18898 }
18899 /@datadir@/p
18900 /@docdir@/p
18901 /@infodir@/p
18902 /@localedir@/p
18903 /@mandir@/p'
18904 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18905 *datarootdir*) ac_datarootdir_seen=yes;;
18906 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18908 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18909 _ACEOF
18910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18911 ac_datarootdir_hack='
18912 s&@datadir@&$datadir&g
18913 s&@docdir@&$docdir&g
18914 s&@infodir@&$infodir&g
18915 s&@localedir@&$localedir&g
18916 s&@mandir@&$mandir&g
18917 s&\\\${datarootdir}&$datarootdir&g' ;;
18918 esac
18919 _ACEOF
18920
18921 # Neutralize VPATH when `$srcdir' = `.'.
18922 # Shell code in configure.ac might set extrasub.
18923 # FIXME: do we really want to maintain this feature?
18924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18925 ac_sed_extra="$ac_vpsub
18926 $extrasub
18927 _ACEOF
18928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18929 :t
18930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18931 s|@configure_input@|$ac_sed_conf_input|;t t
18932 s&@top_builddir@&$ac_top_builddir_sub&;t t
18933 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18934 s&@srcdir@&$ac_srcdir&;t t
18935 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18936 s&@top_srcdir@&$ac_top_srcdir&;t t
18937 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18938 s&@builddir@&$ac_builddir&;t t
18939 s&@abs_builddir@&$ac_abs_builddir&;t t
18940 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18941 s&@INSTALL@&$ac_INSTALL&;t t
18942 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18943 $ac_datarootdir_hack
18944 "
18945 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18946 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18947
18948 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18949 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18950 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18951 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18953 which seems to be undefined. Please make sure it is defined" >&5
18954 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18955 which seems to be undefined. Please make sure it is defined" >&2;}
18956
18957 rm -f "$ac_tmp/stdin"
18958 case $ac_file in
18959 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18960 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18961 esac \
18962 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18963 ;;
18964 :H)
18965 #
18966 # CONFIG_HEADER
18967 #
18968 if test x"$ac_file" != x-; then
18969 {
18970 $as_echo "/* $configure_input */" \
18971 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18972 } >"$ac_tmp/config.h" \
18973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18974 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18976 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18977 else
18978 rm -f "$ac_file"
18979 mv "$ac_tmp/config.h" "$ac_file" \
18980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18981 fi
18982 else
18983 $as_echo "/* $configure_input */" \
18984 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18985 || as_fn_error $? "could not create -" "$LINENO" 5
18986 fi
18987 # Compute "$ac_file"'s index in $config_headers.
18988 _am_arg="$ac_file"
18989 _am_stamp_count=1
18990 for _am_header in $config_headers :; do
18991 case $_am_header in
18992 $_am_arg | $_am_arg:* )
18993 break ;;
18994 * )
18995 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18996 esac
18997 done
18998 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18999 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19000 X"$_am_arg" : 'X\(//\)[^/]' \| \
19001 X"$_am_arg" : 'X\(//\)$' \| \
19002 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19003 $as_echo X"$_am_arg" |
19004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19005 s//\1/
19006 q
19007 }
19008 /^X\(\/\/\)[^/].*/{
19009 s//\1/
19010 q
19011 }
19012 /^X\(\/\/\)$/{
19013 s//\1/
19014 q
19015 }
19016 /^X\(\/\).*/{
19017 s//\1/
19018 q
19019 }
19020 s/.*/./; q'`/stamp-h$_am_stamp_count
19021 ;;
19022
19023 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19024 $as_echo "$as_me: executing $ac_file commands" >&6;}
19025 ;;
19026 esac
19027
19028
19029 case $ac_file$ac_mode in
19030 "default-1":C)
19031 # Only add multilib support code if we just rebuilt the top-level
19032 # Makefile.
19033 case " $CONFIG_FILES " in
19034 *" Makefile "*)
19035 ac_file=Makefile . ${multi_basedir}/config-ml.in
19036 ;;
19037 esac ;;
19038 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19039 # Older Autoconf quotes --file arguments for eval, but not when files
19040 # are listed without --file. Let's play safe and only enable the eval
19041 # if we detect the quoting.
19042 case $CONFIG_FILES in
19043 *\'*) eval set x "$CONFIG_FILES" ;;
19044 *) set x $CONFIG_FILES ;;
19045 esac
19046 shift
19047 for mf
19048 do
19049 # Strip MF so we end up with the name of the file.
19050 mf=`echo "$mf" | sed -e 's/:.*$//'`
19051 # Check whether this is an Automake generated Makefile or not.
19052 # We used to match only the files named 'Makefile.in', but
19053 # some people rename them; so instead we look at the file content.
19054 # Grep'ing the first line is not enough: some people post-process
19055 # each Makefile.in and add a new line on top of each file to say so.
19056 # Grep'ing the whole file is not good either: AIX grep has a line
19057 # limit of 2048, but all sed's we know have understand at least 4000.
19058 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19059 dirpart=`$as_dirname -- "$mf" ||
19060 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19061 X"$mf" : 'X\(//\)[^/]' \| \
19062 X"$mf" : 'X\(//\)$' \| \
19063 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19064 $as_echo X"$mf" |
19065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19066 s//\1/
19067 q
19068 }
19069 /^X\(\/\/\)[^/].*/{
19070 s//\1/
19071 q
19072 }
19073 /^X\(\/\/\)$/{
19074 s//\1/
19075 q
19076 }
19077 /^X\(\/\).*/{
19078 s//\1/
19079 q
19080 }
19081 s/.*/./; q'`
19082 else
19083 continue
19084 fi
19085 # Extract the definition of DEPDIR, am__include, and am__quote
19086 # from the Makefile without running 'make'.
19087 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19088 test -z "$DEPDIR" && continue
19089 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19090 test -z "$am__include" && continue
19091 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19092 # Find all dependency output files, they are included files with
19093 # $(DEPDIR) in their names. We invoke sed twice because it is the
19094 # simplest approach to changing $(DEPDIR) to its actual value in the
19095 # expansion.
19096 for file in `sed -n "
19097 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19098 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19099 # Make sure the directory exists.
19100 test -f "$dirpart/$file" && continue
19101 fdir=`$as_dirname -- "$file" ||
19102 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19103 X"$file" : 'X\(//\)[^/]' \| \
19104 X"$file" : 'X\(//\)$' \| \
19105 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19106 $as_echo X"$file" |
19107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19108 s//\1/
19109 q
19110 }
19111 /^X\(\/\/\)[^/].*/{
19112 s//\1/
19113 q
19114 }
19115 /^X\(\/\/\)$/{
19116 s//\1/
19117 q
19118 }
19119 /^X\(\/\).*/{
19120 s//\1/
19121 q
19122 }
19123 s/.*/./; q'`
19124 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19125 # echo "creating $dirpart/$file"
19126 echo '# dummy' > "$dirpart/$file"
19127 done
19128 done
19129 }
19130 ;;
19131 "libtool":C)
19132
19133 # See if we are running on zsh, and set the options which allow our
19134 # commands through without removal of \ escapes.
19135 if test -n "${ZSH_VERSION+set}" ; then
19136 setopt NO_GLOB_SUBST
19137 fi
19138
19139 cfgfile="${ofile}T"
19140 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19141 $RM "$cfgfile"
19142
19143 cat <<_LT_EOF >> "$cfgfile"
19144 #! $SHELL
19145
19146 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19147 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19149 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19150 #
19151 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19152 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19153 # Written by Gordon Matzigkeit, 1996
19154 #
19155 # This file is part of GNU Libtool.
19156 #
19157 # GNU Libtool is free software; you can redistribute it and/or
19158 # modify it under the terms of the GNU General Public License as
19159 # published by the Free Software Foundation; either version 2 of
19160 # the License, or (at your option) any later version.
19161 #
19162 # As a special exception to the GNU General Public License,
19163 # if you distribute this file as part of a program or library that
19164 # is built using GNU Libtool, you may include this file under the
19165 # same distribution terms that you use for the rest of that program.
19166 #
19167 # GNU Libtool is distributed in the hope that it will be useful,
19168 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19169 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19170 # GNU General Public License for more details.
19171 #
19172 # You should have received a copy of the GNU General Public License
19173 # along with GNU Libtool; see the file COPYING. If not, a copy
19174 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19175 # obtained by writing to the Free Software Foundation, Inc.,
19176 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19177
19178
19179 # The names of the tagged configurations supported by this script.
19180 available_tags="FC "
19181
19182 # ### BEGIN LIBTOOL CONFIG
19183
19184 # Which release of libtool.m4 was used?
19185 macro_version=$macro_version
19186 macro_revision=$macro_revision
19187
19188 # Whether or not to build shared libraries.
19189 build_libtool_libs=$enable_shared
19190
19191 # Whether or not to build static libraries.
19192 build_old_libs=$enable_static
19193
19194 # What type of objects to build.
19195 pic_mode=$pic_mode
19196
19197 # Whether or not to optimize for fast installation.
19198 fast_install=$enable_fast_install
19199
19200 # Shell to use when invoking shell scripts.
19201 SHELL=$lt_SHELL
19202
19203 # An echo program that protects backslashes.
19204 ECHO=$lt_ECHO
19205
19206 # The host system.
19207 host_alias=$host_alias
19208 host=$host
19209 host_os=$host_os
19210
19211 # The build system.
19212 build_alias=$build_alias
19213 build=$build
19214 build_os=$build_os
19215
19216 # A sed program that does not truncate output.
19217 SED=$lt_SED
19218
19219 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19220 Xsed="\$SED -e 1s/^X//"
19221
19222 # A grep program that handles long lines.
19223 GREP=$lt_GREP
19224
19225 # An ERE matcher.
19226 EGREP=$lt_EGREP
19227
19228 # A literal string matcher.
19229 FGREP=$lt_FGREP
19230
19231 # A BSD- or MS-compatible name lister.
19232 NM=$lt_NM
19233
19234 # Whether we need soft or hard links.
19235 LN_S=$lt_LN_S
19236
19237 # What is the maximum length of a command?
19238 max_cmd_len=$max_cmd_len
19239
19240 # Object file suffix (normally "o").
19241 objext=$ac_objext
19242
19243 # Executable file suffix (normally "").
19244 exeext=$exeext
19245
19246 # whether the shell understands "unset".
19247 lt_unset=$lt_unset
19248
19249 # turn spaces into newlines.
19250 SP2NL=$lt_lt_SP2NL
19251
19252 # turn newlines into spaces.
19253 NL2SP=$lt_lt_NL2SP
19254
19255 # An object symbol dumper.
19256 OBJDUMP=$lt_OBJDUMP
19257
19258 # Method to check whether dependent libraries are shared objects.
19259 deplibs_check_method=$lt_deplibs_check_method
19260
19261 # Command to use when deplibs_check_method == "file_magic".
19262 file_magic_cmd=$lt_file_magic_cmd
19263
19264 # The archiver.
19265 AR=$lt_AR
19266 AR_FLAGS=$lt_AR_FLAGS
19267
19268 # A symbol stripping program.
19269 STRIP=$lt_STRIP
19270
19271 # Commands used to install an old-style archive.
19272 RANLIB=$lt_RANLIB
19273 old_postinstall_cmds=$lt_old_postinstall_cmds
19274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19275
19276 # Whether to use a lock for old archive extraction.
19277 lock_old_archive_extraction=$lock_old_archive_extraction
19278
19279 # A C compiler.
19280 LTCC=$lt_CC
19281
19282 # LTCC compiler flags.
19283 LTCFLAGS=$lt_CFLAGS
19284
19285 # Take the output of nm and produce a listing of raw symbols and C names.
19286 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19287
19288 # Transform the output of nm in a proper C declaration.
19289 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19290
19291 # Transform the output of nm in a C name address pair.
19292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19293
19294 # Transform the output of nm in a C name address pair when lib prefix is needed.
19295 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19296
19297 # The name of the directory that contains temporary libtool files.
19298 objdir=$objdir
19299
19300 # Used to examine libraries when file_magic_cmd begins with "file".
19301 MAGIC_CMD=$MAGIC_CMD
19302
19303 # Must we lock files when doing compilation?
19304 need_locks=$lt_need_locks
19305
19306 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19307 DSYMUTIL=$lt_DSYMUTIL
19308
19309 # Tool to change global to local symbols on Mac OS X.
19310 NMEDIT=$lt_NMEDIT
19311
19312 # Tool to manipulate fat objects and archives on Mac OS X.
19313 LIPO=$lt_LIPO
19314
19315 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19316 OTOOL=$lt_OTOOL
19317
19318 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19319 OTOOL64=$lt_OTOOL64
19320
19321 # Old archive suffix (normally "a").
19322 libext=$libext
19323
19324 # Shared library suffix (normally ".so").
19325 shrext_cmds=$lt_shrext_cmds
19326
19327 # The commands to extract the exported symbol list from a shared archive.
19328 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19329
19330 # Variables whose values should be saved in libtool wrapper scripts and
19331 # restored at link time.
19332 variables_saved_for_relink=$lt_variables_saved_for_relink
19333
19334 # Do we need the "lib" prefix for modules?
19335 need_lib_prefix=$need_lib_prefix
19336
19337 # Do we need a version for libraries?
19338 need_version=$need_version
19339
19340 # Library versioning type.
19341 version_type=$version_type
19342
19343 # Shared library runtime path variable.
19344 runpath_var=$runpath_var
19345
19346 # Shared library path variable.
19347 shlibpath_var=$shlibpath_var
19348
19349 # Is shlibpath searched before the hard-coded library search path?
19350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19351
19352 # Format of library name prefix.
19353 libname_spec=$lt_libname_spec
19354
19355 # List of archive names. First name is the real one, the rest are links.
19356 # The last name is the one that the linker finds with -lNAME
19357 library_names_spec=$lt_library_names_spec
19358
19359 # The coded name of the library, if different from the real name.
19360 soname_spec=$lt_soname_spec
19361
19362 # Permission mode override for installation of shared libraries.
19363 install_override_mode=$lt_install_override_mode
19364
19365 # Command to use after installation of a shared archive.
19366 postinstall_cmds=$lt_postinstall_cmds
19367
19368 # Command to use after uninstallation of a shared archive.
19369 postuninstall_cmds=$lt_postuninstall_cmds
19370
19371 # Commands used to finish a libtool library installation in a directory.
19372 finish_cmds=$lt_finish_cmds
19373
19374 # As "finish_cmds", except a single script fragment to be evaled but
19375 # not shown.
19376 finish_eval=$lt_finish_eval
19377
19378 # Whether we should hardcode library paths into libraries.
19379 hardcode_into_libs=$hardcode_into_libs
19380
19381 # Compile-time system search path for libraries.
19382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19383
19384 # Run-time system search path for libraries.
19385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19386
19387 # Whether dlopen is supported.
19388 dlopen_support=$enable_dlopen
19389
19390 # Whether dlopen of programs is supported.
19391 dlopen_self=$enable_dlopen_self
19392
19393 # Whether dlopen of statically linked programs is supported.
19394 dlopen_self_static=$enable_dlopen_self_static
19395
19396 # Commands to strip libraries.
19397 old_striplib=$lt_old_striplib
19398 striplib=$lt_striplib
19399
19400
19401 # The linker used to build libraries.
19402 LD=$lt_LD
19403
19404 # How to create reloadable object files.
19405 reload_flag=$lt_reload_flag
19406 reload_cmds=$lt_reload_cmds
19407
19408 # Commands used to build an old-style archive.
19409 old_archive_cmds=$lt_old_archive_cmds
19410
19411 # A language specific compiler.
19412 CC=$lt_compiler
19413
19414 # Is the compiler the GNU compiler?
19415 with_gcc=$GCC
19416
19417 # Compiler flag to turn off builtin functions.
19418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19419
19420 # How to pass a linker flag through the compiler.
19421 wl=$lt_lt_prog_compiler_wl
19422
19423 # Additional compiler flags for building library objects.
19424 pic_flag=$lt_lt_prog_compiler_pic
19425
19426 # Compiler flag to prevent dynamic linking.
19427 link_static_flag=$lt_lt_prog_compiler_static
19428
19429 # Does compiler simultaneously support -c and -o options?
19430 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19431
19432 # Whether or not to add -lc for building shared libraries.
19433 build_libtool_need_lc=$archive_cmds_need_lc
19434
19435 # Whether or not to disallow shared libs when runtime libs are static.
19436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19437
19438 # Compiler flag to allow reflexive dlopens.
19439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19440
19441 # Compiler flag to generate shared objects directly from archives.
19442 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19443
19444 # Whether the compiler copes with passing no objects directly.
19445 compiler_needs_object=$lt_compiler_needs_object
19446
19447 # Create an old-style archive from a shared archive.
19448 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19449
19450 # Create a temporary old-style archive to link instead of a shared archive.
19451 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19452
19453 # Commands used to build a shared archive.
19454 archive_cmds=$lt_archive_cmds
19455 archive_expsym_cmds=$lt_archive_expsym_cmds
19456
19457 # Commands used to build a loadable module if different from building
19458 # a shared archive.
19459 module_cmds=$lt_module_cmds
19460 module_expsym_cmds=$lt_module_expsym_cmds
19461
19462 # Whether we are building with GNU ld or not.
19463 with_gnu_ld=$lt_with_gnu_ld
19464
19465 # Flag that allows shared libraries with undefined symbols to be built.
19466 allow_undefined_flag=$lt_allow_undefined_flag
19467
19468 # Flag that enforces no undefined symbols.
19469 no_undefined_flag=$lt_no_undefined_flag
19470
19471 # Flag to hardcode \$libdir into a binary during linking.
19472 # This must work even if \$libdir does not exist
19473 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19474
19475 # If ld is used when linking, flag to hardcode \$libdir into a binary
19476 # during linking. This must work even if \$libdir does not exist.
19477 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19478
19479 # Whether we need a single "-rpath" flag with a separated argument.
19480 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19481
19482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19483 # DIR into the resulting binary.
19484 hardcode_direct=$hardcode_direct
19485
19486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19487 # DIR into the resulting binary and the resulting library dependency is
19488 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19489 # library is relocated.
19490 hardcode_direct_absolute=$hardcode_direct_absolute
19491
19492 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19493 # into the resulting binary.
19494 hardcode_minus_L=$hardcode_minus_L
19495
19496 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19497 # into the resulting binary.
19498 hardcode_shlibpath_var=$hardcode_shlibpath_var
19499
19500 # Set to "yes" if building a shared library automatically hardcodes DIR
19501 # into the library and all subsequent libraries and executables linked
19502 # against it.
19503 hardcode_automatic=$hardcode_automatic
19504
19505 # Set to yes if linker adds runtime paths of dependent libraries
19506 # to runtime path list.
19507 inherit_rpath=$inherit_rpath
19508
19509 # Whether libtool must link a program against all its dependency libraries.
19510 link_all_deplibs=$link_all_deplibs
19511
19512 # Fix the shell variable \$srcfile for the compiler.
19513 fix_srcfile_path=$lt_fix_srcfile_path
19514
19515 # Set to "yes" if exported symbols are required.
19516 always_export_symbols=$always_export_symbols
19517
19518 # The commands to list exported symbols.
19519 export_symbols_cmds=$lt_export_symbols_cmds
19520
19521 # Symbols that should not be listed in the preloaded symbols.
19522 exclude_expsyms=$lt_exclude_expsyms
19523
19524 # Symbols that must always be exported.
19525 include_expsyms=$lt_include_expsyms
19526
19527 # Commands necessary for linking programs (against libraries) with templates.
19528 prelink_cmds=$lt_prelink_cmds
19529
19530 # Specify filename containing input files.
19531 file_list_spec=$lt_file_list_spec
19532
19533 # How to hardcode a shared library path into an executable.
19534 hardcode_action=$hardcode_action
19535
19536 # The directories searched by this compiler when creating a shared library.
19537 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19538
19539 # Dependencies to place before and after the objects being linked to
19540 # create a shared library.
19541 predep_objects=$lt_predep_objects
19542 postdep_objects=$lt_postdep_objects
19543 predeps=$lt_predeps
19544 postdeps=$lt_postdeps
19545
19546 # The library search path used internally by the compiler when linking
19547 # a shared library.
19548 compiler_lib_search_path=$lt_compiler_lib_search_path
19549
19550 # ### END LIBTOOL CONFIG
19551
19552 _LT_EOF
19553
19554 case $host_os in
19555 aix3*)
19556 cat <<\_LT_EOF >> "$cfgfile"
19557 # AIX sometimes has problems with the GCC collect2 program. For some
19558 # reason, if we set the COLLECT_NAMES environment variable, the problems
19559 # vanish in a puff of smoke.
19560 if test "X${COLLECT_NAMES+set}" != Xset; then
19561 COLLECT_NAMES=
19562 export COLLECT_NAMES
19563 fi
19564 _LT_EOF
19565 ;;
19566 esac
19567
19568
19569 ltmain="$ac_aux_dir/ltmain.sh"
19570
19571
19572 # We use sed instead of cat because bash on DJGPP gets confused if
19573 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19574 # text mode, it properly converts lines to CR/LF. This bash problem
19575 # is reportedly fixed, but why not run on old versions too?
19576 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19577 || (rm -f "$cfgfile"; exit 1)
19578
19579 case $xsi_shell in
19580 yes)
19581 cat << \_LT_EOF >> "$cfgfile"
19582
19583 # func_dirname file append nondir_replacement
19584 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19585 # otherwise set result to NONDIR_REPLACEMENT.
19586 func_dirname ()
19587 {
19588 case ${1} in
19589 */*) func_dirname_result="${1%/*}${2}" ;;
19590 * ) func_dirname_result="${3}" ;;
19591 esac
19592 }
19593
19594 # func_basename file
19595 func_basename ()
19596 {
19597 func_basename_result="${1##*/}"
19598 }
19599
19600 # func_dirname_and_basename file append nondir_replacement
19601 # perform func_basename and func_dirname in a single function
19602 # call:
19603 # dirname: Compute the dirname of FILE. If nonempty,
19604 # add APPEND to the result, otherwise set result
19605 # to NONDIR_REPLACEMENT.
19606 # value returned in "$func_dirname_result"
19607 # basename: Compute filename of FILE.
19608 # value retuned in "$func_basename_result"
19609 # Implementation must be kept synchronized with func_dirname
19610 # and func_basename. For efficiency, we do not delegate to
19611 # those functions but instead duplicate the functionality here.
19612 func_dirname_and_basename ()
19613 {
19614 case ${1} in
19615 */*) func_dirname_result="${1%/*}${2}" ;;
19616 * ) func_dirname_result="${3}" ;;
19617 esac
19618 func_basename_result="${1##*/}"
19619 }
19620
19621 # func_stripname prefix suffix name
19622 # strip PREFIX and SUFFIX off of NAME.
19623 # PREFIX and SUFFIX must not contain globbing or regex special
19624 # characters, hashes, percent signs, but SUFFIX may contain a leading
19625 # dot (in which case that matches only a dot).
19626 func_stripname ()
19627 {
19628 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19629 # positional parameters, so assign one to ordinary parameter first.
19630 func_stripname_result=${3}
19631 func_stripname_result=${func_stripname_result#"${1}"}
19632 func_stripname_result=${func_stripname_result%"${2}"}
19633 }
19634
19635 # func_opt_split
19636 func_opt_split ()
19637 {
19638 func_opt_split_opt=${1%%=*}
19639 func_opt_split_arg=${1#*=}
19640 }
19641
19642 # func_lo2o object
19643 func_lo2o ()
19644 {
19645 case ${1} in
19646 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19647 *) func_lo2o_result=${1} ;;
19648 esac
19649 }
19650
19651 # func_xform libobj-or-source
19652 func_xform ()
19653 {
19654 func_xform_result=${1%.*}.lo
19655 }
19656
19657 # func_arith arithmetic-term...
19658 func_arith ()
19659 {
19660 func_arith_result=$(( $* ))
19661 }
19662
19663 # func_len string
19664 # STRING may not start with a hyphen.
19665 func_len ()
19666 {
19667 func_len_result=${#1}
19668 }
19669
19670 _LT_EOF
19671 ;;
19672 *) # Bourne compatible functions.
19673 cat << \_LT_EOF >> "$cfgfile"
19674
19675 # func_dirname file append nondir_replacement
19676 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19677 # otherwise set result to NONDIR_REPLACEMENT.
19678 func_dirname ()
19679 {
19680 # Extract subdirectory from the argument.
19681 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19682 if test "X$func_dirname_result" = "X${1}"; then
19683 func_dirname_result="${3}"
19684 else
19685 func_dirname_result="$func_dirname_result${2}"
19686 fi
19687 }
19688
19689 # func_basename file
19690 func_basename ()
19691 {
19692 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19693 }
19694
19695
19696 # func_stripname prefix suffix name
19697 # strip PREFIX and SUFFIX off of NAME.
19698 # PREFIX and SUFFIX must not contain globbing or regex special
19699 # characters, hashes, percent signs, but SUFFIX may contain a leading
19700 # dot (in which case that matches only a dot).
19701 # func_strip_suffix prefix name
19702 func_stripname ()
19703 {
19704 case ${2} in
19705 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19706 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19707 esac
19708 }
19709
19710 # sed scripts:
19711 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19712 my_sed_long_arg='1s/^-[^=]*=//'
19713
19714 # func_opt_split
19715 func_opt_split ()
19716 {
19717 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19718 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19719 }
19720
19721 # func_lo2o object
19722 func_lo2o ()
19723 {
19724 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19725 }
19726
19727 # func_xform libobj-or-source
19728 func_xform ()
19729 {
19730 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19731 }
19732
19733 # func_arith arithmetic-term...
19734 func_arith ()
19735 {
19736 func_arith_result=`expr "$@"`
19737 }
19738
19739 # func_len string
19740 # STRING may not start with a hyphen.
19741 func_len ()
19742 {
19743 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19744 }
19745
19746 _LT_EOF
19747 esac
19748
19749 case $lt_shell_append in
19750 yes)
19751 cat << \_LT_EOF >> "$cfgfile"
19752
19753 # func_append var value
19754 # Append VALUE to the end of shell variable VAR.
19755 func_append ()
19756 {
19757 eval "$1+=\$2"
19758 }
19759 _LT_EOF
19760 ;;
19761 *)
19762 cat << \_LT_EOF >> "$cfgfile"
19763
19764 # func_append var value
19765 # Append VALUE to the end of shell variable VAR.
19766 func_append ()
19767 {
19768 eval "$1=\$$1\$2"
19769 }
19770
19771 _LT_EOF
19772 ;;
19773 esac
19774
19775
19776 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19777 || (rm -f "$cfgfile"; exit 1)
19778
19779 mv -f "$cfgfile" "$ofile" ||
19780 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19781 chmod +x "$ofile"
19782
19783
19784 cat <<_LT_EOF >> "$ofile"
19785
19786 # ### BEGIN LIBTOOL TAG CONFIG: FC
19787
19788 # The linker used to build libraries.
19789 LD=$lt_LD_FC
19790
19791 # How to create reloadable object files.
19792 reload_flag=$lt_reload_flag_FC
19793 reload_cmds=$lt_reload_cmds_FC
19794
19795 # Commands used to build an old-style archive.
19796 old_archive_cmds=$lt_old_archive_cmds_FC
19797
19798 # A language specific compiler.
19799 CC=$lt_compiler_FC
19800
19801 # Is the compiler the GNU compiler?
19802 with_gcc=$GCC_FC
19803
19804 # Compiler flag to turn off builtin functions.
19805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19806
19807 # How to pass a linker flag through the compiler.
19808 wl=$lt_lt_prog_compiler_wl_FC
19809
19810 # Additional compiler flags for building library objects.
19811 pic_flag=$lt_lt_prog_compiler_pic_FC
19812
19813 # Compiler flag to prevent dynamic linking.
19814 link_static_flag=$lt_lt_prog_compiler_static_FC
19815
19816 # Does compiler simultaneously support -c and -o options?
19817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19818
19819 # Whether or not to add -lc for building shared libraries.
19820 build_libtool_need_lc=$archive_cmds_need_lc_FC
19821
19822 # Whether or not to disallow shared libs when runtime libs are static.
19823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19824
19825 # Compiler flag to allow reflexive dlopens.
19826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19827
19828 # Compiler flag to generate shared objects directly from archives.
19829 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19830
19831 # Whether the compiler copes with passing no objects directly.
19832 compiler_needs_object=$lt_compiler_needs_object_FC
19833
19834 # Create an old-style archive from a shared archive.
19835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19836
19837 # Create a temporary old-style archive to link instead of a shared archive.
19838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19839
19840 # Commands used to build a shared archive.
19841 archive_cmds=$lt_archive_cmds_FC
19842 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19843
19844 # Commands used to build a loadable module if different from building
19845 # a shared archive.
19846 module_cmds=$lt_module_cmds_FC
19847 module_expsym_cmds=$lt_module_expsym_cmds_FC
19848
19849 # Whether we are building with GNU ld or not.
19850 with_gnu_ld=$lt_with_gnu_ld_FC
19851
19852 # Flag that allows shared libraries with undefined symbols to be built.
19853 allow_undefined_flag=$lt_allow_undefined_flag_FC
19854
19855 # Flag that enforces no undefined symbols.
19856 no_undefined_flag=$lt_no_undefined_flag_FC
19857
19858 # Flag to hardcode \$libdir into a binary during linking.
19859 # This must work even if \$libdir does not exist
19860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19861
19862 # If ld is used when linking, flag to hardcode \$libdir into a binary
19863 # during linking. This must work even if \$libdir does not exist.
19864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19865
19866 # Whether we need a single "-rpath" flag with a separated argument.
19867 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19868
19869 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19870 # DIR into the resulting binary.
19871 hardcode_direct=$hardcode_direct_FC
19872
19873 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19874 # DIR into the resulting binary and the resulting library dependency is
19875 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19876 # library is relocated.
19877 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19878
19879 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19880 # into the resulting binary.
19881 hardcode_minus_L=$hardcode_minus_L_FC
19882
19883 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19884 # into the resulting binary.
19885 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19886
19887 # Set to "yes" if building a shared library automatically hardcodes DIR
19888 # into the library and all subsequent libraries and executables linked
19889 # against it.
19890 hardcode_automatic=$hardcode_automatic_FC
19891
19892 # Set to yes if linker adds runtime paths of dependent libraries
19893 # to runtime path list.
19894 inherit_rpath=$inherit_rpath_FC
19895
19896 # Whether libtool must link a program against all its dependency libraries.
19897 link_all_deplibs=$link_all_deplibs_FC
19898
19899 # Fix the shell variable \$srcfile for the compiler.
19900 fix_srcfile_path=$lt_fix_srcfile_path_FC
19901
19902 # Set to "yes" if exported symbols are required.
19903 always_export_symbols=$always_export_symbols_FC
19904
19905 # The commands to list exported symbols.
19906 export_symbols_cmds=$lt_export_symbols_cmds_FC
19907
19908 # Symbols that should not be listed in the preloaded symbols.
19909 exclude_expsyms=$lt_exclude_expsyms_FC
19910
19911 # Symbols that must always be exported.
19912 include_expsyms=$lt_include_expsyms_FC
19913
19914 # Commands necessary for linking programs (against libraries) with templates.
19915 prelink_cmds=$lt_prelink_cmds_FC
19916
19917 # Specify filename containing input files.
19918 file_list_spec=$lt_file_list_spec_FC
19919
19920 # How to hardcode a shared library path into an executable.
19921 hardcode_action=$hardcode_action_FC
19922
19923 # The directories searched by this compiler when creating a shared library.
19924 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19925
19926 # Dependencies to place before and after the objects being linked to
19927 # create a shared library.
19928 predep_objects=$lt_predep_objects_FC
19929 postdep_objects=$lt_postdep_objects_FC
19930 predeps=$lt_predeps_FC
19931 postdeps=$lt_postdeps_FC
19932
19933 # The library search path used internally by the compiler when linking
19934 # a shared library.
19935 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19936
19937 # ### END LIBTOOL TAG CONFIG: FC
19938 _LT_EOF
19939
19940 ;;
19941 "gstdint.h":C)
19942 if test "$GCC" = yes; then
19943 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19944 else
19945 echo "/* generated for $CC */" > tmp-stdint.h
19946 fi
19947
19948 sed 's/^ *//' >> tmp-stdint.h <<EOF
19949
19950 #ifndef GCC_GENERATED_STDINT_H
19951 #define GCC_GENERATED_STDINT_H 1
19952
19953 #include <sys/types.h>
19954 EOF
19955
19956 if test "$acx_cv_header_stdint" != stdint.h; then
19957 echo "#include <stddef.h>" >> tmp-stdint.h
19958 fi
19959 if test "$acx_cv_header_stdint" != stddef.h; then
19960 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19961 fi
19962
19963 sed 's/^ *//' >> tmp-stdint.h <<EOF
19964 /* glibc uses these symbols as guards to prevent redefinitions. */
19965 #ifdef __int8_t_defined
19966 #define _INT8_T
19967 #define _INT16_T
19968 #define _INT32_T
19969 #endif
19970 #ifdef __uint32_t_defined
19971 #define _UINT32_T
19972 #endif
19973
19974 EOF
19975
19976 # ----------------- done header, emit basic int types -------------
19977 if test "$acx_cv_header_stdint" = stddef.h; then
19978 sed 's/^ *//' >> tmp-stdint.h <<EOF
19979
19980 #ifndef _UINT8_T
19981 #define _UINT8_T
19982 #ifndef __uint8_t_defined
19983 #define __uint8_t_defined
19984 #ifndef uint8_t
19985 typedef unsigned $acx_cv_type_int8_t uint8_t;
19986 #endif
19987 #endif
19988 #endif
19989
19990 #ifndef _UINT16_T
19991 #define _UINT16_T
19992 #ifndef __uint16_t_defined
19993 #define __uint16_t_defined
19994 #ifndef uint16_t
19995 typedef unsigned $acx_cv_type_int16_t uint16_t;
19996 #endif
19997 #endif
19998 #endif
19999
20000 #ifndef _UINT32_T
20001 #define _UINT32_T
20002 #ifndef __uint32_t_defined
20003 #define __uint32_t_defined
20004 #ifndef uint32_t
20005 typedef unsigned $acx_cv_type_int32_t uint32_t;
20006 #endif
20007 #endif
20008 #endif
20009
20010 #ifndef _INT8_T
20011 #define _INT8_T
20012 #ifndef __int8_t_defined
20013 #define __int8_t_defined
20014 #ifndef int8_t
20015 typedef $acx_cv_type_int8_t int8_t;
20016 #endif
20017 #endif
20018 #endif
20019
20020 #ifndef _INT16_T
20021 #define _INT16_T
20022 #ifndef __int16_t_defined
20023 #define __int16_t_defined
20024 #ifndef int16_t
20025 typedef $acx_cv_type_int16_t int16_t;
20026 #endif
20027 #endif
20028 #endif
20029
20030 #ifndef _INT32_T
20031 #define _INT32_T
20032 #ifndef __int32_t_defined
20033 #define __int32_t_defined
20034 #ifndef int32_t
20035 typedef $acx_cv_type_int32_t int32_t;
20036 #endif
20037 #endif
20038 #endif
20039 EOF
20040 elif test "$ac_cv_type_u_int32_t" = yes; then
20041 sed 's/^ *//' >> tmp-stdint.h <<EOF
20042
20043 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20044 #ifndef _INT8_T
20045 #define _INT8_T
20046 #endif
20047 #ifndef _INT16_T
20048 #define _INT16_T
20049 #endif
20050 #ifndef _INT32_T
20051 #define _INT32_T
20052 #endif
20053
20054 #ifndef _UINT8_T
20055 #define _UINT8_T
20056 #ifndef __uint8_t_defined
20057 #define __uint8_t_defined
20058 #ifndef uint8_t
20059 typedef u_int8_t uint8_t;
20060 #endif
20061 #endif
20062 #endif
20063
20064 #ifndef _UINT16_T
20065 #define _UINT16_T
20066 #ifndef __uint16_t_defined
20067 #define __uint16_t_defined
20068 #ifndef uint16_t
20069 typedef u_int16_t uint16_t;
20070 #endif
20071 #endif
20072 #endif
20073
20074 #ifndef _UINT32_T
20075 #define _UINT32_T
20076 #ifndef __uint32_t_defined
20077 #define __uint32_t_defined
20078 #ifndef uint32_t
20079 typedef u_int32_t uint32_t;
20080 #endif
20081 #endif
20082 #endif
20083 EOF
20084 else
20085 sed 's/^ *//' >> tmp-stdint.h <<EOF
20086
20087 /* Some systems have guard macros to prevent redefinitions, define them. */
20088 #ifndef _INT8_T
20089 #define _INT8_T
20090 #endif
20091 #ifndef _INT16_T
20092 #define _INT16_T
20093 #endif
20094 #ifndef _INT32_T
20095 #define _INT32_T
20096 #endif
20097 #ifndef _UINT8_T
20098 #define _UINT8_T
20099 #endif
20100 #ifndef _UINT16_T
20101 #define _UINT16_T
20102 #endif
20103 #ifndef _UINT32_T
20104 #define _UINT32_T
20105 #endif
20106 EOF
20107 fi
20108
20109 # ------------- done basic int types, emit int64_t types ------------
20110 if test "$ac_cv_type_uint64_t" = yes; then
20111 sed 's/^ *//' >> tmp-stdint.h <<EOF
20112
20113 /* system headers have good uint64_t and int64_t */
20114 #ifndef _INT64_T
20115 #define _INT64_T
20116 #endif
20117 #ifndef _UINT64_T
20118 #define _UINT64_T
20119 #endif
20120 EOF
20121 elif test "$ac_cv_type_u_int64_t" = yes; then
20122 sed 's/^ *//' >> tmp-stdint.h <<EOF
20123
20124 /* system headers have an u_int64_t (and int64_t) */
20125 #ifndef _INT64_T
20126 #define _INT64_T
20127 #endif
20128 #ifndef _UINT64_T
20129 #define _UINT64_T
20130 #ifndef __uint64_t_defined
20131 #define __uint64_t_defined
20132 #ifndef uint64_t
20133 typedef u_int64_t uint64_t;
20134 #endif
20135 #endif
20136 #endif
20137 EOF
20138 elif test -n "$acx_cv_type_int64_t"; then
20139 sed 's/^ *//' >> tmp-stdint.h <<EOF
20140
20141 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20142 #ifndef _INT64_T
20143 #define _INT64_T
20144 #ifndef int64_t
20145 typedef $acx_cv_type_int64_t int64_t;
20146 #endif
20147 #endif
20148 #ifndef _UINT64_T
20149 #define _UINT64_T
20150 #ifndef __uint64_t_defined
20151 #define __uint64_t_defined
20152 #ifndef uint64_t
20153 typedef unsigned $acx_cv_type_int64_t uint64_t;
20154 #endif
20155 #endif
20156 #endif
20157 EOF
20158 else
20159 sed 's/^ *//' >> tmp-stdint.h <<EOF
20160
20161 /* some common heuristics for int64_t, using compiler-specific tests */
20162 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20163 #ifndef _INT64_T
20164 #define _INT64_T
20165 #ifndef __int64_t_defined
20166 #ifndef int64_t
20167 typedef long long int64_t;
20168 #endif
20169 #endif
20170 #endif
20171 #ifndef _UINT64_T
20172 #define _UINT64_T
20173 #ifndef uint64_t
20174 typedef unsigned long long uint64_t;
20175 #endif
20176 #endif
20177
20178 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20179 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20180 does not implement __extension__. But that compiler doesn't define
20181 __GNUC_MINOR__. */
20182 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20183 # define __extension__
20184 # endif
20185
20186 # ifndef _INT64_T
20187 # define _INT64_T
20188 # ifndef int64_t
20189 __extension__ typedef long long int64_t;
20190 # endif
20191 # endif
20192 # ifndef _UINT64_T
20193 # define _UINT64_T
20194 # ifndef uint64_t
20195 __extension__ typedef unsigned long long uint64_t;
20196 # endif
20197 # endif
20198
20199 #elif !defined __STRICT_ANSI__
20200 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20201
20202 # ifndef _INT64_T
20203 # define _INT64_T
20204 # ifndef int64_t
20205 typedef __int64 int64_t;
20206 # endif
20207 # endif
20208 # ifndef _UINT64_T
20209 # define _UINT64_T
20210 # ifndef uint64_t
20211 typedef unsigned __int64 uint64_t;
20212 # endif
20213 # endif
20214 # endif /* compiler */
20215
20216 #endif /* ANSI version */
20217 EOF
20218 fi
20219
20220 # ------------- done int64_t types, emit intptr types ------------
20221 if test "$ac_cv_type_uintptr_t" != yes; then
20222 sed 's/^ *//' >> tmp-stdint.h <<EOF
20223
20224 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20225 #ifndef __uintptr_t_defined
20226 #ifndef uintptr_t
20227 typedef u$acx_cv_type_intptr_t uintptr_t;
20228 #endif
20229 #endif
20230 #ifndef __intptr_t_defined
20231 #ifndef intptr_t
20232 typedef $acx_cv_type_intptr_t intptr_t;
20233 #endif
20234 #endif
20235 EOF
20236 fi
20237
20238 # ------------- done intptr types, emit int_least types ------------
20239 if test "$ac_cv_type_int_least32_t" != yes; then
20240 sed 's/^ *//' >> tmp-stdint.h <<EOF
20241
20242 /* Define int_least types */
20243 typedef int8_t int_least8_t;
20244 typedef int16_t int_least16_t;
20245 typedef int32_t int_least32_t;
20246 #ifdef _INT64_T
20247 typedef int64_t int_least64_t;
20248 #endif
20249
20250 typedef uint8_t uint_least8_t;
20251 typedef uint16_t uint_least16_t;
20252 typedef uint32_t uint_least32_t;
20253 #ifdef _UINT64_T
20254 typedef uint64_t uint_least64_t;
20255 #endif
20256 EOF
20257 fi
20258
20259 # ------------- done intptr types, emit int_fast types ------------
20260 if test "$ac_cv_type_int_fast32_t" != yes; then
20261 sed 's/^ *//' >> tmp-stdint.h <<EOF
20262
20263 /* Define int_fast types. short is often slow */
20264 typedef int8_t int_fast8_t;
20265 typedef int int_fast16_t;
20266 typedef int32_t int_fast32_t;
20267 #ifdef _INT64_T
20268 typedef int64_t int_fast64_t;
20269 #endif
20270
20271 typedef uint8_t uint_fast8_t;
20272 typedef unsigned int uint_fast16_t;
20273 typedef uint32_t uint_fast32_t;
20274 #ifdef _UINT64_T
20275 typedef uint64_t uint_fast64_t;
20276 #endif
20277 EOF
20278 fi
20279
20280 if test "$ac_cv_type_uintmax_t" != yes; then
20281 sed 's/^ *//' >> tmp-stdint.h <<EOF
20282
20283 /* Define intmax based on what we found */
20284 #ifndef intmax_t
20285 #ifdef _INT64_T
20286 typedef int64_t intmax_t;
20287 #else
20288 typedef long intmax_t;
20289 #endif
20290 #endif
20291 #ifndef uintmax_t
20292 #ifdef _UINT64_T
20293 typedef uint64_t uintmax_t;
20294 #else
20295 typedef unsigned long uintmax_t;
20296 #endif
20297 #endif
20298 EOF
20299 fi
20300
20301 sed 's/^ *//' >> tmp-stdint.h <<EOF
20302
20303 #endif /* GCC_GENERATED_STDINT_H */
20304 EOF
20305
20306 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20307 rm -f tmp-stdint.h
20308 else
20309 mv -f tmp-stdint.h gstdint.h
20310 fi
20311
20312 ;;
20313
20314 esac
20315 done # for ac_tag
20316
20317
20318 as_fn_exit 0
20319 _ACEOF
20320 ac_clean_files=$ac_clean_files_save
20321
20322 test $ac_write_fail = 0 ||
20323 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20324
20325
20326 # configure is writing to config.log, and then calls config.status.
20327 # config.status does its own redirection, appending to config.log.
20328 # Unfortunately, on DOS this fails, as config.log is still kept open
20329 # by configure, so config.status won't be able to write to it; its
20330 # output is simply discarded. So we exec the FD to /dev/null,
20331 # effectively closing config.log, so it can be properly (re)opened and
20332 # appended to by config.status. When coming back to configure, we
20333 # need to make the FD available again.
20334 if test "$no_create" != yes; then
20335 ac_cs_success=:
20336 ac_config_status_args=
20337 test "$silent" = yes &&
20338 ac_config_status_args="$ac_config_status_args --quiet"
20339 exec 5>/dev/null
20340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20341 exec 5>>config.log
20342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20343 # would make configure fail if this is the last instruction.
20344 $ac_cs_success || as_fn_exit 1
20345 fi
20346 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20348 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20349 fi
20350