libstdc++: Fix typo in chrono::year_month_weekday::operator==
[gcc.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME='libgomp'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_header_list=
632 ac_func_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 get_gcc_base_ver
638 OMP_DEPEND_KIND
639 OMP_NEST_LOCK_25_KIND
640 OMP_LOCK_25_KIND
641 OMP_NEST_LOCK_25_ALIGN
642 OMP_NEST_LOCK_25_SIZE
643 OMP_LOCK_25_ALIGN
644 OMP_LOCK_25_SIZE
645 OMP_NEST_LOCK_KIND
646 OMP_LOCK_KIND
647 OMP_NEST_LOCK_ALIGN
648 OMP_NEST_LOCK_SIZE
649 OMP_LOCK_ALIGN
650 OMP_LOCK_SIZE
651 INTPTR_T_KIND
652 USE_FORTRAN_FALSE
653 USE_FORTRAN_TRUE
654 link_gomp
655 tmake_file
656 XLDFLAGS
657 XCFLAGS
658 config_path
659 CPU_COUNT
660 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
666 OPT_LDFLAGS
667 SECTION_LDFLAGS
668 PLUGIN_GCN_FALSE
669 PLUGIN_GCN_TRUE
670 PLUGIN_NVPTX_FALSE
671 PLUGIN_NVPTX_TRUE
672 offload_additional_lib_paths
673 offload_additional_options
674 offload_targets
675 offload_plugins
676 PLUGIN_GCN_LIBS
677 PLUGIN_GCN_LDFLAGS
678 PLUGIN_GCN_CPPFLAGS
679 PLUGIN_GCN
680 HSA_RUNTIME_LIB
681 HSA_RUNTIME_INCLUDE
682 PLUGIN_NVPTX_LIBS
683 PLUGIN_NVPTX_LDFLAGS
684 PLUGIN_NVPTX_CPPFLAGS
685 PLUGIN_NVPTX
686 CUDA_DRIVER_LIB
687 CUDA_DRIVER_INCLUDE
688 libtool_VERSION
689 ac_ct_FC
690 FCFLAGS
691 FC
692 MAINT
693 MAINTAINER_MODE_FALSE
694 MAINTAINER_MODE_TRUE
695 enable_static
696 enable_shared
697 lt_host_flags
698 CPP
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 OBJDUMP
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 EGREP
712 GREP
713 SED
714 LIBTOOL
715 BUILD_INFO_FALSE
716 BUILD_INFO_TRUE
717 PERL
718 RANLIB
719 AR
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 toolexeclibdir
737 toolexecdir
738 multi_basedir
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_os
767 target_vendor
768 target_cpu
769 target
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 GENINSRC_FALSE
779 GENINSRC_TRUE
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL
818 am__quote'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_version_specific_runtime_libs
823 enable_generated_files_in_srcdir
824 enable_silent_rules
825 enable_multilib
826 with_toolexeclibdir
827 enable_dependency_tracking
828 enable_shared
829 enable_static
830 with_pic
831 enable_fast_install
832 with_gnu_ld
833 enable_libtool_lock
834 enable_maintainer_mode
835 with_cuda_driver
836 with_cuda_driver_include
837 with_cuda_driver_lib
838 with_hsa_runtime
839 with_hsa_runtime_include
840 with_hsa_runtime_lib
841 enable_linux_futex
842 enable_tls
843 enable_symvers
844 enable_cet
845 with_gcc_major_version_only
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CPP
851 CPPFLAGS
852 FC
853 FCFLAGS
854 LDFLAGS
855 LIBS'
856
857
858 # Initialize some variables set by options.
859 ac_init_help=
860 ac_init_version=false
861 ac_unrecognized_opts=
862 ac_unrecognized_sep=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
865 cache_file=/dev/null
866 exec_prefix=NONE
867 no_create=
868 no_recursion=
869 prefix=NONE
870 program_prefix=NONE
871 program_suffix=NONE
872 program_transform_name=s,x,x,
873 silent=
874 site=
875 srcdir=
876 verbose=
877 x_includes=NONE
878 x_libraries=NONE
879
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir='${exec_prefix}/bin'
887 sbindir='${exec_prefix}/sbin'
888 libexecdir='${exec_prefix}/libexec'
889 datarootdir='${prefix}/share'
890 datadir='${datarootdir}'
891 sysconfdir='${prefix}/etc'
892 sharedstatedir='${prefix}/com'
893 localstatedir='${prefix}/var'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
898 htmldir='${docdir}'
899 dvidir='${docdir}'
900 pdfdir='${docdir}'
901 psdir='${docdir}'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
905
906 ac_prev=
907 ac_dashdash=
908 for ac_option
909 do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
921 esac
922
923 # Accept the important Cygnus configure options, so we can diagnose typos.
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 ;;
1262
1263 esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $? "missing argument to $ac_option"
1269 fi
1270
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277 fi
1278
1279 # Check all directory arguments for consistency.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-version-specific-runtime-libs
1476 Specify that runtime libraries should be installed
1477 in a compiler-specific directory [default=no]
1478 --enable-generated-files-in-srcdir
1479 put copies of generated files in source dir intended
1480 for creating source tarballs for users without
1481 texinfo bison or flex. [default=no]
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-multilib build many library versions (default)
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497 --enable-linux-futex use the Linux futex system call [default=default]
1498 --enable-tls Use thread-local storage [default=yes]
1499 --enable-symvers=STYLE enables symbol versioning of the shared library
1500 [default=yes]
1501 --enable-cet enable Intel CET in target libraries [default=auto]
1502
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-toolexeclibdir=DIR
1507 install libraries built with a cross compiler within
1508 DIR
1509 --with-pic try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1513 package. Equivalent to
1514 --with-cuda-driver-include=PATH/include plus
1515 --with-cuda-driver-lib=PATH/lib
1516 --with-cuda-driver-include=PATH
1517 specify directory for installed CUDA driver include
1518 files
1519 --with-cuda-driver-lib=PATH
1520 specify directory for the installed CUDA driver
1521 library
1522 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1523 package. Equivalent to
1524 --with-hsa-runtime-include=PATH/include plus
1525 --with-hsa-runtime-lib=PATH/lib
1526 --with-hsa-runtime-include=PATH
1527 specify directory for installed HSA run-time include
1528 files
1529 --with-hsa-runtime-lib=PATH
1530 specify directory for the installed HSA run-time
1531 library
1532 --with-gcc-major-version-only
1533 use only GCC major number in filesystem paths
1534
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CPP C preprocessor
1544 FC Fortran compiler command
1545 FCFLAGS Fortran compiler flags
1546
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to the package provider.
1551 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1552 General help using GNU software: <http://www.gnu.org/gethelp/>.
1553 _ACEOF
1554 ac_status=$?
1555 fi
1556
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
1563 ac_builddir=.
1564
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *)
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1580
1581 case $srcdir in
1582 .) # We are building in place.
1583 ac_srcdir=.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1605 else
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 fi || ac_status=$?
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1609 done
1610 fi
1611
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614 cat <<\_ACEOF
1615 GNU Offloading and Multi Processing Runtime Library configure 1.0
1616 generated by GNU Autoconf 2.69
1617
1618 Copyright (C) 2012 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1621 _ACEOF
1622 exit
1623 fi
1624
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1628
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_compile
1666
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 test -x conftest$ac_exeext
1695 }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702 fi
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_link
1712
1713 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1714 # -------------------------------------------------------
1715 # Tests whether HEADER exists and can be compiled using the include files in
1716 # INCLUDES, setting the cache variable VAR accordingly.
1717 ac_fn_c_check_header_compile ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 else
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 $4
1728 #include <$2>
1729 _ACEOF
1730 if ac_fn_c_try_compile "$LINENO"; then :
1731 eval "$3=yes"
1732 else
1733 eval "$3=no"
1734 fi
1735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 fi
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741
1742 } # ac_fn_c_check_header_compile
1743
1744 # ac_fn_c_try_cpp LINENO
1745 # ----------------------
1746 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_c_try_cpp ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_cpp conftest.$ac_ext"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } > conftest.i && {
1766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775 fi
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1778
1779 } # ac_fn_c_try_cpp
1780
1781 # ac_fn_c_try_run LINENO
1782 # ----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1784 # that executables *can* be run.
1785 ac_fn_c_try_run ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1799 { { case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_try") 2>&5
1806 ac_status=$?
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; }; }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: program exited with status $ac_status" >&5
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=$ac_status
1816 fi
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_run
1822
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838 #define $2 innocuous_$2
1839
1840 /* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1844
1845 #ifdef __STDC__
1846 # include <limits.h>
1847 #else
1848 # include <assert.h>
1849 #endif
1850
1851 #undef $2
1852
1853 /* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1856 #ifdef __cplusplus
1857 extern "C"
1858 #endif
1859 char $2 ();
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined __stub_$2 || defined __stub___$2
1864 choke me
1865 #endif
1866
1867 int
1868 main ()
1869 {
1870 return $2 ();
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877 else
1878 eval "$3=no"
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1882 fi
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888 } # ac_fn_c_check_func
1889
1890 # ac_fn_fc_try_compile LINENO
1891 # ---------------------------
1892 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_fc_try_compile ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext
1897 if { { ac_try="$ac_compile"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_fc_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.$ac_objext; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922 fi
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1925
1926 } # ac_fn_fc_try_compile
1927
1928 # ac_fn_fc_try_link LINENO
1929 # ------------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_fc_try_link ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_fc_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 test -x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_retval=1
1963 fi
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1971
1972 } # ac_fn_fc_try_link
1973
1974 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1975 # -------------------------------------------------------
1976 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1977 # the include files in INCLUDES and setting the cache variable VAR
1978 # accordingly.
1979 ac_fn_c_check_header_mongrel ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if eval \${$3+:} false; then :
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1987 fi
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 else
1992 # Is the header compilable?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1994 $as_echo_n "checking $2 usability... " >&6; }
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 $4
1998 #include <$2>
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_header_compiler=yes
2002 else
2003 ac_header_compiler=no
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2007 $as_echo "$ac_header_compiler" >&6; }
2008
2009 # Is the header present?
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2011 $as_echo_n "checking $2 presence... " >&6; }
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 #include <$2>
2015 _ACEOF
2016 if ac_fn_c_try_cpp "$LINENO"; then :
2017 ac_header_preproc=yes
2018 else
2019 ac_header_preproc=no
2020 fi
2021 rm -f conftest.err conftest.i conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2023 $as_echo "$ac_header_preproc" >&6; }
2024
2025 # So? What about this header?
2026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2027 yes:no: )
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2029 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2032 ;;
2033 no:yes:* )
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2035 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2037 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2039 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2041 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 ;;
2045 esac
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if eval \${$3+:} false; then :
2049 $as_echo_n "(cached) " >&6
2050 else
2051 eval "$3=\$ac_header_compiler"
2052 fi
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 fi
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_c_check_header_mongrel
2060
2061 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2062 # -------------------------------------------
2063 # Tests whether TYPE exists after having included INCLUDES, setting cache
2064 # variable VAR accordingly.
2065 ac_fn_c_check_type ()
2066 {
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 eval "$3=no"
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 $4
2077 int
2078 main ()
2079 {
2080 if (sizeof ($2))
2081 return 0;
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 int
2091 main ()
2092 {
2093 if (sizeof (($2)))
2094 return 0;
2095 ;
2096 return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100
2101 else
2102 eval "$3=yes"
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113 } # ac_fn_c_check_type
2114
2115 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116 # --------------------------------------------
2117 # Tries to find the compile-time value of EXPR in a program that includes
2118 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2119 # computed
2120 ac_fn_c_compute_int ()
2121 {
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 $4
2128 int
2129 main ()
2130 {
2131 static int test_array [1 - 2 * !(($2) >= 0)];
2132 test_array [0] = 0;
2133 return test_array [0];
2134
2135 ;
2136 return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_lo=0 ac_mid=0
2141 while :; do
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 $4
2145 int
2146 main ()
2147 {
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 test_array [0] = 0;
2150 return test_array [0];
2151
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_hi=$ac_mid; break
2158 else
2159 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2160 if test $ac_lo -le $ac_mid; then
2161 ac_lo= ac_hi=
2162 break
2163 fi
2164 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 else
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2171 $4
2172 int
2173 main ()
2174 {
2175 static int test_array [1 - 2 * !(($2) < 0)];
2176 test_array [0] = 0;
2177 return test_array [0];
2178
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=-1 ac_mid=-1
2185 while :; do
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2188 $4
2189 int
2190 main ()
2191 {
2192 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2193 test_array [0] = 0;
2194 return test_array [0];
2195
2196 ;
2197 return 0;
2198 }
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_lo=$ac_mid; break
2202 else
2203 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2204 if test $ac_mid -le $ac_hi; then
2205 ac_lo= ac_hi=
2206 break
2207 fi
2208 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 done
2212 else
2213 ac_lo= ac_hi=
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 # Binary search between lo and hi bounds.
2219 while test "x$ac_lo" != "x$ac_hi"; do
2220 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2223 $4
2224 int
2225 main ()
2226 {
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228 test_array [0] = 0;
2229 return test_array [0];
2230
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 ac_hi=$ac_mid
2237 else
2238 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 done
2242 case $ac_lo in #((
2243 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2244 '') ac_retval=1 ;;
2245 esac
2246 else
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2249 $4
2250 static long int longval () { return $2; }
2251 static unsigned long int ulongval () { return $2; }
2252 #include <stdio.h>
2253 #include <stdlib.h>
2254 int
2255 main ()
2256 {
2257
2258 FILE *f = fopen ("conftest.val", "w");
2259 if (! f)
2260 return 1;
2261 if (($2) < 0)
2262 {
2263 long int i = longval ();
2264 if (i != ($2))
2265 return 1;
2266 fprintf (f, "%ld", i);
2267 }
2268 else
2269 {
2270 unsigned long int i = ulongval ();
2271 if (i != ($2))
2272 return 1;
2273 fprintf (f, "%lu", i);
2274 }
2275 /* Do not output a trailing newline, as this causes \r\n confusion
2276 on some platforms. */
2277 return ferror (f) || fclose (f) != 0;
2278
2279 ;
2280 return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_run "$LINENO"; then :
2284 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2285 else
2286 ac_retval=1
2287 fi
2288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2289 conftest.$ac_objext conftest.beam conftest.$ac_ext
2290 rm -f conftest.val
2291
2292 fi
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2295
2296 } # ac_fn_c_compute_int
2297 cat >config.log <<_ACEOF
2298 This file contains any messages produced by compilers while
2299 running configure, to aid debugging if configure makes a mistake.
2300
2301 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2302 generated by GNU Autoconf 2.69. Invocation command line was
2303
2304 $ $0 $@
2305
2306 _ACEOF
2307 exec 5>>config.log
2308 {
2309 cat <<_ASUNAME
2310 ## --------- ##
2311 ## Platform. ##
2312 ## --------- ##
2313
2314 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2315 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2316 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2317 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2318 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2319
2320 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2321 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2322
2323 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2324 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2325 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2326 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2327 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2328 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2329 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2330
2331 _ASUNAME
2332
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 $as_echo "PATH: $as_dir"
2339 done
2340 IFS=$as_save_IFS
2341
2342 } >&5
2343
2344 cat >&5 <<_ACEOF
2345
2346
2347 ## ----------- ##
2348 ## Core tests. ##
2349 ## ----------- ##
2350
2351 _ACEOF
2352
2353
2354 # Keep a trace of the command line.
2355 # Strip out --no-create and --no-recursion so they do not pile up.
2356 # Strip out --silent because we don't want to record it for future runs.
2357 # Also quote any args containing shell meta-characters.
2358 # Make two passes to allow for proper duplicate-argument suppression.
2359 ac_configure_args=
2360 ac_configure_args0=
2361 ac_configure_args1=
2362 ac_must_keep_next=false
2363 for ac_pass in 1 2
2364 do
2365 for ac_arg
2366 do
2367 case $ac_arg in
2368 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2370 | -silent | --silent | --silen | --sile | --sil)
2371 continue ;;
2372 *\'*)
2373 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2374 esac
2375 case $ac_pass in
2376 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2377 2)
2378 as_fn_append ac_configure_args1 " '$ac_arg'"
2379 if test $ac_must_keep_next = true; then
2380 ac_must_keep_next=false # Got value, back to normal.
2381 else
2382 case $ac_arg in
2383 *=* | --config-cache | -C | -disable-* | --disable-* \
2384 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2385 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2386 | -with-* | --with-* | -without-* | --without-* | --x)
2387 case "$ac_configure_args0 " in
2388 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2389 esac
2390 ;;
2391 -* ) ac_must_keep_next=true ;;
2392 esac
2393 fi
2394 as_fn_append ac_configure_args " '$ac_arg'"
2395 ;;
2396 esac
2397 done
2398 done
2399 { ac_configure_args0=; unset ac_configure_args0;}
2400 { ac_configure_args1=; unset ac_configure_args1;}
2401
2402 # When interrupted or exit'd, cleanup temporary files, and complete
2403 # config.log. We remove comments because anyway the quotes in there
2404 # would cause problems or look ugly.
2405 # WARNING: Use '\'' to represent an apostrophe within the trap.
2406 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2407 trap 'exit_status=$?
2408 # Save into config.log some information that might help in debugging.
2409 {
2410 echo
2411
2412 $as_echo "## ---------------- ##
2413 ## Cache variables. ##
2414 ## ---------------- ##"
2415 echo
2416 # The following way of writing the cache mishandles newlines in values,
2417 (
2418 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2419 eval ac_val=\$$ac_var
2420 case $ac_val in #(
2421 *${as_nl}*)
2422 case $ac_var in #(
2423 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2424 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2425 esac
2426 case $ac_var in #(
2427 _ | IFS | as_nl) ;; #(
2428 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2429 *) { eval $ac_var=; unset $ac_var;} ;;
2430 esac ;;
2431 esac
2432 done
2433 (set) 2>&1 |
2434 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2435 *${as_nl}ac_space=\ *)
2436 sed -n \
2437 "s/'\''/'\''\\\\'\'''\''/g;
2438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2439 ;; #(
2440 *)
2441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2442 ;;
2443 esac |
2444 sort
2445 )
2446 echo
2447
2448 $as_echo "## ----------------- ##
2449 ## Output variables. ##
2450 ## ----------------- ##"
2451 echo
2452 for ac_var in $ac_subst_vars
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2461
2462 if test -n "$ac_subst_files"; then
2463 $as_echo "## ------------------- ##
2464 ## File substitutions. ##
2465 ## ------------------- ##"
2466 echo
2467 for ac_var in $ac_subst_files
2468 do
2469 eval ac_val=\$$ac_var
2470 case $ac_val in
2471 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472 esac
2473 $as_echo "$ac_var='\''$ac_val'\''"
2474 done | sort
2475 echo
2476 fi
2477
2478 if test -s confdefs.h; then
2479 $as_echo "## ----------- ##
2480 ## confdefs.h. ##
2481 ## ----------- ##"
2482 echo
2483 cat confdefs.h
2484 echo
2485 fi
2486 test "$ac_signal" != 0 &&
2487 $as_echo "$as_me: caught signal $ac_signal"
2488 $as_echo "$as_me: exit $exit_status"
2489 } >&5
2490 rm -f core *.core core.conftest.* &&
2491 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2492 exit $exit_status
2493 ' 0
2494 for ac_signal in 1 2 13 15; do
2495 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2496 done
2497 ac_signal=0
2498
2499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2500 rm -f -r conftest* confdefs.h
2501
2502 $as_echo "/* confdefs.h */" > confdefs.h
2503
2504 # Predefined preprocessor variables.
2505
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_NAME "$PACKAGE_NAME"
2508 _ACEOF
2509
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2512 _ACEOF
2513
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2516 _ACEOF
2517
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_STRING "$PACKAGE_STRING"
2520 _ACEOF
2521
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2524 _ACEOF
2525
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_URL "$PACKAGE_URL"
2528 _ACEOF
2529
2530
2531 # Let the site file select an alternate cache file if it wants to.
2532 # Prefer an explicitly selected file to automatically selected ones.
2533 ac_site_file1=NONE
2534 ac_site_file2=NONE
2535 if test -n "$CONFIG_SITE"; then
2536 # We do not want a PATH search for config.site.
2537 case $CONFIG_SITE in #((
2538 -*) ac_site_file1=./$CONFIG_SITE;;
2539 */*) ac_site_file1=$CONFIG_SITE;;
2540 *) ac_site_file1=./$CONFIG_SITE;;
2541 esac
2542 elif test "x$prefix" != xNONE; then
2543 ac_site_file1=$prefix/share/config.site
2544 ac_site_file2=$prefix/etc/config.site
2545 else
2546 ac_site_file1=$ac_default_prefix/share/config.site
2547 ac_site_file2=$ac_default_prefix/etc/config.site
2548 fi
2549 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2550 do
2551 test "x$ac_site_file" = xNONE && continue
2552 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2554 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2555 sed 's/^/| /' "$ac_site_file" >&5
2556 . "$ac_site_file" \
2557 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 as_fn_error $? "failed to load site script $ac_site_file
2560 See \`config.log' for more details" "$LINENO" 5; }
2561 fi
2562 done
2563
2564 if test -r "$cache_file"; then
2565 # Some versions of bash will fail to source /dev/null (special files
2566 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2567 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2569 $as_echo "$as_me: loading cache $cache_file" >&6;}
2570 case $cache_file in
2571 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2572 *) . "./$cache_file";;
2573 esac
2574 fi
2575 else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2577 $as_echo "$as_me: creating cache $cache_file" >&6;}
2578 >$cache_file
2579 fi
2580
2581 as_fn_append ac_header_list " unistd.h"
2582 as_fn_append ac_func_list " secure_getenv"
2583 as_fn_append ac_func_list " __secure_getenv"
2584 as_fn_append ac_func_list " getuid"
2585 as_fn_append ac_func_list " geteuid"
2586 as_fn_append ac_func_list " getgid"
2587 as_fn_append ac_func_list " getegid"
2588 # Check that the precious variables saved in the cache have kept the same
2589 # value.
2590 ac_cache_corrupted=false
2591 for ac_var in $ac_precious_vars; do
2592 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2593 eval ac_new_set=\$ac_env_${ac_var}_set
2594 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2595 eval ac_new_val=\$ac_env_${ac_var}_value
2596 case $ac_old_set,$ac_new_set in
2597 set,)
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2599 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2600 ac_cache_corrupted=: ;;
2601 ,set)
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2603 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2605 ,);;
2606 *)
2607 if test "x$ac_old_val" != "x$ac_new_val"; then
2608 # differences in whitespace do not lead to failure.
2609 ac_old_val_w=`echo x $ac_old_val`
2610 ac_new_val_w=`echo x $ac_new_val`
2611 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2613 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2614 ac_cache_corrupted=:
2615 else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2617 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2618 eval $ac_var=\$ac_old_val
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2621 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2623 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2624 fi;;
2625 esac
2626 # Pass precious variables to config.status.
2627 if test "$ac_new_set" = set; then
2628 case $ac_new_val in
2629 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2630 *) ac_arg=$ac_var=$ac_new_val ;;
2631 esac
2632 case " $ac_configure_args " in
2633 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2634 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2635 esac
2636 fi
2637 done
2638 if $ac_cache_corrupted; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2642 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2643 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2644 fi
2645 ## -------------------- ##
2646 ## Main body of script. ##
2647 ## -------------------- ##
2648
2649 ac_ext=c
2650 ac_cpp='$CPP $CPPFLAGS'
2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2654
2655
2656
2657
2658
2659 ac_config_headers="$ac_config_headers config.h"
2660
2661
2662 # -------
2663 # Options
2664 # -------
2665
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2667 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2668 # Check whether --enable-version-specific-runtime-libs was given.
2669 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2670 enableval=$enable_version_specific_runtime_libs;
2671 case "$enableval" in
2672 yes|no) ;;
2673 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2674 esac
2675
2676 else
2677 enable_version_specific_runtime_libs=no
2678 fi
2679
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2682 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2683
2684 # We would like our source tree to be readonly. However when releases or
2685 # pre-releases are generated, the flex/bison generated files as well as the
2686 # various formats of manuals need to be included along with the rest of the
2687 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2688 # just that.
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2690 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2691 # Check whether --enable-generated-files-in-srcdir was given.
2692 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2693 enableval=$enable_generated_files_in_srcdir;
2694 case "$enableval" in
2695 yes|no) ;;
2696 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2697 esac
2698
2699 else
2700 enable_generated_files_in_srcdir=no
2701 fi
2702
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2705 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2706 if test "$enable_generated_files_in_srcdir" = yes; then
2707 GENINSRC_TRUE=
2708 GENINSRC_FALSE='#'
2709 else
2710 GENINSRC_TRUE='#'
2711 GENINSRC_FALSE=
2712 fi
2713
2714
2715
2716 # -------
2717 # -------
2718
2719 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2720 #
2721 # You will slowly go insane if you do not grok the following fact: when
2722 # building this library, the top-level /target/ becomes the library's /host/.
2723 #
2724 # configure then causes --target to default to --host, exactly like any
2725 # other package using autoconf. Therefore, 'target' and 'host' will
2726 # always be the same. This makes sense both for native and cross compilers
2727 # just think about it for a little while. :-)
2728 #
2729 # Also, if this library is being configured as part of a cross compiler, the
2730 # top-level configure script will pass the "real" host as $with_cross_host.
2731 #
2732 # Do not delete or change the following two lines. For why, see
2733 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2734 ac_aux_dir=
2735 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736 if test -f "$ac_dir/install-sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install-sh -c"
2739 break
2740 elif test -f "$ac_dir/install.sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install.sh -c"
2743 break
2744 elif test -f "$ac_dir/shtool"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/shtool install -c"
2747 break
2748 fi
2749 done
2750 if test -z "$ac_aux_dir"; then
2751 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2752 fi
2753
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2759 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2760 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2761
2762
2763 # Make sure we can run config.sub.
2764 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2765 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2768 $as_echo_n "checking build system type... " >&6; }
2769 if ${ac_cv_build+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 ac_build_alias=$build_alias
2773 test "x$ac_build_alias" = x &&
2774 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2775 test "x$ac_build_alias" = x &&
2776 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2777 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2779
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2782 $as_echo "$ac_cv_build" >&6; }
2783 case $ac_cv_build in
2784 *-*-*) ;;
2785 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2786 esac
2787 build=$ac_cv_build
2788 ac_save_IFS=$IFS; IFS='-'
2789 set x $ac_cv_build
2790 shift
2791 build_cpu=$1
2792 build_vendor=$2
2793 shift; shift
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2796 build_os=$*
2797 IFS=$ac_save_IFS
2798 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2799
2800
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2802 $as_echo_n "checking host system type... " >&6; }
2803 if ${ac_cv_host+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test "x$host_alias" = x; then
2807 ac_cv_host=$ac_cv_build
2808 else
2809 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2811 fi
2812
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2815 $as_echo "$ac_cv_host" >&6; }
2816 case $ac_cv_host in
2817 *-*-*) ;;
2818 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2819 esac
2820 host=$ac_cv_host
2821 ac_save_IFS=$IFS; IFS='-'
2822 set x $ac_cv_host
2823 shift
2824 host_cpu=$1
2825 host_vendor=$2
2826 shift; shift
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2829 host_os=$*
2830 IFS=$ac_save_IFS
2831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2832
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2835 $as_echo_n "checking target system type... " >&6; }
2836 if ${ac_cv_target+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test "x$target_alias" = x; then
2840 ac_cv_target=$ac_cv_host
2841 else
2842 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2844 fi
2845
2846 fi
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2848 $as_echo "$ac_cv_target" >&6; }
2849 case $ac_cv_target in
2850 *-*-*) ;;
2851 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2852 esac
2853 target=$ac_cv_target
2854 ac_save_IFS=$IFS; IFS='-'
2855 set x $ac_cv_target
2856 shift
2857 target_cpu=$1
2858 target_vendor=$2
2859 shift; shift
2860 # Remember, the first character of IFS is used to create $*,
2861 # except with old shells:
2862 target_os=$*
2863 IFS=$ac_save_IFS
2864 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2865
2866
2867 # The aliases save the names the user supplied, while $host etc.
2868 # will get canonicalized.
2869 test -n "$target_alias" &&
2870 test "$program_prefix$program_suffix$program_transform_name" = \
2871 NONENONEs,x,x, &&
2872 program_prefix=${target_alias}-
2873
2874 target_alias=${target_alias-$host_alias}
2875
2876 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2877 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2878 # 1.9.0: minimum required version
2879 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2880 # of other PACKAGE_* variables will, however, and there's nothing
2881 # we can do about that; they come from AC_INIT).
2882 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2883 # file in the top srcdir, etc, etc), so stop complaining.
2884 # no-dist: we don't want 'dist' and related rules.
2885 # -Wall: turns on all automake warnings...
2886 # -Wno-portability: ...except this one, since GNU make is required.
2887 # -Wno-override: ... and this one, since we do want this in testsuite.
2888 am__api_version='1.16'
2889
2890 # Find a good install program. We prefer a C program (faster),
2891 # so one script is as good as another. But avoid the broken or
2892 # incompatible versions:
2893 # SysV /etc/install, /usr/sbin/install
2894 # SunOS /usr/etc/install
2895 # IRIX /sbin/install
2896 # AIX /bin/install
2897 # AmigaOS /C/install, which installs bootblocks on floppy discs
2898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2901 # OS/2's system install, which has a completely different semantic
2902 # ./install, which can be erroneously created by make from ./install.sh.
2903 # Reject install programs that cannot install multiple files.
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2905 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2906 if test -z "$INSTALL"; then
2907 if ${ac_cv_path_install+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 # Account for people who put trailing slashes in PATH elements.
2916 case $as_dir/ in #((
2917 ./ | .// | /[cC]/* | \
2918 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2919 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2920 /usr/ucb/* ) ;;
2921 *)
2922 # OSF1 and SCO ODT 3.0 have their own names for install.
2923 # Don't use installbsd from OSF since it installs stuff as root
2924 # by default.
2925 for ac_prog in ginstall scoinst install; do
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2928 if test $ac_prog = install &&
2929 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2930 # AIX install. It has an incompatible calling convention.
2931 :
2932 elif test $ac_prog = install &&
2933 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2934 # program-specific install script used by HP pwplus--don't use.
2935 :
2936 else
2937 rm -rf conftest.one conftest.two conftest.dir
2938 echo one > conftest.one
2939 echo two > conftest.two
2940 mkdir conftest.dir
2941 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2942 test -s conftest.one && test -s conftest.two &&
2943 test -s conftest.dir/conftest.one &&
2944 test -s conftest.dir/conftest.two
2945 then
2946 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2947 break 3
2948 fi
2949 fi
2950 fi
2951 done
2952 done
2953 ;;
2954 esac
2955
2956 done
2957 IFS=$as_save_IFS
2958
2959 rm -rf conftest.one conftest.two conftest.dir
2960
2961 fi
2962 if test "${ac_cv_path_install+set}" = set; then
2963 INSTALL=$ac_cv_path_install
2964 else
2965 # As a last resort, use the slow shell script. Don't cache a
2966 # value for INSTALL within a source directory, because that will
2967 # break other packages using the cache if that directory is
2968 # removed, or if the value is a relative name.
2969 INSTALL=$ac_install_sh
2970 fi
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2973 $as_echo "$INSTALL" >&6; }
2974
2975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2976 # It thinks the first close brace ends the variable substitution.
2977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2978
2979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2980
2981 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2984 $as_echo_n "checking whether build environment is sane... " >&6; }
2985 # Reject unsafe characters in $srcdir or the absolute working directory
2986 # name. Accept space and tab only in the latter.
2987 am_lf='
2988 '
2989 case `pwd` in
2990 *[\\\"\#\$\&\'\`$am_lf]*)
2991 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2992 esac
2993 case $srcdir in
2994 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2995 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2996 esac
2997
2998 # Do 'set' in a subshell so we don't clobber the current shell's
2999 # arguments. Must try -L first in case configure is actually a
3000 # symlink; some systems play weird games with the mod time of symlinks
3001 # (eg FreeBSD returns the mod time of the symlink's containing
3002 # directory).
3003 if (
3004 am_has_slept=no
3005 for am_try in 1 2; do
3006 echo "timestamp, slept: $am_has_slept" > conftest.file
3007 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3008 if test "$*" = "X"; then
3009 # -L didn't work.
3010 set X `ls -t "$srcdir/configure" conftest.file`
3011 fi
3012 if test "$*" != "X $srcdir/configure conftest.file" \
3013 && test "$*" != "X conftest.file $srcdir/configure"; then
3014
3015 # If neither matched, then we have a broken ls. This can happen
3016 # if, for instance, CONFIG_SHELL is bash and it inherits a
3017 # broken ls alias from the environment. This has actually
3018 # happened. Such a system could not be considered "sane".
3019 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3020 alias in your environment" "$LINENO" 5
3021 fi
3022 if test "$2" = conftest.file || test $am_try -eq 2; then
3023 break
3024 fi
3025 # Just in case.
3026 sleep 1
3027 am_has_slept=yes
3028 done
3029 test "$2" = conftest.file
3030 )
3031 then
3032 # Ok.
3033 :
3034 else
3035 as_fn_error $? "newly created file is older than distributed files!
3036 Check your system clock" "$LINENO" 5
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039 $as_echo "yes" >&6; }
3040 # If we didn't sleep, we still need to ensure time stamps of config.status and
3041 # generated files are strictly newer.
3042 am_sleep_pid=
3043 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3044 ( sleep 1 ) &
3045 am_sleep_pid=$!
3046 fi
3047
3048 rm -f conftest.file
3049
3050 test "$program_prefix" != NONE &&
3051 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3052 # Use a double $ so make ignores it.
3053 test "$program_suffix" != NONE &&
3054 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3055 # Double any \ or $.
3056 # By default was `s,x,x', remove it if useless.
3057 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3058 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3059
3060 # Expand $ac_aux_dir to an absolute path.
3061 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3062
3063 if test x"${MISSING+set}" != xset; then
3064 case $am_aux_dir in
3065 *\ * | *\ *)
3066 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3067 *)
3068 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3069 esac
3070 fi
3071 # Use eval to expand $SHELL
3072 if eval "$MISSING --is-lightweight"; then
3073 am_missing_run="$MISSING "
3074 else
3075 am_missing_run=
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3077 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3078 fi
3079
3080 if test x"${install_sh+set}" != xset; then
3081 case $am_aux_dir in
3082 *\ * | *\ *)
3083 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3084 *)
3085 install_sh="\${SHELL} $am_aux_dir/install-sh"
3086 esac
3087 fi
3088
3089 # Installed binaries are usually stripped using 'strip' when the user
3090 # run "make install-strip". However 'strip' might not be the right
3091 # tool to use in cross-compilation environments, therefore Automake
3092 # will honor the 'STRIP' environment variable to overrule this program.
3093 if test "$cross_compiling" != no; then
3094 if test -n "$ac_tool_prefix"; then
3095 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}strip; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_STRIP+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$STRIP"; then
3103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116 done
3117 done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 STRIP=$ac_cv_prog_STRIP
3123 if test -n "$STRIP"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3125 $as_echo "$STRIP" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132 fi
3133 if test -z "$ac_cv_prog_STRIP"; then
3134 ac_ct_STRIP=$STRIP
3135 # Extract the first word of "strip", so it can be a program name with args.
3136 set dummy strip; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$ac_ct_STRIP"; then
3143 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_ac_ct_STRIP="strip"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156 done
3157 done
3158 IFS=$as_save_IFS
3159
3160 fi
3161 fi
3162 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3163 if test -n "$ac_ct_STRIP"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3165 $as_echo "$ac_ct_STRIP" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 fi
3170
3171 if test "x$ac_ct_STRIP" = x; then
3172 STRIP=":"
3173 else
3174 case $cross_compiling:$ac_tool_warned in
3175 yes:)
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178 ac_tool_warned=yes ;;
3179 esac
3180 STRIP=$ac_ct_STRIP
3181 fi
3182 else
3183 STRIP="$ac_cv_prog_STRIP"
3184 fi
3185
3186 fi
3187 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3188
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3190 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3191 if test -z "$MKDIR_P"; then
3192 if ${ac_cv_path_mkdir+:} false; then :
3193 $as_echo_n "(cached) " >&6
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_prog in mkdir gmkdir; do
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3203 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3204 'mkdir (GNU coreutils) '* | \
3205 'mkdir (coreutils) '* | \
3206 'mkdir (fileutils) '4.1*)
3207 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3208 break 3;;
3209 esac
3210 done
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216
3217 test -d ./--version && rmdir ./--version
3218 if test "${ac_cv_path_mkdir+set}" = set; then
3219 MKDIR_P="$ac_cv_path_mkdir -p"
3220 else
3221 # As a last resort, use the slow shell script. Don't cache a
3222 # value for MKDIR_P within a source directory, because that will
3223 # break other packages using the cache if that directory is
3224 # removed, or if the value is a relative name.
3225 MKDIR_P="$ac_install_sh -d"
3226 fi
3227 fi
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3229 $as_echo "$MKDIR_P" >&6; }
3230
3231 for ac_prog in gawk mawk nawk awk
3232 do
3233 # Extract the first word of "$ac_prog", so it can be a program name with args.
3234 set dummy $ac_prog; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_AWK+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$AWK"; then
3241 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_AWK="$ac_prog"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 AWK=$ac_cv_prog_AWK
3261 if test -n "$AWK"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3263 $as_echo "$AWK" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 test -n "$AWK" && break
3271 done
3272
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3274 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3275 set x ${MAKE-make}
3276 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3277 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat >conftest.make <<\_ACEOF
3281 SHELL = /bin/sh
3282 all:
3283 @echo '@@@%%%=$(MAKE)=@@@%%%'
3284 _ACEOF
3285 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3287 *@@@%%%=?*=@@@%%%*)
3288 eval ac_cv_prog_make_${ac_make}_set=yes;;
3289 *)
3290 eval ac_cv_prog_make_${ac_make}_set=no;;
3291 esac
3292 rm -f conftest.make
3293 fi
3294 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3297 SET_MAKE=
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 SET_MAKE="MAKE=${MAKE-make}"
3302 fi
3303
3304 rm -rf .tst 2>/dev/null
3305 mkdir .tst 2>/dev/null
3306 if test -d .tst; then
3307 am__leading_dot=.
3308 else
3309 am__leading_dot=_
3310 fi
3311 rmdir .tst 2>/dev/null
3312
3313 # Check whether --enable-silent-rules was given.
3314 if test "${enable_silent_rules+set}" = set; then :
3315 enableval=$enable_silent_rules;
3316 fi
3317
3318 case $enable_silent_rules in # (((
3319 yes) AM_DEFAULT_VERBOSITY=0;;
3320 no) AM_DEFAULT_VERBOSITY=1;;
3321 *) AM_DEFAULT_VERBOSITY=1;;
3322 esac
3323 am_make=${MAKE-make}
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3325 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3326 if ${am_cv_make_support_nested_variables+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if $as_echo 'TRUE=$(BAR$(V))
3330 BAR0=false
3331 BAR1=true
3332 V=1
3333 am__doit:
3334 @$(TRUE)
3335 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3336 am_cv_make_support_nested_variables=yes
3337 else
3338 am_cv_make_support_nested_variables=no
3339 fi
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3342 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3343 if test $am_cv_make_support_nested_variables = yes; then
3344 AM_V='$(V)'
3345 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3346 else
3347 AM_V=$AM_DEFAULT_VERBOSITY
3348 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3349 fi
3350 AM_BACKSLASH='\'
3351
3352 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3353 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3354 # is not polluted with repeated "-I."
3355 am__isrc=' -I$(srcdir)'
3356 # test to see if srcdir already configured
3357 if test -f $srcdir/config.status; then
3358 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3359 fi
3360 fi
3361
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364 if (cygpath --version) >/dev/null 2>/dev/null; then
3365 CYGPATH_W='cygpath -w'
3366 else
3367 CYGPATH_W=echo
3368 fi
3369 fi
3370
3371
3372 # Define the identity of the package.
3373 PACKAGE='libgomp'
3374 VERSION='1.0'
3375
3376
3377 cat >>confdefs.h <<_ACEOF
3378 #define PACKAGE "$PACKAGE"
3379 _ACEOF
3380
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define VERSION "$VERSION"
3384 _ACEOF
3385
3386 # Some tools Automake needs.
3387
3388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3389
3390
3391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3392
3393
3394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3395
3396
3397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3398
3399
3400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3401
3402 # For better backward compatibility. To be removed once Automake 1.9.x
3403 # dies out for good. For more background, see:
3404 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3405 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3406 mkdir_p='$(MKDIR_P)'
3407
3408 # We need awk for the "check" target (and possibly the TAP driver). The
3409 # system "awk" is bad on some platforms.
3410 # Always define AMTAR for backward compatibility. Yes, it's still used
3411 # in the wild :-( We should find a proper way to deprecate it ...
3412 AMTAR='$${TAR-tar}'
3413
3414
3415 # We'll loop over all known methods to create a tar archive until one works.
3416 _am_tools='gnutar pax cpio none'
3417
3418 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3419
3420
3421
3422
3423
3424
3425 # POSIX will say in a future version that running "rm -f" with no argument
3426 # is OK; and we want to be able to make that assumption in our Makefile
3427 # recipes. So use an aggressive probe to check that the usage we want is
3428 # actually supported "in the wild" to an acceptable degree.
3429 # See automake bug#10828.
3430 # To make any issue more visible, cause the running configure to be aborted
3431 # by default if the 'rm' program in use doesn't match our expectations; the
3432 # user can still override this though.
3433 if rm -f && rm -fr && rm -rf; then : OK; else
3434 cat >&2 <<'END'
3435 Oops!
3436
3437 Your 'rm' program seems unable to run without file operands specified
3438 on the command line, even when the '-f' option is present. This is contrary
3439 to the behaviour of most rm programs out there, and not conforming with
3440 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3441
3442 Please tell bug-automake@gnu.org about your system, including the value
3443 of your $PATH and any error possibly output before this message. This
3444 can help us improve future automake versions.
3445
3446 END
3447 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3448 echo 'Configuration will proceed anyway, since you have set the' >&2
3449 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3450 echo >&2
3451 else
3452 cat >&2 <<'END'
3453 Aborting the configuration process, to ensure you take notice of the issue.
3454
3455 You can download and install GNU coreutils to get an 'rm' implementation
3456 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3457
3458 If you want to complete the configuration process using your problematic
3459 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3460 to "yes", and re-run configure.
3461
3462 END
3463 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3464 fi
3465 fi
3466
3467 # Default to --enable-multilib
3468 # Check whether --enable-multilib was given.
3469 if test "${enable_multilib+set}" = set; then :
3470 enableval=$enable_multilib; case "$enableval" in
3471 yes) multilib=yes ;;
3472 no) multilib=no ;;
3473 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3474 esac
3475 else
3476 multilib=yes
3477 fi
3478
3479
3480 # We may get other options which we leave undocumented:
3481 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3482 # See config-ml.in if you want the gory details.
3483
3484 if test "$srcdir" = "."; then
3485 if test "$with_target_subdir" != "."; then
3486 multi_basedir="$srcdir/$with_multisrctop../.."
3487 else
3488 multi_basedir="$srcdir/$with_multisrctop.."
3489 fi
3490 else
3491 multi_basedir="$srcdir/.."
3492 fi
3493
3494
3495 # Even if the default multilib is not a cross compilation,
3496 # it may be that some of the other multilibs are.
3497 if test $cross_compiling = no && test $multilib = yes \
3498 && test "x${with_multisubdir}" != x ; then
3499 cross_compiling=maybe
3500 fi
3501
3502 ac_config_commands="$ac_config_commands default-1"
3503
3504
3505
3506 # Check whether --with-toolexeclibdir was given.
3507 if test "${with_toolexeclibdir+set}" = set; then :
3508 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3509 /)
3510 ;;
3511 */)
3512 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3513 ;;
3514 esac
3515 else
3516 with_toolexeclibdir=no
3517 fi
3518
3519
3520
3521 # Calculate toolexeclibdir
3522 # Also toolexecdir, though it's only used in toolexeclibdir
3523 case ${enable_version_specific_runtime_libs} in
3524 yes)
3525 # Need the gcc compiler version to know where to install libraries
3526 # and header files if --enable-version-specific-runtime-libs option
3527 # is selected.
3528 toolexecdir='$(libdir)/gcc/$(target_alias)'
3529 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3530 ;;
3531 no)
3532 if test -n "$with_cross_host" &&
3533 test x"$with_cross_host" != x"no"; then
3534 # Install a library built with a cross compiler in tooldir, not libdir.
3535 toolexecdir='$(exec_prefix)/$(target_alias)'
3536 case ${with_toolexeclibdir} in
3537 no)
3538 toolexeclibdir='$(toolexecdir)/lib'
3539 ;;
3540 *)
3541 toolexeclibdir=${with_toolexeclibdir}
3542 ;;
3543 esac
3544 else
3545 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3546 toolexeclibdir='$(libdir)'
3547 fi
3548 multi_os_directory=`$CC -print-multi-os-directory`
3549 case $multi_os_directory in
3550 .) ;; # Avoid trailing /.
3551 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3552 esac
3553 ;;
3554 esac
3555
3556
3557
3558 # Check the compiler.
3559 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3560 # We must force CC to /not/ be precious variables; otherwise
3561 # the wrong, non-multilib-adjusted value will be used in multilibs.
3562 # As a side effect, we have to subst CFLAGS ourselves.
3563
3564
3565
3566 ac_ext=c
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 if test -n "$ac_tool_prefix"; then
3572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3573 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_CC+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593 done
3594 done
3595 IFS=$as_save_IFS
3596
3597 fi
3598 fi
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3606 fi
3607
3608
3609 fi
3610 if test -z "$ac_cv_prog_CC"; then
3611 ac_ct_CC=$CC
3612 # Extract the first word of "gcc", so it can be a program name with args.
3613 set dummy gcc; ac_word=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_ac_ct_CC="gcc"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642 $as_echo "$ac_ct_CC" >&6; }
3643 else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 fi
3647
3648 if test "x$ac_ct_CC" = x; then
3649 CC=""
3650 else
3651 case $cross_compiling:$ac_tool_warned in
3652 yes:)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned=yes ;;
3656 esac
3657 CC=$ac_ct_CC
3658 fi
3659 else
3660 CC="$ac_cv_prog_CC"
3661 fi
3662
3663 if test -z "$CC"; then
3664 if test -n "$ac_tool_prefix"; then
3665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3666 set dummy ${ac_tool_prefix}cc; ac_word=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if ${ac_cv_prog_CC+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_CC="${ac_tool_prefix}cc"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702 fi
3703 fi
3704 if test -z "$CC"; then
3705 # Extract the first word of "cc", so it can be a program name with args.
3706 set dummy cc; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_CC+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$CC"; then
3713 ac_cv_prog_CC="$CC" # Let the user override the test.
3714 else
3715 ac_prog_rejected=no
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3724 ac_prog_rejected=yes
3725 continue
3726 fi
3727 ac_cv_prog_CC="cc"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3730 fi
3731 done
3732 done
3733 IFS=$as_save_IFS
3734
3735 if test $ac_prog_rejected = yes; then
3736 # We found a bogon in the path, so make sure we never use it.
3737 set dummy $ac_cv_prog_CC
3738 shift
3739 if test $# != 0; then
3740 # We chose a different compiler from the bogus one.
3741 # However, it has the same basename, so the bogon will be chosen
3742 # first if we set CC to just the basename; use the full file name.
3743 shift
3744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3745 fi
3746 fi
3747 fi
3748 fi
3749 CC=$ac_cv_prog_CC
3750 if test -n "$CC"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 $as_echo "$CC" >&6; }
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 fi
3757
3758
3759 fi
3760 if test -z "$CC"; then
3761 if test -n "$ac_tool_prefix"; then
3762 for ac_prog in cl.exe
3763 do
3764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if ${ac_cv_prog_CC+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 if test -n "$CC"; then
3772 ac_cv_prog_CC="$CC" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3784 fi
3785 done
3786 done
3787 IFS=$as_save_IFS
3788
3789 fi
3790 fi
3791 CC=$ac_cv_prog_CC
3792 if test -n "$CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794 $as_echo "$CC" >&6; }
3795 else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3798 fi
3799
3800
3801 test -n "$CC" && break
3802 done
3803 fi
3804 if test -z "$CC"; then
3805 ac_ct_CC=$CC
3806 for ac_prog in cl.exe
3807 do
3808 # Extract the first word of "$ac_prog", so it can be a program name with args.
3809 set dummy $ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 if test -n "$ac_ct_CC"; then
3816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_ac_ct_CC="$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829 done
3830 done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3836 if test -n "$ac_ct_CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3838 $as_echo "$ac_ct_CC" >&6; }
3839 else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3842 fi
3843
3844
3845 test -n "$ac_ct_CC" && break
3846 done
3847
3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857 CC=$ac_ct_CC
3858 fi
3859 fi
3860
3861 fi
3862
3863
3864 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "no acceptable C compiler found in \$PATH
3867 See \`config.log' for more details" "$LINENO" 5; }
3868
3869 # Provide some information about the compiler.
3870 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3871 set X $ac_compile
3872 ac_compiler=$2
3873 for ac_option in --version -v -V -qversion; do
3874 { { ac_try="$ac_compiler $ac_option >&5"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3882 ac_status=$?
3883 if test -s conftest.err; then
3884 sed '10a\
3885 ... rest of stderr output deleted ...
3886 10q' conftest.err >conftest.er1
3887 cat conftest.er1 >&5
3888 fi
3889 rm -f conftest.er1 conftest.err
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }
3892 done
3893
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896
3897 int
3898 main ()
3899 {
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 ac_clean_files_save=$ac_clean_files
3906 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3907 # Try to create an executable without -o first, disregard a.out.
3908 # It will help us diagnose broken compilers, and finding out an intuition
3909 # of exeext.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 $as_echo_n "checking whether the C compiler works... " >&6; }
3912 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3913
3914 # The possible output files:
3915 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3916
3917 ac_rmfiles=
3918 for ac_file in $ac_files
3919 do
3920 case $ac_file in
3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3922 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3923 esac
3924 done
3925 rm -f $ac_rmfiles
3926
3927 if { { ac_try="$ac_link_default"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_link_default") 2>&5
3935 ac_status=$?
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; then :
3938 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3939 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3940 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3941 # so that the user can short-circuit this test for compilers unknown to
3942 # Autoconf.
3943 for ac_file in $ac_files ''
3944 do
3945 test -f "$ac_file" || continue
3946 case $ac_file in
3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3948 ;;
3949 [ab].out )
3950 # We found the default executable, but exeext='' is most
3951 # certainly right.
3952 break;;
3953 *.* )
3954 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3955 then :; else
3956 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3957 fi
3958 # We set ac_cv_exeext here because the later test for it is not
3959 # safe: cross compilers may not add the suffix if given an `-o'
3960 # argument, so we may need to know it at that point already.
3961 # Even if this section looks crufty: it has the advantage of
3962 # actually working.
3963 break;;
3964 * )
3965 break;;
3966 esac
3967 done
3968 test "$ac_cv_exeext" = no && ac_cv_exeext=
3969
3970 else
3971 ac_file=''
3972 fi
3973 if test -z "$ac_file"; then :
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 $as_echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error 77 "C compiler cannot create executables
3982 See \`config.log' for more details" "$LINENO" 5; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3985 $as_echo "yes" >&6; }
3986 fi
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3988 $as_echo_n "checking for C compiler default output file name... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3990 $as_echo "$ac_file" >&6; }
3991 ac_exeext=$ac_cv_exeext
3992
3993 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3994 ac_clean_files=$ac_clean_files_save
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3996 $as_echo_n "checking for suffix of executables... " >&6; }
3997 if { { ac_try="$ac_link"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_link") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4009 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4010 # work properly (i.e., refer to `conftest.exe'), while it won't with
4011 # `rm'.
4012 for ac_file in conftest.exe conftest conftest.*; do
4013 test -f "$ac_file" || continue
4014 case $ac_file in
4015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4017 break;;
4018 * ) break;;
4019 esac
4020 done
4021 else
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4025 See \`config.log' for more details" "$LINENO" 5; }
4026 fi
4027 rm -f conftest conftest$ac_cv_exeext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4029 $as_echo "$ac_cv_exeext" >&6; }
4030
4031 rm -f conftest.$ac_ext
4032 EXEEXT=$ac_cv_exeext
4033 ac_exeext=$EXEEXT
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <stdio.h>
4037 int
4038 main ()
4039 {
4040 FILE *f = fopen ("conftest.out", "w");
4041 return ferror (f) || fclose (f) != 0;
4042
4043 ;
4044 return 0;
4045 }
4046 _ACEOF
4047 ac_clean_files="$ac_clean_files conftest.out"
4048 # Check that the compiler produces executables we can run. If not, either
4049 # the compiler is broken, or we cross compile.
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4051 $as_echo_n "checking whether we are cross compiling... " >&6; }
4052 if test "$cross_compiling" != yes; then
4053 { { ac_try="$ac_link"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_link") 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }
4064 if { ac_try='./conftest$ac_cv_exeext'
4065 { { case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 $as_echo "$ac_try_echo"; } >&5
4071 (eval "$ac_try") 2>&5
4072 ac_status=$?
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }; }; then
4075 cross_compiling=no
4076 else
4077 if test "$cross_compiling" = maybe; then
4078 cross_compiling=yes
4079 else
4080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error $? "cannot run C compiled programs.
4083 If you meant to cross compile, use \`--host'.
4084 See \`config.log' for more details" "$LINENO" 5; }
4085 fi
4086 fi
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4089 $as_echo "$cross_compiling" >&6; }
4090
4091 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4092 ac_clean_files=$ac_clean_files_save
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4094 $as_echo_n "checking for suffix of object files... " >&6; }
4095 if ${ac_cv_objext+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100
4101 int
4102 main ()
4103 {
4104
4105 ;
4106 return 0;
4107 }
4108 _ACEOF
4109 rm -f conftest.o conftest.obj
4110 if { { ac_try="$ac_compile"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_compile") 2>&5
4118 ac_status=$?
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; then :
4121 for ac_file in conftest.o conftest.obj conftest.*; do
4122 test -f "$ac_file" || continue;
4123 case $ac_file in
4124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4126 break;;
4127 esac
4128 done
4129 else
4130 $as_echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4135 as_fn_error $? "cannot compute suffix of object files: cannot compile
4136 See \`config.log' for more details" "$LINENO" 5; }
4137 fi
4138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4141 $as_echo "$ac_cv_objext" >&6; }
4142 OBJEXT=$ac_cv_objext
4143 ac_objext=$OBJEXT
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4145 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4146 if ${ac_cv_c_compiler_gnu+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151
4152 int
4153 main ()
4154 {
4155 #ifndef __GNUC__
4156 choke me
4157 #endif
4158
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164 ac_compiler_gnu=yes
4165 else
4166 ac_compiler_gnu=no
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4170
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4173 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4174 if test $ac_compiler_gnu = yes; then
4175 GCC=yes
4176 else
4177 GCC=
4178 fi
4179 ac_test_CFLAGS=${CFLAGS+set}
4180 ac_save_CFLAGS=$CFLAGS
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4182 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4183 if ${ac_cv_prog_cc_g+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 ac_save_c_werror_flag=$ac_c_werror_flag
4187 ac_c_werror_flag=yes
4188 ac_cv_prog_cc_g=no
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 else
4204 CFLAGS=""
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207
4208 int
4209 main ()
4210 {
4211
4212 ;
4213 return 0;
4214 }
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217
4218 else
4219 ac_c_werror_flag=$ac_save_c_werror_flag
4220 CFLAGS="-g"
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223
4224 int
4225 main ()
4226 {
4227
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_g=yes
4234 fi
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 ac_c_werror_flag=$ac_save_c_werror_flag
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4243 $as_echo "$ac_cv_prog_cc_g" >&6; }
4244 if test "$ac_test_CFLAGS" = set; then
4245 CFLAGS=$ac_save_CFLAGS
4246 elif test $ac_cv_prog_cc_g = yes; then
4247 if test "$GCC" = yes; then
4248 CFLAGS="-g -O2"
4249 else
4250 CFLAGS="-g"
4251 fi
4252 else
4253 if test "$GCC" = yes; then
4254 CFLAGS="-O2"
4255 else
4256 CFLAGS=
4257 fi
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4260 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4261 if ${ac_cv_prog_cc_c89+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 ac_cv_prog_cc_c89=no
4265 ac_save_CC=$CC
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268 #include <stdarg.h>
4269 #include <stdio.h>
4270 struct stat;
4271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4272 struct buf { int x; };
4273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4274 static char *e (p, i)
4275 char **p;
4276 int i;
4277 {
4278 return p[i];
4279 }
4280 static char *f (char * (*g) (char **, int), char **p, ...)
4281 {
4282 char *s;
4283 va_list v;
4284 va_start (v,p);
4285 s = g (p, va_arg (v,int));
4286 va_end (v);
4287 return s;
4288 }
4289
4290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4291 function prototypes and stuff, but not '\xHH' hex character constants.
4292 These don't provoke an error unfortunately, instead are silently treated
4293 as 'x'. The following induces an error, until -std is added to get
4294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4295 array size at least. It's necessary to write '\x00'==0 to get something
4296 that's true only with -std. */
4297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4298
4299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4300 inside strings and character constants. */
4301 #define FOO(x) 'x'
4302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4303
4304 int test (int i, double x);
4305 struct s1 {int (*f) (int a);};
4306 struct s2 {int (*f) (double a);};
4307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4308 int argc;
4309 char **argv;
4310 int
4311 main ()
4312 {
4313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4314 ;
4315 return 0;
4316 }
4317 _ACEOF
4318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4320 do
4321 CC="$ac_save_CC $ac_arg"
4322 if ac_fn_c_try_compile "$LINENO"; then :
4323 ac_cv_prog_cc_c89=$ac_arg
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext
4326 test "x$ac_cv_prog_cc_c89" != "xno" && break
4327 done
4328 rm -f conftest.$ac_ext
4329 CC=$ac_save_CC
4330
4331 fi
4332 # AC_CACHE_VAL
4333 case "x$ac_cv_prog_cc_c89" in
4334 x)
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4336 $as_echo "none needed" >&6; } ;;
4337 xno)
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4339 $as_echo "unsupported" >&6; } ;;
4340 *)
4341 CC="$CC $ac_cv_prog_cc_c89"
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4343 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4344 esac
4345 if test "x$ac_cv_prog_cc_c89" != xno; then :
4346
4347 fi
4348
4349 ac_ext=c
4350 ac_cpp='$CPP $CPPFLAGS'
4351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354
4355 ac_ext=c
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4361 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4362 if ${am_cv_prog_cc_c_o+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367
4368 int
4369 main ()
4370 {
4371
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 # Make sure it works both with $CC and with simple cc.
4377 # Following AC_PROG_CC_C_O, we do the test twice because some
4378 # compilers refuse to overwrite an existing .o file with -o,
4379 # though they will create one.
4380 am_cv_prog_cc_c_o=yes
4381 for am_i in 1 2; do
4382 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4383 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } \
4387 && test -f conftest2.$ac_objext; then
4388 : OK
4389 else
4390 am_cv_prog_cc_c_o=no
4391 break
4392 fi
4393 done
4394 rm -f core conftest*
4395 unset am_i
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4398 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4399 if test "$am_cv_prog_cc_c_o" != yes; then
4400 # Losing compiler, so override with the script.
4401 # FIXME: It is wrong to rewrite CC.
4402 # But if we don't then we get into trouble of one sort or another.
4403 # A longer-term fix would be to have automake use am__CC in this case,
4404 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4405 CC="$am_aux_dir/compile $CC"
4406 fi
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
4413 DEPDIR="${am__leading_dot}deps"
4414
4415 ac_config_commands="$ac_config_commands depfiles"
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4418 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4419 cat > confinc.mk << 'END'
4420 am__doit:
4421 @echo this is the am__doit target >confinc.out
4422 .PHONY: am__doit
4423 END
4424 am__include="#"
4425 am__quote=
4426 # BSD make does it like this.
4427 echo '.include "confinc.mk" # ignored' > confmf.BSD
4428 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4429 echo 'include confinc.mk # ignored' > confmf.GNU
4430 _am_result=no
4431 for s in GNU BSD; do
4432 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4433 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }
4437 case $?:`cat confinc.out 2>/dev/null` in #(
4438 '0:this is the am__doit target') :
4439 case $s in #(
4440 BSD) :
4441 am__include='.include' am__quote='"' ;; #(
4442 *) :
4443 am__include='include' am__quote='' ;;
4444 esac ;; #(
4445 *) :
4446 ;;
4447 esac
4448 if test "$am__include" != "#"; then
4449 _am_result="yes ($s style)"
4450 break
4451 fi
4452 done
4453 rm -f confinc.* confmf.*
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4455 $as_echo "${_am_result}" >&6; }
4456
4457 # Check whether --enable-dependency-tracking was given.
4458 if test "${enable_dependency_tracking+set}" = set; then :
4459 enableval=$enable_dependency_tracking;
4460 fi
4461
4462 if test "x$enable_dependency_tracking" != xno; then
4463 am_depcomp="$ac_aux_dir/depcomp"
4464 AMDEPBACKSLASH='\'
4465 am__nodep='_no'
4466 fi
4467 if test "x$enable_dependency_tracking" != xno; then
4468 AMDEP_TRUE=
4469 AMDEP_FALSE='#'
4470 else
4471 AMDEP_TRUE='#'
4472 AMDEP_FALSE=
4473 fi
4474
4475
4476
4477 depcc="$CC" am_compiler_list=
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4480 $as_echo_n "checking dependency style of $depcc... " >&6; }
4481 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4485 # We make a subdir and do the tests there. Otherwise we can end up
4486 # making bogus files that we don't know about and never remove. For
4487 # instance it was reported that on HP-UX the gcc test will end up
4488 # making a dummy file named 'D' -- because '-MD' means "put the output
4489 # in D".
4490 rm -rf conftest.dir
4491 mkdir conftest.dir
4492 # Copy depcomp to subdir because otherwise we won't find it if we're
4493 # using a relative directory.
4494 cp "$am_depcomp" conftest.dir
4495 cd conftest.dir
4496 # We will build objects and dependencies in a subdirectory because
4497 # it helps to detect inapplicable dependency modes. For instance
4498 # both Tru64's cc and ICC support -MD to output dependencies as a
4499 # side effect of compilation, but ICC will put the dependencies in
4500 # the current directory while Tru64 will put them in the object
4501 # directory.
4502 mkdir sub
4503
4504 am_cv_CC_dependencies_compiler_type=none
4505 if test "$am_compiler_list" = ""; then
4506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4507 fi
4508 am__universal=false
4509 case " $depcc " in #(
4510 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4511 esac
4512
4513 for depmode in $am_compiler_list; do
4514 # Setup a source with many dependencies, because some compilers
4515 # like to wrap large dependency lists on column 80 (with \), and
4516 # we should not choose a depcomp mode which is confused by this.
4517 #
4518 # We need to recreate these files for each test, as the compiler may
4519 # overwrite some of them when testing with obscure command lines.
4520 # This happens at least with the AIX C compiler.
4521 : > sub/conftest.c
4522 for i in 1 2 3 4 5 6; do
4523 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4524 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4525 # Solaris 10 /bin/sh.
4526 echo '/* dummy */' > sub/conftst$i.h
4527 done
4528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4529
4530 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4531 # mode. It turns out that the SunPro C++ compiler does not properly
4532 # handle '-M -o', and we need to detect this. Also, some Intel
4533 # versions had trouble with output in subdirs.
4534 am__obj=sub/conftest.${OBJEXT-o}
4535 am__minus_obj="-o $am__obj"
4536 case $depmode in
4537 gcc)
4538 # This depmode causes a compiler race in universal mode.
4539 test "$am__universal" = false || continue
4540 ;;
4541 nosideeffect)
4542 # After this tag, mechanisms are not by side-effect, so they'll
4543 # only be used when explicitly requested.
4544 if test "x$enable_dependency_tracking" = xyes; then
4545 continue
4546 else
4547 break
4548 fi
4549 ;;
4550 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4551 # This compiler won't grok '-c -o', but also, the minuso test has
4552 # not run yet. These depmodes are late enough in the game, and
4553 # so weak that their functioning should not be impacted.
4554 am__obj=conftest.${OBJEXT-o}
4555 am__minus_obj=
4556 ;;
4557 none) break ;;
4558 esac
4559 if depmode=$depmode \
4560 source=sub/conftest.c object=$am__obj \
4561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4562 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4563 >/dev/null 2>conftest.err &&
4564 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4565 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4566 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4567 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4568 # icc doesn't choke on unknown options, it will just issue warnings
4569 # or remarks (even with -Werror). So we grep stderr for any message
4570 # that says an option was ignored or not supported.
4571 # When given -MP, icc 7.0 and 7.1 complain thusly:
4572 # icc: Command line warning: ignoring option '-M'; no argument required
4573 # The diagnosis changed in icc 8.0:
4574 # icc: Command line remark: option '-MP' not supported
4575 if (grep 'ignoring option' conftest.err ||
4576 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4577 am_cv_CC_dependencies_compiler_type=$depmode
4578 break
4579 fi
4580 fi
4581 done
4582
4583 cd ..
4584 rm -rf conftest.dir
4585 else
4586 am_cv_CC_dependencies_compiler_type=none
4587 fi
4588
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4591 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4592 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4593
4594 if
4595 test "x$enable_dependency_tracking" != xno \
4596 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4597 am__fastdepCC_TRUE=
4598 am__fastdepCC_FALSE='#'
4599 else
4600 am__fastdepCC_TRUE='#'
4601 am__fastdepCC_FALSE=
4602 fi
4603
4604
4605
4606
4607
4608
4609 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4610 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4611 # in both places for now and restore CFLAGS at the end of config.
4612 save_CFLAGS="$CFLAGS"
4613
4614 # Add -Wall -Werror if we are using GCC.
4615 if test "x$GCC" = "xyes"; then
4616 XCFLAGS="$XCFLAGS -Wall -Werror"
4617 fi
4618
4619 # Find other programs we need.
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}ar; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if ${ac_cv_prog_AR+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if test -n "$AR"; then
4629 ac_cv_prog_AR="$AR" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638 ac_cv_prog_AR="${ac_tool_prefix}ar"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646 fi
4647 fi
4648 AR=$ac_cv_prog_AR
4649 if test -n "$AR"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4651 $as_echo "$AR" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4655 fi
4656
4657
4658 fi
4659 if test -z "$ac_cv_prog_AR"; then
4660 ac_ct_AR=$AR
4661 # Extract the first word of "ar", so it can be a program name with args.
4662 set dummy ar; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -n "$ac_ct_AR"; then
4669 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_ac_ct_AR="ar"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4689 if test -n "$ac_ct_AR"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4691 $as_echo "$ac_ct_AR" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696
4697 if test "x$ac_ct_AR" = x; then
4698 AR=""
4699 else
4700 case $cross_compiling:$ac_tool_warned in
4701 yes:)
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 ac_tool_warned=yes ;;
4705 esac
4706 AR=$ac_ct_AR
4707 fi
4708 else
4709 AR="$ac_cv_prog_AR"
4710 fi
4711
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if ${ac_cv_prog_RANLIB+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$RANLIB"; then
4721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 RANLIB=$ac_cv_prog_RANLIB
4741 if test -n "$RANLIB"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4743 $as_echo "$RANLIB" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748
4749
4750 fi
4751 if test -z "$ac_cv_prog_RANLIB"; then
4752 ac_ct_RANLIB=$RANLIB
4753 # Extract the first word of "ranlib", so it can be a program name with args.
4754 set dummy ranlib; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$ac_ct_RANLIB"; then
4761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_ac_ct_RANLIB="ranlib"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4781 if test -n "$ac_ct_RANLIB"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4783 $as_echo "$ac_ct_RANLIB" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789 if test "x$ac_ct_RANLIB" = x; then
4790 RANLIB="ranlib-not-found-in-path-error"
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793 yes:)
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796 ac_tool_warned=yes ;;
4797 esac
4798 RANLIB=$ac_ct_RANLIB
4799 fi
4800 else
4801 RANLIB="$ac_cv_prog_RANLIB"
4802 fi
4803
4804 # Extract the first word of "perl", so it can be a program name with args.
4805 set dummy perl; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_path_PERL+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 case $PERL in
4812 [\\/]* | ?:[\\/]*)
4813 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4814 ;;
4815 *)
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4832 ;;
4833 esac
4834 fi
4835 PERL=$ac_cv_path_PERL
4836 if test -n "$PERL"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4838 $as_echo "$PERL" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4847 set x ${MAKE-make}
4848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4849 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 cat >conftest.make <<\_ACEOF
4853 SHELL = /bin/sh
4854 all:
4855 @echo '@@@%%%=$(MAKE)=@@@%%%'
4856 _ACEOF
4857 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4859 *@@@%%%=?*=@@@%%%*)
4860 eval ac_cv_prog_make_${ac_make}_set=yes;;
4861 *)
4862 eval ac_cv_prog_make_${ac_make}_set=no;;
4863 esac
4864 rm -f conftest.make
4865 fi
4866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4868 $as_echo "yes" >&6; }
4869 SET_MAKE=
4870 else
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 SET_MAKE="MAKE=${MAKE-make}"
4874 fi
4875
4876
4877
4878 # See if makeinfo has been installed and is modern enough
4879 # that we can use it.
4880
4881 # Extract the first word of "makeinfo", so it can be a program name with args.
4882 set dummy makeinfo; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_prog_MAKEINFO+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if test -n "$MAKEINFO"; then
4889 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_MAKEINFO="makeinfo"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4901 fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906 fi
4907 fi
4908 MAKEINFO=$ac_cv_prog_MAKEINFO
4909 if test -n "$MAKEINFO"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4911 $as_echo "$MAKEINFO" >&6; }
4912 else
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4915 fi
4916
4917
4918 if test -n "$MAKEINFO"; then
4919 # Found it, now check the version.
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4921 $as_echo_n "checking for modern makeinfo... " >&6; }
4922 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4926 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4927
4928 case $ac_prog_version in
4929 '') gcc_cv_prog_makeinfo_modern=no;;
4930 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4931 *) gcc_cv_prog_makeinfo_modern=no;;
4932 esac
4933
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4936 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4937 else
4938 gcc_cv_prog_makeinfo_modern=no
4939 fi
4940 if test $gcc_cv_prog_makeinfo_modern = no; then
4941 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4942 fi
4943
4944 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4945 BUILD_INFO_TRUE=
4946 BUILD_INFO_FALSE='#'
4947 else
4948 BUILD_INFO_TRUE='#'
4949 BUILD_INFO_FALSE=
4950 fi
4951
4952
4953
4954 # Configure libtool
4955 case `pwd` in
4956 *\ * | *\ *)
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4958 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4959 esac
4960
4961
4962
4963 macro_version='2.2.7a'
4964 macro_revision='1.3134'
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 ltmain="$ac_aux_dir/ltmain.sh"
4979
4980 # Backslashify metacharacters that are still active within
4981 # double-quoted strings.
4982 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4983
4984 # Same as above, but do not quote variable references.
4985 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4986
4987 # Sed substitution to delay expansion of an escaped shell variable in a
4988 # double_quote_subst'ed string.
4989 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4990
4991 # Sed substitution to delay expansion of an escaped single quote.
4992 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4993
4994 # Sed substitution to avoid accidental globbing in evaled expressions
4995 no_glob_subst='s/\*/\\\*/g'
4996
4997 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5002 $as_echo_n "checking how to print strings... " >&6; }
5003 # Test print first, because it will be a builtin if present.
5004 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5005 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5006 ECHO='print -r --'
5007 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5008 ECHO='printf %s\n'
5009 else
5010 # Use this function as a fallback that always works.
5011 func_fallback_echo ()
5012 {
5013 eval 'cat <<_LTECHO_EOF
5014 $1
5015 _LTECHO_EOF'
5016 }
5017 ECHO='func_fallback_echo'
5018 fi
5019
5020 # func_echo_all arg...
5021 # Invoke $ECHO with all args, space-separated.
5022 func_echo_all ()
5023 {
5024 $ECHO ""
5025 }
5026
5027 case "$ECHO" in
5028 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5029 $as_echo "printf" >&6; } ;;
5030 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5031 $as_echo "print -r" >&6; } ;;
5032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5033 $as_echo "cat" >&6; } ;;
5034 esac
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5050 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5051 if ${ac_cv_path_SED+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5055 for ac_i in 1 2 3 4 5 6 7; do
5056 ac_script="$ac_script$as_nl$ac_script"
5057 done
5058 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5059 { ac_script=; unset ac_script;}
5060 if test -z "$SED"; then
5061 ac_path_SED_found=false
5062 # Loop through the user's path and test for each of PROGNAME-LIST
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_prog in sed gsed; do
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5071 as_fn_executable_p "$ac_path_SED" || continue
5072 # Check for GNU ac_path_SED and select it if it is found.
5073 # Check for GNU $ac_path_SED
5074 case `"$ac_path_SED" --version 2>&1` in
5075 *GNU*)
5076 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5077 *)
5078 ac_count=0
5079 $as_echo_n 0123456789 >"conftest.in"
5080 while :
5081 do
5082 cat "conftest.in" "conftest.in" >"conftest.tmp"
5083 mv "conftest.tmp" "conftest.in"
5084 cp "conftest.in" "conftest.nl"
5085 $as_echo '' >> "conftest.nl"
5086 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5088 as_fn_arith $ac_count + 1 && ac_count=$as_val
5089 if test $ac_count -gt ${ac_path_SED_max-0}; then
5090 # Best one so far, save it but keep looking for a better one
5091 ac_cv_path_SED="$ac_path_SED"
5092 ac_path_SED_max=$ac_count
5093 fi
5094 # 10*(2^10) chars as input seems more than enough
5095 test $ac_count -gt 10 && break
5096 done
5097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5098 esac
5099
5100 $ac_path_SED_found && break 3
5101 done
5102 done
5103 done
5104 IFS=$as_save_IFS
5105 if test -z "$ac_cv_path_SED"; then
5106 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5107 fi
5108 else
5109 ac_cv_path_SED=$SED
5110 fi
5111
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5114 $as_echo "$ac_cv_path_SED" >&6; }
5115 SED="$ac_cv_path_SED"
5116 rm -f conftest.sed
5117
5118 test -z "$SED" && SED=sed
5119 Xsed="$SED -e 1s/^X//"
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5132 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5133 if ${ac_cv_path_GREP+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -z "$GREP"; then
5137 ac_path_GREP_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in grep ggrep; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5147 as_fn_executable_p "$ac_path_GREP" || continue
5148 # Check for GNU ac_path_GREP and select it if it is found.
5149 # Check for GNU $ac_path_GREP
5150 case `"$ac_path_GREP" --version 2>&1` in
5151 *GNU*)
5152 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5153 *)
5154 ac_count=0
5155 $as_echo_n 0123456789 >"conftest.in"
5156 while :
5157 do
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 $as_echo 'GREP' >> "conftest.nl"
5162 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_GREP="$ac_path_GREP"
5168 ac_path_GREP_max=$ac_count
5169 fi
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174 esac
5175
5176 $ac_path_GREP_found && break 3
5177 done
5178 done
5179 done
5180 IFS=$as_save_IFS
5181 if test -z "$ac_cv_path_GREP"; then
5182 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5183 fi
5184 else
5185 ac_cv_path_GREP=$GREP
5186 fi
5187
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5190 $as_echo "$ac_cv_path_GREP" >&6; }
5191 GREP="$ac_cv_path_GREP"
5192
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5195 $as_echo_n "checking for egrep... " >&6; }
5196 if ${ac_cv_path_EGREP+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5200 then ac_cv_path_EGREP="$GREP -E"
5201 else
5202 if test -z "$EGREP"; then
5203 ac_path_EGREP_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_prog in egrep; do
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5213 as_fn_executable_p "$ac_path_EGREP" || continue
5214 # Check for GNU ac_path_EGREP and select it if it is found.
5215 # Check for GNU $ac_path_EGREP
5216 case `"$ac_path_EGREP" --version 2>&1` in
5217 *GNU*)
5218 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5219 *)
5220 ac_count=0
5221 $as_echo_n 0123456789 >"conftest.in"
5222 while :
5223 do
5224 cat "conftest.in" "conftest.in" >"conftest.tmp"
5225 mv "conftest.tmp" "conftest.in"
5226 cp "conftest.in" "conftest.nl"
5227 $as_echo 'EGREP' >> "conftest.nl"
5228 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5230 as_fn_arith $ac_count + 1 && ac_count=$as_val
5231 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5232 # Best one so far, save it but keep looking for a better one
5233 ac_cv_path_EGREP="$ac_path_EGREP"
5234 ac_path_EGREP_max=$ac_count
5235 fi
5236 # 10*(2^10) chars as input seems more than enough
5237 test $ac_count -gt 10 && break
5238 done
5239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5240 esac
5241
5242 $ac_path_EGREP_found && break 3
5243 done
5244 done
5245 done
5246 IFS=$as_save_IFS
5247 if test -z "$ac_cv_path_EGREP"; then
5248 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5249 fi
5250 else
5251 ac_cv_path_EGREP=$EGREP
5252 fi
5253
5254 fi
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5257 $as_echo "$ac_cv_path_EGREP" >&6; }
5258 EGREP="$ac_cv_path_EGREP"
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5262 $as_echo_n "checking for fgrep... " >&6; }
5263 if ${ac_cv_path_FGREP+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5267 then ac_cv_path_FGREP="$GREP -F"
5268 else
5269 if test -z "$FGREP"; then
5270 ac_path_FGREP_found=false
5271 # Loop through the user's path and test for each of PROGNAME-LIST
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5274 do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_prog in fgrep; do
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5280 as_fn_executable_p "$ac_path_FGREP" || continue
5281 # Check for GNU ac_path_FGREP and select it if it is found.
5282 # Check for GNU $ac_path_FGREP
5283 case `"$ac_path_FGREP" --version 2>&1` in
5284 *GNU*)
5285 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5286 *)
5287 ac_count=0
5288 $as_echo_n 0123456789 >"conftest.in"
5289 while :
5290 do
5291 cat "conftest.in" "conftest.in" >"conftest.tmp"
5292 mv "conftest.tmp" "conftest.in"
5293 cp "conftest.in" "conftest.nl"
5294 $as_echo 'FGREP' >> "conftest.nl"
5295 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5297 as_fn_arith $ac_count + 1 && ac_count=$as_val
5298 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_FGREP="$ac_path_FGREP"
5301 ac_path_FGREP_max=$ac_count
5302 fi
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5305 done
5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5307 esac
5308
5309 $ac_path_FGREP_found && break 3
5310 done
5311 done
5312 done
5313 IFS=$as_save_IFS
5314 if test -z "$ac_cv_path_FGREP"; then
5315 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5316 fi
5317 else
5318 ac_cv_path_FGREP=$FGREP
5319 fi
5320
5321 fi
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5324 $as_echo "$ac_cv_path_FGREP" >&6; }
5325 FGREP="$ac_cv_path_FGREP"
5326
5327
5328 test -z "$GREP" && GREP=grep
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348 # Check whether --with-gnu-ld was given.
5349 if test "${with_gnu_ld+set}" = set; then :
5350 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5351 else
5352 with_gnu_ld=no
5353 fi
5354
5355 ac_prog=ld
5356 if test "$GCC" = yes; then
5357 # Check if gcc -print-prog-name=ld gives a path.
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5359 $as_echo_n "checking for ld used by $CC... " >&6; }
5360 case $host in
5361 *-*-mingw*)
5362 # gcc leaves a trailing carriage return which upsets mingw
5363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5364 *)
5365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5366 esac
5367 case $ac_prog in
5368 # Accept absolute paths.
5369 [\\/]* | ?:[\\/]*)
5370 re_direlt='/[^/][^/]*/\.\./'
5371 # Canonicalize the pathname of ld
5372 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5373 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5374 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5375 done
5376 test -z "$LD" && LD="$ac_prog"
5377 ;;
5378 "")
5379 # If it fails, then pretend we aren't using GCC.
5380 ac_prog=ld
5381 ;;
5382 *)
5383 # If it is relative, then search for the first ld in PATH.
5384 with_gnu_ld=unknown
5385 ;;
5386 esac
5387 elif test "$with_gnu_ld" = yes; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5389 $as_echo_n "checking for GNU ld... " >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5392 $as_echo_n "checking for non-GNU ld... " >&6; }
5393 fi
5394 if ${lt_cv_path_LD+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -z "$LD"; then
5398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5399 for ac_dir in $PATH; do
5400 IFS="$lt_save_ifs"
5401 test -z "$ac_dir" && ac_dir=.
5402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5403 lt_cv_path_LD="$ac_dir/$ac_prog"
5404 # Check to see if the program is GNU ld. I'd rather use --version,
5405 # but apparently some variants of GNU ld only accept -v.
5406 # Break only if it was the GNU/non-GNU ld that we prefer.
5407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5408 *GNU* | *'with BFD'*)
5409 test "$with_gnu_ld" != no && break
5410 ;;
5411 *)
5412 test "$with_gnu_ld" != yes && break
5413 ;;
5414 esac
5415 fi
5416 done
5417 IFS="$lt_save_ifs"
5418 else
5419 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5420 fi
5421 fi
5422
5423 LD="$lt_cv_path_LD"
5424 if test -n "$LD"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5426 $as_echo "$LD" >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5433 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5434 if ${lt_cv_prog_gnu_ld+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5438 case `$LD -v 2>&1 </dev/null` in
5439 *GNU* | *'with BFD'*)
5440 lt_cv_prog_gnu_ld=yes
5441 ;;
5442 *)
5443 lt_cv_prog_gnu_ld=no
5444 ;;
5445 esac
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5448 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5449 with_gnu_ld=$lt_cv_prog_gnu_ld
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5460 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5461 if ${lt_cv_path_NM+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if test -n "$NM"; then
5465 # Let the user override the test.
5466 lt_cv_path_NM="$NM"
5467 else
5468 lt_nm_to_check="${ac_tool_prefix}nm"
5469 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5470 lt_nm_to_check="$lt_nm_to_check nm"
5471 fi
5472 for lt_tmp_nm in $lt_nm_to_check; do
5473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5474 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5475 IFS="$lt_save_ifs"
5476 test -z "$ac_dir" && ac_dir=.
5477 tmp_nm="$ac_dir/$lt_tmp_nm"
5478 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5479 # Check to see if the nm accepts a BSD-compat flag.
5480 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5481 # nm: unknown option "B" ignored
5482 # Tru64's nm complains that /dev/null is an invalid object file
5483 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5484 */dev/null* | *'Invalid file or object type'*)
5485 lt_cv_path_NM="$tmp_nm -B"
5486 break
5487 ;;
5488 *)
5489 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5490 */dev/null*)
5491 lt_cv_path_NM="$tmp_nm -p"
5492 break
5493 ;;
5494 *)
5495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5496 continue # so that we can try to find one that supports BSD flags
5497 ;;
5498 esac
5499 ;;
5500 esac
5501 fi
5502 done
5503 IFS="$lt_save_ifs"
5504 done
5505 : ${lt_cv_path_NM=no}
5506 fi
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5509 $as_echo "$lt_cv_path_NM" >&6; }
5510 if test "$lt_cv_path_NM" != "no"; then
5511 NM="$lt_cv_path_NM"
5512 else
5513 # Didn't find any BSD compatible name lister, look for dumpbin.
5514 if test -n "$DUMPBIN"; then :
5515 # Let the user override the test.
5516 else
5517 if test -n "$ac_tool_prefix"; then
5518 for ac_prog in dumpbin "link -dump"
5519 do
5520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_prog_DUMPBIN+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 if test -n "$DUMPBIN"; then
5528 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5529 else
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 break 2
5540 fi
5541 done
5542 done
5543 IFS=$as_save_IFS
5544
5545 fi
5546 fi
5547 DUMPBIN=$ac_cv_prog_DUMPBIN
5548 if test -n "$DUMPBIN"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5550 $as_echo "$DUMPBIN" >&6; }
5551 else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 fi
5555
5556
5557 test -n "$DUMPBIN" && break
5558 done
5559 fi
5560 if test -z "$DUMPBIN"; then
5561 ac_ct_DUMPBIN=$DUMPBIN
5562 for ac_prog in dumpbin "link -dump"
5563 do
5564 # Extract the first word of "$ac_prog", so it can be a program name with args.
5565 set dummy $ac_prog; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$ac_ct_DUMPBIN"; then
5572 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5592 if test -n "$ac_ct_DUMPBIN"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5594 $as_echo "$ac_ct_DUMPBIN" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 test -n "$ac_ct_DUMPBIN" && break
5602 done
5603
5604 if test "x$ac_ct_DUMPBIN" = x; then
5605 DUMPBIN=":"
5606 else
5607 case $cross_compiling:$ac_tool_warned in
5608 yes:)
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5611 ac_tool_warned=yes ;;
5612 esac
5613 DUMPBIN=$ac_ct_DUMPBIN
5614 fi
5615 fi
5616
5617 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5618 *COFF*)
5619 DUMPBIN="$DUMPBIN -symbols"
5620 ;;
5621 *)
5622 DUMPBIN=:
5623 ;;
5624 esac
5625 fi
5626
5627 if test "$DUMPBIN" != ":"; then
5628 NM="$DUMPBIN"
5629 fi
5630 fi
5631 test -z "$NM" && NM=nm
5632
5633
5634
5635
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5639 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5640 if ${lt_cv_nm_interface+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 lt_cv_nm_interface="BSD nm"
5644 echo "int some_variable = 0;" > conftest.$ac_ext
5645 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5646 (eval "$ac_compile" 2>conftest.err)
5647 cat conftest.err >&5
5648 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5649 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5650 cat conftest.err >&5
5651 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5652 cat conftest.out >&5
5653 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5654 lt_cv_nm_interface="MS dumpbin"
5655 fi
5656 rm -f conftest*
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5659 $as_echo "$lt_cv_nm_interface" >&6; }
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5662 $as_echo_n "checking whether ln -s works... " >&6; }
5663 LN_S=$as_ln_s
5664 if test "$LN_S" = "ln -s"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5666 $as_echo "yes" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5669 $as_echo "no, using $LN_S" >&6; }
5670 fi
5671
5672 # find the maximum length of command line arguments
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5674 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5675 if ${lt_cv_sys_max_cmd_len+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 i=0
5679 teststring="ABCD"
5680
5681 case $build_os in
5682 msdosdjgpp*)
5683 # On DJGPP, this test can blow up pretty badly due to problems in libc
5684 # (any single argument exceeding 2000 bytes causes a buffer overrun
5685 # during glob expansion). Even if it were fixed, the result of this
5686 # check would be larger than it should be.
5687 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5688 ;;
5689
5690 gnu*)
5691 # Under GNU Hurd, this test is not required because there is
5692 # no limit to the length of command line arguments.
5693 # Libtool will interpret -1 as no limit whatsoever
5694 lt_cv_sys_max_cmd_len=-1;
5695 ;;
5696
5697 cygwin* | mingw* | cegcc*)
5698 # On Win9x/ME, this test blows up -- it succeeds, but takes
5699 # about 5 minutes as the teststring grows exponentially.
5700 # Worse, since 9x/ME are not pre-emptively multitasking,
5701 # you end up with a "frozen" computer, even though with patience
5702 # the test eventually succeeds (with a max line length of 256k).
5703 # Instead, let's just punt: use the minimum linelength reported by
5704 # all of the supported platforms: 8192 (on NT/2K/XP).
5705 lt_cv_sys_max_cmd_len=8192;
5706 ;;
5707
5708 mint*)
5709 # On MiNT this can take a long time and run out of memory.
5710 lt_cv_sys_max_cmd_len=8192;
5711 ;;
5712
5713 amigaos*)
5714 # On AmigaOS with pdksh, this test takes hours, literally.
5715 # So we just punt and use a minimum line length of 8192.
5716 lt_cv_sys_max_cmd_len=8192;
5717 ;;
5718
5719 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5720 # This has been around since 386BSD, at least. Likely further.
5721 if test -x /sbin/sysctl; then
5722 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5723 elif test -x /usr/sbin/sysctl; then
5724 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5725 else
5726 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5727 fi
5728 # And add a safety zone
5729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5731 ;;
5732
5733 interix*)
5734 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5735 lt_cv_sys_max_cmd_len=196608
5736 ;;
5737
5738 osf*)
5739 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5740 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5741 # nice to cause kernel panics so lets avoid the loop below.
5742 # First set a reasonable default.
5743 lt_cv_sys_max_cmd_len=16384
5744 #
5745 if test -x /sbin/sysconfig; then
5746 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5747 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5748 esac
5749 fi
5750 ;;
5751 sco3.2v5*)
5752 lt_cv_sys_max_cmd_len=102400
5753 ;;
5754 sysv5* | sco5v6* | sysv4.2uw2*)
5755 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5756 if test -n "$kargmax"; then
5757 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5758 else
5759 lt_cv_sys_max_cmd_len=32768
5760 fi
5761 ;;
5762 *)
5763 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5764 if test -n "$lt_cv_sys_max_cmd_len"; then
5765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5767 else
5768 # Make teststring a little bigger before we do anything with it.
5769 # a 1K string should be a reasonable start.
5770 for i in 1 2 3 4 5 6 7 8 ; do
5771 teststring=$teststring$teststring
5772 done
5773 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5774 # If test is not a shell built-in, we'll probably end up computing a
5775 # maximum length that is only half of the actual maximum length, but
5776 # we can't tell.
5777 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5778 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5779 test $i != 17 # 1/2 MB should be enough
5780 do
5781 i=`expr $i + 1`
5782 teststring=$teststring$teststring
5783 done
5784 # Only check the string length outside the loop.
5785 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5786 teststring=
5787 # Add a significant safety factor because C++ compilers can tack on
5788 # massive amounts of additional arguments before passing them to the
5789 # linker. It appears as though 1/2 is a usable value.
5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5791 fi
5792 ;;
5793 esac
5794
5795 fi
5796
5797 if test -n $lt_cv_sys_max_cmd_len ; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5799 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5802 $as_echo "none" >&6; }
5803 fi
5804 max_cmd_len=$lt_cv_sys_max_cmd_len
5805
5806
5807
5808
5809
5810
5811 : ${CP="cp -f"}
5812 : ${MV="mv -f"}
5813 : ${RM="rm -f"}
5814
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5816 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5817 # Try some XSI features
5818 xsi_shell=no
5819 ( _lt_dummy="a/b/c"
5820 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5821 = c,a/b,, \
5822 && eval 'test $(( 1 + 1 )) -eq 2 \
5823 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5824 && xsi_shell=yes
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5826 $as_echo "$xsi_shell" >&6; }
5827
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5830 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5831 lt_shell_append=no
5832 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5833 >/dev/null 2>&1 \
5834 && lt_shell_append=yes
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5836 $as_echo "$lt_shell_append" >&6; }
5837
5838
5839 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5840 lt_unset=unset
5841 else
5842 lt_unset=false
5843 fi
5844
5845
5846
5847
5848
5849 # test EBCDIC or ASCII
5850 case `echo X|tr X '\101'` in
5851 A) # ASCII based system
5852 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5853 lt_SP2NL='tr \040 \012'
5854 lt_NL2SP='tr \015\012 \040\040'
5855 ;;
5856 *) # EBCDIC based system
5857 lt_SP2NL='tr \100 \n'
5858 lt_NL2SP='tr \r\n \100\100'
5859 ;;
5860 esac
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5871 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5872 if ${lt_cv_ld_reload_flag+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 lt_cv_ld_reload_flag='-r'
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5878 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5879 reload_flag=$lt_cv_ld_reload_flag
5880 case $reload_flag in
5881 "" | " "*) ;;
5882 *) reload_flag=" $reload_flag" ;;
5883 esac
5884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5885 case $host_os in
5886 darwin*)
5887 if test "$GCC" = yes; then
5888 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5889 else
5890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5891 fi
5892 ;;
5893 esac
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_OBJDUMP+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$OBJDUMP"; then
5912 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 OBJDUMP=$ac_cv_prog_OBJDUMP
5932 if test -n "$OBJDUMP"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5934 $as_echo "$OBJDUMP" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940
5941 fi
5942 if test -z "$ac_cv_prog_OBJDUMP"; then
5943 ac_ct_OBJDUMP=$OBJDUMP
5944 # Extract the first word of "objdump", so it can be a program name with args.
5945 set dummy objdump; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$ac_ct_OBJDUMP"; then
5952 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5972 if test -n "$ac_ct_OBJDUMP"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5974 $as_echo "$ac_ct_OBJDUMP" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980 if test "x$ac_ct_OBJDUMP" = x; then
5981 OBJDUMP="false"
5982 else
5983 case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987 ac_tool_warned=yes ;;
5988 esac
5989 OBJDUMP=$ac_ct_OBJDUMP
5990 fi
5991 else
5992 OBJDUMP="$ac_cv_prog_OBJDUMP"
5993 fi
5994
5995 test -z "$OBJDUMP" && OBJDUMP=objdump
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6006 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6007 if ${lt_cv_deplibs_check_method+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 lt_cv_file_magic_cmd='$MAGIC_CMD'
6011 lt_cv_file_magic_test_file=
6012 lt_cv_deplibs_check_method='unknown'
6013 # Need to set the preceding variable on all platforms that support
6014 # interlibrary dependencies.
6015 # 'none' -- dependencies not supported.
6016 # `unknown' -- same as none, but documents that we really don't know.
6017 # 'pass_all' -- all dependencies passed with no checks.
6018 # 'test_compile' -- check by making test program.
6019 # 'file_magic [[regex]]' -- check by looking for files in library path
6020 # which responds to the $file_magic_cmd with a given extended regex.
6021 # If you have `file' or equivalent on your system and you're not sure
6022 # whether `pass_all' will *always* work, you probably want this one.
6023
6024 case $host_os in
6025 aix[4-9]*)
6026 lt_cv_deplibs_check_method=pass_all
6027 ;;
6028
6029 beos*)
6030 lt_cv_deplibs_check_method=pass_all
6031 ;;
6032
6033 bsdi[45]*)
6034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6035 lt_cv_file_magic_cmd='/usr/bin/file -L'
6036 lt_cv_file_magic_test_file=/shlib/libc.so
6037 ;;
6038
6039 cygwin*)
6040 # func_win32_libid is a shell function defined in ltmain.sh
6041 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6042 lt_cv_file_magic_cmd='func_win32_libid'
6043 ;;
6044
6045 mingw* | pw32*)
6046 # Base MSYS/MinGW do not provide the 'file' command needed by
6047 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6048 # unless we find 'file', for example because we are cross-compiling.
6049 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6050 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6051 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6052 lt_cv_file_magic_cmd='func_win32_libid'
6053 else
6054 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6055 lt_cv_file_magic_cmd='$OBJDUMP -f'
6056 fi
6057 ;;
6058
6059 cegcc*)
6060 # use the weaker test based on 'objdump'. See mingw*.
6061 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6062 lt_cv_file_magic_cmd='$OBJDUMP -f'
6063 ;;
6064
6065 darwin* | rhapsody*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
6069 freebsd* | dragonfly*)
6070 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6071 case $host_cpu in
6072 i*86 )
6073 # Not sure whether the presence of OpenBSD here was a mistake.
6074 # Let's accept both of them until this is cleared up.
6075 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6076 lt_cv_file_magic_cmd=/usr/bin/file
6077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6078 ;;
6079 esac
6080 else
6081 lt_cv_deplibs_check_method=pass_all
6082 fi
6083 ;;
6084
6085 gnu*)
6086 lt_cv_deplibs_check_method=pass_all
6087 ;;
6088
6089 haiku*)
6090 lt_cv_deplibs_check_method=pass_all
6091 ;;
6092
6093 hpux10.20* | hpux11*)
6094 lt_cv_file_magic_cmd=/usr/bin/file
6095 case $host_cpu in
6096 ia64*)
6097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6098 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6099 ;;
6100 hppa*64*)
6101 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]'
6102 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6103 ;;
6104 *)
6105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6106 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6107 ;;
6108 esac
6109 ;;
6110
6111 interix[3-9]*)
6112 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6114 ;;
6115
6116 irix5* | irix6* | nonstopux*)
6117 case $LD in
6118 *-32|*"-32 ") libmagic=32-bit;;
6119 *-n32|*"-n32 ") libmagic=N32;;
6120 *-64|*"-64 ") libmagic=64-bit;;
6121 *) libmagic=never-match;;
6122 esac
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125
6126 # This must be Linux ELF.
6127 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6128 lt_cv_deplibs_check_method=pass_all
6129 ;;
6130
6131 netbsd*)
6132 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6134 else
6135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6136 fi
6137 ;;
6138
6139 newos6*)
6140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6141 lt_cv_file_magic_cmd=/usr/bin/file
6142 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6143 ;;
6144
6145 *nto* | *qnx*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 openbsd*)
6150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6152 else
6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6154 fi
6155 ;;
6156
6157 osf3* | osf4* | osf5*)
6158 lt_cv_deplibs_check_method=pass_all
6159 ;;
6160
6161 rdos*)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164
6165 solaris*)
6166 lt_cv_deplibs_check_method=pass_all
6167 ;;
6168
6169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172
6173 sysv4 | sysv4.3*)
6174 case $host_vendor in
6175 motorola)
6176 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]'
6177 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6178 ;;
6179 ncr)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182 sequent)
6183 lt_cv_file_magic_cmd='/bin/file'
6184 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6185 ;;
6186 sni)
6187 lt_cv_file_magic_cmd='/bin/file'
6188 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6189 lt_cv_file_magic_test_file=/lib/libc.so
6190 ;;
6191 siemens)
6192 lt_cv_deplibs_check_method=pass_all
6193 ;;
6194 pc)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197 esac
6198 ;;
6199
6200 tpf*)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
6203 esac
6204
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6207 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6208 file_magic_cmd=$lt_cv_file_magic_cmd
6209 deplibs_check_method=$lt_cv_deplibs_check_method
6210 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223 if test -n "$ac_tool_prefix"; then
6224 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6225 set dummy ${ac_tool_prefix}ar; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_AR+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$AR"; then
6232 ac_cv_prog_AR="$AR" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_AR="${ac_tool_prefix}ar"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 AR=$ac_cv_prog_AR
6252 if test -n "$AR"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6254 $as_echo "$AR" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260
6261 fi
6262 if test -z "$ac_cv_prog_AR"; then
6263 ac_ct_AR=$AR
6264 # Extract the first word of "ar", so it can be a program name with args.
6265 set dummy ar; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 if test -n "$ac_ct_AR"; then
6272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_ac_ct_AR="ar"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6284 fi
6285 done
6286 done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6292 if test -n "$ac_ct_AR"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6294 $as_echo "$ac_ct_AR" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299
6300 if test "x$ac_ct_AR" = x; then
6301 AR="false"
6302 else
6303 case $cross_compiling:$ac_tool_warned in
6304 yes:)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned=yes ;;
6308 esac
6309 AR=$ac_ct_AR
6310 fi
6311 else
6312 AR="$ac_cv_prog_AR"
6313 fi
6314
6315 test -z "$AR" && AR=ar
6316 test -z "$AR_FLAGS" && AR_FLAGS=cru
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}strip; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_STRIP+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -n "$STRIP"; then
6337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6349 fi
6350 done
6351 done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 STRIP=$ac_cv_prog_STRIP
6357 if test -n "$STRIP"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6359 $as_echo "$STRIP" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364
6365
6366 fi
6367 if test -z "$ac_cv_prog_STRIP"; then
6368 ac_ct_STRIP=$STRIP
6369 # Extract the first word of "strip", so it can be a program name with args.
6370 set dummy strip; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 if test -n "$ac_ct_STRIP"; then
6377 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_ac_ct_STRIP="strip"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394 fi
6395 fi
6396 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6397 if test -n "$ac_ct_STRIP"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6399 $as_echo "$ac_ct_STRIP" >&6; }
6400 else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6403 fi
6404
6405 if test "x$ac_ct_STRIP" = x; then
6406 STRIP=":"
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409 yes:)
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned=yes ;;
6413 esac
6414 STRIP=$ac_ct_STRIP
6415 fi
6416 else
6417 STRIP="$ac_cv_prog_STRIP"
6418 fi
6419
6420 test -z "$STRIP" && STRIP=:
6421
6422
6423
6424
6425
6426
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_RANLIB+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$RANLIB"; then
6436 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 RANLIB=$ac_cv_prog_RANLIB
6456 if test -n "$RANLIB"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6458 $as_echo "$RANLIB" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464
6465 fi
6466 if test -z "$ac_cv_prog_RANLIB"; then
6467 ac_ct_RANLIB=$RANLIB
6468 # Extract the first word of "ranlib", so it can be a program name with args.
6469 set dummy ranlib; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 if test -n "$ac_ct_RANLIB"; then
6476 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_ac_ct_RANLIB="ranlib"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6496 if test -n "$ac_ct_RANLIB"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6498 $as_echo "$ac_ct_RANLIB" >&6; }
6499 else
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503
6504 if test "x$ac_ct_RANLIB" = x; then
6505 RANLIB=":"
6506 else
6507 case $cross_compiling:$ac_tool_warned in
6508 yes:)
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511 ac_tool_warned=yes ;;
6512 esac
6513 RANLIB=$ac_ct_RANLIB
6514 fi
6515 else
6516 RANLIB="$ac_cv_prog_RANLIB"
6517 fi
6518
6519 test -z "$RANLIB" && RANLIB=:
6520
6521
6522
6523
6524
6525
6526 # Determine commands to create old-style static archives.
6527 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6528 old_postinstall_cmds='chmod 644 $oldlib'
6529 old_postuninstall_cmds=
6530
6531 if test -n "$RANLIB"; then
6532 case $host_os in
6533 openbsd*)
6534 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6535 ;;
6536 *)
6537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6538 ;;
6539 esac
6540 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6541 fi
6542
6543 case $host_os in
6544 darwin*)
6545 lock_old_archive_extraction=yes ;;
6546 *)
6547 lock_old_archive_extraction=no ;;
6548 esac
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588 # If no C compiler was specified, use CC.
6589 LTCC=${LTCC-"$CC"}
6590
6591 # If no C compiler flags were specified, use CFLAGS.
6592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6593
6594 # Allow CC to be a program name with arguments.
6595 compiler=$CC
6596
6597
6598 # Check for command to grab the raw symbol name followed by C symbol from nm.
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6600 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6601 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604
6605 # These are sane defaults that work on at least a few old systems.
6606 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6607
6608 # Character class describing NM global symbol codes.
6609 symcode='[BCDEGRST]'
6610
6611 # Regexp to match symbols that can be accessed directly from C.
6612 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6613
6614 # Define system-specific variables.
6615 case $host_os in
6616 aix*)
6617 symcode='[BCDT]'
6618 ;;
6619 cygwin* | mingw* | pw32* | cegcc*)
6620 symcode='[ABCDGISTW]'
6621 ;;
6622 hpux*)
6623 if test "$host_cpu" = ia64; then
6624 symcode='[ABCDEGRST]'
6625 fi
6626 ;;
6627 irix* | nonstopux*)
6628 symcode='[BCDEGRST]'
6629 ;;
6630 osf*)
6631 symcode='[BCDEGQRST]'
6632 ;;
6633 solaris*)
6634 symcode='[BDRT]'
6635 ;;
6636 sco3.2v5*)
6637 symcode='[DT]'
6638 ;;
6639 sysv4.2uw2*)
6640 symcode='[DT]'
6641 ;;
6642 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6643 symcode='[ABDT]'
6644 ;;
6645 sysv4)
6646 symcode='[DFNSTU]'
6647 ;;
6648 esac
6649
6650 # If we're using GNU nm, then use its standard symbol codes.
6651 case `$NM -V 2>&1` in
6652 *GNU* | *'with BFD'*)
6653 symcode='[ABCDGIRSTW]' ;;
6654 esac
6655
6656 # Transform an extracted symbol line into a proper C declaration.
6657 # Some systems (esp. on ia64) link data and code symbols differently,
6658 # so use this general approach.
6659 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6660
6661 # Transform an extracted symbol line into symbol name and symbol address
6662 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6663 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'"
6664
6665 # Handle CRLF in mingw tool chain
6666 opt_cr=
6667 case $build_os in
6668 mingw*)
6669 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6670 ;;
6671 esac
6672
6673 # Try without a prefix underscore, then with it.
6674 for ac_symprfx in "" "_"; do
6675
6676 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6677 symxfrm="\\1 $ac_symprfx\\2 \\2"
6678
6679 # Write the raw and C identifiers.
6680 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6681 # Fake it for dumpbin and say T for any non-static function
6682 # and D for any global variable.
6683 # Also find C++ and __fastcall symbols from MSVC++,
6684 # which start with @ or ?.
6685 lt_cv_sys_global_symbol_pipe="$AWK '"\
6686 " {last_section=section; section=\$ 3};"\
6687 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6688 " \$ 0!~/External *\|/{next};"\
6689 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6690 " {if(hide[section]) next};"\
6691 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6692 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6693 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6694 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6695 " ' prfx=^$ac_symprfx"
6696 else
6697 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6698 fi
6699
6700 # Check to see that the pipe works correctly.
6701 pipe_works=no
6702
6703 rm -f conftest*
6704 cat > conftest.$ac_ext <<_LT_EOF
6705 #ifdef __cplusplus
6706 extern "C" {
6707 #endif
6708 char nm_test_var;
6709 void nm_test_func(void);
6710 void nm_test_func(void){}
6711 #ifdef __cplusplus
6712 }
6713 #endif
6714 int main(){nm_test_var='a';nm_test_func();return(0);}
6715 _LT_EOF
6716
6717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6718 (eval $ac_compile) 2>&5
6719 ac_status=$?
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; }; then
6722 # Now try to grab the symbols.
6723 nlist=conftest.nm
6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6725 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6726 ac_status=$?
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728 test $ac_status = 0; } && test -s "$nlist"; then
6729 # Try sorting and uniquifying the output.
6730 if sort "$nlist" | uniq > "$nlist"T; then
6731 mv -f "$nlist"T "$nlist"
6732 else
6733 rm -f "$nlist"T
6734 fi
6735
6736 # Make sure that we snagged all the symbols we need.
6737 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6738 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6739 cat <<_LT_EOF > conftest.$ac_ext
6740 #ifdef __cplusplus
6741 extern "C" {
6742 #endif
6743
6744 _LT_EOF
6745 # Now generate the symbol file.
6746 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6747
6748 cat <<_LT_EOF >> conftest.$ac_ext
6749
6750 /* The mapping between symbol names and symbols. */
6751 const struct {
6752 const char *name;
6753 void *address;
6754 }
6755 lt__PROGRAM__LTX_preloaded_symbols[] =
6756 {
6757 { "@PROGRAM@", (void *) 0 },
6758 _LT_EOF
6759 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6760 cat <<\_LT_EOF >> conftest.$ac_ext
6761 {0, (void *) 0}
6762 };
6763
6764 /* This works around a problem in FreeBSD linker */
6765 #ifdef FREEBSD_WORKAROUND
6766 static const void *lt_preloaded_setup() {
6767 return lt__PROGRAM__LTX_preloaded_symbols;
6768 }
6769 #endif
6770
6771 #ifdef __cplusplus
6772 }
6773 #endif
6774 _LT_EOF
6775 # Now try linking the two files.
6776 mv conftest.$ac_objext conftstm.$ac_objext
6777 lt_save_LIBS="$LIBS"
6778 lt_save_CFLAGS="$CFLAGS"
6779 LIBS="conftstm.$ac_objext"
6780 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6782 (eval $ac_link) 2>&5
6783 ac_status=$?
6784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6786 pipe_works=yes
6787 fi
6788 LIBS="$lt_save_LIBS"
6789 CFLAGS="$lt_save_CFLAGS"
6790 else
6791 echo "cannot find nm_test_func in $nlist" >&5
6792 fi
6793 else
6794 echo "cannot find nm_test_var in $nlist" >&5
6795 fi
6796 else
6797 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6798 fi
6799 else
6800 echo "$progname: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6802 fi
6803 rm -rf conftest* conftst*
6804
6805 # Do not use the global_symbol_pipe unless it works.
6806 if test "$pipe_works" = yes; then
6807 break
6808 else
6809 lt_cv_sys_global_symbol_pipe=
6810 fi
6811 done
6812
6813 fi
6814
6815 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6816 lt_cv_sys_global_symbol_to_cdecl=
6817 fi
6818 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6820 $as_echo "failed" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6823 $as_echo "ok" >&6; }
6824 fi
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848 # Check whether --enable-libtool-lock was given.
6849 if test "${enable_libtool_lock+set}" = set; then :
6850 enableval=$enable_libtool_lock;
6851 fi
6852
6853 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6854
6855 # Some flags need to be propagated to the compiler or linker for good
6856 # libtool support.
6857 case $host in
6858 ia64-*-hpux*)
6859 # Find out which ABI we are using.
6860 echo 'int i;' > conftest.$ac_ext
6861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6862 (eval $ac_compile) 2>&5
6863 ac_status=$?
6864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6865 test $ac_status = 0; }; then
6866 case `/usr/bin/file conftest.$ac_objext` in
6867 *ELF-32*)
6868 HPUX_IA64_MODE="32"
6869 ;;
6870 *ELF-64*)
6871 HPUX_IA64_MODE="64"
6872 ;;
6873 esac
6874 fi
6875 rm -rf conftest*
6876 ;;
6877 *-*-irix6*)
6878 # Find out which ABI we are using.
6879 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6881 (eval $ac_compile) 2>&5
6882 ac_status=$?
6883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6884 test $ac_status = 0; }; then
6885 if test "$lt_cv_prog_gnu_ld" = yes; then
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *32-bit*)
6888 LD="${LD-ld} -melf32bsmip"
6889 ;;
6890 *N32*)
6891 LD="${LD-ld} -melf32bmipn32"
6892 ;;
6893 *64-bit*)
6894 LD="${LD-ld} -melf64bmip"
6895 ;;
6896 esac
6897 else
6898 case `/usr/bin/file conftest.$ac_objext` in
6899 *32-bit*)
6900 LD="${LD-ld} -32"
6901 ;;
6902 *N32*)
6903 LD="${LD-ld} -n32"
6904 ;;
6905 *64-bit*)
6906 LD="${LD-ld} -64"
6907 ;;
6908 esac
6909 fi
6910 fi
6911 rm -rf conftest*
6912 ;;
6913
6914 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6915 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6916 # Find out which ABI we are using.
6917 echo 'int i;' > conftest.$ac_ext
6918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6919 (eval $ac_compile) 2>&5
6920 ac_status=$?
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922 test $ac_status = 0; }; then
6923 case `/usr/bin/file conftest.o` in
6924 *32-bit*)
6925 case $host in
6926 x86_64-*kfreebsd*-gnu)
6927 LD="${LD-ld} -m elf_i386_fbsd"
6928 ;;
6929 x86_64-*linux*)
6930 case `/usr/bin/file conftest.o` in
6931 *x86-64*)
6932 LD="${LD-ld} -m elf32_x86_64"
6933 ;;
6934 *)
6935 LD="${LD-ld} -m elf_i386"
6936 ;;
6937 esac
6938 ;;
6939 powerpc64le-*linux*)
6940 LD="${LD-ld} -m elf32lppclinux"
6941 ;;
6942 powerpc64-*linux*)
6943 LD="${LD-ld} -m elf32ppclinux"
6944 ;;
6945 s390x-*linux*)
6946 LD="${LD-ld} -m elf_s390"
6947 ;;
6948 sparc64-*linux*)
6949 LD="${LD-ld} -m elf32_sparc"
6950 ;;
6951 esac
6952 ;;
6953 *64-bit*)
6954 case $host in
6955 x86_64-*kfreebsd*-gnu)
6956 LD="${LD-ld} -m elf_x86_64_fbsd"
6957 ;;
6958 x86_64-*linux*)
6959 LD="${LD-ld} -m elf_x86_64"
6960 ;;
6961 powerpcle-*linux*)
6962 LD="${LD-ld} -m elf64lppc"
6963 ;;
6964 powerpc-*linux*)
6965 LD="${LD-ld} -m elf64ppc"
6966 ;;
6967 s390*-*linux*|s390*-*tpf*)
6968 LD="${LD-ld} -m elf64_s390"
6969 ;;
6970 sparc*-*linux*)
6971 LD="${LD-ld} -m elf64_sparc"
6972 ;;
6973 esac
6974 ;;
6975 esac
6976 fi
6977 rm -rf conftest*
6978 ;;
6979
6980 *-*-sco3.2v5*)
6981 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6982 SAVE_CFLAGS="$CFLAGS"
6983 CFLAGS="$CFLAGS -belf"
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6985 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6986 if ${lt_cv_cc_needs_belf+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 ac_ext=c
6990 ac_cpp='$CPP $CPPFLAGS'
6991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6994
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997
6998 int
6999 main ()
7000 {
7001
7002 ;
7003 return 0;
7004 }
7005 _ACEOF
7006 if ac_fn_c_try_link "$LINENO"; then :
7007 lt_cv_cc_needs_belf=yes
7008 else
7009 lt_cv_cc_needs_belf=no
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013 ac_ext=c
7014 ac_cpp='$CPP $CPPFLAGS'
7015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7018
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7021 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7022 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7023 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7024 CFLAGS="$SAVE_CFLAGS"
7025 fi
7026 ;;
7027 sparc*-*solaris*)
7028 # Find out which ABI we are using.
7029 echo 'int i;' > conftest.$ac_ext
7030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031 (eval $ac_compile) 2>&5
7032 ac_status=$?
7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }; then
7035 case `/usr/bin/file conftest.o` in
7036 *64-bit*)
7037 case $lt_cv_prog_gnu_ld in
7038 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7039 *)
7040 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7041 LD="${LD-ld} -64"
7042 fi
7043 ;;
7044 esac
7045 ;;
7046 esac
7047 fi
7048 rm -rf conftest*
7049 ;;
7050 esac
7051
7052 need_locks="$enable_libtool_lock"
7053
7054
7055 case $host_os in
7056 rhapsody* | darwin*)
7057 if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7059 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$DSYMUTIL"; then
7066 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7086 if test -n "$DSYMUTIL"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7088 $as_echo "$DSYMUTIL" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094
7095 fi
7096 if test -z "$ac_cv_prog_DSYMUTIL"; then
7097 ac_ct_DSYMUTIL=$DSYMUTIL
7098 # Extract the first word of "dsymutil", so it can be a program name with args.
7099 set dummy dsymutil; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$ac_ct_DSYMUTIL"; then
7106 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7126 if test -n "$ac_ct_DSYMUTIL"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7128 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134 if test "x$ac_ct_DSYMUTIL" = x; then
7135 DSYMUTIL=":"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143 DSYMUTIL=$ac_ct_DSYMUTIL
7144 fi
7145 else
7146 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7147 fi
7148
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_NMEDIT+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$NMEDIT"; then
7158 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 NMEDIT=$ac_cv_prog_NMEDIT
7178 if test -n "$NMEDIT"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7180 $as_echo "$NMEDIT" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186
7187 fi
7188 if test -z "$ac_cv_prog_NMEDIT"; then
7189 ac_ct_NMEDIT=$NMEDIT
7190 # Extract the first word of "nmedit", so it can be a program name with args.
7191 set dummy nmedit; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 if test -n "$ac_ct_NMEDIT"; then
7198 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7218 if test -n "$ac_ct_NMEDIT"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7220 $as_echo "$ac_ct_NMEDIT" >&6; }
7221 else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 fi
7225
7226 if test "x$ac_ct_NMEDIT" = x; then
7227 NMEDIT=":"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230 yes:)
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 NMEDIT=$ac_ct_NMEDIT
7236 fi
7237 else
7238 NMEDIT="$ac_cv_prog_NMEDIT"
7239 fi
7240
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_LIPO+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$LIPO"; then
7250 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 LIPO=$ac_cv_prog_LIPO
7270 if test -n "$LIPO"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7272 $as_echo "$LIPO" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278
7279 fi
7280 if test -z "$ac_cv_prog_LIPO"; then
7281 ac_ct_LIPO=$LIPO
7282 # Extract the first word of "lipo", so it can be a program name with args.
7283 set dummy lipo; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 if test -n "$ac_ct_LIPO"; then
7290 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_ac_ct_LIPO="lipo"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7310 if test -n "$ac_ct_LIPO"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7312 $as_echo "$ac_ct_LIPO" >&6; }
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7316 fi
7317
7318 if test "x$ac_ct_LIPO" = x; then
7319 LIPO=":"
7320 else
7321 case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327 LIPO=$ac_ct_LIPO
7328 fi
7329 else
7330 LIPO="$ac_cv_prog_LIPO"
7331 fi
7332
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}otool; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_OTOOL+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$OTOOL"; then
7342 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 OTOOL=$ac_cv_prog_OTOOL
7362 if test -n "$OTOOL"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7364 $as_echo "$OTOOL" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_OTOOL"; then
7373 ac_ct_OTOOL=$OTOOL
7374 # Extract the first word of "otool", so it can be a program name with args.
7375 set dummy otool; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$ac_ct_OTOOL"; then
7382 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_ac_ct_OTOOL="otool"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7402 if test -n "$ac_ct_OTOOL"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7404 $as_echo "$ac_ct_OTOOL" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410 if test "x$ac_ct_OTOOL" = x; then
7411 OTOOL=":"
7412 else
7413 case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419 OTOOL=$ac_ct_OTOOL
7420 fi
7421 else
7422 OTOOL="$ac_cv_prog_OTOOL"
7423 fi
7424
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7427 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_OTOOL64+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$OTOOL64"; then
7434 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447 done
7448 done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 OTOOL64=$ac_cv_prog_OTOOL64
7454 if test -n "$OTOOL64"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7456 $as_echo "$OTOOL64" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462
7463 fi
7464 if test -z "$ac_cv_prog_OTOOL64"; then
7465 ac_ct_OTOOL64=$OTOOL64
7466 # Extract the first word of "otool64", so it can be a program name with args.
7467 set dummy otool64; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$ac_ct_OTOOL64"; then
7474 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_ac_ct_OTOOL64="otool64"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7494 if test -n "$ac_ct_OTOOL64"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7496 $as_echo "$ac_ct_OTOOL64" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502 if test "x$ac_ct_OTOOL64" = x; then
7503 OTOOL64=":"
7504 else
7505 case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511 OTOOL64=$ac_ct_OTOOL64
7512 fi
7513 else
7514 OTOOL64="$ac_cv_prog_OTOOL64"
7515 fi
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7544 $as_echo_n "checking for -single_module linker flag... " >&6; }
7545 if ${lt_cv_apple_cc_single_mod+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 lt_cv_apple_cc_single_mod=no
7549 if test -z "${LT_MULTI_MODULE}"; then
7550 # By default we will add the -single_module flag. You can override
7551 # by either setting the environment variable LT_MULTI_MODULE
7552 # non-empty at configure time, or by adding -multi_module to the
7553 # link flags.
7554 rm -rf libconftest.dylib*
7555 echo "int foo(void){return 1;}" > conftest.c
7556 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7557 -dynamiclib -Wl,-single_module conftest.c" >&5
7558 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7559 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7560 _lt_result=$?
7561 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7562 lt_cv_apple_cc_single_mod=yes
7563 else
7564 cat conftest.err >&5
7565 fi
7566 rm -rf libconftest.dylib*
7567 rm -f conftest.*
7568 fi
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7571 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7573 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7574 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 lt_cv_ld_exported_symbols_list=no
7578 save_LDFLAGS=$LDFLAGS
7579 echo "_main" > conftest.sym
7580 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583
7584 int
7585 main ()
7586 {
7587
7588 ;
7589 return 0;
7590 }
7591 _ACEOF
7592 if ac_fn_c_try_link "$LINENO"; then :
7593 lt_cv_ld_exported_symbols_list=yes
7594 else
7595 lt_cv_ld_exported_symbols_list=no
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext \
7598 conftest$ac_exeext conftest.$ac_ext
7599 LDFLAGS="$save_LDFLAGS"
7600
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7603 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7605 $as_echo_n "checking for -force_load linker flag... " >&6; }
7606 if ${lt_cv_ld_force_load+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 lt_cv_ld_force_load=no
7610 cat > conftest.c << _LT_EOF
7611 int forced_loaded() { return 2;}
7612 _LT_EOF
7613 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7614 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7615 echo "$AR cru libconftest.a conftest.o" >&5
7616 $AR cru libconftest.a conftest.o 2>&5
7617 cat > conftest.c << _LT_EOF
7618 int main() { return 0;}
7619 _LT_EOF
7620 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7621 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7622 _lt_result=$?
7623 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7624 lt_cv_ld_force_load=yes
7625 else
7626 cat conftest.err >&5
7627 fi
7628 rm -f conftest.err libconftest.a conftest conftest.c
7629 rm -rf conftest.dSYM
7630
7631 fi
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7633 $as_echo "$lt_cv_ld_force_load" >&6; }
7634 case $host_os in
7635 rhapsody* | darwin1.[012])
7636 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7637 darwin1.*)
7638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7639 darwin*) # darwin 5.x on
7640 # if running on 10.5 or later, the deployment target defaults
7641 # to the OS version, if on x86, and 10.4, the deployment
7642 # target defaults to 10.4. Don't you love it?
7643 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7644 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7645 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7646 10.[012][,.]*)
7647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7648 10.*)
7649 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7650 esac
7651 ;;
7652 esac
7653 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7654 _lt_dar_single_mod='$single_module'
7655 fi
7656 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7657 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7658 else
7659 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7660 fi
7661 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7662 _lt_dsymutil='~$DSYMUTIL $lib || :'
7663 else
7664 _lt_dsymutil=
7665 fi
7666 ;;
7667 esac
7668
7669 ac_ext=c
7670 ac_cpp='$CPP $CPPFLAGS'
7671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7675 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7676 # On Suns, sometimes $CPP names a directory.
7677 if test -n "$CPP" && test -d "$CPP"; then
7678 CPP=
7679 fi
7680 if test -z "$CPP"; then
7681 if ${ac_cv_prog_CPP+:} false; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 # Double quotes because CPP needs to be expanded
7685 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7686 do
7687 ac_preproc_ok=false
7688 for ac_c_preproc_warn_flag in '' yes
7689 do
7690 # Use a header file that comes with gcc, so configuring glibc
7691 # with a fresh cross-compiler works.
7692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7693 # <limits.h> exists even on freestanding compilers.
7694 # On the NeXT, cc -E runs the code through the compiler's parser,
7695 # not just through cpp. "Syntax error" is here to catch this case.
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 #ifdef __STDC__
7699 # include <limits.h>
7700 #else
7701 # include <assert.h>
7702 #endif
7703 Syntax error
7704 _ACEOF
7705 if ac_fn_c_try_cpp "$LINENO"; then :
7706
7707 else
7708 # Broken: fails on valid input.
7709 continue
7710 fi
7711 rm -f conftest.err conftest.i conftest.$ac_ext
7712
7713 # OK, works on sane cases. Now check whether nonexistent headers
7714 # can be detected and how.
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 #include <ac_nonexistent.h>
7718 _ACEOF
7719 if ac_fn_c_try_cpp "$LINENO"; then :
7720 # Broken: success on invalid input.
7721 continue
7722 else
7723 # Passes both tests.
7724 ac_preproc_ok=:
7725 break
7726 fi
7727 rm -f conftest.err conftest.i conftest.$ac_ext
7728
7729 done
7730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7731 rm -f conftest.i conftest.err conftest.$ac_ext
7732 if $ac_preproc_ok; then :
7733 break
7734 fi
7735
7736 done
7737 ac_cv_prog_CPP=$CPP
7738
7739 fi
7740 CPP=$ac_cv_prog_CPP
7741 else
7742 ac_cv_prog_CPP=$CPP
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7745 $as_echo "$CPP" >&6; }
7746 ac_preproc_ok=false
7747 for ac_c_preproc_warn_flag in '' yes
7748 do
7749 # Use a header file that comes with gcc, so configuring glibc
7750 # with a fresh cross-compiler works.
7751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7752 # <limits.h> exists even on freestanding compilers.
7753 # On the NeXT, cc -E runs the code through the compiler's parser,
7754 # not just through cpp. "Syntax error" is here to catch this case.
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 #ifdef __STDC__
7758 # include <limits.h>
7759 #else
7760 # include <assert.h>
7761 #endif
7762 Syntax error
7763 _ACEOF
7764 if ac_fn_c_try_cpp "$LINENO"; then :
7765
7766 else
7767 # Broken: fails on valid input.
7768 continue
7769 fi
7770 rm -f conftest.err conftest.i conftest.$ac_ext
7771
7772 # OK, works on sane cases. Now check whether nonexistent headers
7773 # can be detected and how.
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #include <ac_nonexistent.h>
7777 _ACEOF
7778 if ac_fn_c_try_cpp "$LINENO"; then :
7779 # Broken: success on invalid input.
7780 continue
7781 else
7782 # Passes both tests.
7783 ac_preproc_ok=:
7784 break
7785 fi
7786 rm -f conftest.err conftest.i conftest.$ac_ext
7787
7788 done
7789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7790 rm -f conftest.i conftest.err conftest.$ac_ext
7791 if $ac_preproc_ok; then :
7792
7793 else
7794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7796 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7797 See \`config.log' for more details" "$LINENO" 5; }
7798 fi
7799
7800 ac_ext=c
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805
7806
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7808 $as_echo_n "checking for ANSI C header files... " >&6; }
7809 if ${ac_cv_header_stdc+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 #include <stdlib.h>
7815 #include <stdarg.h>
7816 #include <string.h>
7817 #include <float.h>
7818
7819 int
7820 main ()
7821 {
7822
7823 ;
7824 return 0;
7825 }
7826 _ACEOF
7827 if ac_fn_c_try_compile "$LINENO"; then :
7828 ac_cv_header_stdc=yes
7829 else
7830 ac_cv_header_stdc=no
7831 fi
7832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833
7834 if test $ac_cv_header_stdc = yes; then
7835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 #include <string.h>
7839
7840 _ACEOF
7841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7842 $EGREP "memchr" >/dev/null 2>&1; then :
7843
7844 else
7845 ac_cv_header_stdc=no
7846 fi
7847 rm -f conftest*
7848
7849 fi
7850
7851 if test $ac_cv_header_stdc = yes; then
7852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 #include <stdlib.h>
7856
7857 _ACEOF
7858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7859 $EGREP "free" >/dev/null 2>&1; then :
7860
7861 else
7862 ac_cv_header_stdc=no
7863 fi
7864 rm -f conftest*
7865
7866 fi
7867
7868 if test $ac_cv_header_stdc = yes; then
7869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7870 if test "$cross_compiling" = yes; then :
7871 :
7872 else
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875 #include <ctype.h>
7876 #include <stdlib.h>
7877 #if ((' ' & 0x0FF) == 0x020)
7878 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7879 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7880 #else
7881 # define ISLOWER(c) \
7882 (('a' <= (c) && (c) <= 'i') \
7883 || ('j' <= (c) && (c) <= 'r') \
7884 || ('s' <= (c) && (c) <= 'z'))
7885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7886 #endif
7887
7888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7889 int
7890 main ()
7891 {
7892 int i;
7893 for (i = 0; i < 256; i++)
7894 if (XOR (islower (i), ISLOWER (i))
7895 || toupper (i) != TOUPPER (i))
7896 return 2;
7897 return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_run "$LINENO"; then :
7901
7902 else
7903 ac_cv_header_stdc=no
7904 fi
7905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7906 conftest.$ac_objext conftest.beam conftest.$ac_ext
7907 fi
7908
7909 fi
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7912 $as_echo "$ac_cv_header_stdc" >&6; }
7913 if test $ac_cv_header_stdc = yes; then
7914
7915 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7916
7917 fi
7918
7919 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7920 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7921 inttypes.h stdint.h unistd.h
7922 do :
7923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7924 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7925 "
7926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7927 cat >>confdefs.h <<_ACEOF
7928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7929 _ACEOF
7930
7931 fi
7932
7933 done
7934
7935
7936 for ac_header in dlfcn.h
7937 do :
7938 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7939 "
7940 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7941 cat >>confdefs.h <<_ACEOF
7942 #define HAVE_DLFCN_H 1
7943 _ACEOF
7944
7945 fi
7946
7947 done
7948
7949
7950
7951
7952
7953 # Set options
7954
7955
7956
7957 enable_dlopen=no
7958
7959
7960 enable_win32_dll=no
7961
7962
7963 # Check whether --enable-shared was given.
7964 if test "${enable_shared+set}" = set; then :
7965 enableval=$enable_shared; p=${PACKAGE-default}
7966 case $enableval in
7967 yes) enable_shared=yes ;;
7968 no) enable_shared=no ;;
7969 *)
7970 enable_shared=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_shared=yes
7977 fi
7978 done
7979 IFS="$lt_save_ifs"
7980 ;;
7981 esac
7982 else
7983 enable_shared=yes
7984 fi
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994 # Check whether --enable-static was given.
7995 if test "${enable_static+set}" = set; then :
7996 enableval=$enable_static; p=${PACKAGE-default}
7997 case $enableval in
7998 yes) enable_static=yes ;;
7999 no) enable_static=no ;;
8000 *)
8001 enable_static=no
8002 # Look at the argument we got. We use all the common list separators.
8003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8004 for pkg in $enableval; do
8005 IFS="$lt_save_ifs"
8006 if test "X$pkg" = "X$p"; then
8007 enable_static=yes
8008 fi
8009 done
8010 IFS="$lt_save_ifs"
8011 ;;
8012 esac
8013 else
8014 enable_static=yes
8015 fi
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 # Check whether --with-pic was given.
8027 if test "${with_pic+set}" = set; then :
8028 withval=$with_pic; pic_mode="$withval"
8029 else
8030 pic_mode=default
8031 fi
8032
8033
8034 test -z "$pic_mode" && pic_mode=default
8035
8036
8037
8038
8039
8040
8041
8042 # Check whether --enable-fast-install was given.
8043 if test "${enable_fast_install+set}" = set; then :
8044 enableval=$enable_fast_install; p=${PACKAGE-default}
8045 case $enableval in
8046 yes) enable_fast_install=yes ;;
8047 no) enable_fast_install=no ;;
8048 *)
8049 enable_fast_install=no
8050 # Look at the argument we got. We use all the common list separators.
8051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8052 for pkg in $enableval; do
8053 IFS="$lt_save_ifs"
8054 if test "X$pkg" = "X$p"; then
8055 enable_fast_install=yes
8056 fi
8057 done
8058 IFS="$lt_save_ifs"
8059 ;;
8060 esac
8061 else
8062 enable_fast_install=yes
8063 fi
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075 # This can be used to rebuild libtool when needed
8076 LIBTOOL_DEPS="$ltmain"
8077
8078 # Always use our own libtool.
8079 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106 test -z "$LN_S" && LN_S="ln -s"
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 if test -n "${ZSH_VERSION+set}" ; then
8122 setopt NO_GLOB_SUBST
8123 fi
8124
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8126 $as_echo_n "checking for objdir... " >&6; }
8127 if ${lt_cv_objdir+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 rm -f .libs 2>/dev/null
8131 mkdir .libs 2>/dev/null
8132 if test -d .libs; then
8133 lt_cv_objdir=.libs
8134 else
8135 # MS-DOS does not allow filenames that begin with a dot.
8136 lt_cv_objdir=_libs
8137 fi
8138 rmdir .libs 2>/dev/null
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8141 $as_echo "$lt_cv_objdir" >&6; }
8142 objdir=$lt_cv_objdir
8143
8144
8145
8146
8147
8148 cat >>confdefs.h <<_ACEOF
8149 #define LT_OBJDIR "$lt_cv_objdir/"
8150 _ACEOF
8151
8152
8153
8154
8155 case $host_os in
8156 aix3*)
8157 # AIX sometimes has problems with the GCC collect2 program. For some
8158 # reason, if we set the COLLECT_NAMES environment variable, the problems
8159 # vanish in a puff of smoke.
8160 if test "X${COLLECT_NAMES+set}" != Xset; then
8161 COLLECT_NAMES=
8162 export COLLECT_NAMES
8163 fi
8164 ;;
8165 esac
8166
8167 # Global variables:
8168 ofile=libtool
8169 can_build_shared=yes
8170
8171 # All known linkers require a `.a' archive for static linking (except MSVC,
8172 # which needs '.lib').
8173 libext=a
8174
8175 with_gnu_ld="$lt_cv_prog_gnu_ld"
8176
8177 old_CC="$CC"
8178 old_CFLAGS="$CFLAGS"
8179
8180 # Set sane defaults for various variables
8181 test -z "$CC" && CC=cc
8182 test -z "$LTCC" && LTCC=$CC
8183 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8184 test -z "$LD" && LD=ld
8185 test -z "$ac_objext" && ac_objext=o
8186
8187 for cc_temp in $compiler""; do
8188 case $cc_temp in
8189 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8190 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8191 \-*) ;;
8192 *) break;;
8193 esac
8194 done
8195 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8196
8197
8198 # Only perform the check for file, if the check method requires it
8199 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8200 case $deplibs_check_method in
8201 file_magic*)
8202 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8204 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8205 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 case $MAGIC_CMD in
8209 [\\/*] | ?:[\\/]*)
8210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8211 ;;
8212 *)
8213 lt_save_MAGIC_CMD="$MAGIC_CMD"
8214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8216 for ac_dir in $ac_dummy; do
8217 IFS="$lt_save_ifs"
8218 test -z "$ac_dir" && ac_dir=.
8219 if test -f $ac_dir/${ac_tool_prefix}file; then
8220 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8221 if test -n "$file_magic_test_file"; then
8222 case $deplibs_check_method in
8223 "file_magic "*)
8224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8227 $EGREP "$file_magic_regex" > /dev/null; then
8228 :
8229 else
8230 cat <<_LT_EOF 1>&2
8231
8232 *** Warning: the command libtool uses to detect shared libraries,
8233 *** $file_magic_cmd, produces output that libtool cannot recognize.
8234 *** The result is that libtool may fail to recognize shared libraries
8235 *** as such. This will affect the creation of libtool libraries that
8236 *** depend on shared libraries, but programs linked with such libtool
8237 *** libraries will work regardless of this problem. Nevertheless, you
8238 *** may want to report the problem to your system manager and/or to
8239 *** bug-libtool@gnu.org
8240
8241 _LT_EOF
8242 fi ;;
8243 esac
8244 fi
8245 break
8246 fi
8247 done
8248 IFS="$lt_save_ifs"
8249 MAGIC_CMD="$lt_save_MAGIC_CMD"
8250 ;;
8251 esac
8252 fi
8253
8254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8255 if test -n "$MAGIC_CMD"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8257 $as_echo "$MAGIC_CMD" >&6; }
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 fi
8262
8263
8264
8265
8266
8267 if test -z "$lt_cv_path_MAGIC_CMD"; then
8268 if test -n "$ac_tool_prefix"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8270 $as_echo_n "checking for file... " >&6; }
8271 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 case $MAGIC_CMD in
8275 [\\/*] | ?:[\\/]*)
8276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8277 ;;
8278 *)
8279 lt_save_MAGIC_CMD="$MAGIC_CMD"
8280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8282 for ac_dir in $ac_dummy; do
8283 IFS="$lt_save_ifs"
8284 test -z "$ac_dir" && ac_dir=.
8285 if test -f $ac_dir/file; then
8286 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8287 if test -n "$file_magic_test_file"; then
8288 case $deplibs_check_method in
8289 "file_magic "*)
8290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8293 $EGREP "$file_magic_regex" > /dev/null; then
8294 :
8295 else
8296 cat <<_LT_EOF 1>&2
8297
8298 *** Warning: the command libtool uses to detect shared libraries,
8299 *** $file_magic_cmd, produces output that libtool cannot recognize.
8300 *** The result is that libtool may fail to recognize shared libraries
8301 *** as such. This will affect the creation of libtool libraries that
8302 *** depend on shared libraries, but programs linked with such libtool
8303 *** libraries will work regardless of this problem. Nevertheless, you
8304 *** may want to report the problem to your system manager and/or to
8305 *** bug-libtool@gnu.org
8306
8307 _LT_EOF
8308 fi ;;
8309 esac
8310 fi
8311 break
8312 fi
8313 done
8314 IFS="$lt_save_ifs"
8315 MAGIC_CMD="$lt_save_MAGIC_CMD"
8316 ;;
8317 esac
8318 fi
8319
8320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8321 if test -n "$MAGIC_CMD"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8323 $as_echo "$MAGIC_CMD" >&6; }
8324 else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329
8330 else
8331 MAGIC_CMD=:
8332 fi
8333 fi
8334
8335 fi
8336 ;;
8337 esac
8338
8339 # Use C for the default configuration in the libtool script
8340
8341 lt_save_CC="$CC"
8342 ac_ext=c
8343 ac_cpp='$CPP $CPPFLAGS'
8344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8347
8348
8349 # Source file extension for C test sources.
8350 ac_ext=c
8351
8352 # Object file extension for compiled C test sources.
8353 objext=o
8354 objext=$objext
8355
8356 # Code to be used in simple compile tests
8357 lt_simple_compile_test_code="int some_variable = 0;"
8358
8359 # Code to be used in simple link tests
8360 lt_simple_link_test_code='int main(){return(0);}'
8361
8362
8363
8364
8365
8366
8367
8368 # If no C compiler was specified, use CC.
8369 LTCC=${LTCC-"$CC"}
8370
8371 # If no C compiler flags were specified, use CFLAGS.
8372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8373
8374 # Allow CC to be a program name with arguments.
8375 compiler=$CC
8376
8377 # Save the default compiler, since it gets overwritten when the other
8378 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8379 compiler_DEFAULT=$CC
8380
8381 # save warnings/boilerplate of simple test code
8382 ac_outfile=conftest.$ac_objext
8383 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8385 _lt_compiler_boilerplate=`cat conftest.err`
8386 $RM conftest*
8387
8388 ac_outfile=conftest.$ac_objext
8389 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8391 _lt_linker_boilerplate=`cat conftest.err`
8392 $RM -r conftest*
8393
8394
8395 ## CAVEAT EMPTOR:
8396 ## There is no encapsulation within the following macros, do not change
8397 ## the running order or otherwise move them around unless you know exactly
8398 ## what you are doing...
8399 if test -n "$compiler"; then
8400
8401 lt_prog_compiler_no_builtin_flag=
8402
8403 if test "$GCC" = yes; then
8404 case $cc_basename in
8405 nvcc*)
8406 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8407 *)
8408 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8409 esac
8410
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8412 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8413 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 lt_cv_prog_compiler_rtti_exceptions=no
8417 ac_outfile=conftest.$ac_objext
8418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8419 lt_compiler_flag="-fno-rtti -fno-exceptions"
8420 # Insert the option either (1) after the last *FLAGS variable, or
8421 # (2) before a word containing "conftest.", or (3) at the end.
8422 # Note that $ac_compile itself does not contain backslashes and begins
8423 # with a dollar sign (not a hyphen), so the echo should work correctly.
8424 # The option is referenced via a variable to avoid confusing sed.
8425 lt_compile=`echo "$ac_compile" | $SED \
8426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428 -e 's:$: $lt_compiler_flag:'`
8429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8430 (eval "$lt_compile" 2>conftest.err)
8431 ac_status=$?
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 if (exit $ac_status) && test -s "$ac_outfile"; then
8435 # The compiler can only warn and ignore the option if not recognized
8436 # So say no if there are warnings other than the usual output.
8437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8440 lt_cv_prog_compiler_rtti_exceptions=yes
8441 fi
8442 fi
8443 $RM conftest*
8444
8445 fi
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8447 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8448
8449 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8450 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8451 else
8452 :
8453 fi
8454
8455 fi
8456
8457
8458
8459
8460
8461
8462 lt_prog_compiler_wl=
8463 lt_prog_compiler_pic=
8464 lt_prog_compiler_static=
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8467 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8468
8469 if test "$GCC" = yes; then
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_static='-static'
8472
8473 case $host_os in
8474 aix*)
8475 # All AIX code is PIC.
8476 if test "$host_cpu" = ia64; then
8477 # AIX 5 now supports IA64 processor
8478 lt_prog_compiler_static='-Bstatic'
8479 fi
8480 lt_prog_compiler_pic='-fPIC'
8481 ;;
8482
8483 amigaos*)
8484 case $host_cpu in
8485 powerpc)
8486 # see comment about AmigaOS4 .so support
8487 lt_prog_compiler_pic='-fPIC'
8488 ;;
8489 m68k)
8490 # FIXME: we need at least 68020 code to build shared libraries, but
8491 # adding the `-m68020' flag to GCC prevents building anything better,
8492 # like `-m68040'.
8493 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8494 ;;
8495 esac
8496 ;;
8497
8498 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8499 # PIC is the default for these OSes.
8500 ;;
8501
8502 mingw* | cygwin* | pw32* | os2* | cegcc*)
8503 # This hack is so that the source file can tell whether it is being
8504 # built for inclusion in a dll (and should export symbols for example).
8505 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8506 # (--disable-auto-import) libraries
8507 lt_prog_compiler_pic='-DDLL_EXPORT'
8508 ;;
8509
8510 darwin* | rhapsody*)
8511 # PIC is the default on this platform
8512 # Common symbols not allowed in MH_DYLIB files
8513 lt_prog_compiler_pic='-fno-common'
8514 ;;
8515
8516 haiku*)
8517 # PIC is the default for Haiku.
8518 # The "-static" flag exists, but is broken.
8519 lt_prog_compiler_static=
8520 ;;
8521
8522 hpux*)
8523 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8524 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8525 # sets the default TLS model and affects inlining.
8526 case $host_cpu in
8527 hppa*64*)
8528 # +Z the default
8529 ;;
8530 *)
8531 lt_prog_compiler_pic='-fPIC'
8532 ;;
8533 esac
8534 ;;
8535
8536 interix[3-9]*)
8537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8538 # Instead, we relocate shared libraries at runtime.
8539 ;;
8540
8541 msdosdjgpp*)
8542 # Just because we use GCC doesn't mean we suddenly get shared libraries
8543 # on systems that don't support them.
8544 lt_prog_compiler_can_build_shared=no
8545 enable_shared=no
8546 ;;
8547
8548 *nto* | *qnx*)
8549 # QNX uses GNU C++, but need to define -shared option too, otherwise
8550 # it will coredump.
8551 lt_prog_compiler_pic='-fPIC -shared'
8552 ;;
8553
8554 sysv4*MP*)
8555 if test -d /usr/nec; then
8556 lt_prog_compiler_pic=-Kconform_pic
8557 fi
8558 ;;
8559
8560 *)
8561 lt_prog_compiler_pic='-fPIC'
8562 ;;
8563 esac
8564
8565 case $cc_basename in
8566 nvcc*) # Cuda Compiler Driver 2.2
8567 lt_prog_compiler_wl='-Xlinker '
8568 lt_prog_compiler_pic='-Xcompiler -fPIC'
8569 ;;
8570 esac
8571 else
8572 # PORTME Check for flag to pass linker flags through the system compiler.
8573 case $host_os in
8574 aix*)
8575 lt_prog_compiler_wl='-Wl,'
8576 if test "$host_cpu" = ia64; then
8577 # AIX 5 now supports IA64 processor
8578 lt_prog_compiler_static='-Bstatic'
8579 else
8580 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8581 fi
8582 ;;
8583
8584 mingw* | cygwin* | pw32* | os2* | cegcc*)
8585 # This hack is so that the source file can tell whether it is being
8586 # built for inclusion in a dll (and should export symbols for example).
8587 lt_prog_compiler_pic='-DDLL_EXPORT'
8588 ;;
8589
8590 hpux9* | hpux10* | hpux11*)
8591 lt_prog_compiler_wl='-Wl,'
8592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8593 # not for PA HP-UX.
8594 case $host_cpu in
8595 hppa*64*|ia64*)
8596 # +Z the default
8597 ;;
8598 *)
8599 lt_prog_compiler_pic='+Z'
8600 ;;
8601 esac
8602 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8603 lt_prog_compiler_static='${wl}-a ${wl}archive'
8604 ;;
8605
8606 irix5* | irix6* | nonstopux*)
8607 lt_prog_compiler_wl='-Wl,'
8608 # PIC (with -KPIC) is the default.
8609 lt_prog_compiler_static='-non_shared'
8610 ;;
8611
8612 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8613 case $cc_basename in
8614 # old Intel for x86_64 which still supported -KPIC.
8615 ecc*)
8616 lt_prog_compiler_wl='-Wl,'
8617 lt_prog_compiler_pic='-KPIC'
8618 lt_prog_compiler_static='-static'
8619 ;;
8620 # icc used to be incompatible with GCC.
8621 # ICC 10 doesn't accept -KPIC any more.
8622 icc* | ifort*)
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_pic='-fPIC'
8625 lt_prog_compiler_static='-static'
8626 ;;
8627 # Lahey Fortran 8.1.
8628 lf95*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='--shared'
8631 lt_prog_compiler_static='--static'
8632 ;;
8633 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8634 # Portland Group compilers (*not* the Pentium gcc compiler,
8635 # which looks to be a dead project)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_pic='-fpic'
8638 lt_prog_compiler_static='-Bstatic'
8639 ;;
8640 ccc*)
8641 lt_prog_compiler_wl='-Wl,'
8642 # All Alpha code is PIC.
8643 lt_prog_compiler_static='-non_shared'
8644 ;;
8645 xl* | bgxl* | bgf* | mpixl*)
8646 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_pic='-qpic'
8649 lt_prog_compiler_static='-qstaticlink'
8650 ;;
8651 *)
8652 case `$CC -V 2>&1 | sed 5q` in
8653 *Sun\ F* | *Sun*Fortran*)
8654 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8655 lt_prog_compiler_pic='-KPIC'
8656 lt_prog_compiler_static='-Bstatic'
8657 lt_prog_compiler_wl=''
8658 ;;
8659 *Sun\ C*)
8660 # Sun C 5.9
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8663 lt_prog_compiler_wl='-Wl,'
8664 ;;
8665 esac
8666 ;;
8667 esac
8668 ;;
8669
8670 newsos6)
8671 lt_prog_compiler_pic='-KPIC'
8672 lt_prog_compiler_static='-Bstatic'
8673 ;;
8674
8675 *nto* | *qnx*)
8676 # QNX uses GNU C++, but need to define -shared option too, otherwise
8677 # it will coredump.
8678 lt_prog_compiler_pic='-fPIC -shared'
8679 ;;
8680
8681 osf3* | osf4* | osf5*)
8682 lt_prog_compiler_wl='-Wl,'
8683 # All OSF/1 code is PIC.
8684 lt_prog_compiler_static='-non_shared'
8685 ;;
8686
8687 rdos*)
8688 lt_prog_compiler_static='-non_shared'
8689 ;;
8690
8691 solaris*)
8692 lt_prog_compiler_pic='-KPIC'
8693 lt_prog_compiler_static='-Bstatic'
8694 case $cc_basename in
8695 f77* | f90* | f95*)
8696 lt_prog_compiler_wl='-Qoption ld ';;
8697 *)
8698 lt_prog_compiler_wl='-Wl,';;
8699 esac
8700 ;;
8701
8702 sunos4*)
8703 lt_prog_compiler_wl='-Qoption ld '
8704 lt_prog_compiler_pic='-PIC'
8705 lt_prog_compiler_static='-Bstatic'
8706 ;;
8707
8708 sysv4 | sysv4.2uw2* | sysv4.3*)
8709 lt_prog_compiler_wl='-Wl,'
8710 lt_prog_compiler_pic='-KPIC'
8711 lt_prog_compiler_static='-Bstatic'
8712 ;;
8713
8714 sysv4*MP*)
8715 if test -d /usr/nec ;then
8716 lt_prog_compiler_pic='-Kconform_pic'
8717 lt_prog_compiler_static='-Bstatic'
8718 fi
8719 ;;
8720
8721 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8722 lt_prog_compiler_wl='-Wl,'
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 ;;
8726
8727 unicos*)
8728 lt_prog_compiler_wl='-Wl,'
8729 lt_prog_compiler_can_build_shared=no
8730 ;;
8731
8732 uts4*)
8733 lt_prog_compiler_pic='-pic'
8734 lt_prog_compiler_static='-Bstatic'
8735 ;;
8736
8737 *)
8738 lt_prog_compiler_can_build_shared=no
8739 ;;
8740 esac
8741 fi
8742
8743 case $host_os in
8744 # For platforms which do not support PIC, -DPIC is meaningless:
8745 *djgpp*)
8746 lt_prog_compiler_pic=
8747 ;;
8748 *)
8749 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8750 ;;
8751 esac
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8753 $as_echo "$lt_prog_compiler_pic" >&6; }
8754
8755
8756
8757
8758
8759
8760 #
8761 # Check to make sure the PIC flag actually works.
8762 #
8763 if test -n "$lt_prog_compiler_pic"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8765 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8766 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 lt_cv_prog_compiler_pic_works=no
8770 ac_outfile=conftest.$ac_objext
8771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8772 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8773 # Insert the option either (1) after the last *FLAGS variable, or
8774 # (2) before a word containing "conftest.", or (3) at the end.
8775 # Note that $ac_compile itself does not contain backslashes and begins
8776 # with a dollar sign (not a hyphen), so the echo should work correctly.
8777 # The option is referenced via a variable to avoid confusing sed.
8778 lt_compile=`echo "$ac_compile" | $SED \
8779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781 -e 's:$: $lt_compiler_flag:'`
8782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783 (eval "$lt_compile" 2>conftest.err)
8784 ac_status=$?
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 if (exit $ac_status) && test -s "$ac_outfile"; then
8788 # The compiler can only warn and ignore the option if not recognized
8789 # So say no if there are warnings other than the usual output.
8790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8793 lt_cv_prog_compiler_pic_works=yes
8794 fi
8795 fi
8796 $RM conftest*
8797
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8800 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8801
8802 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8803 case $lt_prog_compiler_pic in
8804 "" | " "*) ;;
8805 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8806 esac
8807 else
8808 lt_prog_compiler_pic=
8809 lt_prog_compiler_can_build_shared=no
8810 fi
8811
8812 fi
8813
8814
8815
8816
8817
8818
8819 #
8820 # Check to make sure the static flag actually works.
8821 #
8822 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8824 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8825 if ${lt_cv_prog_compiler_static_works+:} false; then :
8826 $as_echo_n "(cached) " >&6
8827 else
8828 lt_cv_prog_compiler_static_works=no
8829 save_LDFLAGS="$LDFLAGS"
8830 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8831 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8833 # The linker can only warn and ignore the option if not recognized
8834 # So say no if there are warnings
8835 if test -s conftest.err; then
8836 # Append any errors to the config.log.
8837 cat conftest.err 1>&5
8838 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8840 if diff conftest.exp conftest.er2 >/dev/null; then
8841 lt_cv_prog_compiler_static_works=yes
8842 fi
8843 else
8844 lt_cv_prog_compiler_static_works=yes
8845 fi
8846 fi
8847 $RM -r conftest*
8848 LDFLAGS="$save_LDFLAGS"
8849
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8852 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8853
8854 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8855 :
8856 else
8857 lt_prog_compiler_static=
8858 fi
8859
8860
8861
8862
8863
8864
8865
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8868 if ${lt_cv_prog_compiler_c_o+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 lt_cv_prog_compiler_c_o=no
8872 $RM -r conftest 2>/dev/null
8873 mkdir conftest
8874 cd conftest
8875 mkdir out
8876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8877
8878 lt_compiler_flag="-o out/conftest2.$ac_objext"
8879 # Insert the option either (1) after the last *FLAGS variable, or
8880 # (2) before a word containing "conftest.", or (3) at the end.
8881 # Note that $ac_compile itself does not contain backslashes and begins
8882 # with a dollar sign (not a hyphen), so the echo should work correctly.
8883 lt_compile=`echo "$ac_compile" | $SED \
8884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8886 -e 's:$: $lt_compiler_flag:'`
8887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8888 (eval "$lt_compile" 2>out/conftest.err)
8889 ac_status=$?
8890 cat out/conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8893 then
8894 # The compiler can only warn and ignore the option if not recognized
8895 # So say no if there are warnings
8896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8899 lt_cv_prog_compiler_c_o=yes
8900 fi
8901 fi
8902 chmod u+w . 2>&5
8903 $RM conftest*
8904 # SGI C++ compiler will create directory out/ii_files/ for
8905 # template instantiation
8906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8907 $RM out/* && rmdir out
8908 cd ..
8909 $RM -r conftest
8910 $RM conftest*
8911
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8914 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8915
8916
8917
8918
8919
8920
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8922 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8923 if ${lt_cv_prog_compiler_c_o+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 lt_cv_prog_compiler_c_o=no
8927 $RM -r conftest 2>/dev/null
8928 mkdir conftest
8929 cd conftest
8930 mkdir out
8931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8932
8933 lt_compiler_flag="-o out/conftest2.$ac_objext"
8934 # Insert the option either (1) after the last *FLAGS variable, or
8935 # (2) before a word containing "conftest.", or (3) at the end.
8936 # Note that $ac_compile itself does not contain backslashes and begins
8937 # with a dollar sign (not a hyphen), so the echo should work correctly.
8938 lt_compile=`echo "$ac_compile" | $SED \
8939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8941 -e 's:$: $lt_compiler_flag:'`
8942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8943 (eval "$lt_compile" 2>out/conftest.err)
8944 ac_status=$?
8945 cat out/conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8948 then
8949 # The compiler can only warn and ignore the option if not recognized
8950 # So say no if there are warnings
8951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8954 lt_cv_prog_compiler_c_o=yes
8955 fi
8956 fi
8957 chmod u+w . 2>&5
8958 $RM conftest*
8959 # SGI C++ compiler will create directory out/ii_files/ for
8960 # template instantiation
8961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8962 $RM out/* && rmdir out
8963 cd ..
8964 $RM -r conftest
8965 $RM conftest*
8966
8967 fi
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8969 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8970
8971
8972
8973
8974 hard_links="nottested"
8975 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8976 # do not overwrite the value of need_locks provided by the user
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8978 $as_echo_n "checking if we can lock with hard links... " >&6; }
8979 hard_links=yes
8980 $RM conftest*
8981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8982 touch conftest.a
8983 ln conftest.a conftest.b 2>&5 || hard_links=no
8984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8986 $as_echo "$hard_links" >&6; }
8987 if test "$hard_links" = no; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8989 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8990 need_locks=warn
8991 fi
8992 else
8993 need_locks=no
8994 fi
8995
8996
8997
8998
8999
9000
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9002 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9003
9004 runpath_var=
9005 allow_undefined_flag=
9006 always_export_symbols=no
9007 archive_cmds=
9008 archive_expsym_cmds=
9009 compiler_needs_object=no
9010 enable_shared_with_static_runtimes=no
9011 export_dynamic_flag_spec=
9012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9013 hardcode_automatic=no
9014 hardcode_direct=no
9015 hardcode_direct_absolute=no
9016 hardcode_libdir_flag_spec=
9017 hardcode_libdir_flag_spec_ld=
9018 hardcode_libdir_separator=
9019 hardcode_minus_L=no
9020 hardcode_shlibpath_var=unsupported
9021 inherit_rpath=no
9022 link_all_deplibs=unknown
9023 module_cmds=
9024 module_expsym_cmds=
9025 old_archive_from_new_cmds=
9026 old_archive_from_expsyms_cmds=
9027 thread_safe_flag_spec=
9028 whole_archive_flag_spec=
9029 # include_expsyms should be a list of space-separated symbols to be *always*
9030 # included in the symbol list
9031 include_expsyms=
9032 # exclude_expsyms can be an extended regexp of symbols to exclude
9033 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9034 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9035 # as well as any symbol that contains `d'.
9036 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9038 # platforms (ab)use it in PIC code, but their linkers get confused if
9039 # the symbol is explicitly referenced. Since portable code cannot
9040 # rely on this symbol name, it's probably fine to never include it in
9041 # preloaded symbol tables.
9042 # Exclude shared library initialization/finalization symbols.
9043 extract_expsyms_cmds=
9044
9045 case $host_os in
9046 cygwin* | mingw* | pw32* | cegcc*)
9047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9048 # When not using gcc, we currently assume that we are using
9049 # Microsoft Visual C++.
9050 if test "$GCC" != yes; then
9051 with_gnu_ld=no
9052 fi
9053 ;;
9054 interix*)
9055 # we just hope/assume this is gcc and not c89 (= MSVC++)
9056 with_gnu_ld=yes
9057 ;;
9058 openbsd*)
9059 with_gnu_ld=no
9060 ;;
9061 esac
9062
9063 ld_shlibs=yes
9064
9065 # On some targets, GNU ld is compatible enough with the native linker
9066 # that we're better off using the native interface for both.
9067 lt_use_gnu_ld_interface=no
9068 if test "$with_gnu_ld" = yes; then
9069 case $host_os in
9070 aix*)
9071 # The AIX port of GNU ld has always aspired to compatibility
9072 # with the native linker. However, as the warning in the GNU ld
9073 # block says, versions before 2.19.5* couldn't really create working
9074 # shared libraries, regardless of the interface used.
9075 case `$LD -v 2>&1` in
9076 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9077 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9078 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9079 *)
9080 lt_use_gnu_ld_interface=yes
9081 ;;
9082 esac
9083 ;;
9084 *)
9085 lt_use_gnu_ld_interface=yes
9086 ;;
9087 esac
9088 fi
9089
9090 if test "$lt_use_gnu_ld_interface" = yes; then
9091 # If archive_cmds runs LD, not CC, wlarc should be empty
9092 wlarc='${wl}'
9093
9094 # Set some defaults for GNU ld with shared library support. These
9095 # are reset later if shared libraries are not supported. Putting them
9096 # here allows them to be overridden if necessary.
9097 runpath_var=LD_RUN_PATH
9098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9099 export_dynamic_flag_spec='${wl}--export-dynamic'
9100 # ancient GNU ld didn't support --whole-archive et. al.
9101 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9102 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9103 else
9104 whole_archive_flag_spec=
9105 fi
9106 supports_anon_versioning=no
9107 case `$LD -v 2>&1` in
9108 *GNU\ gold*) supports_anon_versioning=yes ;;
9109 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9110 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9111 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9112 *\ 2.11.*) ;; # other 2.11 versions
9113 *) supports_anon_versioning=yes ;;
9114 esac
9115
9116 # See if GNU ld supports shared libraries.
9117 case $host_os in
9118 aix[3-9]*)
9119 # On AIX/PPC, the GNU linker is very broken
9120 if test "$host_cpu" != ia64; then
9121 ld_shlibs=no
9122 cat <<_LT_EOF 1>&2
9123
9124 *** Warning: the GNU linker, at least up to release 2.19, is reported
9125 *** to be unable to reliably create shared libraries on AIX.
9126 *** Therefore, libtool is disabling shared libraries support. If you
9127 *** really care for shared libraries, you may want to install binutils
9128 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9129 *** You will then need to restart the configuration process.
9130
9131 _LT_EOF
9132 fi
9133 ;;
9134
9135 amigaos*)
9136 case $host_cpu in
9137 powerpc)
9138 # see comment about AmigaOS4 .so support
9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 archive_expsym_cmds=''
9141 ;;
9142 m68k)
9143 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)'
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_minus_L=yes
9146 ;;
9147 esac
9148 ;;
9149
9150 beos*)
9151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9152 allow_undefined_flag=unsupported
9153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9154 # support --undefined. This deserves some investigation. FIXME
9155 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9156 else
9157 ld_shlibs=no
9158 fi
9159 ;;
9160
9161 cygwin* | mingw* | pw32* | cegcc*)
9162 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9163 # as there is no search path for DLLs.
9164 hardcode_libdir_flag_spec='-L$libdir'
9165 export_dynamic_flag_spec='${wl}--export-all-symbols'
9166 allow_undefined_flag=unsupported
9167 always_export_symbols=no
9168 enable_shared_with_static_runtimes=yes
9169 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9170
9171 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9173 # If the export-symbols file already is a .def file (1st line
9174 # is EXPORTS), use it as is; otherwise, prepend...
9175 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9176 cp $export_symbols $output_objdir/$soname.def;
9177 else
9178 echo EXPORTS > $output_objdir/$soname.def;
9179 cat $export_symbols >> $output_objdir/$soname.def;
9180 fi~
9181 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9182 else
9183 ld_shlibs=no
9184 fi
9185 ;;
9186
9187 haiku*)
9188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9189 link_all_deplibs=yes
9190 ;;
9191
9192 interix[3-9]*)
9193 hardcode_direct=no
9194 hardcode_shlibpath_var=no
9195 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9196 export_dynamic_flag_spec='${wl}-E'
9197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9198 # Instead, shared libraries are loaded at an image base (0x10000000 by
9199 # default) and relocated if they conflict, which is a slow very memory
9200 # consuming and fragmenting process. To avoid this, we pick a random,
9201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9202 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9204 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'
9205 ;;
9206
9207 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9208 tmp_diet=no
9209 if test "$host_os" = linux-dietlibc; then
9210 case $cc_basename in
9211 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9212 esac
9213 fi
9214 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9215 && test "$tmp_diet" = no
9216 then
9217 tmp_addflag=' $pic_flag'
9218 tmp_sharedflag='-shared'
9219 case $cc_basename,$host_cpu in
9220 pgcc*) # Portland Group C compiler
9221 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9222 tmp_addflag=' $pic_flag'
9223 ;;
9224 pgf77* | pgf90* | pgf95* | pgfortran*)
9225 # Portland Group f77 and f90 compilers
9226 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'
9227 tmp_addflag=' $pic_flag -Mnomain' ;;
9228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9229 tmp_addflag=' -i_dynamic' ;;
9230 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9231 tmp_addflag=' -i_dynamic -nofor_main' ;;
9232 ifc* | ifort*) # Intel Fortran compiler
9233 tmp_addflag=' -nofor_main' ;;
9234 lf95*) # Lahey Fortran 8.1
9235 whole_archive_flag_spec=
9236 tmp_sharedflag='--shared' ;;
9237 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9238 tmp_sharedflag='-qmkshrobj'
9239 tmp_addflag= ;;
9240 nvcc*) # Cuda Compiler Driver 2.2
9241 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'
9242 compiler_needs_object=yes
9243 ;;
9244 esac
9245 case `$CC -V 2>&1 | sed 5q` in
9246 *Sun\ C*) # Sun C 5.9
9247 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'
9248 compiler_needs_object=yes
9249 tmp_sharedflag='-G' ;;
9250 *Sun\ F*) # Sun Fortran 8.3
9251 tmp_sharedflag='-G' ;;
9252 esac
9253 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254
9255 if test "x$supports_anon_versioning" = xyes; then
9256 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9258 echo "local: *; };" >> $output_objdir/$libname.ver~
9259 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9260 fi
9261
9262 case $cc_basename in
9263 xlf* | bgf* | bgxlf* | mpixlf*)
9264 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9265 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9266 hardcode_libdir_flag_spec=
9267 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9268 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9269 if test "x$supports_anon_versioning" = xyes; then
9270 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9271 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9272 echo "local: *; };" >> $output_objdir/$libname.ver~
9273 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9274 fi
9275 ;;
9276 esac
9277 else
9278 ld_shlibs=no
9279 fi
9280 ;;
9281
9282 netbsd*)
9283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9284 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9285 wlarc=
9286 else
9287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9289 fi
9290 ;;
9291
9292 solaris*)
9293 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9294 ld_shlibs=no
9295 cat <<_LT_EOF 1>&2
9296
9297 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9298 *** create shared libraries on Solaris systems. Therefore, libtool
9299 *** is disabling shared libraries support. We urge you to upgrade GNU
9300 *** binutils to release 2.9.1 or newer. Another option is to modify
9301 *** your PATH or compiler configuration so that the native linker is
9302 *** used, and then restart.
9303
9304 _LT_EOF
9305 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9308 else
9309 ld_shlibs=no
9310 fi
9311 ;;
9312
9313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9314 case `$LD -v 2>&1` in
9315 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9316 ld_shlibs=no
9317 cat <<_LT_EOF 1>&2
9318
9319 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9320 *** reliably create shared libraries on SCO systems. Therefore, libtool
9321 *** is disabling shared libraries support. We urge you to upgrade GNU
9322 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9323 *** your PATH or compiler configuration so that the native linker is
9324 *** used, and then restart.
9325
9326 _LT_EOF
9327 ;;
9328 *)
9329 # For security reasons, it is highly recommended that you always
9330 # use absolute paths for naming shared libraries, and exclude the
9331 # DT_RUNPATH tag from executables and libraries. But doing so
9332 # requires that you compile everything twice, which is a pain.
9333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9337 else
9338 ld_shlibs=no
9339 fi
9340 ;;
9341 esac
9342 ;;
9343
9344 sunos4*)
9345 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9346 wlarc=
9347 hardcode_direct=yes
9348 hardcode_shlibpath_var=no
9349 ;;
9350
9351 *)
9352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355 else
9356 ld_shlibs=no
9357 fi
9358 ;;
9359 esac
9360
9361 if test "$ld_shlibs" = no; then
9362 runpath_var=
9363 hardcode_libdir_flag_spec=
9364 export_dynamic_flag_spec=
9365 whole_archive_flag_spec=
9366 fi
9367 else
9368 # PORTME fill in a description of your system's linker (not GNU ld)
9369 case $host_os in
9370 aix3*)
9371 allow_undefined_flag=unsupported
9372 always_export_symbols=yes
9373 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'
9374 # Note: this linker hardcodes the directories in LIBPATH if there
9375 # are no directories specified by -L.
9376 hardcode_minus_L=yes
9377 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9378 # Neither direct hardcoding nor static linking is supported with a
9379 # broken collect2.
9380 hardcode_direct=unsupported
9381 fi
9382 ;;
9383
9384 aix[4-9]*)
9385 if test "$host_cpu" = ia64; then
9386 # On IA64, the linker does run time linking by default, so we don't
9387 # have to do anything special.
9388 aix_use_runtimelinking=no
9389 exp_sym_flag='-Bexport'
9390 no_entry_flag=""
9391 else
9392 # If we're using GNU nm, then we don't want the "-C" option.
9393 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9394 # Also, AIX nm treats weak defined symbols like other global
9395 # defined symbols, whereas GNU nm marks them as "W".
9396 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9397 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'
9398 else
9399 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'
9400 fi
9401 aix_use_runtimelinking=no
9402
9403 # Test if we are trying to use run time linking or normal
9404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9405 # need to do runtime linking.
9406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9407 for ld_flag in $LDFLAGS; do
9408 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9409 aix_use_runtimelinking=yes
9410 break
9411 fi
9412 done
9413 ;;
9414 esac
9415
9416 exp_sym_flag='-bexport'
9417 no_entry_flag='-bnoentry'
9418 fi
9419
9420 # When large executables or shared objects are built, AIX ld can
9421 # have problems creating the table of contents. If linking a library
9422 # or program results in "error TOC overflow" add -mminimal-toc to
9423 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9424 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9425
9426 archive_cmds=''
9427 hardcode_direct=yes
9428 hardcode_direct_absolute=yes
9429 hardcode_libdir_separator=':'
9430 link_all_deplibs=yes
9431 file_list_spec='${wl}-f,'
9432
9433 if test "$GCC" = yes; then
9434 case $host_os in aix4.[012]|aix4.[012].*)
9435 # We only want to do this on AIX 4.2 and lower, the check
9436 # below for broken collect2 doesn't work under 4.3+
9437 collect2name=`${CC} -print-prog-name=collect2`
9438 if test -f "$collect2name" &&
9439 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9440 then
9441 # We have reworked collect2
9442 :
9443 else
9444 # We have old collect2
9445 hardcode_direct=unsupported
9446 # It fails to find uninstalled libraries when the uninstalled
9447 # path is not listed in the libpath. Setting hardcode_minus_L
9448 # to unsupported forces relinking
9449 hardcode_minus_L=yes
9450 hardcode_libdir_flag_spec='-L$libdir'
9451 hardcode_libdir_separator=
9452 fi
9453 ;;
9454 esac
9455 shared_flag='-shared'
9456 if test "$aix_use_runtimelinking" = yes; then
9457 shared_flag="$shared_flag "'${wl}-G'
9458 fi
9459 else
9460 # not using gcc
9461 if test "$host_cpu" = ia64; then
9462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9463 # chokes on -Wl,-G. The following line is correct:
9464 shared_flag='-G'
9465 else
9466 if test "$aix_use_runtimelinking" = yes; then
9467 shared_flag='${wl}-G'
9468 else
9469 shared_flag='${wl}-bM:SRE'
9470 fi
9471 fi
9472 fi
9473
9474 export_dynamic_flag_spec='${wl}-bexpall'
9475 # It seems that -bexpall does not export symbols beginning with
9476 # underscore (_), so it is better to generate a list of symbols to export.
9477 always_export_symbols=yes
9478 if test "$aix_use_runtimelinking" = yes; then
9479 # Warning - without using the other runtime loading flags (-brtl),
9480 # -berok will link without error, but may produce a broken library.
9481 allow_undefined_flag='-berok'
9482 # Determine the default libpath from the value encoded in an
9483 # empty executable.
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486
9487 int
9488 main ()
9489 {
9490
9491 ;
9492 return 0;
9493 }
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9496
9497 lt_aix_libpath_sed='
9498 /Import File Strings/,/^$/ {
9499 /^0/ {
9500 s/^0 *\(.*\)$/\1/
9501 p
9502 }
9503 }'
9504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9505 # Check for a 64-bit object if we didn't find anything.
9506 if test -z "$aix_libpath"; then
9507 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508 fi
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9512 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9513
9514 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9515 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"
9516 else
9517 if test "$host_cpu" = ia64; then
9518 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9519 allow_undefined_flag="-z nodefs"
9520 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"
9521 else
9522 # Determine the default libpath from the value encoded in an
9523 # empty executable.
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526
9527 int
9528 main ()
9529 {
9530
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536
9537 lt_aix_libpath_sed='
9538 /Import File Strings/,/^$/ {
9539 /^0/ {
9540 s/^0 *\(.*\)$/\1/
9541 p
9542 }
9543 }'
9544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9545 # Check for a 64-bit object if we didn't find anything.
9546 if test -z "$aix_libpath"; then
9547 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9548 fi
9549 fi
9550 rm -f core conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
9552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9553
9554 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9555 # Warning - without using the other run time loading flags,
9556 # -berok will link without error, but may produce a broken library.
9557 no_undefined_flag=' ${wl}-bernotok'
9558 allow_undefined_flag=' ${wl}-berok'
9559 if test "$with_gnu_ld" = yes; then
9560 # We only use this code for GNU lds that support --whole-archive.
9561 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9562 else
9563 # Exported symbols can be pulled into shared objects from archives
9564 whole_archive_flag_spec='$convenience'
9565 fi
9566 archive_cmds_need_lc=yes
9567 # This is similar to how AIX traditionally builds its shared libraries.
9568 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'
9569 fi
9570 fi
9571 ;;
9572
9573 amigaos*)
9574 case $host_cpu in
9575 powerpc)
9576 # see comment about AmigaOS4 .so support
9577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578 archive_expsym_cmds=''
9579 ;;
9580 m68k)
9581 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)'
9582 hardcode_libdir_flag_spec='-L$libdir'
9583 hardcode_minus_L=yes
9584 ;;
9585 esac
9586 ;;
9587
9588 bsdi[45]*)
9589 export_dynamic_flag_spec=-rdynamic
9590 ;;
9591
9592 cygwin* | mingw* | pw32* | cegcc*)
9593 # When not using gcc, we currently assume that we are using
9594 # Microsoft Visual C++.
9595 # hardcode_libdir_flag_spec is actually meaningless, as there is
9596 # no search path for DLLs.
9597 hardcode_libdir_flag_spec=' '
9598 allow_undefined_flag=unsupported
9599 # Tell ltmain to make .lib files, not .a files.
9600 libext=lib
9601 # Tell ltmain to make .dll files, not .so files.
9602 shrext_cmds=".dll"
9603 # FIXME: Setting linknames here is a bad hack.
9604 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9605 # The linker will automatically build a .lib file if we build a DLL.
9606 old_archive_from_new_cmds='true'
9607 # FIXME: Should let the user specify the lib program.
9608 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9609 fix_srcfile_path='`cygpath -w "$srcfile"`'
9610 enable_shared_with_static_runtimes=yes
9611 ;;
9612
9613 darwin* | rhapsody*)
9614
9615
9616 archive_cmds_need_lc=no
9617 hardcode_direct=no
9618 hardcode_automatic=yes
9619 hardcode_shlibpath_var=unsupported
9620 if test "$lt_cv_ld_force_load" = "yes"; then
9621 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\"`'
9622 else
9623 whole_archive_flag_spec=''
9624 fi
9625 link_all_deplibs=yes
9626 allow_undefined_flag="$_lt_dar_allow_undefined"
9627 case $cc_basename in
9628 ifort*) _lt_dar_can_shared=yes ;;
9629 *) _lt_dar_can_shared=$GCC ;;
9630 esac
9631 if test "$_lt_dar_can_shared" = "yes"; then
9632 output_verbose_link_cmd=func_echo_all
9633 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9634 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9635 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}"
9636 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}"
9637
9638 else
9639 ld_shlibs=no
9640 fi
9641
9642 ;;
9643
9644 dgux*)
9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_shlibpath_var=no
9648 ;;
9649
9650 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9651 # support. Future versions do this automatically, but an explicit c++rt0.o
9652 # does not break anything, and helps significantly (at the cost of a little
9653 # extra space).
9654 freebsd2.2*)
9655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_direct=yes
9658 hardcode_shlibpath_var=no
9659 ;;
9660
9661 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9662 freebsd2.*)
9663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_direct=yes
9665 hardcode_minus_L=yes
9666 hardcode_shlibpath_var=no
9667 ;;
9668
9669 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9670 freebsd* | dragonfly*)
9671 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9672 hardcode_libdir_flag_spec='-R$libdir'
9673 hardcode_direct=yes
9674 hardcode_shlibpath_var=no
9675 ;;
9676
9677 hpux9*)
9678 if test "$GCC" = yes; then
9679 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'
9680 else
9681 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'
9682 fi
9683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9684 hardcode_libdir_separator=:
9685 hardcode_direct=yes
9686
9687 # hardcode_minus_L: Not really in the search PATH,
9688 # but as the default location of the library.
9689 hardcode_minus_L=yes
9690 export_dynamic_flag_spec='${wl}-E'
9691 ;;
9692
9693 hpux10*)
9694 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9696 else
9697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9698 fi
9699 if test "$with_gnu_ld" = no; then
9700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9701 hardcode_libdir_flag_spec_ld='+b $libdir'
9702 hardcode_libdir_separator=:
9703 hardcode_direct=yes
9704 hardcode_direct_absolute=yes
9705 export_dynamic_flag_spec='${wl}-E'
9706 # hardcode_minus_L: Not really in the search PATH,
9707 # but as the default location of the library.
9708 hardcode_minus_L=yes
9709 fi
9710 ;;
9711
9712 hpux11*)
9713 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9714 case $host_cpu in
9715 hppa*64*)
9716 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 ;;
9718 ia64*)
9719 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9720 ;;
9721 *)
9722 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9723 ;;
9724 esac
9725 else
9726 case $host_cpu in
9727 hppa*64*)
9728 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 ;;
9730 ia64*)
9731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9732 ;;
9733 *)
9734
9735 # Older versions of the 11.00 compiler do not understand -b yet
9736 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9738 $as_echo_n "checking if $CC understands -b... " >&6; }
9739 if ${lt_cv_prog_compiler__b+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 lt_cv_prog_compiler__b=no
9743 save_LDFLAGS="$LDFLAGS"
9744 LDFLAGS="$LDFLAGS -b"
9745 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9747 # The linker can only warn and ignore the option if not recognized
9748 # So say no if there are warnings
9749 if test -s conftest.err; then
9750 # Append any errors to the config.log.
9751 cat conftest.err 1>&5
9752 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9754 if diff conftest.exp conftest.er2 >/dev/null; then
9755 lt_cv_prog_compiler__b=yes
9756 fi
9757 else
9758 lt_cv_prog_compiler__b=yes
9759 fi
9760 fi
9761 $RM -r conftest*
9762 LDFLAGS="$save_LDFLAGS"
9763
9764 fi
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9766 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9767
9768 if test x"$lt_cv_prog_compiler__b" = xyes; then
9769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9770 else
9771 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9772 fi
9773
9774 ;;
9775 esac
9776 fi
9777 if test "$with_gnu_ld" = no; then
9778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9779 hardcode_libdir_separator=:
9780
9781 case $host_cpu in
9782 hppa*64*|ia64*)
9783 hardcode_direct=no
9784 hardcode_shlibpath_var=no
9785 ;;
9786 *)
9787 hardcode_direct=yes
9788 hardcode_direct_absolute=yes
9789 export_dynamic_flag_spec='${wl}-E'
9790
9791 # hardcode_minus_L: Not really in the search PATH,
9792 # but as the default location of the library.
9793 hardcode_minus_L=yes
9794 ;;
9795 esac
9796 fi
9797 ;;
9798
9799 irix5* | irix6* | nonstopux*)
9800 if test "$GCC" = yes; then
9801 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'
9802 # Try to use the -exported_symbol ld option, if it does not
9803 # work, assume that -exports_file does not work either and
9804 # implicitly export all symbols.
9805 save_LDFLAGS="$LDFLAGS"
9806 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9809 int foo(void) {}
9810 _ACEOF
9811 if ac_fn_c_try_link "$LINENO"; then :
9812 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'
9813
9814 fi
9815 rm -f core conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9817 LDFLAGS="$save_LDFLAGS"
9818 else
9819 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'
9820 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'
9821 fi
9822 archive_cmds_need_lc='no'
9823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9824 hardcode_libdir_separator=:
9825 inherit_rpath=yes
9826 link_all_deplibs=yes
9827 ;;
9828
9829 netbsd*)
9830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9832 else
9833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9834 fi
9835 hardcode_libdir_flag_spec='-R$libdir'
9836 hardcode_direct=yes
9837 hardcode_shlibpath_var=no
9838 ;;
9839
9840 newsos6)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_direct=yes
9843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844 hardcode_libdir_separator=:
9845 hardcode_shlibpath_var=no
9846 ;;
9847
9848 *nto* | *qnx*)
9849 ;;
9850
9851 openbsd*)
9852 if test -f /usr/libexec/ld.so; then
9853 hardcode_direct=yes
9854 hardcode_shlibpath_var=no
9855 hardcode_direct_absolute=yes
9856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9860 export_dynamic_flag_spec='${wl}-E'
9861 else
9862 case $host_os in
9863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9865 hardcode_libdir_flag_spec='-R$libdir'
9866 ;;
9867 *)
9868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9870 ;;
9871 esac
9872 fi
9873 else
9874 ld_shlibs=no
9875 fi
9876 ;;
9877
9878 os2*)
9879 hardcode_libdir_flag_spec='-L$libdir'
9880 hardcode_minus_L=yes
9881 allow_undefined_flag=unsupported
9882 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'
9883 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9884 ;;
9885
9886 osf3*)
9887 if test "$GCC" = yes; then
9888 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9889 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'
9890 else
9891 allow_undefined_flag=' -expect_unresolved \*'
9892 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'
9893 fi
9894 archive_cmds_need_lc='no'
9895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9896 hardcode_libdir_separator=:
9897 ;;
9898
9899 osf4* | osf5*) # as osf3* with the addition of -msym flag
9900 if test "$GCC" = yes; then
9901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9902 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'
9903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9904 else
9905 allow_undefined_flag=' -expect_unresolved \*'
9906 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'
9907 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~
9908 $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'
9909
9910 # Both c and cxx compiler support -rpath directly
9911 hardcode_libdir_flag_spec='-rpath $libdir'
9912 fi
9913 archive_cmds_need_lc='no'
9914 hardcode_libdir_separator=:
9915 ;;
9916
9917 solaris*)
9918 no_undefined_flag=' -z defs'
9919 if test "$GCC" = yes; then
9920 wlarc='${wl}'
9921 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9923 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9924 else
9925 case `$CC -V 2>&1` in
9926 *"Compilers 5.0"*)
9927 wlarc=''
9928 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9929 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9931 ;;
9932 *)
9933 wlarc='${wl}'
9934 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9936 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9937 ;;
9938 esac
9939 fi
9940 hardcode_libdir_flag_spec='-R$libdir'
9941 hardcode_shlibpath_var=no
9942 case $host_os in
9943 solaris2.[0-5] | solaris2.[0-5].*) ;;
9944 *)
9945 # The compiler driver will combine and reorder linker options,
9946 # but understands `-z linker_flag'. GCC discards it without `$wl',
9947 # but is careful enough not to reorder.
9948 # Supported since Solaris 2.6 (maybe 2.5.1?)
9949 if test "$GCC" = yes; then
9950 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9951 else
9952 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9953 fi
9954 ;;
9955 esac
9956 link_all_deplibs=yes
9957 ;;
9958
9959 sunos4*)
9960 if test "x$host_vendor" = xsequent; then
9961 # Use $CC to link under sequent, because it throws in some extra .o
9962 # files that make .init and .fini sections work.
9963 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9964 else
9965 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9966 fi
9967 hardcode_libdir_flag_spec='-L$libdir'
9968 hardcode_direct=yes
9969 hardcode_minus_L=yes
9970 hardcode_shlibpath_var=no
9971 ;;
9972
9973 sysv4)
9974 case $host_vendor in
9975 sni)
9976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_direct=yes # is this really true???
9978 ;;
9979 siemens)
9980 ## LD is ld it makes a PLAMLIB
9981 ## CC just makes a GrossModule.
9982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9983 reload_cmds='$CC -r -o $output$reload_objs'
9984 hardcode_direct=no
9985 ;;
9986 motorola)
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9989 ;;
9990 esac
9991 runpath_var='LD_RUN_PATH'
9992 hardcode_shlibpath_var=no
9993 ;;
9994
9995 sysv4.3*)
9996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997 hardcode_shlibpath_var=no
9998 export_dynamic_flag_spec='-Bexport'
9999 ;;
10000
10001 sysv4*MP*)
10002 if test -d /usr/nec; then
10003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004 hardcode_shlibpath_var=no
10005 runpath_var=LD_RUN_PATH
10006 hardcode_runpath_var=yes
10007 ld_shlibs=yes
10008 fi
10009 ;;
10010
10011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10012 no_undefined_flag='${wl}-z,text'
10013 archive_cmds_need_lc=no
10014 hardcode_shlibpath_var=no
10015 runpath_var='LD_RUN_PATH'
10016
10017 if test "$GCC" = yes; then
10018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 else
10021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 fi
10024 ;;
10025
10026 sysv5* | sco3.2v5* | sco5v6*)
10027 # Note: We can NOT use -z defs as we might desire, because we do not
10028 # link with -lc, and that would cause any symbols used from libc to
10029 # always be unresolved, which means just about no library would
10030 # ever link correctly. If we're not using GNU ld we use -z text
10031 # though, which does catch some bad symbols but isn't as heavy-handed
10032 # as -z defs.
10033 no_undefined_flag='${wl}-z,text'
10034 allow_undefined_flag='${wl}-z,nodefs'
10035 archive_cmds_need_lc=no
10036 hardcode_shlibpath_var=no
10037 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10038 hardcode_libdir_separator=':'
10039 link_all_deplibs=yes
10040 export_dynamic_flag_spec='${wl}-Bexport'
10041 runpath_var='LD_RUN_PATH'
10042
10043 if test "$GCC" = yes; then
10044 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 else
10047 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 fi
10050 ;;
10051
10052 uts4*)
10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 hardcode_shlibpath_var=no
10056 ;;
10057
10058 *)
10059 ld_shlibs=no
10060 ;;
10061 esac
10062
10063 if test x$host_vendor = xsni; then
10064 case $host in
10065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10066 export_dynamic_flag_spec='${wl}-Blargedynsym'
10067 ;;
10068 esac
10069 fi
10070 fi
10071
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10073 $as_echo "$ld_shlibs" >&6; }
10074 test "$ld_shlibs" = no && can_build_shared=no
10075
10076 with_gnu_ld=$with_gnu_ld
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092 #
10093 # Do we need to explicitly link libc?
10094 #
10095 case "x$archive_cmds_need_lc" in
10096 x|xyes)
10097 # Assume -lc should be added
10098 archive_cmds_need_lc=yes
10099
10100 if test "$enable_shared" = yes && test "$GCC" = yes; then
10101 case $archive_cmds in
10102 *'~'*)
10103 # FIXME: we may have to deal with multi-command sequences.
10104 ;;
10105 '$CC '*)
10106 # Test whether the compiler implicitly links with -lc since on some
10107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10108 # to ld, don't add -lc before -lgcc.
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10110 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10111 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 $RM conftest*
10115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10116
10117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10118 (eval $ac_compile) 2>&5
10119 ac_status=$?
10120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10121 test $ac_status = 0; } 2>conftest.err; then
10122 soname=conftest
10123 lib=conftest
10124 libobjs=conftest.$ac_objext
10125 deplibs=
10126 wl=$lt_prog_compiler_wl
10127 pic_flag=$lt_prog_compiler_pic
10128 compiler_flags=-v
10129 linker_flags=-v
10130 verstring=
10131 output_objdir=.
10132 libname=conftest
10133 lt_save_allow_undefined_flag=$allow_undefined_flag
10134 allow_undefined_flag=
10135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10136 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10137 ac_status=$?
10138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10139 test $ac_status = 0; }
10140 then
10141 lt_cv_archive_cmds_need_lc=no
10142 else
10143 lt_cv_archive_cmds_need_lc=yes
10144 fi
10145 allow_undefined_flag=$lt_save_allow_undefined_flag
10146 else
10147 cat conftest.err 1>&5
10148 fi
10149 $RM conftest*
10150
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10153 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10154 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10155 ;;
10156 esac
10157 fi
10158 ;;
10159 esac
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10318 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10319
10320 if test "$GCC" = yes; then
10321 case $host_os in
10322 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10323 *) lt_awk_arg="/^libraries:/" ;;
10324 esac
10325 case $host_os in
10326 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10327 *) lt_sed_strip_eq="s,=/,/,g" ;;
10328 esac
10329 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10330 case $lt_search_path_spec in
10331 *\;*)
10332 # if the path contains ";" then we assume it to be the separator
10333 # otherwise default to the standard path separator (i.e. ":") - it is
10334 # assumed that no part of a normal pathname contains ";" but that should
10335 # okay in the real world where ";" in dirpaths is itself problematic.
10336 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10337 ;;
10338 *)
10339 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10340 ;;
10341 esac
10342 # Ok, now we have the path, separated by spaces, we can step through it
10343 # and add multilib dir if necessary.
10344 lt_tmp_lt_search_path_spec=
10345 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10346 for lt_sys_path in $lt_search_path_spec; do
10347 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10348 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10349 else
10350 test -d "$lt_sys_path" && \
10351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10352 fi
10353 done
10354 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10355 BEGIN {RS=" "; FS="/|\n";} {
10356 lt_foo="";
10357 lt_count=0;
10358 for (lt_i = NF; lt_i > 0; lt_i--) {
10359 if ($lt_i != "" && $lt_i != ".") {
10360 if ($lt_i == "..") {
10361 lt_count++;
10362 } else {
10363 if (lt_count == 0) {
10364 lt_foo="/" $lt_i lt_foo;
10365 } else {
10366 lt_count--;
10367 }
10368 }
10369 }
10370 }
10371 if (lt_foo != "") { lt_freq[lt_foo]++; }
10372 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10373 }'`
10374 # AWK program above erroneously prepends '/' to C:/dos/paths
10375 # for these hosts.
10376 case $host_os in
10377 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10378 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10379 esac
10380 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10381 else
10382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10383 fi
10384 library_names_spec=
10385 libname_spec='lib$name'
10386 soname_spec=
10387 shrext_cmds=".so"
10388 postinstall_cmds=
10389 postuninstall_cmds=
10390 finish_cmds=
10391 finish_eval=
10392 shlibpath_var=
10393 shlibpath_overrides_runpath=unknown
10394 version_type=none
10395 dynamic_linker="$host_os ld.so"
10396 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10397 need_lib_prefix=unknown
10398 hardcode_into_libs=no
10399
10400 # when you set need_version to no, make sure it does not cause -set_version
10401 # flags to be left without arguments
10402 need_version=unknown
10403
10404 case $host_os in
10405 aix3*)
10406 version_type=linux
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10408 shlibpath_var=LIBPATH
10409
10410 # AIX 3 has no versioning support, so we append a major version to the name.
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 ;;
10413
10414 aix[4-9]*)
10415 version_type=linux
10416 need_lib_prefix=no
10417 need_version=no
10418 hardcode_into_libs=yes
10419 if test "$host_cpu" = ia64; then
10420 # AIX 5 supports IA64
10421 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 else
10424 # With GCC up to 2.95.x, collect2 would create an import file
10425 # for dependence libraries. The import file would start with
10426 # the line `#! .'. This would cause the generated library to
10427 # depend on `.', always an invalid library. This was fixed in
10428 # development snapshots of GCC prior to 3.0.
10429 case $host_os in
10430 aix4 | aix4.[01] | aix4.[01].*)
10431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10432 echo ' yes '
10433 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10434 :
10435 else
10436 can_build_shared=no
10437 fi
10438 ;;
10439 esac
10440 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10441 # soname into executable. Probably we can add versioning support to
10442 # collect2, so additional links can be useful in future.
10443 if test "$aix_use_runtimelinking" = yes; then
10444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10445 # instead of lib<name>.a to let people know that these are not
10446 # typical AIX shared libraries.
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 else
10449 # We preserve .a as extension for shared libraries through AIX4.2
10450 # and later when we are not doing run time linking.
10451 library_names_spec='${libname}${release}.a $libname.a'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 fi
10454 shlibpath_var=LIBPATH
10455 fi
10456 ;;
10457
10458 amigaos*)
10459 case $host_cpu in
10460 powerpc)
10461 # Since July 2007 AmigaOS4 officially supports .so libraries.
10462 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 ;;
10465 m68k)
10466 library_names_spec='$libname.ixlibrary $libname.a'
10467 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10468 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'
10469 ;;
10470 esac
10471 ;;
10472
10473 beos*)
10474 library_names_spec='${libname}${shared_ext}'
10475 dynamic_linker="$host_os ld.so"
10476 shlibpath_var=LIBRARY_PATH
10477 ;;
10478
10479 bsdi[45]*)
10480 version_type=linux
10481 need_version=no
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10485 shlibpath_var=LD_LIBRARY_PATH
10486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10488 # the default ld.so.conf also contains /usr/contrib/lib and
10489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10490 # libtool to hard-code these into programs
10491 ;;
10492
10493 cygwin* | mingw* | pw32* | cegcc*)
10494 version_type=windows
10495 shrext_cmds=".dll"
10496 need_version=no
10497 need_lib_prefix=no
10498
10499 case $GCC,$host_os in
10500 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10501 library_names_spec='$libname.dll.a'
10502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10503 postinstall_cmds='base_file=`basename \${file}`~
10504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10505 dldir=$destdir/`dirname \$dlpath`~
10506 test -d \$dldir || mkdir -p \$dldir~
10507 $install_prog $dir/$dlname \$dldir/$dlname~
10508 chmod a+x \$dldir/$dlname~
10509 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10510 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10511 fi'
10512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10513 dlpath=$dir/\$dldll~
10514 $RM \$dlpath'
10515 shlibpath_overrides_runpath=yes
10516
10517 case $host_os in
10518 cygwin*)
10519 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10520 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10521
10522 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10523 ;;
10524 mingw* | cegcc*)
10525 # MinGW DLLs use traditional 'lib' prefix
10526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10527 ;;
10528 pw32*)
10529 # pw32 DLLs use 'pw' prefix rather than 'lib'
10530 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10531 ;;
10532 esac
10533 ;;
10534
10535 *)
10536 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10537 ;;
10538 esac
10539 dynamic_linker='Win32 ld.exe'
10540 # FIXME: first we should search . and the directory the executable is in
10541 shlibpath_var=PATH
10542 ;;
10543
10544 darwin* | rhapsody*)
10545 dynamic_linker="$host_os dyld"
10546 version_type=darwin
10547 need_lib_prefix=no
10548 need_version=no
10549 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10550 soname_spec='${libname}${release}${major}$shared_ext'
10551 shlibpath_overrides_runpath=yes
10552 shlibpath_var=DYLD_LIBRARY_PATH
10553 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10554
10555 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10557 ;;
10558
10559 dgux*)
10560 version_type=linux
10561 need_lib_prefix=no
10562 need_version=no
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 ;;
10567
10568 freebsd* | dragonfly*)
10569 # DragonFly does not have aout. When/if they implement a new
10570 # versioning mechanism, adjust this.
10571 if test -x /usr/bin/objformat; then
10572 objformat=`/usr/bin/objformat`
10573 else
10574 case $host_os in
10575 freebsd[23].*) objformat=aout ;;
10576 *) objformat=elf ;;
10577 esac
10578 fi
10579 version_type=freebsd-$objformat
10580 case $version_type in
10581 freebsd-elf*)
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10583 need_version=no
10584 need_lib_prefix=no
10585 ;;
10586 freebsd-*)
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10588 need_version=yes
10589 ;;
10590 esac
10591 shlibpath_var=LD_LIBRARY_PATH
10592 case $host_os in
10593 freebsd2.*)
10594 shlibpath_overrides_runpath=yes
10595 ;;
10596 freebsd3.[01]* | freebsdelf3.[01]*)
10597 shlibpath_overrides_runpath=yes
10598 hardcode_into_libs=yes
10599 ;;
10600 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10601 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10602 shlibpath_overrides_runpath=no
10603 hardcode_into_libs=yes
10604 ;;
10605 *) # from 4.6 on, and DragonFly
10606 shlibpath_overrides_runpath=yes
10607 hardcode_into_libs=yes
10608 ;;
10609 esac
10610 ;;
10611
10612 gnu*)
10613 version_type=linux
10614 need_lib_prefix=no
10615 need_version=no
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 hardcode_into_libs=yes
10620 ;;
10621
10622 haiku*)
10623 version_type=linux
10624 need_lib_prefix=no
10625 need_version=no
10626 dynamic_linker="$host_os runtime_loader"
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10632 hardcode_into_libs=yes
10633 ;;
10634
10635 hpux9* | hpux10* | hpux11*)
10636 # Give a soname corresponding to the major version so that dld.sl refuses to
10637 # link against other versions.
10638 version_type=sunos
10639 need_lib_prefix=no
10640 need_version=no
10641 case $host_cpu in
10642 ia64*)
10643 shrext_cmds='.so'
10644 hardcode_into_libs=yes
10645 dynamic_linker="$host_os dld.so"
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 if test "X$HPUX_IA64_MODE" = X32; then
10651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10652 else
10653 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10654 fi
10655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10656 ;;
10657 hppa*64*)
10658 shrext_cmds='.sl'
10659 hardcode_into_libs=yes
10660 dynamic_linker="$host_os dld.sl"
10661 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10667 ;;
10668 *)
10669 shrext_cmds='.sl'
10670 dynamic_linker="$host_os dld.sl"
10671 shlibpath_var=SHLIB_PATH
10672 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 ;;
10676 esac
10677 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10678 postinstall_cmds='chmod 555 $lib'
10679 # or fails outright, so override atomically:
10680 install_override_mode=555
10681 ;;
10682
10683 interix[3-9]*)
10684 version_type=linux
10685 need_lib_prefix=no
10686 need_version=no
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 shlibpath_overrides_runpath=no
10692 hardcode_into_libs=yes
10693 ;;
10694
10695 irix5* | irix6* | nonstopux*)
10696 case $host_os in
10697 nonstopux*) version_type=nonstopux ;;
10698 *)
10699 if test "$lt_cv_prog_gnu_ld" = yes; then
10700 version_type=linux
10701 else
10702 version_type=irix
10703 fi ;;
10704 esac
10705 need_lib_prefix=no
10706 need_version=no
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10709 case $host_os in
10710 irix5* | nonstopux*)
10711 libsuff= shlibsuff=
10712 ;;
10713 *)
10714 case $LD in # libtool.m4 will add one of these switches to LD
10715 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10716 libsuff= shlibsuff= libmagic=32-bit;;
10717 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10718 libsuff=32 shlibsuff=N32 libmagic=N32;;
10719 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10720 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10721 *) libsuff= shlibsuff= libmagic=never-match;;
10722 esac
10723 ;;
10724 esac
10725 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10726 shlibpath_overrides_runpath=no
10727 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10728 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10729 hardcode_into_libs=yes
10730 ;;
10731
10732 # No shared lib support for Linux oldld, aout, or coff.
10733 linux*oldld* | linux*aout* | linux*coff*)
10734 dynamic_linker=no
10735 ;;
10736
10737 # This must be Linux ELF.
10738
10739 # uclinux* changes (here and below) have been submitted to the libtool
10740 # project, but have not yet been accepted: they are GCC-local changes
10741 # for the time being. (See
10742 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10743 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10744 version_type=linux
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=no
10752
10753 # Some binutils ld are patched to set DT_RUNPATH
10754 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 lt_cv_shlibpath_overrides_runpath=no
10758 save_LDFLAGS=$LDFLAGS
10759 save_libdir=$libdir
10760 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10761 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764
10765 int
10766 main ()
10767 {
10768
10769 ;
10770 return 0;
10771 }
10772 _ACEOF
10773 if ac_fn_c_try_link "$LINENO"; then :
10774 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10775 lt_cv_shlibpath_overrides_runpath=yes
10776 fi
10777 fi
10778 rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10780 LDFLAGS=$save_LDFLAGS
10781 libdir=$save_libdir
10782
10783 fi
10784
10785 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10786
10787 # This implies no fast_install, which is unacceptable.
10788 # Some rework will be needed to allow for fast_install
10789 # before this can be enabled.
10790 hardcode_into_libs=yes
10791
10792 # Append ld.so.conf contents to the search path
10793 if test -f /etc/ld.so.conf; then
10794 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' ' '`
10795 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10796 fi
10797
10798 # We used to test for /lib/ld.so.1 and disable shared libraries on
10799 # powerpc, because MkLinux only supported shared libraries with the
10800 # GNU dynamic linker. Since this was broken with cross compilers,
10801 # most powerpc-linux boxes support dynamic linking these days and
10802 # people can always --disable-shared, the test was removed, and we
10803 # assume the GNU/Linux dynamic linker is in use.
10804 dynamic_linker='GNU/Linux ld.so'
10805 ;;
10806
10807 netbsd*)
10808 version_type=sunos
10809 need_lib_prefix=no
10810 need_version=no
10811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10814 dynamic_linker='NetBSD (a.out) ld.so'
10815 else
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 dynamic_linker='NetBSD ld.elf_so'
10819 fi
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10823 ;;
10824
10825 newsos6)
10826 version_type=linux
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=yes
10830 ;;
10831
10832 *nto* | *qnx*)
10833 version_type=qnx
10834 need_lib_prefix=no
10835 need_version=no
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 shlibpath_overrides_runpath=no
10840 hardcode_into_libs=yes
10841 dynamic_linker='ldqnx.so'
10842 ;;
10843
10844 openbsd*)
10845 version_type=sunos
10846 sys_lib_dlsearch_path_spec="/usr/lib"
10847 need_lib_prefix=no
10848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10849 case $host_os in
10850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10851 *) need_version=no ;;
10852 esac
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10857 case $host_os in
10858 openbsd2.[89] | openbsd2.[89].*)
10859 shlibpath_overrides_runpath=no
10860 ;;
10861 *)
10862 shlibpath_overrides_runpath=yes
10863 ;;
10864 esac
10865 else
10866 shlibpath_overrides_runpath=yes
10867 fi
10868 ;;
10869
10870 os2*)
10871 libname_spec='$name'
10872 shrext_cmds=".dll"
10873 need_lib_prefix=no
10874 library_names_spec='$libname${shared_ext} $libname.a'
10875 dynamic_linker='OS/2 ld.exe'
10876 shlibpath_var=LIBPATH
10877 ;;
10878
10879 osf3* | osf4* | osf5*)
10880 version_type=osf
10881 need_lib_prefix=no
10882 need_version=no
10883 soname_spec='${libname}${release}${shared_ext}$major'
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10888 ;;
10889
10890 rdos*)
10891 dynamic_linker=no
10892 ;;
10893
10894 solaris*)
10895 version_type=linux
10896 need_lib_prefix=no
10897 need_version=no
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=yes
10902 hardcode_into_libs=yes
10903 # ldd complains unless libraries are executable
10904 postinstall_cmds='chmod +x $lib'
10905 ;;
10906
10907 sunos4*)
10908 version_type=sunos
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=yes
10913 if test "$with_gnu_ld" = yes; then
10914 need_lib_prefix=no
10915 fi
10916 need_version=yes
10917 ;;
10918
10919 sysv4 | sysv4.3*)
10920 version_type=linux
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 case $host_vendor in
10925 sni)
10926 shlibpath_overrides_runpath=no
10927 need_lib_prefix=no
10928 runpath_var=LD_RUN_PATH
10929 ;;
10930 siemens)
10931 need_lib_prefix=no
10932 ;;
10933 motorola)
10934 need_lib_prefix=no
10935 need_version=no
10936 shlibpath_overrides_runpath=no
10937 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10938 ;;
10939 esac
10940 ;;
10941
10942 sysv4*MP*)
10943 if test -d /usr/nec ;then
10944 version_type=linux
10945 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10946 soname_spec='$libname${shared_ext}.$major'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 fi
10949 ;;
10950
10951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10952 version_type=freebsd-elf
10953 need_lib_prefix=no
10954 need_version=no
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=yes
10959 hardcode_into_libs=yes
10960 if test "$with_gnu_ld" = yes; then
10961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10962 else
10963 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10964 case $host_os in
10965 sco3.2v5*)
10966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10967 ;;
10968 esac
10969 fi
10970 sys_lib_dlsearch_path_spec='/usr/lib'
10971 ;;
10972
10973 tpf*)
10974 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10975 version_type=linux
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 shlibpath_overrides_runpath=no
10981 hardcode_into_libs=yes
10982 ;;
10983
10984 uts4*)
10985 version_type=linux
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 ;;
10990
10991 *)
10992 dynamic_linker=no
10993 ;;
10994 esac
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10996 $as_echo "$dynamic_linker" >&6; }
10997 test "$dynamic_linker" = no && can_build_shared=no
10998
10999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11000 if test "$GCC" = yes; then
11001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11002 fi
11003
11004 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11005 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11006 fi
11007 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11008 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11009 fi
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11103 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11104 hardcode_action=
11105 if test -n "$hardcode_libdir_flag_spec" ||
11106 test -n "$runpath_var" ||
11107 test "X$hardcode_automatic" = "Xyes" ; then
11108
11109 # We can hardcode non-existent directories.
11110 if test "$hardcode_direct" != no &&
11111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11112 # have to relink, otherwise we might link with an installed library
11113 # when we should be linking with a yet-to-be-installed one
11114 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11115 test "$hardcode_minus_L" != no; then
11116 # Linking always hardcodes the temporary library directory.
11117 hardcode_action=relink
11118 else
11119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11120 hardcode_action=immediate
11121 fi
11122 else
11123 # We cannot hardcode anything, or else we can only hardcode existing
11124 # directories.
11125 hardcode_action=unsupported
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11128 $as_echo "$hardcode_action" >&6; }
11129
11130 if test "$hardcode_action" = relink ||
11131 test "$inherit_rpath" = yes; then
11132 # Fast installation is not supported
11133 enable_fast_install=no
11134 elif test "$shlibpath_overrides_runpath" = yes ||
11135 test "$enable_shared" = no; then
11136 # Fast installation is not necessary
11137 enable_fast_install=needless
11138 fi
11139
11140
11141
11142
11143
11144
11145 if test "x$enable_dlopen" != xyes; then
11146 enable_dlopen=unknown
11147 enable_dlopen_self=unknown
11148 enable_dlopen_self_static=unknown
11149 else
11150 lt_cv_dlopen=no
11151 lt_cv_dlopen_libs=
11152
11153 case $host_os in
11154 beos*)
11155 lt_cv_dlopen="load_add_on"
11156 lt_cv_dlopen_libs=
11157 lt_cv_dlopen_self=yes
11158 ;;
11159
11160 mingw* | pw32* | cegcc*)
11161 lt_cv_dlopen="LoadLibrary"
11162 lt_cv_dlopen_libs=
11163 ;;
11164
11165 cygwin*)
11166 lt_cv_dlopen="dlopen"
11167 lt_cv_dlopen_libs=
11168 ;;
11169
11170 darwin*)
11171 # if libdl is installed we need to link against it
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11173 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11174 if ${ac_cv_lib_dl_dlopen+:} false; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 ac_check_lib_save_LIBS=$LIBS
11178 LIBS="-ldl $LIBS"
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11181
11182 /* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11185 #ifdef __cplusplus
11186 extern "C"
11187 #endif
11188 char dlopen ();
11189 int
11190 main ()
11191 {
11192 return dlopen ();
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 ac_cv_lib_dl_dlopen=yes
11199 else
11200 ac_cv_lib_dl_dlopen=no
11201 fi
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_lib_save_LIBS
11205 fi
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11207 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11208 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11210 else
11211
11212 lt_cv_dlopen="dyld"
11213 lt_cv_dlopen_libs=
11214 lt_cv_dlopen_self=yes
11215
11216 fi
11217
11218 ;;
11219
11220 *)
11221 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11222 if test "x$ac_cv_func_shl_load" = xyes; then :
11223 lt_cv_dlopen="shl_load"
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11226 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11227 if ${ac_cv_lib_dld_shl_load+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 ac_check_lib_save_LIBS=$LIBS
11231 LIBS="-ldld $LIBS"
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234
11235 /* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11238 #ifdef __cplusplus
11239 extern "C"
11240 #endif
11241 char shl_load ();
11242 int
11243 main ()
11244 {
11245 return shl_load ();
11246 ;
11247 return 0;
11248 }
11249 _ACEOF
11250 if ac_fn_c_try_link "$LINENO"; then :
11251 ac_cv_lib_dld_shl_load=yes
11252 else
11253 ac_cv_lib_dld_shl_load=no
11254 fi
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS=$ac_check_lib_save_LIBS
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11260 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11261 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11262 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11263 else
11264 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11265 if test "x$ac_cv_func_dlopen" = xyes; then :
11266 lt_cv_dlopen="dlopen"
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11269 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11270 if ${ac_cv_lib_dl_dlopen+:} false; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-ldl $LIBS"
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 char dlopen ();
11285 int
11286 main ()
11287 {
11288 return dlopen ();
11289 ;
11290 return 0;
11291 }
11292 _ACEOF
11293 if ac_fn_c_try_link "$LINENO"; then :
11294 ac_cv_lib_dl_dlopen=yes
11295 else
11296 ac_cv_lib_dl_dlopen=no
11297 fi
11298 rm -f core conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11303 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11304 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11308 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11309 if ${ac_cv_lib_svld_dlopen+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_check_lib_save_LIBS=$LIBS
11313 LIBS="-lsvld $LIBS"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11316
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char dlopen ();
11324 int
11325 main ()
11326 {
11327 return dlopen ();
11328 ;
11329 return 0;
11330 }
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 ac_cv_lib_svld_dlopen=yes
11334 else
11335 ac_cv_lib_svld_dlopen=no
11336 fi
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11339 LIBS=$ac_check_lib_save_LIBS
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11342 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11343 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11347 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11348 if ${ac_cv_lib_dld_dld_link+:} false; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 ac_check_lib_save_LIBS=$LIBS
11352 LIBS="-ldld $LIBS"
11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11355
11356 /* Override any GCC internal prototype to avoid an error.
11357 Use char because int might match the return type of a GCC
11358 builtin and then its argument prototype would still apply. */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 char dld_link ();
11363 int
11364 main ()
11365 {
11366 return dld_link ();
11367 ;
11368 return 0;
11369 }
11370 _ACEOF
11371 if ac_fn_c_try_link "$LINENO"; then :
11372 ac_cv_lib_dld_dld_link=yes
11373 else
11374 ac_cv_lib_dld_dld_link=no
11375 fi
11376 rm -f core conftest.err conftest.$ac_objext \
11377 conftest$ac_exeext conftest.$ac_ext
11378 LIBS=$ac_check_lib_save_LIBS
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11381 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11382 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11383 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11384 fi
11385
11386
11387 fi
11388
11389
11390 fi
11391
11392
11393 fi
11394
11395
11396 fi
11397
11398
11399 fi
11400
11401 ;;
11402 esac
11403
11404 if test "x$lt_cv_dlopen" != xno; then
11405 enable_dlopen=yes
11406 else
11407 enable_dlopen=no
11408 fi
11409
11410 case $lt_cv_dlopen in
11411 dlopen)
11412 save_CPPFLAGS="$CPPFLAGS"
11413 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11414
11415 save_LDFLAGS="$LDFLAGS"
11416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11417
11418 save_LIBS="$LIBS"
11419 LIBS="$lt_cv_dlopen_libs $LIBS"
11420
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11422 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11423 if ${lt_cv_dlopen_self+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 if test "$cross_compiling" = yes; then :
11427 lt_cv_dlopen_self=cross
11428 else
11429 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11430 lt_status=$lt_dlunknown
11431 cat > conftest.$ac_ext <<_LT_EOF
11432 #line 11432 "configure"
11433 #include "confdefs.h"
11434
11435 #if HAVE_DLFCN_H
11436 #include <dlfcn.h>
11437 #endif
11438
11439 #include <stdio.h>
11440
11441 #ifdef RTLD_GLOBAL
11442 # define LT_DLGLOBAL RTLD_GLOBAL
11443 #else
11444 # ifdef DL_GLOBAL
11445 # define LT_DLGLOBAL DL_GLOBAL
11446 # else
11447 # define LT_DLGLOBAL 0
11448 # endif
11449 #endif
11450
11451 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11452 find out it does not work in some platform. */
11453 #ifndef LT_DLLAZY_OR_NOW
11454 # ifdef RTLD_LAZY
11455 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11456 # else
11457 # ifdef DL_LAZY
11458 # define LT_DLLAZY_OR_NOW DL_LAZY
11459 # else
11460 # ifdef RTLD_NOW
11461 # define LT_DLLAZY_OR_NOW RTLD_NOW
11462 # else
11463 # ifdef DL_NOW
11464 # define LT_DLLAZY_OR_NOW DL_NOW
11465 # else
11466 # define LT_DLLAZY_OR_NOW 0
11467 # endif
11468 # endif
11469 # endif
11470 # endif
11471 #endif
11472
11473 /* When -fvisbility=hidden is used, assume the code has been annotated
11474 correspondingly for the symbols needed. */
11475 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11476 void fnord () __attribute__((visibility("default")));
11477 #endif
11478
11479 void fnord () { int i=42; }
11480 int main ()
11481 {
11482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11483 int status = $lt_dlunknown;
11484
11485 if (self)
11486 {
11487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11488 else
11489 {
11490 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11491 else puts (dlerror ());
11492 }
11493 /* dlclose (self); */
11494 }
11495 else
11496 puts (dlerror ());
11497
11498 return status;
11499 }
11500 _LT_EOF
11501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11502 (eval $ac_link) 2>&5
11503 ac_status=$?
11504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11505 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11506 (./conftest; exit; ) >&5 2>/dev/null
11507 lt_status=$?
11508 case x$lt_status in
11509 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11510 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11512 esac
11513 else :
11514 # compilation failed
11515 lt_cv_dlopen_self=no
11516 fi
11517 fi
11518 rm -fr conftest*
11519
11520
11521 fi
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11523 $as_echo "$lt_cv_dlopen_self" >&6; }
11524
11525 if test "x$lt_cv_dlopen_self" = xyes; then
11526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11528 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11529 if ${lt_cv_dlopen_self_static+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 if test "$cross_compiling" = yes; then :
11533 lt_cv_dlopen_self_static=cross
11534 else
11535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11536 lt_status=$lt_dlunknown
11537 cat > conftest.$ac_ext <<_LT_EOF
11538 #line 11538 "configure"
11539 #include "confdefs.h"
11540
11541 #if HAVE_DLFCN_H
11542 #include <dlfcn.h>
11543 #endif
11544
11545 #include <stdio.h>
11546
11547 #ifdef RTLD_GLOBAL
11548 # define LT_DLGLOBAL RTLD_GLOBAL
11549 #else
11550 # ifdef DL_GLOBAL
11551 # define LT_DLGLOBAL DL_GLOBAL
11552 # else
11553 # define LT_DLGLOBAL 0
11554 # endif
11555 #endif
11556
11557 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11558 find out it does not work in some platform. */
11559 #ifndef LT_DLLAZY_OR_NOW
11560 # ifdef RTLD_LAZY
11561 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11562 # else
11563 # ifdef DL_LAZY
11564 # define LT_DLLAZY_OR_NOW DL_LAZY
11565 # else
11566 # ifdef RTLD_NOW
11567 # define LT_DLLAZY_OR_NOW RTLD_NOW
11568 # else
11569 # ifdef DL_NOW
11570 # define LT_DLLAZY_OR_NOW DL_NOW
11571 # else
11572 # define LT_DLLAZY_OR_NOW 0
11573 # endif
11574 # endif
11575 # endif
11576 # endif
11577 #endif
11578
11579 /* When -fvisbility=hidden is used, assume the code has been annotated
11580 correspondingly for the symbols needed. */
11581 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11582 void fnord () __attribute__((visibility("default")));
11583 #endif
11584
11585 void fnord () { int i=42; }
11586 int main ()
11587 {
11588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11589 int status = $lt_dlunknown;
11590
11591 if (self)
11592 {
11593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11594 else
11595 {
11596 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11597 else puts (dlerror ());
11598 }
11599 /* dlclose (self); */
11600 }
11601 else
11602 puts (dlerror ());
11603
11604 return status;
11605 }
11606 _LT_EOF
11607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11608 (eval $ac_link) 2>&5
11609 ac_status=$?
11610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11611 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11612 (./conftest; exit; ) >&5 2>/dev/null
11613 lt_status=$?
11614 case x$lt_status in
11615 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11616 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11617 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11618 esac
11619 else :
11620 # compilation failed
11621 lt_cv_dlopen_self_static=no
11622 fi
11623 fi
11624 rm -fr conftest*
11625
11626
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11629 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11630 fi
11631
11632 CPPFLAGS="$save_CPPFLAGS"
11633 LDFLAGS="$save_LDFLAGS"
11634 LIBS="$save_LIBS"
11635 ;;
11636 esac
11637
11638 case $lt_cv_dlopen_self in
11639 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11640 *) enable_dlopen_self=unknown ;;
11641 esac
11642
11643 case $lt_cv_dlopen_self_static in
11644 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11645 *) enable_dlopen_self_static=unknown ;;
11646 esac
11647 fi
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665 striplib=
11666 old_striplib=
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11668 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11669 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11670 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11671 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11673 $as_echo "yes" >&6; }
11674 else
11675 # FIXME - insert some real tests, host_os isn't really good enough
11676 case $host_os in
11677 darwin*)
11678 if test -n "$STRIP" ; then
11679 striplib="$STRIP -x"
11680 old_striplib="$STRIP -S"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11682 $as_echo "yes" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 fi
11687 ;;
11688 *)
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691 ;;
11692 esac
11693 fi
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706 # Report which library types will actually be built
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11708 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11710 $as_echo "$can_build_shared" >&6; }
11711
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11713 $as_echo_n "checking whether to build shared libraries... " >&6; }
11714 test "$can_build_shared" = "no" && enable_shared=no
11715
11716 # On AIX, shared libraries and static libraries use the same namespace, and
11717 # are all built from PIC.
11718 case $host_os in
11719 aix3*)
11720 test "$enable_shared" = yes && enable_static=no
11721 if test -n "$RANLIB"; then
11722 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11723 postinstall_cmds='$RANLIB $lib'
11724 fi
11725 ;;
11726
11727 aix[4-9]*)
11728 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11729 test "$enable_shared" = yes && enable_static=no
11730 fi
11731 ;;
11732 esac
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11734 $as_echo "$enable_shared" >&6; }
11735
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11737 $as_echo_n "checking whether to build static libraries... " >&6; }
11738 # Make sure either enable_shared or enable_static is yes.
11739 test "$enable_shared" = yes || enable_static=yes
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11741 $as_echo "$enable_static" >&6; }
11742
11743
11744
11745
11746 fi
11747 ac_ext=c
11748 ac_cpp='$CPP $CPPFLAGS'
11749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11752
11753 CC="$lt_save_CC"
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767 ac_config_commands="$ac_config_commands libtool"
11768
11769
11770
11771
11772 # Only expand once:
11773
11774
11775
11776
11777
11778 case $host in
11779 *-cygwin* | *-mingw*)
11780 # 'host' will be top-level target in the case of a target lib,
11781 # we must compare to with_cross_host to decide if this is a native
11782 # or cross-compiler and select where to install dlls appropriately.
11783 if test -n "$with_cross_host" &&
11784 test x"$with_cross_host" != x"no"; then
11785 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11786 else
11787 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11788 fi
11789 ;;
11790 *)
11791 lt_host_flags=
11792 ;;
11793 esac
11794
11795
11796
11797
11798
11799
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11802 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11803 # Check whether --enable-maintainer-mode was given.
11804 if test "${enable_maintainer_mode+set}" = set; then :
11805 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11806 else
11807 USE_MAINTAINER_MODE=no
11808 fi
11809
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11811 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11812 if test $USE_MAINTAINER_MODE = yes; then
11813 MAINTAINER_MODE_TRUE=
11814 MAINTAINER_MODE_FALSE='#'
11815 else
11816 MAINTAINER_MODE_TRUE='#'
11817 MAINTAINER_MODE_FALSE=
11818 fi
11819
11820 MAINT=$MAINTAINER_MODE_TRUE
11821
11822
11823
11824 # Create a spec file, so that compile/link tests don't fail
11825 test -f libgfortran.spec || touch libgfortran.spec
11826 FCFLAGS="$FCFLAGS -L."
11827
11828 # We need gfortran to compile parts of the library
11829 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11830 #AC_PROG_FC(gfortran)
11831 case `echo $GFORTRAN` in
11832 -* | no* )
11833 FC=no ;;
11834 *)
11835 set dummy $GFORTRAN; ac_word=$2
11836 if test -x "$ac_word"; then
11837 FC="$GFORTRAN"
11838 else
11839 FC=no
11840 fi ;;
11841 esac
11842 ac_ext=${ac_fc_srcext-f}
11843 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11844 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11845 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11846 if test -n "$ac_tool_prefix"; then
11847 for ac_prog in gfortran
11848 do
11849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if ${ac_cv_prog_FC+:} false; then :
11854 $as_echo_n "(cached) " >&6
11855 else
11856 if test -n "$FC"; then
11857 ac_cv_prog_FC="$FC" # Let the user override the test.
11858 else
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11861 do
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11866 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 break 2
11869 fi
11870 done
11871 done
11872 IFS=$as_save_IFS
11873
11874 fi
11875 fi
11876 FC=$ac_cv_prog_FC
11877 if test -n "$FC"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11879 $as_echo "$FC" >&6; }
11880 else
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11883 fi
11884
11885
11886 test -n "$FC" && break
11887 done
11888 fi
11889 if test -z "$FC"; then
11890 ac_ct_FC=$FC
11891 for ac_prog in gfortran
11892 do
11893 # Extract the first word of "$ac_prog", so it can be a program name with args.
11894 set dummy $ac_prog; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 if test -n "$ac_ct_FC"; then
11901 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11902 else
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11905 do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910 ac_cv_prog_ac_ct_FC="$ac_prog"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 break 2
11913 fi
11914 done
11915 done
11916 IFS=$as_save_IFS
11917
11918 fi
11919 fi
11920 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11921 if test -n "$ac_ct_FC"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11923 $as_echo "$ac_ct_FC" >&6; }
11924 else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11927 fi
11928
11929
11930 test -n "$ac_ct_FC" && break
11931 done
11932
11933 if test "x$ac_ct_FC" = x; then
11934 FC=""
11935 else
11936 case $cross_compiling:$ac_tool_warned in
11937 yes:)
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11940 ac_tool_warned=yes ;;
11941 esac
11942 FC=$ac_ct_FC
11943 fi
11944 fi
11945
11946
11947 # Provide some information about the compiler.
11948 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11949 set X $ac_compile
11950 ac_compiler=$2
11951 for ac_option in --version -v -V -qversion; do
11952 { { ac_try="$ac_compiler $ac_option >&5"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956 esac
11957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11958 $as_echo "$ac_try_echo"; } >&5
11959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11960 ac_status=$?
11961 if test -s conftest.err; then
11962 sed '10a\
11963 ... rest of stderr output deleted ...
11964 10q' conftest.err >conftest.er1
11965 cat conftest.er1 >&5
11966 fi
11967 rm -f conftest.er1 conftest.err
11968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11969 test $ac_status = 0; }
11970 done
11971 rm -f a.out
11972
11973 # If we don't use `.F' as extension, the preprocessor is not run on the
11974 # input file. (Note that this only needs to work for GNU compilers.)
11975 ac_save_ext=$ac_ext
11976 ac_ext=F
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11978 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11979 if ${ac_cv_fc_compiler_gnu+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 cat > conftest.$ac_ext <<_ACEOF
11983 program main
11984 #ifndef __GNUC__
11985 choke me
11986 #endif
11987
11988 end
11989 _ACEOF
11990 if ac_fn_fc_try_compile "$LINENO"; then :
11991 ac_compiler_gnu=yes
11992 else
11993 ac_compiler_gnu=no
11994 fi
11995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11996 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11997
11998 fi
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12000 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12001 ac_ext=$ac_save_ext
12002 ac_test_FCFLAGS=${FCFLAGS+set}
12003 ac_save_FCFLAGS=$FCFLAGS
12004 FCFLAGS=
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12006 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12007 if ${ac_cv_prog_fc_g+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 FCFLAGS=-g
12011 cat > conftest.$ac_ext <<_ACEOF
12012 program main
12013
12014 end
12015 _ACEOF
12016 if ac_fn_fc_try_compile "$LINENO"; then :
12017 ac_cv_prog_fc_g=yes
12018 else
12019 ac_cv_prog_fc_g=no
12020 fi
12021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022
12023 fi
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12025 $as_echo "$ac_cv_prog_fc_g" >&6; }
12026 if test "$ac_test_FCFLAGS" = set; then
12027 FCFLAGS=$ac_save_FCFLAGS
12028 elif test $ac_cv_prog_fc_g = yes; then
12029 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12030 FCFLAGS="-g -O2"
12031 else
12032 FCFLAGS="-g"
12033 fi
12034 else
12035 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12036 FCFLAGS="-O2"
12037 else
12038 FCFLAGS=
12039 fi
12040 fi
12041
12042 if test $ac_compiler_gnu = yes; then
12043 GFC=yes
12044 else
12045 GFC=
12046 fi
12047 ac_ext=c
12048 ac_cpp='$CPP $CPPFLAGS'
12049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12052
12053 ac_ext=${ac_fc_srcext-f}
12054 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12055 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12056 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12057
12058
12059 if test -z "$FC" || test "X$FC" = "Xno"; then
12060 _lt_disable_FC=yes
12061 fi
12062
12063 archive_cmds_need_lc_FC=no
12064 allow_undefined_flag_FC=
12065 always_export_symbols_FC=no
12066 archive_expsym_cmds_FC=
12067 export_dynamic_flag_spec_FC=
12068 hardcode_direct_FC=no
12069 hardcode_direct_absolute_FC=no
12070 hardcode_libdir_flag_spec_FC=
12071 hardcode_libdir_flag_spec_ld_FC=
12072 hardcode_libdir_separator_FC=
12073 hardcode_minus_L_FC=no
12074 hardcode_automatic_FC=no
12075 inherit_rpath_FC=no
12076 module_cmds_FC=
12077 module_expsym_cmds_FC=
12078 link_all_deplibs_FC=unknown
12079 old_archive_cmds_FC=$old_archive_cmds
12080 reload_flag_FC=$reload_flag
12081 reload_cmds_FC=$reload_cmds
12082 no_undefined_flag_FC=
12083 whole_archive_flag_spec_FC=
12084 enable_shared_with_static_runtimes_FC=no
12085
12086 # Source file extension for fc test sources.
12087 ac_ext=${ac_fc_srcext-f}
12088
12089 # Object file extension for compiled fc test sources.
12090 objext=o
12091 objext_FC=$objext
12092
12093 # No sense in running all these tests if we already determined that
12094 # the FC compiler isn't working. Some variables (like enable_shared)
12095 # are currently assumed to apply to all compilers on this platform,
12096 # and will be corrupted by setting them based on a non-working compiler.
12097 if test "$_lt_disable_FC" != yes; then
12098 # Code to be used in simple compile tests
12099 lt_simple_compile_test_code="\
12100 subroutine t
12101 return
12102 end
12103 "
12104
12105 # Code to be used in simple link tests
12106 lt_simple_link_test_code="\
12107 program t
12108 end
12109 "
12110
12111 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12112
12113
12114
12115
12116
12117
12118 # If no C compiler was specified, use CC.
12119 LTCC=${LTCC-"$CC"}
12120
12121 # If no C compiler flags were specified, use CFLAGS.
12122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12123
12124 # Allow CC to be a program name with arguments.
12125 compiler=$CC
12126
12127
12128 # save warnings/boilerplate of simple test code
12129 ac_outfile=conftest.$ac_objext
12130 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12131 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12132 _lt_compiler_boilerplate=`cat conftest.err`
12133 $RM conftest*
12134
12135 ac_outfile=conftest.$ac_objext
12136 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12137 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12138 _lt_linker_boilerplate=`cat conftest.err`
12139 $RM -r conftest*
12140
12141
12142 # Allow CC to be a program name with arguments.
12143 lt_save_CC="$CC"
12144 lt_save_GCC=$GCC
12145 CC=${FC-"f95"}
12146 compiler=$CC
12147 GCC=$ac_cv_fc_compiler_gnu
12148
12149 compiler_FC=$CC
12150 for cc_temp in $compiler""; do
12151 case $cc_temp in
12152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12154 \-*) ;;
12155 *) break;;
12156 esac
12157 done
12158 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12159
12160
12161 if test -n "$compiler"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12163 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12165 $as_echo "$can_build_shared" >&6; }
12166
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12168 $as_echo_n "checking whether to build shared libraries... " >&6; }
12169 test "$can_build_shared" = "no" && enable_shared=no
12170
12171 # On AIX, shared libraries and static libraries use the same namespace, and
12172 # are all built from PIC.
12173 case $host_os in
12174 aix3*)
12175 test "$enable_shared" = yes && enable_static=no
12176 if test -n "$RANLIB"; then
12177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12178 postinstall_cmds='$RANLIB $lib'
12179 fi
12180 ;;
12181 aix[4-9]*)
12182 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12183 test "$enable_shared" = yes && enable_static=no
12184 fi
12185 ;;
12186 esac
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12188 $as_echo "$enable_shared" >&6; }
12189
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12191 $as_echo_n "checking whether to build static libraries... " >&6; }
12192 # Make sure either enable_shared or enable_static is yes.
12193 test "$enable_shared" = yes || enable_static=yes
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12195 $as_echo "$enable_static" >&6; }
12196
12197 GCC_FC="$ac_cv_fc_compiler_gnu"
12198 LD_FC="$LD"
12199
12200 ## CAVEAT EMPTOR:
12201 ## There is no encapsulation within the following macros, do not change
12202 ## the running order or otherwise move them around unless you know exactly
12203 ## what you are doing...
12204 # Dependencies to place before and after the object being linked:
12205 predep_objects_FC=
12206 postdep_objects_FC=
12207 predeps_FC=
12208 postdeps_FC=
12209 compiler_lib_search_path_FC=
12210
12211 cat > conftest.$ac_ext <<_LT_EOF
12212 subroutine foo
12213 implicit none
12214 integer a
12215 a=0
12216 return
12217 end
12218 _LT_EOF
12219
12220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12221 (eval $ac_compile) 2>&5
12222 ac_status=$?
12223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12224 test $ac_status = 0; }; then
12225 # Parse the compiler output and extract the necessary
12226 # objects, libraries and library flags.
12227
12228 # Sentinel used to keep track of whether or not we are before
12229 # the conftest object file.
12230 pre_test_object_deps_done=no
12231
12232 for p in `eval "$output_verbose_link_cmd"`; do
12233 case $p in
12234
12235 -L* | -R* | -l*)
12236 # Some compilers place space between "-{L,R}" and the path.
12237 # Remove the space.
12238 if test $p = "-L" ||
12239 test $p = "-R"; then
12240 prev=$p
12241 continue
12242 else
12243 prev=
12244 fi
12245
12246 if test "$pre_test_object_deps_done" = no; then
12247 case $p in
12248 -L* | -R*)
12249 # Internal compiler library paths should come after those
12250 # provided the user. The postdeps already come after the
12251 # user supplied libs so there is no need to process them.
12252 if test -z "$compiler_lib_search_path_FC"; then
12253 compiler_lib_search_path_FC="${prev}${p}"
12254 else
12255 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12256 fi
12257 ;;
12258 # The "-l" case would never come before the object being
12259 # linked, so don't bother handling this case.
12260 esac
12261 else
12262 if test -z "$postdeps_FC"; then
12263 postdeps_FC="${prev}${p}"
12264 else
12265 postdeps_FC="${postdeps_FC} ${prev}${p}"
12266 fi
12267 fi
12268 ;;
12269
12270 *.$objext)
12271 # This assumes that the test object file only shows up
12272 # once in the compiler output.
12273 if test "$p" = "conftest.$objext"; then
12274 pre_test_object_deps_done=yes
12275 continue
12276 fi
12277
12278 if test "$pre_test_object_deps_done" = no; then
12279 if test -z "$predep_objects_FC"; then
12280 predep_objects_FC="$p"
12281 else
12282 predep_objects_FC="$predep_objects_FC $p"
12283 fi
12284 else
12285 if test -z "$postdep_objects_FC"; then
12286 postdep_objects_FC="$p"
12287 else
12288 postdep_objects_FC="$postdep_objects_FC $p"
12289 fi
12290 fi
12291 ;;
12292
12293 *) ;; # Ignore the rest.
12294
12295 esac
12296 done
12297
12298 # Clean up.
12299 rm -f a.out a.exe
12300 else
12301 echo "libtool.m4: error: problem compiling FC test program"
12302 fi
12303
12304 $RM -f confest.$objext
12305
12306 # PORTME: override above test on systems where it is broken
12307
12308
12309 case " $postdeps_FC " in
12310 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12311 esac
12312 compiler_lib_search_dirs_FC=
12313 if test -n "${compiler_lib_search_path_FC}"; then
12314 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12315 fi
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347 lt_prog_compiler_wl_FC=
12348 lt_prog_compiler_pic_FC=
12349 lt_prog_compiler_static_FC=
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12352 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12353
12354 if test "$GCC" = yes; then
12355 lt_prog_compiler_wl_FC='-Wl,'
12356 lt_prog_compiler_static_FC='-static'
12357
12358 case $host_os in
12359 aix*)
12360 # All AIX code is PIC.
12361 if test "$host_cpu" = ia64; then
12362 # AIX 5 now supports IA64 processor
12363 lt_prog_compiler_static_FC='-Bstatic'
12364 fi
12365 lt_prog_compiler_pic_FC='-fPIC'
12366 ;;
12367
12368 amigaos*)
12369 case $host_cpu in
12370 powerpc)
12371 # see comment about AmigaOS4 .so support
12372 lt_prog_compiler_pic_FC='-fPIC'
12373 ;;
12374 m68k)
12375 # FIXME: we need at least 68020 code to build shared libraries, but
12376 # adding the `-m68020' flag to GCC prevents building anything better,
12377 # like `-m68040'.
12378 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12379 ;;
12380 esac
12381 ;;
12382
12383 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12384 # PIC is the default for these OSes.
12385 ;;
12386
12387 mingw* | cygwin* | pw32* | os2* | cegcc*)
12388 # This hack is so that the source file can tell whether it is being
12389 # built for inclusion in a dll (and should export symbols for example).
12390 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12391 # (--disable-auto-import) libraries
12392 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12393 ;;
12394
12395 darwin* | rhapsody*)
12396 # PIC is the default on this platform
12397 # Common symbols not allowed in MH_DYLIB files
12398 lt_prog_compiler_pic_FC='-fno-common'
12399 ;;
12400
12401 haiku*)
12402 # PIC is the default for Haiku.
12403 # The "-static" flag exists, but is broken.
12404 lt_prog_compiler_static_FC=
12405 ;;
12406
12407 hpux*)
12408 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12409 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12410 # sets the default TLS model and affects inlining.
12411 case $host_cpu in
12412 hppa*64*)
12413 # +Z the default
12414 ;;
12415 *)
12416 lt_prog_compiler_pic_FC='-fPIC'
12417 ;;
12418 esac
12419 ;;
12420
12421 interix[3-9]*)
12422 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12423 # Instead, we relocate shared libraries at runtime.
12424 ;;
12425
12426 msdosdjgpp*)
12427 # Just because we use GCC doesn't mean we suddenly get shared libraries
12428 # on systems that don't support them.
12429 lt_prog_compiler_can_build_shared_FC=no
12430 enable_shared=no
12431 ;;
12432
12433 *nto* | *qnx*)
12434 # QNX uses GNU C++, but need to define -shared option too, otherwise
12435 # it will coredump.
12436 lt_prog_compiler_pic_FC='-fPIC -shared'
12437 ;;
12438
12439 sysv4*MP*)
12440 if test -d /usr/nec; then
12441 lt_prog_compiler_pic_FC=-Kconform_pic
12442 fi
12443 ;;
12444
12445 *)
12446 lt_prog_compiler_pic_FC='-fPIC'
12447 ;;
12448 esac
12449
12450 case $cc_basename in
12451 nvcc*) # Cuda Compiler Driver 2.2
12452 lt_prog_compiler_wl_FC='-Xlinker '
12453 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12454 ;;
12455 esac
12456 else
12457 # PORTME Check for flag to pass linker flags through the system compiler.
12458 case $host_os in
12459 aix*)
12460 lt_prog_compiler_wl_FC='-Wl,'
12461 if test "$host_cpu" = ia64; then
12462 # AIX 5 now supports IA64 processor
12463 lt_prog_compiler_static_FC='-Bstatic'
12464 else
12465 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12466 fi
12467 ;;
12468
12469 mingw* | cygwin* | pw32* | os2* | cegcc*)
12470 # This hack is so that the source file can tell whether it is being
12471 # built for inclusion in a dll (and should export symbols for example).
12472 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12473 ;;
12474
12475 hpux9* | hpux10* | hpux11*)
12476 lt_prog_compiler_wl_FC='-Wl,'
12477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12478 # not for PA HP-UX.
12479 case $host_cpu in
12480 hppa*64*|ia64*)
12481 # +Z the default
12482 ;;
12483 *)
12484 lt_prog_compiler_pic_FC='+Z'
12485 ;;
12486 esac
12487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12488 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12489 ;;
12490
12491 irix5* | irix6* | nonstopux*)
12492 lt_prog_compiler_wl_FC='-Wl,'
12493 # PIC (with -KPIC) is the default.
12494 lt_prog_compiler_static_FC='-non_shared'
12495 ;;
12496
12497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12498 case $cc_basename in
12499 # old Intel for x86_64 which still supported -KPIC.
12500 ecc*)
12501 lt_prog_compiler_wl_FC='-Wl,'
12502 lt_prog_compiler_pic_FC='-KPIC'
12503 lt_prog_compiler_static_FC='-static'
12504 ;;
12505 # icc used to be incompatible with GCC.
12506 # ICC 10 doesn't accept -KPIC any more.
12507 icc* | ifort*)
12508 lt_prog_compiler_wl_FC='-Wl,'
12509 lt_prog_compiler_pic_FC='-fPIC'
12510 lt_prog_compiler_static_FC='-static'
12511 ;;
12512 # Lahey Fortran 8.1.
12513 lf95*)
12514 lt_prog_compiler_wl_FC='-Wl,'
12515 lt_prog_compiler_pic_FC='--shared'
12516 lt_prog_compiler_static_FC='--static'
12517 ;;
12518 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12519 # Portland Group compilers (*not* the Pentium gcc compiler,
12520 # which looks to be a dead project)
12521 lt_prog_compiler_wl_FC='-Wl,'
12522 lt_prog_compiler_pic_FC='-fpic'
12523 lt_prog_compiler_static_FC='-Bstatic'
12524 ;;
12525 ccc*)
12526 lt_prog_compiler_wl_FC='-Wl,'
12527 # All Alpha code is PIC.
12528 lt_prog_compiler_static_FC='-non_shared'
12529 ;;
12530 xl* | bgxl* | bgf* | mpixl*)
12531 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12532 lt_prog_compiler_wl_FC='-Wl,'
12533 lt_prog_compiler_pic_FC='-qpic'
12534 lt_prog_compiler_static_FC='-qstaticlink'
12535 ;;
12536 *)
12537 case `$CC -V 2>&1 | sed 5q` in
12538 *Sun\ F* | *Sun*Fortran*)
12539 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12540 lt_prog_compiler_pic_FC='-KPIC'
12541 lt_prog_compiler_static_FC='-Bstatic'
12542 lt_prog_compiler_wl_FC=''
12543 ;;
12544 *Sun\ C*)
12545 # Sun C 5.9
12546 lt_prog_compiler_pic_FC='-KPIC'
12547 lt_prog_compiler_static_FC='-Bstatic'
12548 lt_prog_compiler_wl_FC='-Wl,'
12549 ;;
12550 esac
12551 ;;
12552 esac
12553 ;;
12554
12555 newsos6)
12556 lt_prog_compiler_pic_FC='-KPIC'
12557 lt_prog_compiler_static_FC='-Bstatic'
12558 ;;
12559
12560 *nto* | *qnx*)
12561 # QNX uses GNU C++, but need to define -shared option too, otherwise
12562 # it will coredump.
12563 lt_prog_compiler_pic_FC='-fPIC -shared'
12564 ;;
12565
12566 osf3* | osf4* | osf5*)
12567 lt_prog_compiler_wl_FC='-Wl,'
12568 # All OSF/1 code is PIC.
12569 lt_prog_compiler_static_FC='-non_shared'
12570 ;;
12571
12572 rdos*)
12573 lt_prog_compiler_static_FC='-non_shared'
12574 ;;
12575
12576 solaris*)
12577 lt_prog_compiler_pic_FC='-KPIC'
12578 lt_prog_compiler_static_FC='-Bstatic'
12579 case $cc_basename in
12580 f77* | f90* | f95*)
12581 lt_prog_compiler_wl_FC='-Qoption ld ';;
12582 *)
12583 lt_prog_compiler_wl_FC='-Wl,';;
12584 esac
12585 ;;
12586
12587 sunos4*)
12588 lt_prog_compiler_wl_FC='-Qoption ld '
12589 lt_prog_compiler_pic_FC='-PIC'
12590 lt_prog_compiler_static_FC='-Bstatic'
12591 ;;
12592
12593 sysv4 | sysv4.2uw2* | sysv4.3*)
12594 lt_prog_compiler_wl_FC='-Wl,'
12595 lt_prog_compiler_pic_FC='-KPIC'
12596 lt_prog_compiler_static_FC='-Bstatic'
12597 ;;
12598
12599 sysv4*MP*)
12600 if test -d /usr/nec ;then
12601 lt_prog_compiler_pic_FC='-Kconform_pic'
12602 lt_prog_compiler_static_FC='-Bstatic'
12603 fi
12604 ;;
12605
12606 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12607 lt_prog_compiler_wl_FC='-Wl,'
12608 lt_prog_compiler_pic_FC='-KPIC'
12609 lt_prog_compiler_static_FC='-Bstatic'
12610 ;;
12611
12612 unicos*)
12613 lt_prog_compiler_wl_FC='-Wl,'
12614 lt_prog_compiler_can_build_shared_FC=no
12615 ;;
12616
12617 uts4*)
12618 lt_prog_compiler_pic_FC='-pic'
12619 lt_prog_compiler_static_FC='-Bstatic'
12620 ;;
12621
12622 *)
12623 lt_prog_compiler_can_build_shared_FC=no
12624 ;;
12625 esac
12626 fi
12627
12628 case $host_os in
12629 # For platforms which do not support PIC, -DPIC is meaningless:
12630 *djgpp*)
12631 lt_prog_compiler_pic_FC=
12632 ;;
12633 *)
12634 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12635 ;;
12636 esac
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12638 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12639
12640
12641
12642 #
12643 # Check to make sure the PIC flag actually works.
12644 #
12645 if test -n "$lt_prog_compiler_pic_FC"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12647 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12648 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 lt_cv_prog_compiler_pic_works_FC=no
12652 ac_outfile=conftest.$ac_objext
12653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12654 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12655 # Insert the option either (1) after the last *FLAGS variable, or
12656 # (2) before a word containing "conftest.", or (3) at the end.
12657 # Note that $ac_compile itself does not contain backslashes and begins
12658 # with a dollar sign (not a hyphen), so the echo should work correctly.
12659 # The option is referenced via a variable to avoid confusing sed.
12660 lt_compile=`echo "$ac_compile" | $SED \
12661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12663 -e 's:$: $lt_compiler_flag:'`
12664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12665 (eval "$lt_compile" 2>conftest.err)
12666 ac_status=$?
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 if (exit $ac_status) && test -s "$ac_outfile"; then
12670 # The compiler can only warn and ignore the option if not recognized
12671 # So say no if there are warnings other than the usual output.
12672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12675 lt_cv_prog_compiler_pic_works_FC=yes
12676 fi
12677 fi
12678 $RM conftest*
12679
12680 fi
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12682 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12683
12684 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12685 case $lt_prog_compiler_pic_FC in
12686 "" | " "*) ;;
12687 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12688 esac
12689 else
12690 lt_prog_compiler_pic_FC=
12691 lt_prog_compiler_can_build_shared_FC=no
12692 fi
12693
12694 fi
12695
12696
12697
12698 #
12699 # Check to make sure the static flag actually works.
12700 #
12701 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12703 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12704 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 lt_cv_prog_compiler_static_works_FC=no
12708 save_LDFLAGS="$LDFLAGS"
12709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12712 # The linker can only warn and ignore the option if not recognized
12713 # So say no if there are warnings
12714 if test -s conftest.err; then
12715 # Append any errors to the config.log.
12716 cat conftest.err 1>&5
12717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12719 if diff conftest.exp conftest.er2 >/dev/null; then
12720 lt_cv_prog_compiler_static_works_FC=yes
12721 fi
12722 else
12723 lt_cv_prog_compiler_static_works_FC=yes
12724 fi
12725 fi
12726 $RM -r conftest*
12727 LDFLAGS="$save_LDFLAGS"
12728
12729 fi
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12731 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12732
12733 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12734 :
12735 else
12736 lt_prog_compiler_static_FC=
12737 fi
12738
12739
12740
12741
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12744 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 lt_cv_prog_compiler_c_o_FC=no
12748 $RM -r conftest 2>/dev/null
12749 mkdir conftest
12750 cd conftest
12751 mkdir out
12752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12753
12754 lt_compiler_flag="-o out/conftest2.$ac_objext"
12755 # Insert the option either (1) after the last *FLAGS variable, or
12756 # (2) before a word containing "conftest.", or (3) at the end.
12757 # Note that $ac_compile itself does not contain backslashes and begins
12758 # with a dollar sign (not a hyphen), so the echo should work correctly.
12759 lt_compile=`echo "$ac_compile" | $SED \
12760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12762 -e 's:$: $lt_compiler_flag:'`
12763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12764 (eval "$lt_compile" 2>out/conftest.err)
12765 ac_status=$?
12766 cat out/conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12769 then
12770 # The compiler can only warn and ignore the option if not recognized
12771 # So say no if there are warnings
12772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12775 lt_cv_prog_compiler_c_o_FC=yes
12776 fi
12777 fi
12778 chmod u+w . 2>&5
12779 $RM conftest*
12780 # SGI C++ compiler will create directory out/ii_files/ for
12781 # template instantiation
12782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12783 $RM out/* && rmdir out
12784 cd ..
12785 $RM -r conftest
12786 $RM conftest*
12787
12788 fi
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12790 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12791
12792
12793
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12796 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12797 $as_echo_n "(cached) " >&6
12798 else
12799 lt_cv_prog_compiler_c_o_FC=no
12800 $RM -r conftest 2>/dev/null
12801 mkdir conftest
12802 cd conftest
12803 mkdir out
12804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12805
12806 lt_compiler_flag="-o out/conftest2.$ac_objext"
12807 # Insert the option either (1) after the last *FLAGS variable, or
12808 # (2) before a word containing "conftest.", or (3) at the end.
12809 # Note that $ac_compile itself does not contain backslashes and begins
12810 # with a dollar sign (not a hyphen), so the echo should work correctly.
12811 lt_compile=`echo "$ac_compile" | $SED \
12812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12814 -e 's:$: $lt_compiler_flag:'`
12815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12816 (eval "$lt_compile" 2>out/conftest.err)
12817 ac_status=$?
12818 cat out/conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12821 then
12822 # The compiler can only warn and ignore the option if not recognized
12823 # So say no if there are warnings
12824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12827 lt_cv_prog_compiler_c_o_FC=yes
12828 fi
12829 fi
12830 chmod u+w . 2>&5
12831 $RM conftest*
12832 # SGI C++ compiler will create directory out/ii_files/ for
12833 # template instantiation
12834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12835 $RM out/* && rmdir out
12836 cd ..
12837 $RM -r conftest
12838 $RM conftest*
12839
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12842 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12843
12844
12845
12846
12847 hard_links="nottested"
12848 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12849 # do not overwrite the value of need_locks provided by the user
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12851 $as_echo_n "checking if we can lock with hard links... " >&6; }
12852 hard_links=yes
12853 $RM conftest*
12854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12855 touch conftest.a
12856 ln conftest.a conftest.b 2>&5 || hard_links=no
12857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12859 $as_echo "$hard_links" >&6; }
12860 if test "$hard_links" = no; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12862 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12863 need_locks=warn
12864 fi
12865 else
12866 need_locks=no
12867 fi
12868
12869
12870
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12872 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12873
12874 runpath_var=
12875 allow_undefined_flag_FC=
12876 always_export_symbols_FC=no
12877 archive_cmds_FC=
12878 archive_expsym_cmds_FC=
12879 compiler_needs_object_FC=no
12880 enable_shared_with_static_runtimes_FC=no
12881 export_dynamic_flag_spec_FC=
12882 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12883 hardcode_automatic_FC=no
12884 hardcode_direct_FC=no
12885 hardcode_direct_absolute_FC=no
12886 hardcode_libdir_flag_spec_FC=
12887 hardcode_libdir_flag_spec_ld_FC=
12888 hardcode_libdir_separator_FC=
12889 hardcode_minus_L_FC=no
12890 hardcode_shlibpath_var_FC=unsupported
12891 inherit_rpath_FC=no
12892 link_all_deplibs_FC=unknown
12893 module_cmds_FC=
12894 module_expsym_cmds_FC=
12895 old_archive_from_new_cmds_FC=
12896 old_archive_from_expsyms_cmds_FC=
12897 thread_safe_flag_spec_FC=
12898 whole_archive_flag_spec_FC=
12899 # include_expsyms should be a list of space-separated symbols to be *always*
12900 # included in the symbol list
12901 include_expsyms_FC=
12902 # exclude_expsyms can be an extended regexp of symbols to exclude
12903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12905 # as well as any symbol that contains `d'.
12906 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12908 # platforms (ab)use it in PIC code, but their linkers get confused if
12909 # the symbol is explicitly referenced. Since portable code cannot
12910 # rely on this symbol name, it's probably fine to never include it in
12911 # preloaded symbol tables.
12912 # Exclude shared library initialization/finalization symbols.
12913 extract_expsyms_cmds=
12914
12915 case $host_os in
12916 cygwin* | mingw* | pw32* | cegcc*)
12917 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12918 # When not using gcc, we currently assume that we are using
12919 # Microsoft Visual C++.
12920 if test "$GCC" != yes; then
12921 with_gnu_ld=no
12922 fi
12923 ;;
12924 interix*)
12925 # we just hope/assume this is gcc and not c89 (= MSVC++)
12926 with_gnu_ld=yes
12927 ;;
12928 openbsd*)
12929 with_gnu_ld=no
12930 ;;
12931 esac
12932
12933 ld_shlibs_FC=yes
12934
12935 # On some targets, GNU ld is compatible enough with the native linker
12936 # that we're better off using the native interface for both.
12937 lt_use_gnu_ld_interface=no
12938 if test "$with_gnu_ld" = yes; then
12939 case $host_os in
12940 aix*)
12941 # The AIX port of GNU ld has always aspired to compatibility
12942 # with the native linker. However, as the warning in the GNU ld
12943 # block says, versions before 2.19.5* couldn't really create working
12944 # shared libraries, regardless of the interface used.
12945 case `$LD -v 2>&1` in
12946 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12947 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12948 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12949 *)
12950 lt_use_gnu_ld_interface=yes
12951 ;;
12952 esac
12953 ;;
12954 *)
12955 lt_use_gnu_ld_interface=yes
12956 ;;
12957 esac
12958 fi
12959
12960 if test "$lt_use_gnu_ld_interface" = yes; then
12961 # If archive_cmds runs LD, not CC, wlarc should be empty
12962 wlarc='${wl}'
12963
12964 # Set some defaults for GNU ld with shared library support. These
12965 # are reset later if shared libraries are not supported. Putting them
12966 # here allows them to be overridden if necessary.
12967 runpath_var=LD_RUN_PATH
12968 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12969 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12970 # ancient GNU ld didn't support --whole-archive et. al.
12971 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12972 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12973 else
12974 whole_archive_flag_spec_FC=
12975 fi
12976 supports_anon_versioning=no
12977 case `$LD -v 2>&1` in
12978 *GNU\ gold*) supports_anon_versioning=yes ;;
12979 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12982 *\ 2.11.*) ;; # other 2.11 versions
12983 *) supports_anon_versioning=yes ;;
12984 esac
12985
12986 # See if GNU ld supports shared libraries.
12987 case $host_os in
12988 aix[3-9]*)
12989 # On AIX/PPC, the GNU linker is very broken
12990 if test "$host_cpu" != ia64; then
12991 ld_shlibs_FC=no
12992 cat <<_LT_EOF 1>&2
12993
12994 *** Warning: the GNU linker, at least up to release 2.19, is reported
12995 *** to be unable to reliably create shared libraries on AIX.
12996 *** Therefore, libtool is disabling shared libraries support. If you
12997 *** really care for shared libraries, you may want to install binutils
12998 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12999 *** You will then need to restart the configuration process.
13000
13001 _LT_EOF
13002 fi
13003 ;;
13004
13005 amigaos*)
13006 case $host_cpu in
13007 powerpc)
13008 # see comment about AmigaOS4 .so support
13009 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13010 archive_expsym_cmds_FC=''
13011 ;;
13012 m68k)
13013 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)'
13014 hardcode_libdir_flag_spec_FC='-L$libdir'
13015 hardcode_minus_L_FC=yes
13016 ;;
13017 esac
13018 ;;
13019
13020 beos*)
13021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13022 allow_undefined_flag_FC=unsupported
13023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13024 # support --undefined. This deserves some investigation. FIXME
13025 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13026 else
13027 ld_shlibs_FC=no
13028 fi
13029 ;;
13030
13031 cygwin* | mingw* | pw32* | cegcc*)
13032 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13033 # as there is no search path for DLLs.
13034 hardcode_libdir_flag_spec_FC='-L$libdir'
13035 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13036 allow_undefined_flag_FC=unsupported
13037 always_export_symbols_FC=no
13038 enable_shared_with_static_runtimes_FC=yes
13039 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13040
13041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13042 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13043 # If the export-symbols file already is a .def file (1st line
13044 # is EXPORTS), use it as is; otherwise, prepend...
13045 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13046 cp $export_symbols $output_objdir/$soname.def;
13047 else
13048 echo EXPORTS > $output_objdir/$soname.def;
13049 cat $export_symbols >> $output_objdir/$soname.def;
13050 fi~
13051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13052 else
13053 ld_shlibs_FC=no
13054 fi
13055 ;;
13056
13057 haiku*)
13058 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13059 link_all_deplibs_FC=yes
13060 ;;
13061
13062 interix[3-9]*)
13063 hardcode_direct_FC=no
13064 hardcode_shlibpath_var_FC=no
13065 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13066 export_dynamic_flag_spec_FC='${wl}-E'
13067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13068 # Instead, shared libraries are loaded at an image base (0x10000000 by
13069 # default) and relocated if they conflict, which is a slow very memory
13070 # consuming and fragmenting process. To avoid this, we pick a random,
13071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13073 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'
13074 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'
13075 ;;
13076
13077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13078 tmp_diet=no
13079 if test "$host_os" = linux-dietlibc; then
13080 case $cc_basename in
13081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13082 esac
13083 fi
13084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13085 && test "$tmp_diet" = no
13086 then
13087 tmp_addflag=' $pic_flag'
13088 tmp_sharedflag='-shared'
13089 case $cc_basename,$host_cpu in
13090 pgcc*) # Portland Group C compiler
13091 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'
13092 tmp_addflag=' $pic_flag'
13093 ;;
13094 pgf77* | pgf90* | pgf95* | pgfortran*)
13095 # Portland Group f77 and f90 compilers
13096 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'
13097 tmp_addflag=' $pic_flag -Mnomain' ;;
13098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13099 tmp_addflag=' -i_dynamic' ;;
13100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13101 tmp_addflag=' -i_dynamic -nofor_main' ;;
13102 ifc* | ifort*) # Intel Fortran compiler
13103 tmp_addflag=' -nofor_main' ;;
13104 lf95*) # Lahey Fortran 8.1
13105 whole_archive_flag_spec_FC=
13106 tmp_sharedflag='--shared' ;;
13107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13108 tmp_sharedflag='-qmkshrobj'
13109 tmp_addflag= ;;
13110 nvcc*) # Cuda Compiler Driver 2.2
13111 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'
13112 compiler_needs_object_FC=yes
13113 ;;
13114 esac
13115 case `$CC -V 2>&1 | sed 5q` in
13116 *Sun\ C*) # Sun C 5.9
13117 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'
13118 compiler_needs_object_FC=yes
13119 tmp_sharedflag='-G' ;;
13120 *Sun\ F*) # Sun Fortran 8.3
13121 tmp_sharedflag='-G' ;;
13122 esac
13123 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13124
13125 if test "x$supports_anon_versioning" = xyes; then
13126 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13128 echo "local: *; };" >> $output_objdir/$libname.ver~
13129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13130 fi
13131
13132 case $cc_basename in
13133 xlf* | bgf* | bgxlf* | mpixlf*)
13134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13135 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13136 hardcode_libdir_flag_spec_FC=
13137 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13138 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13139 if test "x$supports_anon_versioning" = xyes; then
13140 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13142 echo "local: *; };" >> $output_objdir/$libname.ver~
13143 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13144 fi
13145 ;;
13146 esac
13147 else
13148 ld_shlibs_FC=no
13149 fi
13150 ;;
13151
13152 netbsd*)
13153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13154 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13155 wlarc=
13156 else
13157 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13158 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13159 fi
13160 ;;
13161
13162 solaris*)
13163 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13164 ld_shlibs_FC=no
13165 cat <<_LT_EOF 1>&2
13166
13167 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13168 *** create shared libraries on Solaris systems. Therefore, libtool
13169 *** is disabling shared libraries support. We urge you to upgrade GNU
13170 *** binutils to release 2.9.1 or newer. Another option is to modify
13171 *** your PATH or compiler configuration so that the native linker is
13172 *** used, and then restart.
13173
13174 _LT_EOF
13175 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13176 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13177 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13178 else
13179 ld_shlibs_FC=no
13180 fi
13181 ;;
13182
13183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13184 case `$LD -v 2>&1` in
13185 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13186 ld_shlibs_FC=no
13187 cat <<_LT_EOF 1>&2
13188
13189 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13190 *** reliably create shared libraries on SCO systems. Therefore, libtool
13191 *** is disabling shared libraries support. We urge you to upgrade GNU
13192 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13193 *** your PATH or compiler configuration so that the native linker is
13194 *** used, and then restart.
13195
13196 _LT_EOF
13197 ;;
13198 *)
13199 # For security reasons, it is highly recommended that you always
13200 # use absolute paths for naming shared libraries, and exclude the
13201 # DT_RUNPATH tag from executables and libraries. But doing so
13202 # requires that you compile everything twice, which is a pain.
13203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13204 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13205 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13206 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13207 else
13208 ld_shlibs_FC=no
13209 fi
13210 ;;
13211 esac
13212 ;;
13213
13214 sunos4*)
13215 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13216 wlarc=
13217 hardcode_direct_FC=yes
13218 hardcode_shlibpath_var_FC=no
13219 ;;
13220
13221 *)
13222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13223 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13224 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13225 else
13226 ld_shlibs_FC=no
13227 fi
13228 ;;
13229 esac
13230
13231 if test "$ld_shlibs_FC" = no; then
13232 runpath_var=
13233 hardcode_libdir_flag_spec_FC=
13234 export_dynamic_flag_spec_FC=
13235 whole_archive_flag_spec_FC=
13236 fi
13237 else
13238 # PORTME fill in a description of your system's linker (not GNU ld)
13239 case $host_os in
13240 aix3*)
13241 allow_undefined_flag_FC=unsupported
13242 always_export_symbols_FC=yes
13243 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'
13244 # Note: this linker hardcodes the directories in LIBPATH if there
13245 # are no directories specified by -L.
13246 hardcode_minus_L_FC=yes
13247 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13248 # Neither direct hardcoding nor static linking is supported with a
13249 # broken collect2.
13250 hardcode_direct_FC=unsupported
13251 fi
13252 ;;
13253
13254 aix[4-9]*)
13255 if test "$host_cpu" = ia64; then
13256 # On IA64, the linker does run time linking by default, so we don't
13257 # have to do anything special.
13258 aix_use_runtimelinking=no
13259 exp_sym_flag='-Bexport'
13260 no_entry_flag=""
13261 else
13262 # If we're using GNU nm, then we don't want the "-C" option.
13263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13264 # Also, AIX nm treats weak defined symbols like other global
13265 # defined symbols, whereas GNU nm marks them as "W".
13266 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13267 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'
13268 else
13269 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'
13270 fi
13271 aix_use_runtimelinking=no
13272
13273 # Test if we are trying to use run time linking or normal
13274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13275 # need to do runtime linking.
13276 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13277 for ld_flag in $LDFLAGS; do
13278 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13279 aix_use_runtimelinking=yes
13280 break
13281 fi
13282 done
13283 ;;
13284 esac
13285
13286 exp_sym_flag='-bexport'
13287 no_entry_flag='-bnoentry'
13288 fi
13289
13290 # When large executables or shared objects are built, AIX ld can
13291 # have problems creating the table of contents. If linking a library
13292 # or program results in "error TOC overflow" add -mminimal-toc to
13293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13295
13296 archive_cmds_FC=''
13297 hardcode_direct_FC=yes
13298 hardcode_direct_absolute_FC=yes
13299 hardcode_libdir_separator_FC=':'
13300 link_all_deplibs_FC=yes
13301 file_list_spec_FC='${wl}-f,'
13302
13303 if test "$GCC" = yes; then
13304 case $host_os in aix4.[012]|aix4.[012].*)
13305 # We only want to do this on AIX 4.2 and lower, the check
13306 # below for broken collect2 doesn't work under 4.3+
13307 collect2name=`${CC} -print-prog-name=collect2`
13308 if test -f "$collect2name" &&
13309 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13310 then
13311 # We have reworked collect2
13312 :
13313 else
13314 # We have old collect2
13315 hardcode_direct_FC=unsupported
13316 # It fails to find uninstalled libraries when the uninstalled
13317 # path is not listed in the libpath. Setting hardcode_minus_L
13318 # to unsupported forces relinking
13319 hardcode_minus_L_FC=yes
13320 hardcode_libdir_flag_spec_FC='-L$libdir'
13321 hardcode_libdir_separator_FC=
13322 fi
13323 ;;
13324 esac
13325 shared_flag='-shared'
13326 if test "$aix_use_runtimelinking" = yes; then
13327 shared_flag="$shared_flag "'${wl}-G'
13328 fi
13329 else
13330 # not using gcc
13331 if test "$host_cpu" = ia64; then
13332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13333 # chokes on -Wl,-G. The following line is correct:
13334 shared_flag='-G'
13335 else
13336 if test "$aix_use_runtimelinking" = yes; then
13337 shared_flag='${wl}-G'
13338 else
13339 shared_flag='${wl}-bM:SRE'
13340 fi
13341 fi
13342 fi
13343
13344 export_dynamic_flag_spec_FC='${wl}-bexpall'
13345 # It seems that -bexpall does not export symbols beginning with
13346 # underscore (_), so it is better to generate a list of symbols to export.
13347 always_export_symbols_FC=yes
13348 if test "$aix_use_runtimelinking" = yes; then
13349 # Warning - without using the other runtime loading flags (-brtl),
13350 # -berok will link without error, but may produce a broken library.
13351 allow_undefined_flag_FC='-berok'
13352 # Determine the default libpath from the value encoded in an
13353 # empty executable.
13354 cat > conftest.$ac_ext <<_ACEOF
13355 program main
13356
13357 end
13358 _ACEOF
13359 if ac_fn_fc_try_link "$LINENO"; then :
13360
13361 lt_aix_libpath_sed='
13362 /Import File Strings/,/^$/ {
13363 /^0/ {
13364 s/^0 *\(.*\)$/\1/
13365 p
13366 }
13367 }'
13368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13369 # Check for a 64-bit object if we didn't find anything.
13370 if test -z "$aix_libpath"; then
13371 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13372 fi
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext \
13375 conftest$ac_exeext conftest.$ac_ext
13376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13377
13378 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13379 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"
13380 else
13381 if test "$host_cpu" = ia64; then
13382 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13383 allow_undefined_flag_FC="-z nodefs"
13384 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"
13385 else
13386 # Determine the default libpath from the value encoded in an
13387 # empty executable.
13388 cat > conftest.$ac_ext <<_ACEOF
13389 program main
13390
13391 end
13392 _ACEOF
13393 if ac_fn_fc_try_link "$LINENO"; then :
13394
13395 lt_aix_libpath_sed='
13396 /Import File Strings/,/^$/ {
13397 /^0/ {
13398 s/^0 *\(.*\)$/\1/
13399 p
13400 }
13401 }'
13402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13403 # Check for a 64-bit object if we didn't find anything.
13404 if test -z "$aix_libpath"; then
13405 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13406 fi
13407 fi
13408 rm -f core conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13411
13412 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13413 # Warning - without using the other run time loading flags,
13414 # -berok will link without error, but may produce a broken library.
13415 no_undefined_flag_FC=' ${wl}-bernotok'
13416 allow_undefined_flag_FC=' ${wl}-berok'
13417 if test "$with_gnu_ld" = yes; then
13418 # We only use this code for GNU lds that support --whole-archive.
13419 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13420 else
13421 # Exported symbols can be pulled into shared objects from archives
13422 whole_archive_flag_spec_FC='$convenience'
13423 fi
13424 archive_cmds_need_lc_FC=yes
13425 # This is similar to how AIX traditionally builds its shared libraries.
13426 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'
13427 fi
13428 fi
13429 ;;
13430
13431 amigaos*)
13432 case $host_cpu in
13433 powerpc)
13434 # see comment about AmigaOS4 .so support
13435 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13436 archive_expsym_cmds_FC=''
13437 ;;
13438 m68k)
13439 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)'
13440 hardcode_libdir_flag_spec_FC='-L$libdir'
13441 hardcode_minus_L_FC=yes
13442 ;;
13443 esac
13444 ;;
13445
13446 bsdi[45]*)
13447 export_dynamic_flag_spec_FC=-rdynamic
13448 ;;
13449
13450 cygwin* | mingw* | pw32* | cegcc*)
13451 # When not using gcc, we currently assume that we are using
13452 # Microsoft Visual C++.
13453 # hardcode_libdir_flag_spec is actually meaningless, as there is
13454 # no search path for DLLs.
13455 hardcode_libdir_flag_spec_FC=' '
13456 allow_undefined_flag_FC=unsupported
13457 # Tell ltmain to make .lib files, not .a files.
13458 libext=lib
13459 # Tell ltmain to make .dll files, not .so files.
13460 shrext_cmds=".dll"
13461 # FIXME: Setting linknames here is a bad hack.
13462 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13463 # The linker will automatically build a .lib file if we build a DLL.
13464 old_archive_from_new_cmds_FC='true'
13465 # FIXME: Should let the user specify the lib program.
13466 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13467 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13468 enable_shared_with_static_runtimes_FC=yes
13469 ;;
13470
13471 darwin* | rhapsody*)
13472
13473
13474 archive_cmds_need_lc_FC=no
13475 hardcode_direct_FC=no
13476 hardcode_automatic_FC=yes
13477 hardcode_shlibpath_var_FC=unsupported
13478 if test "$lt_cv_ld_force_load" = "yes"; then
13479 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\"`'
13480 else
13481 whole_archive_flag_spec_FC=''
13482 fi
13483 link_all_deplibs_FC=yes
13484 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13485 case $cc_basename in
13486 ifort*) _lt_dar_can_shared=yes ;;
13487 *) _lt_dar_can_shared=$GCC ;;
13488 esac
13489 if test "$_lt_dar_can_shared" = "yes"; then
13490 output_verbose_link_cmd=func_echo_all
13491 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}"
13492 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13493 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}"
13494 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}"
13495
13496 else
13497 ld_shlibs_FC=no
13498 fi
13499
13500 ;;
13501
13502 dgux*)
13503 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_libdir_flag_spec_FC='-L$libdir'
13505 hardcode_shlibpath_var_FC=no
13506 ;;
13507
13508 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13509 # support. Future versions do this automatically, but an explicit c++rt0.o
13510 # does not break anything, and helps significantly (at the cost of a little
13511 # extra space).
13512 freebsd2.2*)
13513 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13514 hardcode_libdir_flag_spec_FC='-R$libdir'
13515 hardcode_direct_FC=yes
13516 hardcode_shlibpath_var_FC=no
13517 ;;
13518
13519 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13520 freebsd2.*)
13521 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13522 hardcode_direct_FC=yes
13523 hardcode_minus_L_FC=yes
13524 hardcode_shlibpath_var_FC=no
13525 ;;
13526
13527 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13528 freebsd* | dragonfly*)
13529 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13530 hardcode_libdir_flag_spec_FC='-R$libdir'
13531 hardcode_direct_FC=yes
13532 hardcode_shlibpath_var_FC=no
13533 ;;
13534
13535 hpux9*)
13536 if test "$GCC" = yes; then
13537 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'
13538 else
13539 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'
13540 fi
13541 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13542 hardcode_libdir_separator_FC=:
13543 hardcode_direct_FC=yes
13544
13545 # hardcode_minus_L: Not really in the search PATH,
13546 # but as the default location of the library.
13547 hardcode_minus_L_FC=yes
13548 export_dynamic_flag_spec_FC='${wl}-E'
13549 ;;
13550
13551 hpux10*)
13552 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13553 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13554 else
13555 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13556 fi
13557 if test "$with_gnu_ld" = no; then
13558 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13559 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13560 hardcode_libdir_separator_FC=:
13561 hardcode_direct_FC=yes
13562 hardcode_direct_absolute_FC=yes
13563 export_dynamic_flag_spec_FC='${wl}-E'
13564 # hardcode_minus_L: Not really in the search PATH,
13565 # but as the default location of the library.
13566 hardcode_minus_L_FC=yes
13567 fi
13568 ;;
13569
13570 hpux11*)
13571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13572 case $host_cpu in
13573 hppa*64*)
13574 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13575 ;;
13576 ia64*)
13577 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13578 ;;
13579 *)
13580 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13581 ;;
13582 esac
13583 else
13584 case $host_cpu in
13585 hppa*64*)
13586 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 ;;
13588 ia64*)
13589 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13590 ;;
13591 *)
13592 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13593 ;;
13594 esac
13595 fi
13596 if test "$with_gnu_ld" = no; then
13597 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13598 hardcode_libdir_separator_FC=:
13599
13600 case $host_cpu in
13601 hppa*64*|ia64*)
13602 hardcode_direct_FC=no
13603 hardcode_shlibpath_var_FC=no
13604 ;;
13605 *)
13606 hardcode_direct_FC=yes
13607 hardcode_direct_absolute_FC=yes
13608 export_dynamic_flag_spec_FC='${wl}-E'
13609
13610 # hardcode_minus_L: Not really in the search PATH,
13611 # but as the default location of the library.
13612 hardcode_minus_L_FC=yes
13613 ;;
13614 esac
13615 fi
13616 ;;
13617
13618 irix5* | irix6* | nonstopux*)
13619 if test "$GCC" = yes; then
13620 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'
13621 # Try to use the -exported_symbol ld option, if it does not
13622 # work, assume that -exports_file does not work either and
13623 # implicitly export all symbols.
13624 save_LDFLAGS="$LDFLAGS"
13625 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13626 cat > conftest.$ac_ext <<_ACEOF
13627 int foo(void) {}
13628 _ACEOF
13629 if ac_fn_fc_try_link "$LINENO"; then :
13630 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'
13631
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LDFLAGS="$save_LDFLAGS"
13636 else
13637 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'
13638 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'
13639 fi
13640 archive_cmds_need_lc_FC='no'
13641 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13642 hardcode_libdir_separator_FC=:
13643 inherit_rpath_FC=yes
13644 link_all_deplibs_FC=yes
13645 ;;
13646
13647 netbsd*)
13648 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13649 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13650 else
13651 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13652 fi
13653 hardcode_libdir_flag_spec_FC='-R$libdir'
13654 hardcode_direct_FC=yes
13655 hardcode_shlibpath_var_FC=no
13656 ;;
13657
13658 newsos6)
13659 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13660 hardcode_direct_FC=yes
13661 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13662 hardcode_libdir_separator_FC=:
13663 hardcode_shlibpath_var_FC=no
13664 ;;
13665
13666 *nto* | *qnx*)
13667 ;;
13668
13669 openbsd*)
13670 if test -f /usr/libexec/ld.so; then
13671 hardcode_direct_FC=yes
13672 hardcode_shlibpath_var_FC=no
13673 hardcode_direct_absolute_FC=yes
13674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13675 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13677 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13678 export_dynamic_flag_spec_FC='${wl}-E'
13679 else
13680 case $host_os in
13681 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13682 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13683 hardcode_libdir_flag_spec_FC='-R$libdir'
13684 ;;
13685 *)
13686 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13687 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13688 ;;
13689 esac
13690 fi
13691 else
13692 ld_shlibs_FC=no
13693 fi
13694 ;;
13695
13696 os2*)
13697 hardcode_libdir_flag_spec_FC='-L$libdir'
13698 hardcode_minus_L_FC=yes
13699 allow_undefined_flag_FC=unsupported
13700 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'
13701 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13702 ;;
13703
13704 osf3*)
13705 if test "$GCC" = yes; then
13706 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13707 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'
13708 else
13709 allow_undefined_flag_FC=' -expect_unresolved \*'
13710 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'
13711 fi
13712 archive_cmds_need_lc_FC='no'
13713 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13714 hardcode_libdir_separator_FC=:
13715 ;;
13716
13717 osf4* | osf5*) # as osf3* with the addition of -msym flag
13718 if test "$GCC" = yes; then
13719 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13720 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'
13721 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13722 else
13723 allow_undefined_flag_FC=' -expect_unresolved \*'
13724 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'
13725 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~
13726 $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'
13727
13728 # Both c and cxx compiler support -rpath directly
13729 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13730 fi
13731 archive_cmds_need_lc_FC='no'
13732 hardcode_libdir_separator_FC=:
13733 ;;
13734
13735 solaris*)
13736 no_undefined_flag_FC=' -z defs'
13737 if test "$GCC" = yes; then
13738 wlarc='${wl}'
13739 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13741 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13742 else
13743 case `$CC -V 2>&1` in
13744 *"Compilers 5.0"*)
13745 wlarc=''
13746 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13747 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13749 ;;
13750 *)
13751 wlarc='${wl}'
13752 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13753 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13754 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13755 ;;
13756 esac
13757 fi
13758 hardcode_libdir_flag_spec_FC='-R$libdir'
13759 hardcode_shlibpath_var_FC=no
13760 case $host_os in
13761 solaris2.[0-5] | solaris2.[0-5].*) ;;
13762 *)
13763 # The compiler driver will combine and reorder linker options,
13764 # but understands `-z linker_flag'. GCC discards it without `$wl',
13765 # but is careful enough not to reorder.
13766 # Supported since Solaris 2.6 (maybe 2.5.1?)
13767 if test "$GCC" = yes; then
13768 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13769 else
13770 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13771 fi
13772 ;;
13773 esac
13774 link_all_deplibs_FC=yes
13775 ;;
13776
13777 sunos4*)
13778 if test "x$host_vendor" = xsequent; then
13779 # Use $CC to link under sequent, because it throws in some extra .o
13780 # files that make .init and .fini sections work.
13781 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13782 else
13783 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13784 fi
13785 hardcode_libdir_flag_spec_FC='-L$libdir'
13786 hardcode_direct_FC=yes
13787 hardcode_minus_L_FC=yes
13788 hardcode_shlibpath_var_FC=no
13789 ;;
13790
13791 sysv4)
13792 case $host_vendor in
13793 sni)
13794 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795 hardcode_direct_FC=yes # is this really true???
13796 ;;
13797 siemens)
13798 ## LD is ld it makes a PLAMLIB
13799 ## CC just makes a GrossModule.
13800 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13801 reload_cmds_FC='$CC -r -o $output$reload_objs'
13802 hardcode_direct_FC=no
13803 ;;
13804 motorola)
13805 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13806 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13807 ;;
13808 esac
13809 runpath_var='LD_RUN_PATH'
13810 hardcode_shlibpath_var_FC=no
13811 ;;
13812
13813 sysv4.3*)
13814 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13815 hardcode_shlibpath_var_FC=no
13816 export_dynamic_flag_spec_FC='-Bexport'
13817 ;;
13818
13819 sysv4*MP*)
13820 if test -d /usr/nec; then
13821 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13822 hardcode_shlibpath_var_FC=no
13823 runpath_var=LD_RUN_PATH
13824 hardcode_runpath_var=yes
13825 ld_shlibs_FC=yes
13826 fi
13827 ;;
13828
13829 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13830 no_undefined_flag_FC='${wl}-z,text'
13831 archive_cmds_need_lc_FC=no
13832 hardcode_shlibpath_var_FC=no
13833 runpath_var='LD_RUN_PATH'
13834
13835 if test "$GCC" = yes; then
13836 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13838 else
13839 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 fi
13842 ;;
13843
13844 sysv5* | sco3.2v5* | sco5v6*)
13845 # Note: We can NOT use -z defs as we might desire, because we do not
13846 # link with -lc, and that would cause any symbols used from libc to
13847 # always be unresolved, which means just about no library would
13848 # ever link correctly. If we're not using GNU ld we use -z text
13849 # though, which does catch some bad symbols but isn't as heavy-handed
13850 # as -z defs.
13851 no_undefined_flag_FC='${wl}-z,text'
13852 allow_undefined_flag_FC='${wl}-z,nodefs'
13853 archive_cmds_need_lc_FC=no
13854 hardcode_shlibpath_var_FC=no
13855 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13856 hardcode_libdir_separator_FC=':'
13857 link_all_deplibs_FC=yes
13858 export_dynamic_flag_spec_FC='${wl}-Bexport'
13859 runpath_var='LD_RUN_PATH'
13860
13861 if test "$GCC" = yes; then
13862 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13864 else
13865 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867 fi
13868 ;;
13869
13870 uts4*)
13871 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13872 hardcode_libdir_flag_spec_FC='-L$libdir'
13873 hardcode_shlibpath_var_FC=no
13874 ;;
13875
13876 *)
13877 ld_shlibs_FC=no
13878 ;;
13879 esac
13880
13881 if test x$host_vendor = xsni; then
13882 case $host in
13883 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13884 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13885 ;;
13886 esac
13887 fi
13888 fi
13889
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13891 $as_echo "$ld_shlibs_FC" >&6; }
13892 test "$ld_shlibs_FC" = no && can_build_shared=no
13893
13894 with_gnu_ld_FC=$with_gnu_ld
13895
13896
13897
13898
13899
13900
13901 #
13902 # Do we need to explicitly link libc?
13903 #
13904 case "x$archive_cmds_need_lc_FC" in
13905 x|xyes)
13906 # Assume -lc should be added
13907 archive_cmds_need_lc_FC=yes
13908
13909 if test "$enable_shared" = yes && test "$GCC" = yes; then
13910 case $archive_cmds_FC in
13911 *'~'*)
13912 # FIXME: we may have to deal with multi-command sequences.
13913 ;;
13914 '$CC '*)
13915 # Test whether the compiler implicitly links with -lc since on some
13916 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13917 # to ld, don't add -lc before -lgcc.
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13919 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13920 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 $RM conftest*
13924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13925
13926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13927 (eval $ac_compile) 2>&5
13928 ac_status=$?
13929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13930 test $ac_status = 0; } 2>conftest.err; then
13931 soname=conftest
13932 lib=conftest
13933 libobjs=conftest.$ac_objext
13934 deplibs=
13935 wl=$lt_prog_compiler_wl_FC
13936 pic_flag=$lt_prog_compiler_pic_FC
13937 compiler_flags=-v
13938 linker_flags=-v
13939 verstring=
13940 output_objdir=.
13941 libname=conftest
13942 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13943 allow_undefined_flag_FC=
13944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13945 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13946 ac_status=$?
13947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948 test $ac_status = 0; }
13949 then
13950 lt_cv_archive_cmds_need_lc_FC=no
13951 else
13952 lt_cv_archive_cmds_need_lc_FC=yes
13953 fi
13954 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13955 else
13956 cat conftest.err 1>&5
13957 fi
13958 $RM conftest*
13959
13960 fi
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13962 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13963 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13964 ;;
13965 esac
13966 fi
13967 ;;
13968 esac
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14034 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14035
14036 library_names_spec=
14037 libname_spec='lib$name'
14038 soname_spec=
14039 shrext_cmds=".so"
14040 postinstall_cmds=
14041 postuninstall_cmds=
14042 finish_cmds=
14043 finish_eval=
14044 shlibpath_var=
14045 shlibpath_overrides_runpath=unknown
14046 version_type=none
14047 dynamic_linker="$host_os ld.so"
14048 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14049 need_lib_prefix=unknown
14050 hardcode_into_libs=no
14051
14052 # when you set need_version to no, make sure it does not cause -set_version
14053 # flags to be left without arguments
14054 need_version=unknown
14055
14056 case $host_os in
14057 aix3*)
14058 version_type=linux
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14060 shlibpath_var=LIBPATH
14061
14062 # AIX 3 has no versioning support, so we append a major version to the name.
14063 soname_spec='${libname}${release}${shared_ext}$major'
14064 ;;
14065
14066 aix[4-9]*)
14067 version_type=linux
14068 need_lib_prefix=no
14069 need_version=no
14070 hardcode_into_libs=yes
14071 if test "$host_cpu" = ia64; then
14072 # AIX 5 supports IA64
14073 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 else
14076 # With GCC up to 2.95.x, collect2 would create an import file
14077 # for dependence libraries. The import file would start with
14078 # the line `#! .'. This would cause the generated library to
14079 # depend on `.', always an invalid library. This was fixed in
14080 # development snapshots of GCC prior to 3.0.
14081 case $host_os in
14082 aix4 | aix4.[01] | aix4.[01].*)
14083 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14084 echo ' yes '
14085 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14086 :
14087 else
14088 can_build_shared=no
14089 fi
14090 ;;
14091 esac
14092 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14093 # soname into executable. Probably we can add versioning support to
14094 # collect2, so additional links can be useful in future.
14095 if test "$aix_use_runtimelinking" = yes; then
14096 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14097 # instead of lib<name>.a to let people know that these are not
14098 # typical AIX shared libraries.
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 else
14101 # We preserve .a as extension for shared libraries through AIX4.2
14102 # and later when we are not doing run time linking.
14103 library_names_spec='${libname}${release}.a $libname.a'
14104 soname_spec='${libname}${release}${shared_ext}$major'
14105 fi
14106 shlibpath_var=LIBPATH
14107 fi
14108 ;;
14109
14110 amigaos*)
14111 case $host_cpu in
14112 powerpc)
14113 # Since July 2007 AmigaOS4 officially supports .so libraries.
14114 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116 ;;
14117 m68k)
14118 library_names_spec='$libname.ixlibrary $libname.a'
14119 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14120 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'
14121 ;;
14122 esac
14123 ;;
14124
14125 beos*)
14126 library_names_spec='${libname}${shared_ext}'
14127 dynamic_linker="$host_os ld.so"
14128 shlibpath_var=LIBRARY_PATH
14129 ;;
14130
14131 bsdi[45]*)
14132 version_type=linux
14133 need_version=no
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135 soname_spec='${libname}${release}${shared_ext}$major'
14136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14137 shlibpath_var=LD_LIBRARY_PATH
14138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14140 # the default ld.so.conf also contains /usr/contrib/lib and
14141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14142 # libtool to hard-code these into programs
14143 ;;
14144
14145 cygwin* | mingw* | pw32* | cegcc*)
14146 version_type=windows
14147 shrext_cmds=".dll"
14148 need_version=no
14149 need_lib_prefix=no
14150
14151 case $GCC,$host_os in
14152 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14153 library_names_spec='$libname.dll.a'
14154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14155 postinstall_cmds='base_file=`basename \${file}`~
14156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14157 dldir=$destdir/`dirname \$dlpath`~
14158 test -d \$dldir || mkdir -p \$dldir~
14159 $install_prog $dir/$dlname \$dldir/$dlname~
14160 chmod a+x \$dldir/$dlname~
14161 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14162 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14163 fi'
14164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14165 dlpath=$dir/\$dldll~
14166 $RM \$dlpath'
14167 shlibpath_overrides_runpath=yes
14168
14169 case $host_os in
14170 cygwin*)
14171 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14172 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14173
14174 ;;
14175 mingw* | cegcc*)
14176 # MinGW DLLs use traditional 'lib' prefix
14177 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14178 ;;
14179 pw32*)
14180 # pw32 DLLs use 'pw' prefix rather than 'lib'
14181 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14182 ;;
14183 esac
14184 ;;
14185
14186 *)
14187 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14188 ;;
14189 esac
14190 dynamic_linker='Win32 ld.exe'
14191 # FIXME: first we should search . and the directory the executable is in
14192 shlibpath_var=PATH
14193 ;;
14194
14195 darwin* | rhapsody*)
14196 dynamic_linker="$host_os dyld"
14197 version_type=darwin
14198 need_lib_prefix=no
14199 need_version=no
14200 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14201 soname_spec='${libname}${release}${major}$shared_ext'
14202 shlibpath_overrides_runpath=yes
14203 shlibpath_var=DYLD_LIBRARY_PATH
14204 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14205
14206 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14207 ;;
14208
14209 dgux*)
14210 version_type=linux
14211 need_lib_prefix=no
14212 need_version=no
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14214 soname_spec='${libname}${release}${shared_ext}$major'
14215 shlibpath_var=LD_LIBRARY_PATH
14216 ;;
14217
14218 freebsd* | dragonfly*)
14219 # DragonFly does not have aout. When/if they implement a new
14220 # versioning mechanism, adjust this.
14221 if test -x /usr/bin/objformat; then
14222 objformat=`/usr/bin/objformat`
14223 else
14224 case $host_os in
14225 freebsd[23].*) objformat=aout ;;
14226 *) objformat=elf ;;
14227 esac
14228 fi
14229 version_type=freebsd-$objformat
14230 case $version_type in
14231 freebsd-elf*)
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14233 need_version=no
14234 need_lib_prefix=no
14235 ;;
14236 freebsd-*)
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14238 need_version=yes
14239 ;;
14240 esac
14241 shlibpath_var=LD_LIBRARY_PATH
14242 case $host_os in
14243 freebsd2.*)
14244 shlibpath_overrides_runpath=yes
14245 ;;
14246 freebsd3.[01]* | freebsdelf3.[01]*)
14247 shlibpath_overrides_runpath=yes
14248 hardcode_into_libs=yes
14249 ;;
14250 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14251 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14252 shlibpath_overrides_runpath=no
14253 hardcode_into_libs=yes
14254 ;;
14255 *) # from 4.6 on, and DragonFly
14256 shlibpath_overrides_runpath=yes
14257 hardcode_into_libs=yes
14258 ;;
14259 esac
14260 ;;
14261
14262 gnu*)
14263 version_type=linux
14264 need_lib_prefix=no
14265 need_version=no
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 hardcode_into_libs=yes
14270 ;;
14271
14272 haiku*)
14273 version_type=linux
14274 need_lib_prefix=no
14275 need_version=no
14276 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
14280 shlibpath_overrides_runpath=yes
14281 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14282 hardcode_into_libs=yes
14283 ;;
14284
14285 hpux9* | hpux10* | hpux11*)
14286 # Give a soname corresponding to the major version so that dld.sl refuses to
14287 # link against other versions.
14288 version_type=sunos
14289 need_lib_prefix=no
14290 need_version=no
14291 case $host_cpu in
14292 ia64*)
14293 shrext_cmds='.so'
14294 hardcode_into_libs=yes
14295 dynamic_linker="$host_os dld.so"
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14299 soname_spec='${libname}${release}${shared_ext}$major'
14300 if test "X$HPUX_IA64_MODE" = X32; then
14301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14302 else
14303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14304 fi
14305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14306 ;;
14307 hppa*64*)
14308 shrext_cmds='.sl'
14309 hardcode_into_libs=yes
14310 dynamic_linker="$host_os dld.sl"
14311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314 soname_spec='${libname}${release}${shared_ext}$major'
14315 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14317 ;;
14318 *)
14319 shrext_cmds='.sl'
14320 dynamic_linker="$host_os dld.sl"
14321 shlibpath_var=SHLIB_PATH
14322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324 soname_spec='${libname}${release}${shared_ext}$major'
14325 ;;
14326 esac
14327 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14328 postinstall_cmds='chmod 555 $lib'
14329 # or fails outright, so override atomically:
14330 install_override_mode=555
14331 ;;
14332
14333 interix[3-9]*)
14334 version_type=linux
14335 need_lib_prefix=no
14336 need_version=no
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14338 soname_spec='${libname}${release}${shared_ext}$major'
14339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14340 shlibpath_var=LD_LIBRARY_PATH
14341 shlibpath_overrides_runpath=no
14342 hardcode_into_libs=yes
14343 ;;
14344
14345 irix5* | irix6* | nonstopux*)
14346 case $host_os in
14347 nonstopux*) version_type=nonstopux ;;
14348 *)
14349 if test "$lt_cv_prog_gnu_ld" = yes; then
14350 version_type=linux
14351 else
14352 version_type=irix
14353 fi ;;
14354 esac
14355 need_lib_prefix=no
14356 need_version=no
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14359 case $host_os in
14360 irix5* | nonstopux*)
14361 libsuff= shlibsuff=
14362 ;;
14363 *)
14364 case $LD in # libtool.m4 will add one of these switches to LD
14365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14366 libsuff= shlibsuff= libmagic=32-bit;;
14367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14368 libsuff=32 shlibsuff=N32 libmagic=N32;;
14369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14371 *) libsuff= shlibsuff= libmagic=never-match;;
14372 esac
14373 ;;
14374 esac
14375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14376 shlibpath_overrides_runpath=no
14377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14379 hardcode_into_libs=yes
14380 ;;
14381
14382 # No shared lib support for Linux oldld, aout, or coff.
14383 linux*oldld* | linux*aout* | linux*coff*)
14384 dynamic_linker=no
14385 ;;
14386
14387 # This must be Linux ELF.
14388
14389 # uclinux* changes (here and below) have been submitted to the libtool
14390 # project, but have not yet been accepted: they are GCC-local changes
14391 # for the time being. (See
14392 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14393 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14394 version_type=linux
14395 need_lib_prefix=no
14396 need_version=no
14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398 soname_spec='${libname}${release}${shared_ext}$major'
14399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14400 shlibpath_var=LD_LIBRARY_PATH
14401 shlibpath_overrides_runpath=no
14402
14403 # Some binutils ld are patched to set DT_RUNPATH
14404 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 lt_cv_shlibpath_overrides_runpath=no
14408 save_LDFLAGS=$LDFLAGS
14409 save_libdir=$libdir
14410 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14411 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14412 cat > conftest.$ac_ext <<_ACEOF
14413 program main
14414
14415 end
14416 _ACEOF
14417 if ac_fn_fc_try_link "$LINENO"; then :
14418 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14419 lt_cv_shlibpath_overrides_runpath=yes
14420 fi
14421 fi
14422 rm -f core conftest.err conftest.$ac_objext \
14423 conftest$ac_exeext conftest.$ac_ext
14424 LDFLAGS=$save_LDFLAGS
14425 libdir=$save_libdir
14426
14427 fi
14428
14429 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14430
14431 # This implies no fast_install, which is unacceptable.
14432 # Some rework will be needed to allow for fast_install
14433 # before this can be enabled.
14434 hardcode_into_libs=yes
14435
14436 # Append ld.so.conf contents to the search path
14437 if test -f /etc/ld.so.conf; then
14438 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' ' '`
14439 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14440 fi
14441
14442 # We used to test for /lib/ld.so.1 and disable shared libraries on
14443 # powerpc, because MkLinux only supported shared libraries with the
14444 # GNU dynamic linker. Since this was broken with cross compilers,
14445 # most powerpc-linux boxes support dynamic linking these days and
14446 # people can always --disable-shared, the test was removed, and we
14447 # assume the GNU/Linux dynamic linker is in use.
14448 dynamic_linker='GNU/Linux ld.so'
14449 ;;
14450
14451 netbsd*)
14452 version_type=sunos
14453 need_lib_prefix=no
14454 need_version=no
14455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14458 dynamic_linker='NetBSD (a.out) ld.so'
14459 else
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14461 soname_spec='${libname}${release}${shared_ext}$major'
14462 dynamic_linker='NetBSD ld.elf_so'
14463 fi
14464 shlibpath_var=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath=yes
14466 hardcode_into_libs=yes
14467 ;;
14468
14469 newsos6)
14470 version_type=linux
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 shlibpath_overrides_runpath=yes
14474 ;;
14475
14476 *nto* | *qnx*)
14477 version_type=qnx
14478 need_lib_prefix=no
14479 need_version=no
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 shlibpath_var=LD_LIBRARY_PATH
14483 shlibpath_overrides_runpath=no
14484 hardcode_into_libs=yes
14485 dynamic_linker='ldqnx.so'
14486 ;;
14487
14488 openbsd*)
14489 version_type=sunos
14490 sys_lib_dlsearch_path_spec="/usr/lib"
14491 need_lib_prefix=no
14492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14493 case $host_os in
14494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14495 *) need_version=no ;;
14496 esac
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14501 case $host_os in
14502 openbsd2.[89] | openbsd2.[89].*)
14503 shlibpath_overrides_runpath=no
14504 ;;
14505 *)
14506 shlibpath_overrides_runpath=yes
14507 ;;
14508 esac
14509 else
14510 shlibpath_overrides_runpath=yes
14511 fi
14512 ;;
14513
14514 os2*)
14515 libname_spec='$name'
14516 shrext_cmds=".dll"
14517 need_lib_prefix=no
14518 library_names_spec='$libname${shared_ext} $libname.a'
14519 dynamic_linker='OS/2 ld.exe'
14520 shlibpath_var=LIBPATH
14521 ;;
14522
14523 osf3* | osf4* | osf5*)
14524 version_type=osf
14525 need_lib_prefix=no
14526 need_version=no
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14532 ;;
14533
14534 rdos*)
14535 dynamic_linker=no
14536 ;;
14537
14538 solaris*)
14539 version_type=linux
14540 need_lib_prefix=no
14541 need_version=no
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543 soname_spec='${libname}${release}${shared_ext}$major'
14544 shlibpath_var=LD_LIBRARY_PATH
14545 shlibpath_overrides_runpath=yes
14546 hardcode_into_libs=yes
14547 # ldd complains unless libraries are executable
14548 postinstall_cmds='chmod +x $lib'
14549 ;;
14550
14551 sunos4*)
14552 version_type=sunos
14553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 shlibpath_overrides_runpath=yes
14557 if test "$with_gnu_ld" = yes; then
14558 need_lib_prefix=no
14559 fi
14560 need_version=yes
14561 ;;
14562
14563 sysv4 | sysv4.3*)
14564 version_type=linux
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 soname_spec='${libname}${release}${shared_ext}$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 case $host_vendor in
14569 sni)
14570 shlibpath_overrides_runpath=no
14571 need_lib_prefix=no
14572 runpath_var=LD_RUN_PATH
14573 ;;
14574 siemens)
14575 need_lib_prefix=no
14576 ;;
14577 motorola)
14578 need_lib_prefix=no
14579 need_version=no
14580 shlibpath_overrides_runpath=no
14581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14582 ;;
14583 esac
14584 ;;
14585
14586 sysv4*MP*)
14587 if test -d /usr/nec ;then
14588 version_type=linux
14589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14590 soname_spec='$libname${shared_ext}.$major'
14591 shlibpath_var=LD_LIBRARY_PATH
14592 fi
14593 ;;
14594
14595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14596 version_type=freebsd-elf
14597 need_lib_prefix=no
14598 need_version=no
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14600 soname_spec='${libname}${release}${shared_ext}$major'
14601 shlibpath_var=LD_LIBRARY_PATH
14602 shlibpath_overrides_runpath=yes
14603 hardcode_into_libs=yes
14604 if test "$with_gnu_ld" = yes; then
14605 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14606 else
14607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14608 case $host_os in
14609 sco3.2v5*)
14610 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14611 ;;
14612 esac
14613 fi
14614 sys_lib_dlsearch_path_spec='/usr/lib'
14615 ;;
14616
14617 tpf*)
14618 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14619 version_type=linux
14620 need_lib_prefix=no
14621 need_version=no
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=no
14625 hardcode_into_libs=yes
14626 ;;
14627
14628 uts4*)
14629 version_type=linux
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 ;;
14634
14635 *)
14636 dynamic_linker=no
14637 ;;
14638 esac
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14640 $as_echo "$dynamic_linker" >&6; }
14641 test "$dynamic_linker" = no && can_build_shared=no
14642
14643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14644 if test "$GCC" = yes; then
14645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14646 fi
14647
14648 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14649 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14650 fi
14651 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14652 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14653 fi
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14693 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14694 hardcode_action_FC=
14695 if test -n "$hardcode_libdir_flag_spec_FC" ||
14696 test -n "$runpath_var_FC" ||
14697 test "X$hardcode_automatic_FC" = "Xyes" ; then
14698
14699 # We can hardcode non-existent directories.
14700 if test "$hardcode_direct_FC" != no &&
14701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14702 # have to relink, otherwise we might link with an installed library
14703 # when we should be linking with a yet-to-be-installed one
14704 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14705 test "$hardcode_minus_L_FC" != no; then
14706 # Linking always hardcodes the temporary library directory.
14707 hardcode_action_FC=relink
14708 else
14709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14710 hardcode_action_FC=immediate
14711 fi
14712 else
14713 # We cannot hardcode anything, or else we can only hardcode existing
14714 # directories.
14715 hardcode_action_FC=unsupported
14716 fi
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14718 $as_echo "$hardcode_action_FC" >&6; }
14719
14720 if test "$hardcode_action_FC" = relink ||
14721 test "$inherit_rpath_FC" = yes; then
14722 # Fast installation is not supported
14723 enable_fast_install=no
14724 elif test "$shlibpath_overrides_runpath" = yes ||
14725 test "$enable_shared" = no; then
14726 # Fast installation is not necessary
14727 enable_fast_install=needless
14728 fi
14729
14730
14731
14732
14733
14734
14735
14736 fi # test -n "$compiler"
14737
14738 GCC=$lt_save_GCC
14739 CC="$lt_save_CC"
14740 fi # test "$_lt_disable_FC" != yes
14741
14742 ac_ext=c
14743 ac_cpp='$CPP $CPPFLAGS'
14744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14747
14748
14749 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14750
14751 # For libtool versioning info, format is CURRENT:REVISION:AGE
14752 libtool_VERSION=1:0:0
14753
14754
14755 # Check header files.
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14757 $as_echo_n "checking for ANSI C header files... " >&6; }
14758 if ${ac_cv_header_stdc+:} false; then :
14759 $as_echo_n "(cached) " >&6
14760 else
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 #include <stdlib.h>
14764 #include <stdarg.h>
14765 #include <string.h>
14766 #include <float.h>
14767
14768 int
14769 main ()
14770 {
14771
14772 ;
14773 return 0;
14774 }
14775 _ACEOF
14776 if ac_fn_c_try_compile "$LINENO"; then :
14777 ac_cv_header_stdc=yes
14778 else
14779 ac_cv_header_stdc=no
14780 fi
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782
14783 if test $ac_cv_header_stdc = yes; then
14784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14787 #include <string.h>
14788
14789 _ACEOF
14790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14791 $EGREP "memchr" >/dev/null 2>&1; then :
14792
14793 else
14794 ac_cv_header_stdc=no
14795 fi
14796 rm -f conftest*
14797
14798 fi
14799
14800 if test $ac_cv_header_stdc = yes; then
14801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803 /* end confdefs.h. */
14804 #include <stdlib.h>
14805
14806 _ACEOF
14807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14808 $EGREP "free" >/dev/null 2>&1; then :
14809
14810 else
14811 ac_cv_header_stdc=no
14812 fi
14813 rm -f conftest*
14814
14815 fi
14816
14817 if test $ac_cv_header_stdc = yes; then
14818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14819 if test "$cross_compiling" = yes; then :
14820 :
14821 else
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824 #include <ctype.h>
14825 #include <stdlib.h>
14826 #if ((' ' & 0x0FF) == 0x020)
14827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14829 #else
14830 # define ISLOWER(c) \
14831 (('a' <= (c) && (c) <= 'i') \
14832 || ('j' <= (c) && (c) <= 'r') \
14833 || ('s' <= (c) && (c) <= 'z'))
14834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14835 #endif
14836
14837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14838 int
14839 main ()
14840 {
14841 int i;
14842 for (i = 0; i < 256; i++)
14843 if (XOR (islower (i), ISLOWER (i))
14844 || toupper (i) != TOUPPER (i))
14845 return 2;
14846 return 0;
14847 }
14848 _ACEOF
14849 if ac_fn_c_try_run "$LINENO"; then :
14850
14851 else
14852 ac_cv_header_stdc=no
14853 fi
14854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14855 conftest.$ac_objext conftest.beam conftest.$ac_ext
14856 fi
14857
14858 fi
14859 fi
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14861 $as_echo "$ac_cv_header_stdc" >&6; }
14862 if test $ac_cv_header_stdc = yes; then
14863
14864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14865
14866 fi
14867
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14869 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14870 if ${ac_cv_header_time+:} false; then :
14871 $as_echo_n "(cached) " >&6
14872 else
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 #include <sys/types.h>
14876 #include <sys/time.h>
14877 #include <time.h>
14878
14879 int
14880 main ()
14881 {
14882 if ((struct tm *) 0)
14883 return 0;
14884 ;
14885 return 0;
14886 }
14887 _ACEOF
14888 if ac_fn_c_try_compile "$LINENO"; then :
14889 ac_cv_header_time=yes
14890 else
14891 ac_cv_header_time=no
14892 fi
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14896 $as_echo "$ac_cv_header_time" >&6; }
14897 if test $ac_cv_header_time = yes; then
14898
14899 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14900
14901 fi
14902
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14904 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14905 if ${gcc_cv_header_string+:} false; then :
14906 $as_echo_n "(cached) " >&6
14907 else
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910 #include <string.h>
14911 #include <strings.h>
14912 int
14913 main ()
14914 {
14915
14916 ;
14917 return 0;
14918 }
14919 _ACEOF
14920 if ac_fn_c_try_compile "$LINENO"; then :
14921 gcc_cv_header_string=yes
14922 else
14923 gcc_cv_header_string=no
14924 fi
14925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926 fi
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14928 $as_echo "$gcc_cv_header_string" >&6; }
14929 if test $gcc_cv_header_string = yes; then
14930
14931 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14932
14933 fi
14934
14935 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14936 do :
14937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14938 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14940 cat >>confdefs.h <<_ACEOF
14941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14942 _ACEOF
14943
14944 fi
14945
14946 done
14947
14948
14949 XPCFLAGS=""
14950 case "$host" in
14951 *-*-rtems*)
14952 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14953 ;;
14954 nvptx*-*-* | amdgcn*-*-*)
14955 # NVPTX does not support Pthreads, has its own code replacement.
14956 libgomp_use_pthreads=no
14957 # NVPTX is an accelerator-only target
14958 libgomp_offloaded_only=yes
14959 ;;
14960 *)
14961 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14962 # In case the pthread.h system header is not found, this test will fail.
14963 CFLAGS="$CFLAGS -pthread"
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14966 #include <pthread.h>
14967 void *g(void *d) { return NULL; }
14968 int
14969 main ()
14970 {
14971 pthread_t t; pthread_create(&t,NULL,g,NULL);
14972 ;
14973 return 0;
14974 }
14975 _ACEOF
14976 if ac_fn_c_try_link "$LINENO"; then :
14977 XPCFLAGS=" -Wc,-pthread"
14978 else
14979 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14982 #include <pthread.h>
14983 void *g(void *d) { return NULL; }
14984 int
14985 main ()
14986 {
14987 pthread_t t; pthread_create(&t,NULL,g,NULL);
14988 ;
14989 return 0;
14990 }
14991 _ACEOF
14992 if ac_fn_c_try_link "$LINENO"; then :
14993
14994 else
14995 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
14996 fi
14997 rm -f core conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
14999 fi
15000 rm -f core conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002 esac
15003
15004 if test x$libgomp_use_pthreads != xno; then
15005
15006 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15007
15008 fi
15009
15010 if test x$libgomp_offloaded_only = xyes; then
15011
15012 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15013
15014 fi
15015
15016 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15017 #
15018 # Copyright (C) 2014-2020 Free Software Foundation, Inc.
15019 #
15020 # Contributed by Mentor Embedded.
15021 #
15022 # This file is part of the GNU Offloading and Multi Processing Library
15023 # (libgomp).
15024 #
15025 # Libgomp is free software; you can redistribute it and/or modify it
15026 # under the terms of the GNU General Public License as published by
15027 # the Free Software Foundation; either version 3, or (at your option)
15028 # any later version.
15029 #
15030 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15031 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15032 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15033 # more details.
15034 #
15035 # Under Section 7 of GPL version 3, you are granted additional
15036 # permissions described in the GCC Runtime Library Exception, version
15037 # 3.1, as published by the Free Software Foundation.
15038 #
15039 # You should have received a copy of the GNU General Public License and
15040 # a copy of the GCC Runtime Library Exception along with this program;
15041 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15042 # <http://www.gnu.org/licenses/>.
15043
15044 plugin_support=yes
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15046 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15047 if ${ac_cv_lib_dl_dlsym+:} false; then :
15048 $as_echo_n "(cached) " >&6
15049 else
15050 ac_check_lib_save_LIBS=$LIBS
15051 LIBS="-ldl $LIBS"
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054
15055 /* Override any GCC internal prototype to avoid an error.
15056 Use char because int might match the return type of a GCC
15057 builtin and then its argument prototype would still apply. */
15058 #ifdef __cplusplus
15059 extern "C"
15060 #endif
15061 char dlsym ();
15062 int
15063 main ()
15064 {
15065 return dlsym ();
15066 ;
15067 return 0;
15068 }
15069 _ACEOF
15070 if ac_fn_c_try_link "$LINENO"; then :
15071 ac_cv_lib_dl_dlsym=yes
15072 else
15073 ac_cv_lib_dl_dlsym=no
15074 fi
15075 rm -f core conftest.err conftest.$ac_objext \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LIBS=$ac_check_lib_save_LIBS
15078 fi
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15080 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15081 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15082 cat >>confdefs.h <<_ACEOF
15083 #define HAVE_LIBDL 1
15084 _ACEOF
15085
15086 LIBS="-ldl $LIBS"
15087
15088 else
15089 plugin_support=no
15090 fi
15091
15092 if test x"$plugin_support" = xyes; then
15093
15094 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15095
15096 elif test "x${enable_offload_targets-no}" != xno; then
15097 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15098 fi
15099
15100
15101
15102 for ac_header in $ac_header_list
15103 do :
15104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15106 "
15107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15108 cat >>confdefs.h <<_ACEOF
15109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15110 _ACEOF
15111
15112 fi
15113
15114 done
15115
15116
15117
15118
15119
15120
15121
15122 for ac_func in $ac_func_list
15123 do :
15124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15125 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15126 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15127 cat >>confdefs.h <<_ACEOF
15128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15129 _ACEOF
15130
15131 fi
15132 done
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149 # Look for the CUDA driver package.
15150 CUDA_DRIVER_INCLUDE=
15151 CUDA_DRIVER_LIB=
15152
15153
15154 CUDA_DRIVER_CPPFLAGS=
15155 CUDA_DRIVER_LDFLAGS=
15156
15157 # Check whether --with-cuda-driver was given.
15158 if test "${with_cuda_driver+set}" = set; then :
15159 withval=$with_cuda_driver;
15160 fi
15161
15162
15163 # Check whether --with-cuda-driver-include was given.
15164 if test "${with_cuda_driver_include+set}" = set; then :
15165 withval=$with_cuda_driver_include;
15166 fi
15167
15168
15169 # Check whether --with-cuda-driver-lib was given.
15170 if test "${with_cuda_driver_lib+set}" = set; then :
15171 withval=$with_cuda_driver_lib;
15172 fi
15173
15174 case "x$with_cuda_driver" in
15175 x) ;;
15176 xno)
15177 CUDA_DRIVER_INCLUDE=no
15178 CUDA_DRIVER_LIB=no
15179 ;;
15180 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15181 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15182 ;;
15183 esac
15184 if test "x$with_cuda_driver_include" != x; then
15185 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15186 fi
15187 if test "x$with_cuda_driver_lib" != x; then
15188 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15189 fi
15190 if test "x$CUDA_DRIVER_INCLUDE" != x \
15191 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15192 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15193 fi
15194 if test "x$CUDA_DRIVER_LIB" != x \
15195 && test "x$CUDA_DRIVER_LIB" != xno; then
15196 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15197 fi
15198
15199 PLUGIN_NVPTX=0
15200 PLUGIN_NVPTX_CPPFLAGS=
15201 PLUGIN_NVPTX_LDFLAGS=
15202 PLUGIN_NVPTX_LIBS=
15203 PLUGIN_NVPTX_DYNAMIC=0
15204
15205
15206
15207
15208
15209 # Look for HSA run-time, its includes and libraries
15210
15211 HSA_RUNTIME_INCLUDE=
15212 HSA_RUNTIME_LIB=
15213
15214
15215 HSA_RUNTIME_CPPFLAGS=
15216 HSA_RUNTIME_LDFLAGS=
15217
15218
15219 # Check whether --with-hsa-runtime was given.
15220 if test "${with_hsa_runtime+set}" = set; then :
15221 withval=$with_hsa_runtime;
15222 fi
15223
15224
15225 # Check whether --with-hsa-runtime-include was given.
15226 if test "${with_hsa_runtime_include+set}" = set; then :
15227 withval=$with_hsa_runtime_include;
15228 fi
15229
15230
15231 # Check whether --with-hsa-runtime-lib was given.
15232 if test "${with_hsa_runtime_lib+set}" = set; then :
15233 withval=$with_hsa_runtime_lib;
15234 fi
15235
15236 if test "x$with_hsa_runtime" != x; then
15237 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15238 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15239 fi
15240 if test "x$with_hsa_runtime_include" != x; then
15241 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15242 fi
15243 if test "x$with_hsa_runtime_lib" != x; then
15244 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15245 fi
15246 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15247 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15248 fi
15249 if test "x$HSA_RUNTIME_LIB" != x; then
15250 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15251 fi
15252
15253 PLUGIN_GCN=0
15254 PLUGIN_GCN_CPPFLAGS=
15255 PLUGIN_GCN_LDFLAGS=
15256 PLUGIN_GCN_LIBS=
15257
15258
15259
15260
15261
15262 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15263 # plugins, and configure to find the corresponding offload compilers.
15264 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15265 offload_plugins=
15266 offload_targets=
15267
15268
15269 offload_additional_options=
15270 offload_additional_lib_paths=
15271
15272
15273 if test x"$enable_offload_targets" != x; then
15274 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15275 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15276 tgt=`echo $tgt | sed 's/=.*//'`
15277 tgt_plugin=
15278 case $tgt in
15279 *-intelmic-* | *-intelmicemul-*)
15280 tgt_plugin=intelmic
15281 ;;
15282 nvptx*)
15283 tgt_plugin=nvptx
15284 PLUGIN_NVPTX=$tgt
15285 if test "x$CUDA_DRIVER_LIB" != xno \
15286 && test "x$CUDA_DRIVER_LIB" != xno; then
15287 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15288 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15289 PLUGIN_NVPTX_LIBS='-lcuda'
15290
15291 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15292 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15293 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15294 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15295 PLUGIN_NVPTX_save_LIBS=$LIBS
15296 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 #include "cuda.h"
15300 int
15301 main ()
15302 {
15303 CUresult r = cuCtxPushCurrent (NULL);
15304 ;
15305 return 0;
15306 }
15307 _ACEOF
15308 if ac_fn_c_try_link "$LINENO"; then :
15309 PLUGIN_NVPTX=1
15310 fi
15311 rm -f core conftest.err conftest.$ac_objext \
15312 conftest$ac_exeext conftest.$ac_ext
15313 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15314 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15315 LIBS=$PLUGIN_NVPTX_save_LIBS
15316 fi
15317 case $PLUGIN_NVPTX in
15318 nvptx*)
15319 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15320 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15321 && (test "x$CUDA_DRIVER_LIB" = x \
15322 || test "x$CUDA_DRIVER_LIB" = xno); then
15323 PLUGIN_NVPTX=1
15324 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15325 PLUGIN_NVPTX_LIBS='-ldl'
15326 PLUGIN_NVPTX_DYNAMIC=1
15327 else
15328 PLUGIN_NVPTX=0
15329 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15330 fi
15331 ;;
15332 esac
15333 ;;
15334
15335 amdgcn*)
15336 case "${target}" in
15337 x86_64-*-*)
15338 case " ${CC} ${CFLAGS} " in
15339 *" -m32 "*|*" -mx32 "*)
15340 PLUGIN_GCN=0
15341 ;;
15342 *)
15343 tgt_plugin=gcn
15344 PLUGIN_GCN=$tgt
15345 PLUGIN_GCN_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15346 PLUGIN_GCN_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15347 PLUGIN_GCN_LIBS="-ldl"
15348 PLUGIN_GCN=1
15349 ;;
15350 esac
15351 ;;
15352 *-*-*)
15353 PLUGIN_GCN=0
15354 ;;
15355 esac
15356 ;;
15357 *)
15358 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15359 ;;
15360 esac
15361 if test x"$tgt_plugin" = x; then
15362 # Not configuring libgomp for this offload target if we're not building
15363 # the corresponding offload plugin.
15364 continue
15365 elif test x"$offload_plugins" = x; then
15366 offload_plugins=$tgt_plugin
15367 offload_targets=$tgt
15368 else
15369 offload_plugins=$offload_plugins,$tgt_plugin
15370 offload_targets=$offload_targets,$tgt
15371 fi
15372 # Configure additional search paths.
15373 if test x"$tgt_dir" != x; then
15374 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15375 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15376 else
15377 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15378 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15379 fi
15380 done
15381 fi
15382
15383 cat >>confdefs.h <<_ACEOF
15384 #define OFFLOAD_PLUGINS "$offload_plugins"
15385 _ACEOF
15386
15387 if test $PLUGIN_NVPTX = 1; then
15388 PLUGIN_NVPTX_TRUE=
15389 PLUGIN_NVPTX_FALSE='#'
15390 else
15391 PLUGIN_NVPTX_TRUE='#'
15392 PLUGIN_NVPTX_FALSE=
15393 fi
15394
15395
15396 cat >>confdefs.h <<_ACEOF
15397 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15398 _ACEOF
15399
15400
15401 cat >>confdefs.h <<_ACEOF
15402 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15403 _ACEOF
15404
15405 if test $PLUGIN_GCN = 1; then
15406 PLUGIN_GCN_TRUE=
15407 PLUGIN_GCN_FALSE='#'
15408 else
15409 PLUGIN_GCN_TRUE='#'
15410 PLUGIN_GCN_FALSE=
15411 fi
15412
15413
15414 cat >>confdefs.h <<_ACEOF
15415 #define PLUGIN_GCN $PLUGIN_GCN
15416 _ACEOF
15417
15418
15419 if test "$HSA_RUNTIME_LIB" != ""; then
15420 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15421 fi
15422
15423
15424 cat >>confdefs.h <<_ACEOF
15425 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15426 _ACEOF
15427
15428
15429
15430 # Check for functions needed.
15431 for ac_func in getloadavg clock_gettime strtoull
15432 do :
15433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15436 cat >>confdefs.h <<_ACEOF
15437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15438 _ACEOF
15439
15440 fi
15441 done
15442
15443 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15444 do :
15445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15446 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15447 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15448 cat >>confdefs.h <<_ACEOF
15449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15450 _ACEOF
15451
15452 fi
15453 done
15454
15455
15456 # Check for broken semaphore implementation on darwin.
15457 # sem_init returns: sem_init error: Function not implemented.
15458 case "$host" in
15459 *-darwin*)
15460
15461 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15462
15463 ;;
15464 esac
15465
15466 # RTEMS specific checks
15467 case "$host" in
15468 *-*-rtems*)
15469 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15470 "
15471 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15472
15473 cat >>confdefs.h <<_ACEOF
15474 #define HAVE_STRUCT__MUTEX_CONTROL 1
15475 _ACEOF
15476
15477
15478 fi
15479
15480 ;;
15481 esac
15482
15483 # Check whether --enable-linux-futex was given.
15484 if test "${enable_linux_futex+set}" = set; then :
15485 enableval=$enable_linux_futex;
15486 case "$enableval" in
15487 yes|no|default) ;;
15488 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15489 esac
15490
15491 else
15492 enable_linux_futex=default
15493 fi
15494
15495
15496 case "$target" in
15497 *-linux* | *-uclinux*)
15498 case "$enable_linux_futex" in
15499 default)
15500 # If headers don't have gettid/futex syscalls definition, then
15501 # default to no, otherwise there will be compile time failures.
15502 # Otherwise, default to yes. If we don't detect we are
15503 # compiled/linked against NPTL and not cross-compiling, check
15504 # if programs are run by default against NPTL and if not, issue
15505 # a warning.
15506 enable_linux_futex=no
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15509 #include <sys/syscall.h>
15510 #include <unistd.h>
15511 int lk;
15512 int
15513 main ()
15514 {
15515 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15516 ;
15517 return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_link "$LINENO"; then :
15521 save_LIBS="$LIBS"
15522 LIBS="-lpthread $LIBS"
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15525 #ifndef _GNU_SOURCE
15526 #define _GNU_SOURCE 1
15527 #endif
15528 #include <pthread.h>
15529 pthread_t th; void *status;
15530 int
15531 main ()
15532 {
15533 pthread_tryjoin_np (th, &status);
15534 ;
15535 return 0;
15536 }
15537 _ACEOF
15538 if ac_fn_c_try_link "$LINENO"; then :
15539 enable_linux_futex=yes
15540 else
15541 if test x$cross_compiling = xno; then
15542 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15543 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15545 If so, please configure with --disable-linux-futex" >&5
15546 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15547 If so, please configure with --disable-linux-futex" >&2;}
15548 fi
15549 fi
15550 enable_linux_futex=yes
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext \
15553 conftest$ac_exeext conftest.$ac_ext
15554 LIBS="$save_LIBS"
15555 fi
15556 rm -f core conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
15558 ;;
15559 yes)
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 #include <sys/syscall.h>
15563 #include <unistd.h>
15564 int lk;
15565 int
15566 main ()
15567 {
15568 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 if ac_fn_c_try_link "$LINENO"; then :
15574
15575 else
15576 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15577 fi
15578 rm -f core conftest.err conftest.$ac_objext \
15579 conftest$ac_exeext conftest.$ac_ext
15580 ;;
15581 esac
15582 ;;
15583 *)
15584 enable_linux_futex=no
15585 ;;
15586 esac
15587 if test x$enable_linux_futex = xyes; then
15588 :
15589 fi
15590
15591
15592 # Check for pthread_{,attr_}[sg]etaffinity_np.
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595 #define _GNU_SOURCE
15596 #include <pthread.h>
15597 int
15598 main ()
15599 {
15600 cpu_set_t cpuset;
15601 pthread_attr_t attr;
15602 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15603 if (CPU_ISSET (0, &cpuset))
15604 CPU_SET (1, &cpuset);
15605 else
15606 CPU_ZERO (&cpuset);
15607 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15608 pthread_attr_init (&attr);
15609 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15610 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15611 ;
15612 return 0;
15613 }
15614 _ACEOF
15615 if ac_fn_c_try_link "$LINENO"; then :
15616
15617 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15618
15619 fi
15620 rm -f core conftest.err conftest.$ac_objext \
15621 conftest$ac_exeext conftest.$ac_ext
15622
15623 # At least for glibc, clock_gettime is in librt. But don't pull that
15624 # in if it still doesn't give us the function we want.
15625 if test $ac_cv_func_clock_gettime = no; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15627 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15628 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15631 ac_check_lib_save_LIBS=$LIBS
15632 LIBS="-lrt $LIBS"
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635
15636 /* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15639 #ifdef __cplusplus
15640 extern "C"
15641 #endif
15642 char clock_gettime ();
15643 int
15644 main ()
15645 {
15646 return clock_gettime ();
15647 ;
15648 return 0;
15649 }
15650 _ACEOF
15651 if ac_fn_c_try_link "$LINENO"; then :
15652 ac_cv_lib_rt_clock_gettime=yes
15653 else
15654 ac_cv_lib_rt_clock_gettime=no
15655 fi
15656 rm -f core conftest.err conftest.$ac_objext \
15657 conftest$ac_exeext conftest.$ac_ext
15658 LIBS=$ac_check_lib_save_LIBS
15659 fi
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15661 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15662 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15663 LIBS="-lrt $LIBS"
15664
15665 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15666
15667 fi
15668
15669 fi
15670
15671 # Check for uname.
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h. */
15674 #include <string.h>
15675 #include <stdlib.h>
15676 #include <sys/utsname.h>
15677 int
15678 main ()
15679 {
15680 struct utsname buf;
15681 volatile size_t len = 0;
15682 if (!uname (buf))
15683 len = strlen (buf.nodename);
15684 ;
15685 return 0;
15686 }
15687 _ACEOF
15688 if ac_fn_c_try_compile "$LINENO"; then :
15689
15690 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15691
15692 fi
15693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694
15695 # Check for gethostname.
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15698 #include <unistd.h>
15699 int
15700 main ()
15701 {
15702
15703 char buf[256];
15704 if (gethostname (buf, sizeof (buf) - 1) == 0)
15705 buf[255] = '\0';
15706
15707 ;
15708 return 0;
15709 }
15710 _ACEOF
15711 if ac_fn_c_try_compile "$LINENO"; then :
15712
15713 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15714
15715 fi
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717
15718 # Check for getpid.
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 #include <unistd.h>
15722 int
15723 main ()
15724 {
15725 int pid = getpid ();
15726 ;
15727 return 0;
15728 }
15729 _ACEOF
15730 if ac_fn_c_try_compile "$LINENO"; then :
15731
15732 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15733
15734 fi
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736
15737 # See if we support thread-local storage.
15738
15739
15740 # Check whether --enable-tls was given.
15741 if test "${enable_tls+set}" = set; then :
15742 enableval=$enable_tls;
15743 case "$enableval" in
15744 yes|no) ;;
15745 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15746 esac
15747
15748 else
15749 enable_tls=yes
15750 fi
15751
15752
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15754 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15755 if ${gcc_cv_have_tls+:} false; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758
15759 if test "$cross_compiling" = yes; then :
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762 __thread int a; int b; int main() { return a = b; }
15763 _ACEOF
15764 if ac_fn_c_try_link "$LINENO"; then :
15765 chktls_save_LDFLAGS="$LDFLAGS"
15766 case $host in
15767 *-*-linux* | -*-uclinuxfdpic*)
15768 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15769 ;;
15770 esac
15771 chktls_save_CFLAGS="$CFLAGS"
15772 CFLAGS="-fPIC $CFLAGS"
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15775 int f() { return 0; }
15776 _ACEOF
15777 if ac_fn_c_try_link "$LINENO"; then :
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779 /* end confdefs.h. */
15780 __thread int a; int b; int f() { return a = b; }
15781 _ACEOF
15782 if ac_fn_c_try_link "$LINENO"; then :
15783 gcc_cv_have_tls=yes
15784 else
15785 gcc_cv_have_tls=no
15786 fi
15787 rm -f core conftest.err conftest.$ac_objext \
15788 conftest$ac_exeext conftest.$ac_ext
15789 else
15790 gcc_cv_have_tls=yes
15791 fi
15792 rm -f core conftest.err conftest.$ac_objext \
15793 conftest$ac_exeext conftest.$ac_ext
15794 CFLAGS="$chktls_save_CFLAGS"
15795 LDFLAGS="$chktls_save_LDFLAGS"
15796 else
15797 gcc_cv_have_tls=no
15798 fi
15799 rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801
15802
15803 else
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806 __thread int a; int b; int main() { return a = b; }
15807 _ACEOF
15808 if ac_fn_c_try_run "$LINENO"; then :
15809 chktls_save_LDFLAGS="$LDFLAGS"
15810 LDFLAGS="-static $LDFLAGS"
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 int main() { return 0; }
15814 _ACEOF
15815 if ac_fn_c_try_link "$LINENO"; then :
15816 if test "$cross_compiling" = yes; then :
15817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15819 as_fn_error $? "cannot run test program while cross compiling
15820 See \`config.log' for more details" "$LINENO" 5; }
15821 else
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824 __thread int a; int b; int main() { return a = b; }
15825 _ACEOF
15826 if ac_fn_c_try_run "$LINENO"; then :
15827 gcc_cv_have_tls=yes
15828 else
15829 gcc_cv_have_tls=no
15830 fi
15831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15832 conftest.$ac_objext conftest.beam conftest.$ac_ext
15833 fi
15834
15835 else
15836 gcc_cv_have_tls=yes
15837 fi
15838 rm -f core conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15840 LDFLAGS="$chktls_save_LDFLAGS"
15841 if test $gcc_cv_have_tls = yes; then
15842 chktls_save_CFLAGS="$CFLAGS"
15843 thread_CFLAGS=failed
15844 for flag in '' '-pthread' '-lpthread'; do
15845 CFLAGS="$flag $chktls_save_CFLAGS"
15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847 /* end confdefs.h. */
15848 #include <pthread.h>
15849 void *g(void *d) { return NULL; }
15850 int
15851 main ()
15852 {
15853 pthread_t t; pthread_create(&t,NULL,g,NULL);
15854 ;
15855 return 0;
15856 }
15857 _ACEOF
15858 if ac_fn_c_try_link "$LINENO"; then :
15859 thread_CFLAGS="$flag"
15860 fi
15861 rm -f core conftest.err conftest.$ac_objext \
15862 conftest$ac_exeext conftest.$ac_ext
15863 if test "X$thread_CFLAGS" != Xfailed; then
15864 break
15865 fi
15866 done
15867 CFLAGS="$chktls_save_CFLAGS"
15868 if test "X$thread_CFLAGS" != Xfailed; then
15869 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15870 if test "$cross_compiling" = yes; then :
15871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15873 as_fn_error $? "cannot run test program while cross compiling
15874 See \`config.log' for more details" "$LINENO" 5; }
15875 else
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15878 #include <pthread.h>
15879 __thread int a;
15880 static int *volatile a_in_other_thread;
15881 static void *
15882 thread_func (void *arg)
15883 {
15884 a_in_other_thread = &a;
15885 return (void *)0;
15886 }
15887 int
15888 main ()
15889 {
15890 pthread_t thread;
15891 void *thread_retval;
15892 int *volatile a_in_main_thread;
15893 a_in_main_thread = &a;
15894 if (pthread_create (&thread, (pthread_attr_t *)0,
15895 thread_func, (void *)0))
15896 return 0;
15897 if (pthread_join (thread, &thread_retval))
15898 return 0;
15899 return (a_in_other_thread == a_in_main_thread);
15900 ;
15901 return 0;
15902 }
15903 _ACEOF
15904 if ac_fn_c_try_run "$LINENO"; then :
15905 gcc_cv_have_tls=yes
15906 else
15907 gcc_cv_have_tls=no
15908 fi
15909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15910 conftest.$ac_objext conftest.beam conftest.$ac_ext
15911 fi
15912
15913 CFLAGS="$chktls_save_CFLAGS"
15914 fi
15915 fi
15916 else
15917 gcc_cv_have_tls=no
15918 fi
15919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15920 conftest.$ac_objext conftest.beam conftest.$ac_ext
15921 fi
15922
15923 fi
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15925 $as_echo "$gcc_cv_have_tls" >&6; }
15926 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15927
15928 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15929
15930 fi
15931
15932 # See if we have emulated thread-local storage.
15933
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15935 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15936 if ${gcc_cv_use_emutls+:} false; then :
15937 $as_echo_n "(cached) " >&6
15938 else
15939
15940 gcc_cv_use_emutls=no
15941 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15942 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15947 test $ac_status = 0; }; }; then
15948 if grep __emutls_get_address conftest.s > /dev/null; then
15949 gcc_cv_use_emutls=yes
15950 fi
15951 fi
15952 rm -f conftest.*
15953
15954 fi
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15956 $as_echo "$gcc_cv_use_emutls" >&6; }
15957 if test "$gcc_cv_use_emutls" = "yes" ; then
15958
15959 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15960
15961 fi
15962
15963 # See what sort of export controls are available.
15964
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15966 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15967 if ${libgomp_cv_have_attribute_visibility+:} false; then :
15968 $as_echo_n "(cached) " >&6
15969 else
15970
15971 save_CFLAGS="$CFLAGS"
15972 CFLAGS="$CFLAGS -Werror"
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15975 void __attribute__((visibility("hidden"))) foo(void) { }
15976 int
15977 main ()
15978 {
15979
15980 ;
15981 return 0;
15982 }
15983 _ACEOF
15984 if ac_fn_c_try_compile "$LINENO"; then :
15985 libgomp_cv_have_attribute_visibility=yes
15986 else
15987 libgomp_cv_have_attribute_visibility=no
15988 fi
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 CFLAGS="$save_CFLAGS"
15991 fi
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15993 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15994 if test $libgomp_cv_have_attribute_visibility = yes; then
15995
15996 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15997
15998 fi
15999
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16001 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16002 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005
16006 save_CFLAGS="$CFLAGS"
16007 CFLAGS="$CFLAGS -Werror"
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010 void __attribute__((dllexport)) foo(void) { }
16011 int
16012 main ()
16013 {
16014
16015 ;
16016 return 0;
16017 }
16018 _ACEOF
16019 if ac_fn_c_try_compile "$LINENO"; then :
16020 libgomp_cv_have_attribute_dllexport=yes
16021 else
16022 libgomp_cv_have_attribute_dllexport=no
16023 fi
16024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025 CFLAGS="$save_CFLAGS"
16026 fi
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16028 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16029 if test $libgomp_cv_have_attribute_dllexport = yes; then
16030
16031 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16032
16033 fi
16034
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16036 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16037 if ${libgomp_cv_have_attribute_alias+:} false; then :
16038 $as_echo_n "(cached) " >&6
16039 else
16040
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043
16044 void foo(void) { }
16045 extern void bar(void) __attribute__((alias("foo")));
16046 int
16047 main ()
16048 {
16049 bar();
16050 ;
16051 return 0;
16052 }
16053 _ACEOF
16054 if ac_fn_c_try_link "$LINENO"; then :
16055 libgomp_cv_have_attribute_alias=yes
16056 else
16057 libgomp_cv_have_attribute_alias=no
16058 fi
16059 rm -f core conftest.err conftest.$ac_objext \
16060 conftest$ac_exeext conftest.$ac_ext
16061 fi
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16063 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16064 if test $libgomp_cv_have_attribute_alias = yes; then
16065
16066 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16067
16068 fi
16069
16070
16071 # Check whether --with-gnu-ld was given.
16072 if test "${with_gnu_ld+set}" = set; then :
16073 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16074 else
16075 with_gnu_ld=no
16076 fi
16077
16078 ac_prog=ld
16079 if test "$GCC" = yes; then
16080 # Check if gcc -print-prog-name=ld gives a path.
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16082 $as_echo_n "checking for ld used by $CC... " >&6; }
16083 case $host in
16084 *-*-mingw*)
16085 # gcc leaves a trailing carriage return which upsets mingw
16086 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16087 *)
16088 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16089 esac
16090 case $ac_prog in
16091 # Accept absolute paths.
16092 [\\/]* | ?:[\\/]*)
16093 re_direlt='/[^/][^/]*/\.\./'
16094 # Canonicalize the pathname of ld
16095 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16096 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16097 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16098 done
16099 test -z "$LD" && LD="$ac_prog"
16100 ;;
16101 "")
16102 # If it fails, then pretend we aren't using GCC.
16103 ac_prog=ld
16104 ;;
16105 *)
16106 # If it is relative, then search for the first ld in PATH.
16107 with_gnu_ld=unknown
16108 ;;
16109 esac
16110 elif test "$with_gnu_ld" = yes; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16112 $as_echo_n "checking for GNU ld... " >&6; }
16113 else
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16115 $as_echo_n "checking for non-GNU ld... " >&6; }
16116 fi
16117 if ${lt_cv_path_LD+:} false; then :
16118 $as_echo_n "(cached) " >&6
16119 else
16120 if test -z "$LD"; then
16121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16122 for ac_dir in $PATH; do
16123 IFS="$lt_save_ifs"
16124 test -z "$ac_dir" && ac_dir=.
16125 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16126 lt_cv_path_LD="$ac_dir/$ac_prog"
16127 # Check to see if the program is GNU ld. I'd rather use --version,
16128 # but apparently some variants of GNU ld only accept -v.
16129 # Break only if it was the GNU/non-GNU ld that we prefer.
16130 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16131 *GNU* | *'with BFD'*)
16132 test "$with_gnu_ld" != no && break
16133 ;;
16134 *)
16135 test "$with_gnu_ld" != yes && break
16136 ;;
16137 esac
16138 fi
16139 done
16140 IFS="$lt_save_ifs"
16141 else
16142 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16143 fi
16144 fi
16145
16146 LD="$lt_cv_path_LD"
16147 if test -n "$LD"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16149 $as_echo "$LD" >&6; }
16150 else
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16153 fi
16154 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16156 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16157 if ${lt_cv_prog_gnu_ld+:} false; then :
16158 $as_echo_n "(cached) " >&6
16159 else
16160 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16161 case `$LD -v 2>&1 </dev/null` in
16162 *GNU* | *'with BFD'*)
16163 lt_cv_prog_gnu_ld=yes
16164 ;;
16165 *)
16166 lt_cv_prog_gnu_ld=no
16167 ;;
16168 esac
16169 fi
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16171 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16172 with_gnu_ld=$lt_cv_prog_gnu_ld
16173
16174
16175
16176
16177
16178
16179
16180 # If we're not using GNU ld, then there's no point in even trying these
16181 # tests. Check for that first. We should have already tested for gld
16182 # by now (in libtool), but require it now just to be safe...
16183 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16184 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16185
16186
16187
16188 # The name set by libtool depends on the version of libtool. Shame on us
16189 # for depending on an impl detail, but c'est la vie. Older versions used
16190 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16191 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16192 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16193 # set (hence we're using an older libtool), then set it.
16194 if test x${with_gnu_ld+set} != xset; then
16195 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16196 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16197 with_gnu_ld=no
16198 else
16199 with_gnu_ld=$ac_cv_prog_gnu_ld
16200 fi
16201 fi
16202
16203 # Start by getting the version number. I think the libtool test already
16204 # does some of this, but throws away the result.
16205 libgomp_ld_is_gold=no
16206 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16207 libgomp_ld_is_gold=yes
16208 fi
16209
16210 ldver=`$LD --version 2>/dev/null |
16211 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16212
16213 libgomp_gnu_ld_version=`echo $ldver | \
16214 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16215
16216 # Set --gc-sections.
16217 if test "$with_gnu_ld" = "notbroken"; then
16218 # GNU ld it is! Joy and bunny rabbits!
16219
16220 # All these tests are for C++; save the language and the compiler flags.
16221 # Need to do this so that g++ won't try to link in libstdc++
16222 ac_test_CFLAGS="${CFLAGS+set}"
16223 ac_save_CFLAGS="$CFLAGS"
16224 CFLAGS='-x c++ -Wl,--gc-sections'
16225
16226 # Check for -Wl,--gc-sections
16227 # XXX This test is broken at the moment, as symbols required for linking
16228 # are now in libsupc++ (not built yet). In addition, this test has
16229 # cored on solaris in the past. In addition, --gc-sections doesn't
16230 # really work at the moment (keeps on discarding used sections, first
16231 # .eh_frame and now some of the glibc sections for iconv).
16232 # Bzzzzt. Thanks for playing, maybe next time.
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16234 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16235 if test "$cross_compiling" = yes; then :
16236 ac_sectionLDflags=yes
16237 else
16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16240
16241 int main(void)
16242 {
16243 try { throw 1; }
16244 catch (...) { };
16245 return 0;
16246 }
16247
16248 _ACEOF
16249 if ac_fn_c_try_run "$LINENO"; then :
16250 ac_sectionLDflags=yes
16251 else
16252 ac_sectionLDflags=no
16253 fi
16254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16255 conftest.$ac_objext conftest.beam conftest.$ac_ext
16256 fi
16257
16258 if test "$ac_test_CFLAGS" = set; then
16259 CFLAGS="$ac_save_CFLAGS"
16260 else
16261 # this is the suspicious part
16262 CFLAGS=''
16263 fi
16264 if test "$ac_sectionLDflags" = "yes"; then
16265 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16266 fi
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16268 $as_echo "$ac_sectionLDflags" >&6; }
16269 fi
16270
16271 # Set linker optimization flags.
16272 if test x"$with_gnu_ld" = x"yes"; then
16273 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16274 fi
16275
16276
16277
16278
16279
16280
16281 # Check whether --enable-symvers was given.
16282 if test "${enable_symvers+set}" = set; then :
16283 enableval=$enable_symvers;
16284 case "$enableval" in
16285 yes|no|gnu*|sun) ;;
16286 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16287 esac
16288
16289 else
16290 enable_symvers=yes
16291 fi
16292
16293
16294
16295 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16296 # don't know enough about $LD to do tricks...
16297
16298
16299 # Turn a 'yes' into a suitable default.
16300 if test x$enable_symvers = xyes ; then
16301 # FIXME The following test is too strict, in theory.
16302 if test $enable_shared = no || test "x$LD" = x; then
16303 enable_symvers=no
16304 else
16305 if test $with_gnu_ld = yes ; then
16306 enable_symvers=gnu
16307 else
16308 case ${target_os} in
16309 # Sun symbol versioning exists since Solaris 2.5.
16310 solaris2.[5-9]* | solaris2.1[0-9]*)
16311 enable_symvers=sun ;;
16312 *)
16313 enable_symvers=no ;;
16314 esac
16315 fi
16316 fi
16317 fi
16318
16319 # Check if 'sun' was requested on non-Solaris 2 platforms.
16320 if test x$enable_symvers = xsun ; then
16321 case ${target_os} in
16322 solaris2*)
16323 # All fine.
16324 ;;
16325 *)
16326 # Unlikely to work.
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16328 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16330 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16332 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16333 enable_symvers=no
16334 ;;
16335 esac
16336 fi
16337
16338 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16339 if test $enable_symvers != no; then
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16341 $as_echo_n "checking for shared libgcc... " >&6; }
16342 ac_save_CFLAGS="$CFLAGS"
16343 CFLAGS=' -lgcc_s'
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16346
16347 int
16348 main ()
16349 {
16350 return 0;
16351 ;
16352 return 0;
16353 }
16354 _ACEOF
16355 if ac_fn_c_try_link "$LINENO"; then :
16356 libgomp_shared_libgcc=yes
16357 else
16358 libgomp_shared_libgcc=no
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext \
16361 conftest$ac_exeext conftest.$ac_ext
16362 CFLAGS="$ac_save_CFLAGS"
16363 if test $libgomp_shared_libgcc = no; then
16364 cat > conftest.c <<EOF
16365 int main (void) { return 0; }
16366 EOF
16367 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16368 -shared -shared-libgcc -o conftest.so \
16369 conftest.c -v 2>&1 >/dev/null \
16370 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16371 rm -f conftest.c conftest.so
16372 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16373 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375 /* end confdefs.h. */
16376
16377 int
16378 main ()
16379 {
16380 return 0;
16381 ;
16382 return 0;
16383 }
16384 _ACEOF
16385 if ac_fn_c_try_link "$LINENO"; then :
16386 libgomp_shared_libgcc=yes
16387 fi
16388 rm -f core conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
16390 CFLAGS="$ac_save_CFLAGS"
16391 fi
16392 fi
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16394 $as_echo "$libgomp_shared_libgcc" >&6; }
16395 fi
16396
16397 # For GNU ld, we need at least this version. The format is described in
16398 # LIBGOMP_CHECK_LINKER_FEATURES above.
16399 libgomp_min_gnu_ld_version=21400
16400 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16401
16402 # Check to see if unspecified "yes" value can win, given results above.
16403 # Change "yes" into either "no" or a style name.
16404 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16405 if test $with_gnu_ld = yes; then
16406 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16407 enable_symvers=gnu
16408 elif test $libgomp_ld_is_gold = yes ; then
16409 enable_symvers=gnu
16410 else
16411 # The right tools, the right setup, but too old. Fallbacks?
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16413 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16415 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16417 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16419 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16420 if test $libgomp_gnu_ld_version -ge 21200 ; then
16421 # Globbing fix is present, proper block support is not.
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16423 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16424 enable_symvers=no
16425 else
16426 # 2.11 or older.
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16428 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16429 enable_symvers=no
16430 fi
16431 fi
16432 elif test $enable_symvers = sun; then
16433 : All interesting versions of Sun ld support sun style symbol versioning.
16434 else
16435 # just fail for now
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16437 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16439 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16441 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16443 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16444 enable_symvers=no
16445 fi
16446 fi
16447
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16449 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16450 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16451 $as_echo_n "(cached) " >&6
16452 else
16453
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 void foo (void); __asm (".symver foo, bar@SYMVER");
16457 int
16458 main ()
16459 {
16460
16461 ;
16462 return 0;
16463 }
16464 _ACEOF
16465 if ac_fn_c_try_compile "$LINENO"; then :
16466 libgomp_cv_have_as_symver_directive=yes
16467 else
16468 libgomp_cv_have_as_symver_directive=no
16469 fi
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471 fi
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16473 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16474 if test $libgomp_cv_have_as_symver_directive = yes; then
16475
16476 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16477
16478 fi
16479
16480 if test $enable_symvers != no; then
16481 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16482 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16483 else
16484 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16485 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16486 fi
16487
16488 if test $enable_symvers = gnu; then
16489 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16490 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16491 else
16492 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16493 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16494 fi
16495
16496 if test $enable_symvers = sun; then
16497 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16498 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16499 else
16500 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16501 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16502 fi
16503
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16505 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16506
16507 if test $enable_symvers != no ; then
16508 case ${target_os} in
16509 # The Solaris 2 runtime linker doesn't support the GNU extension of
16510 # binding the same symbol to different versions
16511 solaris2*)
16512 ;;
16513 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16514 *)
16515
16516 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16517
16518 ;;
16519 esac
16520 fi
16521
16522
16523 if test $enable_symvers = gnu; then
16524
16525 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16526
16527 fi
16528
16529 # Determine cpu count to limit testsuite parallelism.
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16531 $as_echo_n "checking the number of available CPUs... " >&6; }
16532 CPU_COUNT="0"
16533
16534 # Try generic methods
16535
16536 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16537 # 'NPROCESSORS_ONLN' are platform-specific
16538 command -v getconf >/dev/null 2>&1 && \
16539 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16540 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16541 : # empty
16542 else
16543 # 'nproc' is part of GNU Coreutils and is widely available
16544 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16545
16546 fi
16547 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16548 : # empty
16549 else
16550 # Try platform-specific preferred methods
16551 case $host_os in #(
16552 *linux*) :
16553 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16554 *darwin*) :
16555 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16556 freebsd*) :
16557 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16558 netbsd*) :
16559 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16560 solaris*) :
16561 command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #(
16562 mingw*) :
16563 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16564 msys*) :
16565 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16566 cygwin*) :
16567 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16568 *) :
16569 ;;
16570 esac
16571 fi
16572 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16573 : # empty
16574 else
16575 # Try less preferred generic method
16576 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16577 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16578
16579 fi
16580 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16581 : # empty
16582 else
16583 # Try platform-specific fallback methods
16584 # They can be less accurate and slower then preferred methods
16585 case $host_os in #(
16586 *linux*) :
16587 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16588 *darwin*) :
16589 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16590 freebsd*) :
16591 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16592 netbsd*) :
16593 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16594 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16595 solaris*) :
16596 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16597 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16598 mingw*) :
16599 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16600 : # empty
16601 else
16602 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16603 fi ;; #(
16604 msys*) :
16605 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16606 cygwin*) :
16607 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16608 *) :
16609 ;;
16610 esac
16611 fi
16612 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16614 $as_echo "$CPU_COUNT" >&6; }
16615
16616 else
16617 CPU_COUNT="1"
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16619 $as_echo "unable to detect (assuming 1)" >&6; }
16620
16621 fi
16622
16623
16624 # Get target configury.
16625 . ${srcdir}/configure.tgt
16626 CFLAGS="$save_CFLAGS $XCFLAGS"
16627
16628 # Check for __sync_val_compare_and_swap, but only after the target has
16629 # had a chance to set XCFLAGS.
16630
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16632 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16633 if ${libgomp_cv_have_sync_builtins+:} false; then :
16634 $as_echo_n "(cached) " >&6
16635 else
16636
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639
16640 int
16641 main ()
16642 {
16643 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16644 ;
16645 return 0;
16646 }
16647 _ACEOF
16648 if ac_fn_c_try_link "$LINENO"; then :
16649 libgomp_cv_have_sync_builtins=yes
16650 else
16651 libgomp_cv_have_sync_builtins=no
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16655 fi
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16657 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16658 if test $libgomp_cv_have_sync_builtins = yes; then
16659
16660 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16661
16662 fi
16663
16664 XCFLAGS="$XCFLAGS$XPCFLAGS"
16665
16666 # Add CET specific flags if CET is enabled
16667 # Check whether --enable-cet was given.
16668 if test "${enable_cet+set}" = set; then :
16669 enableval=$enable_cet;
16670 case "$enableval" in
16671 yes|no|auto) ;;
16672 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16673 esac
16674
16675 else
16676 enable_cet=auto
16677 fi
16678
16679
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16681 $as_echo_n "checking for CET support... " >&6; }
16682
16683 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16684 case "$host" in
16685 i[34567]86-*-linux* | x86_64-*-linux*)
16686 case "$enable_cet" in
16687 auto)
16688 # Check if target supports multi-byte NOPs
16689 # and if compiler and assembler support CET insn.
16690 cet_save_CFLAGS="$CFLAGS"
16691 CFLAGS="$CFLAGS -fcf-protection"
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693 /* end confdefs.h. */
16694
16695 int
16696 main ()
16697 {
16698
16699 #if !defined(__SSE2__)
16700 #error target does not support multi-byte NOPs
16701 #else
16702 asm ("setssbsy");
16703 #endif
16704
16705 ;
16706 return 0;
16707 }
16708 _ACEOF
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710 enable_cet=yes
16711 else
16712 enable_cet=no
16713 fi
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 CFLAGS="$cet_save_CFLAGS"
16716 ;;
16717 yes)
16718 # Check if assembler supports CET.
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16721
16722 int
16723 main ()
16724 {
16725 asm ("setssbsy");
16726 ;
16727 return 0;
16728 }
16729 _ACEOF
16730 if ac_fn_c_try_compile "$LINENO"; then :
16731
16732 else
16733 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16734 fi
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 ;;
16737 esac
16738 ;;
16739 *)
16740 enable_cet=no
16741 ;;
16742 esac
16743 if test x$enable_cet = xyes; then
16744 CET_FLAGS="-fcf-protection -mshstk"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16746 $as_echo "yes" >&6; }
16747 else
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749 $as_echo "no" >&6; }
16750 fi
16751
16752 XCFLAGS="$XCFLAGS $CET_FLAGS"
16753 FCFLAGS="$FCFLAGS $CET_FLAGS"
16754
16755
16756
16757
16758
16759 # Conditionalize the makefile for this target machine.
16760 tmake_file_=
16761 for f in ${tmake_file}
16762 do
16763 if test -f ${srcdir}/config/$f
16764 then
16765 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
16766 fi
16767 done
16768 tmake_file="${tmake_file_}"
16769
16770
16771 # Cleanup and exit.
16772 CFLAGS="$save_CFLAGS"
16773 cat >confcache <<\_ACEOF
16774 # This file is a shell script that caches the results of configure
16775 # tests run on this system so they can be shared between configure
16776 # scripts and configure runs, see configure's option --config-cache.
16777 # It is not useful on other systems. If it contains results you don't
16778 # want to keep, you may remove or edit it.
16779 #
16780 # config.status only pays attention to the cache file if you give it
16781 # the --recheck option to rerun configure.
16782 #
16783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16785 # following values.
16786
16787 _ACEOF
16788
16789 # The following way of writing the cache mishandles newlines in values,
16790 # but we know of no workaround that is simple, portable, and efficient.
16791 # So, we kill variables containing newlines.
16792 # Ultrix sh set writes to stderr and can't be redirected directly,
16793 # and sets the high bit in the cache file unless we assign to the vars.
16794 (
16795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16796 eval ac_val=\$$ac_var
16797 case $ac_val in #(
16798 *${as_nl}*)
16799 case $ac_var in #(
16800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16802 esac
16803 case $ac_var in #(
16804 _ | IFS | as_nl) ;; #(
16805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16806 *) { eval $ac_var=; unset $ac_var;} ;;
16807 esac ;;
16808 esac
16809 done
16810
16811 (set) 2>&1 |
16812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16813 *${as_nl}ac_space=\ *)
16814 # `set' does not quote correctly, so add quotes: double-quote
16815 # substitution turns \\\\ into \\, and sed turns \\ into \.
16816 sed -n \
16817 "s/'/'\\\\''/g;
16818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16819 ;; #(
16820 *)
16821 # `set' quotes correctly as required by POSIX, so do not add quotes.
16822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16823 ;;
16824 esac |
16825 sort
16826 ) |
16827 sed '
16828 /^ac_cv_env_/b end
16829 t clear
16830 :clear
16831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16832 t end
16833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16834 :end' >>confcache
16835 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16836 if test -w "$cache_file"; then
16837 if test "x$cache_file" != "x/dev/null"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16839 $as_echo "$as_me: updating cache $cache_file" >&6;}
16840 if test ! -f "$cache_file" || test -h "$cache_file"; then
16841 cat confcache >"$cache_file"
16842 else
16843 case $cache_file in #(
16844 */* | ?:*)
16845 mv -f confcache "$cache_file"$$ &&
16846 mv -f "$cache_file"$$ "$cache_file" ;; #(
16847 *)
16848 mv -f confcache "$cache_file" ;;
16849 esac
16850 fi
16851 fi
16852 else
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16854 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16855 fi
16856 fi
16857 rm -f confcache
16858
16859 if test ${multilib} = yes; then
16860 multilib_arg="--enable-multilib"
16861 else
16862 multilib_arg=
16863 fi
16864
16865 # Set up the set of libraries that we need to link against for libgomp.
16866 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16867 # which will force linkage against -lpthread (or equivalent for the system).
16868 # That's not 100% ideal, but about the best we can do easily.
16869 if test $enable_shared = yes; then
16870 link_gomp="-lgomp %{static: $LIBS}"
16871 else
16872 link_gomp="-lgomp $LIBS"
16873 fi
16874
16875
16876 if test "$ac_cv_fc_compiler_gnu" = yes; then
16877 USE_FORTRAN_TRUE=
16878 USE_FORTRAN_FALSE='#'
16879 else
16880 USE_FORTRAN_TRUE='#'
16881 USE_FORTRAN_FALSE=
16882 fi
16883
16884
16885 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16886 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16887 # the underscore here and update the PREREQ. If it doesn't, then we'll
16888 # need to copy this macro to our acinclude.m4.
16889 save_CFLAGS="$CFLAGS"
16890 for i in $config_path; do
16891 if test -f $srcdir/config/$i/omp-lock.h; then
16892 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16893 break
16894 fi
16895 done
16896
16897 if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16898
16899 fi
16900
16901
16902 if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16903
16904 else
16905 OMP_INT128_SIZE=0
16906 fi
16907
16908
16909 if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16910
16911 else
16912 OMP_DEPEND_KIND=0
16913 fi
16914
16915
16916 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16917
16918 else
16919 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16920 fi
16921
16922
16923 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16924
16925 fi
16926
16927
16928 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16929
16930 fi
16931
16932
16933 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16934
16935 fi
16936
16937
16938 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16939
16940 else
16941 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16942 fi
16943
16944
16945 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16946
16947 fi
16948
16949
16950 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16951
16952 fi
16953
16954
16955 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16956
16957 fi
16958
16959
16960
16961 # If the lock fits in an integer, then arrange for Fortran to use that
16962 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16963 # Except that we don't have a way at present to multi-lib the installed
16964 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16965 # actual target.
16966 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16967 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16968 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16969 OMP_LOCK_KIND=8
16970 fi
16971 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16972 OMP_NEST_LOCK_KIND=8
16973 fi
16974 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16975 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16976 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16977 OMP_LOCK_25_KIND=8
16978 fi
16979 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16980 OMP_NEST_LOCK_25_KIND=8
16981 fi
16982 if test $OMP_DEPEND_KIND -eq 16; then
16983 if test $OMP_INT128_SIZE -ne 16; then
16984 as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16985 fi
16986 else
16987 if test $OMP_DEPEND_KIND -ne 8; then
16988 as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16989 fi
16990 fi
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006 CFLAGS="$save_CFLAGS"
17007
17008 # Determine what GCC version number to use in filesystem paths.
17009
17010 get_gcc_base_ver="cat"
17011
17012 # Check whether --with-gcc-major-version-only was given.
17013 if test "${with_gcc_major_version_only+set}" = set; then :
17014 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17015 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17016 fi
17017
17018 fi
17019
17020
17021
17022
17023 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17024
17025 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17026
17027 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17028
17029 ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
17030
17031 cat >confcache <<\_ACEOF
17032 # This file is a shell script that caches the results of configure
17033 # tests run on this system so they can be shared between configure
17034 # scripts and configure runs, see configure's option --config-cache.
17035 # It is not useful on other systems. If it contains results you don't
17036 # want to keep, you may remove or edit it.
17037 #
17038 # config.status only pays attention to the cache file if you give it
17039 # the --recheck option to rerun configure.
17040 #
17041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17043 # following values.
17044
17045 _ACEOF
17046
17047 # The following way of writing the cache mishandles newlines in values,
17048 # but we know of no workaround that is simple, portable, and efficient.
17049 # So, we kill variables containing newlines.
17050 # Ultrix sh set writes to stderr and can't be redirected directly,
17051 # and sets the high bit in the cache file unless we assign to the vars.
17052 (
17053 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17054 eval ac_val=\$$ac_var
17055 case $ac_val in #(
17056 *${as_nl}*)
17057 case $ac_var in #(
17058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17060 esac
17061 case $ac_var in #(
17062 _ | IFS | as_nl) ;; #(
17063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17064 *) { eval $ac_var=; unset $ac_var;} ;;
17065 esac ;;
17066 esac
17067 done
17068
17069 (set) 2>&1 |
17070 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17071 *${as_nl}ac_space=\ *)
17072 # `set' does not quote correctly, so add quotes: double-quote
17073 # substitution turns \\\\ into \\, and sed turns \\ into \.
17074 sed -n \
17075 "s/'/'\\\\''/g;
17076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17077 ;; #(
17078 *)
17079 # `set' quotes correctly as required by POSIX, so do not add quotes.
17080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17081 ;;
17082 esac |
17083 sort
17084 ) |
17085 sed '
17086 /^ac_cv_env_/b end
17087 t clear
17088 :clear
17089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17090 t end
17091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17092 :end' >>confcache
17093 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17094 if test -w "$cache_file"; then
17095 if test "x$cache_file" != "x/dev/null"; then
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17097 $as_echo "$as_me: updating cache $cache_file" >&6;}
17098 if test ! -f "$cache_file" || test -h "$cache_file"; then
17099 cat confcache >"$cache_file"
17100 else
17101 case $cache_file in #(
17102 */* | ?:*)
17103 mv -f confcache "$cache_file"$$ &&
17104 mv -f "$cache_file"$$ "$cache_file" ;; #(
17105 *)
17106 mv -f confcache "$cache_file" ;;
17107 esac
17108 fi
17109 fi
17110 else
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17112 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17113 fi
17114 fi
17115 rm -f confcache
17116
17117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17118 # Let make expand exec_prefix.
17119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17120
17121 DEFS=-DHAVE_CONFIG_H
17122
17123 ac_libobjs=
17124 ac_ltlibobjs=
17125 U=
17126 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17127 # 1. Remove the extension, and $U if already installed.
17128 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17129 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17131 # will be set to the directory where LIBOBJS objects are built.
17132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17133 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17134 done
17135 LIBOBJS=$ac_libobjs
17136
17137 LTLIBOBJS=$ac_ltlibobjs
17138
17139
17140 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17141 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17143 fi
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17145 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17146 if test -n "$am_sleep_pid"; then
17147 # Hide warnings about reused PIDs.
17148 wait $am_sleep_pid 2>/dev/null
17149 fi
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17151 $as_echo "done" >&6; }
17152 if test -n "$EXEEXT"; then
17153 am__EXEEXT_TRUE=
17154 am__EXEEXT_FALSE='#'
17155 else
17156 am__EXEEXT_TRUE='#'
17157 am__EXEEXT_FALSE=
17158 fi
17159
17160 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17161 as_fn_error $? "conditional \"AMDEP\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17163 fi
17164 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17165 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17167 fi
17168 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17169 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17171 fi
17172 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17173 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17175 fi
17176 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17177 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17179 fi
17180 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17181 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17183 fi
17184 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17185 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17187 fi
17188 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17189 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17191 fi
17192 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17193 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17195 fi
17196 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17197 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17199 fi
17200
17201 : "${CONFIG_STATUS=./config.status}"
17202 ac_write_fail=0
17203 ac_clean_files_save=$ac_clean_files
17204 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17206 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17207 as_write_fail=0
17208 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17209 #! $SHELL
17210 # Generated by $as_me.
17211 # Run this file to recreate the current configuration.
17212 # Compiler output produced by configure, useful for debugging
17213 # configure, is in config.log if it exists.
17214
17215 debug=false
17216 ac_cs_recheck=false
17217 ac_cs_silent=false
17218
17219 SHELL=\${CONFIG_SHELL-$SHELL}
17220 export SHELL
17221 _ASEOF
17222 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17223 ## -------------------- ##
17224 ## M4sh Initialization. ##
17225 ## -------------------- ##
17226
17227 # Be more Bourne compatible
17228 DUALCASE=1; export DUALCASE # for MKS sh
17229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17230 emulate sh
17231 NULLCMD=:
17232 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17233 # is contrary to our usage. Disable this feature.
17234 alias -g '${1+"$@"}'='"$@"'
17235 setopt NO_GLOB_SUBST
17236 else
17237 case `(set -o) 2>/dev/null` in #(
17238 *posix*) :
17239 set -o posix ;; #(
17240 *) :
17241 ;;
17242 esac
17243 fi
17244
17245
17246 as_nl='
17247 '
17248 export as_nl
17249 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17250 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17251 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17252 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17253 # Prefer a ksh shell builtin over an external printf program on Solaris,
17254 # but without wasting forks for bash or zsh.
17255 if test -z "$BASH_VERSION$ZSH_VERSION" \
17256 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17257 as_echo='print -r --'
17258 as_echo_n='print -rn --'
17259 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17260 as_echo='printf %s\n'
17261 as_echo_n='printf %s'
17262 else
17263 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17264 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17265 as_echo_n='/usr/ucb/echo -n'
17266 else
17267 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17268 as_echo_n_body='eval
17269 arg=$1;
17270 case $arg in #(
17271 *"$as_nl"*)
17272 expr "X$arg" : "X\\(.*\\)$as_nl";
17273 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17274 esac;
17275 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17276 '
17277 export as_echo_n_body
17278 as_echo_n='sh -c $as_echo_n_body as_echo'
17279 fi
17280 export as_echo_body
17281 as_echo='sh -c $as_echo_body as_echo'
17282 fi
17283
17284 # The user is always right.
17285 if test "${PATH_SEPARATOR+set}" != set; then
17286 PATH_SEPARATOR=:
17287 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17288 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17289 PATH_SEPARATOR=';'
17290 }
17291 fi
17292
17293
17294 # IFS
17295 # We need space, tab and new line, in precisely that order. Quoting is
17296 # there to prevent editors from complaining about space-tab.
17297 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17298 # splitting by setting IFS to empty value.)
17299 IFS=" "" $as_nl"
17300
17301 # Find who we are. Look in the path if we contain no directory separator.
17302 as_myself=
17303 case $0 in #((
17304 *[\\/]* ) as_myself=$0 ;;
17305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17306 for as_dir in $PATH
17307 do
17308 IFS=$as_save_IFS
17309 test -z "$as_dir" && as_dir=.
17310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17311 done
17312 IFS=$as_save_IFS
17313
17314 ;;
17315 esac
17316 # We did not find ourselves, most probably we were run as `sh COMMAND'
17317 # in which case we are not to be found in the path.
17318 if test "x$as_myself" = x; then
17319 as_myself=$0
17320 fi
17321 if test ! -f "$as_myself"; then
17322 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17323 exit 1
17324 fi
17325
17326 # Unset variables that we do not need and which cause bugs (e.g. in
17327 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17328 # suppresses any "Segmentation fault" message there. '((' could
17329 # trigger a bug in pdksh 5.2.14.
17330 for as_var in BASH_ENV ENV MAIL MAILPATH
17331 do eval test x\${$as_var+set} = xset \
17332 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17333 done
17334 PS1='$ '
17335 PS2='> '
17336 PS4='+ '
17337
17338 # NLS nuisances.
17339 LC_ALL=C
17340 export LC_ALL
17341 LANGUAGE=C
17342 export LANGUAGE
17343
17344 # CDPATH.
17345 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17346
17347
17348 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17349 # ----------------------------------------
17350 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17351 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17352 # script with STATUS, using 1 if that was 0.
17353 as_fn_error ()
17354 {
17355 as_status=$1; test $as_status -eq 0 && as_status=1
17356 if test "$4"; then
17357 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17358 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17359 fi
17360 $as_echo "$as_me: error: $2" >&2
17361 as_fn_exit $as_status
17362 } # as_fn_error
17363
17364
17365 # as_fn_set_status STATUS
17366 # -----------------------
17367 # Set $? to STATUS, without forking.
17368 as_fn_set_status ()
17369 {
17370 return $1
17371 } # as_fn_set_status
17372
17373 # as_fn_exit STATUS
17374 # -----------------
17375 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17376 as_fn_exit ()
17377 {
17378 set +e
17379 as_fn_set_status $1
17380 exit $1
17381 } # as_fn_exit
17382
17383 # as_fn_unset VAR
17384 # ---------------
17385 # Portably unset VAR.
17386 as_fn_unset ()
17387 {
17388 { eval $1=; unset $1;}
17389 }
17390 as_unset=as_fn_unset
17391 # as_fn_append VAR VALUE
17392 # ----------------------
17393 # Append the text in VALUE to the end of the definition contained in VAR. Take
17394 # advantage of any shell optimizations that allow amortized linear growth over
17395 # repeated appends, instead of the typical quadratic growth present in naive
17396 # implementations.
17397 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17398 eval 'as_fn_append ()
17399 {
17400 eval $1+=\$2
17401 }'
17402 else
17403 as_fn_append ()
17404 {
17405 eval $1=\$$1\$2
17406 }
17407 fi # as_fn_append
17408
17409 # as_fn_arith ARG...
17410 # ------------------
17411 # Perform arithmetic evaluation on the ARGs, and store the result in the
17412 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17413 # must be portable across $(()) and expr.
17414 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17415 eval 'as_fn_arith ()
17416 {
17417 as_val=$(( $* ))
17418 }'
17419 else
17420 as_fn_arith ()
17421 {
17422 as_val=`expr "$@" || test $? -eq 1`
17423 }
17424 fi # as_fn_arith
17425
17426
17427 if expr a : '\(a\)' >/dev/null 2>&1 &&
17428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17429 as_expr=expr
17430 else
17431 as_expr=false
17432 fi
17433
17434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17435 as_basename=basename
17436 else
17437 as_basename=false
17438 fi
17439
17440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17441 as_dirname=dirname
17442 else
17443 as_dirname=false
17444 fi
17445
17446 as_me=`$as_basename -- "$0" ||
17447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17448 X"$0" : 'X\(//\)$' \| \
17449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17450 $as_echo X/"$0" |
17451 sed '/^.*\/\([^/][^/]*\)\/*$/{
17452 s//\1/
17453 q
17454 }
17455 /^X\/\(\/\/\)$/{
17456 s//\1/
17457 q
17458 }
17459 /^X\/\(\/\).*/{
17460 s//\1/
17461 q
17462 }
17463 s/.*/./; q'`
17464
17465 # Avoid depending upon Character Ranges.
17466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17469 as_cr_digits='0123456789'
17470 as_cr_alnum=$as_cr_Letters$as_cr_digits
17471
17472 ECHO_C= ECHO_N= ECHO_T=
17473 case `echo -n x` in #(((((
17474 -n*)
17475 case `echo 'xy\c'` in
17476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17477 xy) ECHO_C='\c';;
17478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17479 ECHO_T=' ';;
17480 esac;;
17481 *)
17482 ECHO_N='-n';;
17483 esac
17484
17485 rm -f conf$$ conf$$.exe conf$$.file
17486 if test -d conf$$.dir; then
17487 rm -f conf$$.dir/conf$$.file
17488 else
17489 rm -f conf$$.dir
17490 mkdir conf$$.dir 2>/dev/null
17491 fi
17492 if (echo >conf$$.file) 2>/dev/null; then
17493 if ln -s conf$$.file conf$$ 2>/dev/null; then
17494 as_ln_s='ln -s'
17495 # ... but there are two gotchas:
17496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17498 # In both cases, we have to default to `cp -pR'.
17499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17500 as_ln_s='cp -pR'
17501 elif ln conf$$.file conf$$ 2>/dev/null; then
17502 as_ln_s=ln
17503 else
17504 as_ln_s='cp -pR'
17505 fi
17506 else
17507 as_ln_s='cp -pR'
17508 fi
17509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17510 rmdir conf$$.dir 2>/dev/null
17511
17512
17513 # as_fn_mkdir_p
17514 # -------------
17515 # Create "$as_dir" as a directory, including parents if necessary.
17516 as_fn_mkdir_p ()
17517 {
17518
17519 case $as_dir in #(
17520 -*) as_dir=./$as_dir;;
17521 esac
17522 test -d "$as_dir" || eval $as_mkdir_p || {
17523 as_dirs=
17524 while :; do
17525 case $as_dir in #(
17526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17527 *) as_qdir=$as_dir;;
17528 esac
17529 as_dirs="'$as_qdir' $as_dirs"
17530 as_dir=`$as_dirname -- "$as_dir" ||
17531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17532 X"$as_dir" : 'X\(//\)[^/]' \| \
17533 X"$as_dir" : 'X\(//\)$' \| \
17534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17535 $as_echo X"$as_dir" |
17536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17537 s//\1/
17538 q
17539 }
17540 /^X\(\/\/\)[^/].*/{
17541 s//\1/
17542 q
17543 }
17544 /^X\(\/\/\)$/{
17545 s//\1/
17546 q
17547 }
17548 /^X\(\/\).*/{
17549 s//\1/
17550 q
17551 }
17552 s/.*/./; q'`
17553 test -d "$as_dir" && break
17554 done
17555 test -z "$as_dirs" || eval "mkdir $as_dirs"
17556 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17557
17558
17559 } # as_fn_mkdir_p
17560 if mkdir -p . 2>/dev/null; then
17561 as_mkdir_p='mkdir -p "$as_dir"'
17562 else
17563 test -d ./-p && rmdir ./-p
17564 as_mkdir_p=false
17565 fi
17566
17567
17568 # as_fn_executable_p FILE
17569 # -----------------------
17570 # Test if FILE is an executable regular file.
17571 as_fn_executable_p ()
17572 {
17573 test -f "$1" && test -x "$1"
17574 } # as_fn_executable_p
17575 as_test_x='test -x'
17576 as_executable_p=as_fn_executable_p
17577
17578 # Sed expression to map a string onto a valid CPP name.
17579 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17580
17581 # Sed expression to map a string onto a valid variable name.
17582 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17583
17584
17585 exec 6>&1
17586 ## ----------------------------------- ##
17587 ## Main body of $CONFIG_STATUS script. ##
17588 ## ----------------------------------- ##
17589 _ASEOF
17590 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17591
17592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17593 # Save the log message, to keep $0 and so on meaningful, and to
17594 # report actual input values of CONFIG_FILES etc. instead of their
17595 # values after options handling.
17596 ac_log="
17597 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17598 generated by GNU Autoconf 2.69. Invocation command line was
17599
17600 CONFIG_FILES = $CONFIG_FILES
17601 CONFIG_HEADERS = $CONFIG_HEADERS
17602 CONFIG_LINKS = $CONFIG_LINKS
17603 CONFIG_COMMANDS = $CONFIG_COMMANDS
17604 $ $0 $@
17605
17606 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17607 "
17608
17609 _ACEOF
17610
17611 case $ac_config_files in *"
17612 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17613 esac
17614
17615 case $ac_config_headers in *"
17616 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17617 esac
17618
17619
17620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17621 # Files that config.status was made for.
17622 config_files="$ac_config_files"
17623 config_headers="$ac_config_headers"
17624 config_commands="$ac_config_commands"
17625
17626 _ACEOF
17627
17628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17629 ac_cs_usage="\
17630 \`$as_me' instantiates files and other configuration actions
17631 from templates according to the current configuration. Unless the files
17632 and actions are specified as TAGs, all are instantiated by default.
17633
17634 Usage: $0 [OPTION]... [TAG]...
17635
17636 -h, --help print this help, then exit
17637 -V, --version print version number and configuration settings, then exit
17638 --config print configuration, then exit
17639 -q, --quiet, --silent
17640 do not print progress messages
17641 -d, --debug don't remove temporary files
17642 --recheck update $as_me by reconfiguring in the same conditions
17643 --file=FILE[:TEMPLATE]
17644 instantiate the configuration file FILE
17645 --header=FILE[:TEMPLATE]
17646 instantiate the configuration header FILE
17647
17648 Configuration files:
17649 $config_files
17650
17651 Configuration headers:
17652 $config_headers
17653
17654 Configuration commands:
17655 $config_commands
17656
17657 Report bugs to the package provider.
17658 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17659 General help using GNU software: <http://www.gnu.org/gethelp/>."
17660
17661 _ACEOF
17662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17663 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17664 ac_cs_version="\\
17665 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17666 configured by $0, generated by GNU Autoconf 2.69,
17667 with options \\"\$ac_cs_config\\"
17668
17669 Copyright (C) 2012 Free Software Foundation, Inc.
17670 This config.status script is free software; the Free Software Foundation
17671 gives unlimited permission to copy, distribute and modify it."
17672
17673 ac_pwd='$ac_pwd'
17674 srcdir='$srcdir'
17675 INSTALL='$INSTALL'
17676 MKDIR_P='$MKDIR_P'
17677 AWK='$AWK'
17678 test -n "\$AWK" || AWK=awk
17679 _ACEOF
17680
17681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17682 # The default lists apply if the user does not specify any file.
17683 ac_need_defaults=:
17684 while test $# != 0
17685 do
17686 case $1 in
17687 --*=?*)
17688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17690 ac_shift=:
17691 ;;
17692 --*=)
17693 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17694 ac_optarg=
17695 ac_shift=:
17696 ;;
17697 *)
17698 ac_option=$1
17699 ac_optarg=$2
17700 ac_shift=shift
17701 ;;
17702 esac
17703
17704 case $ac_option in
17705 # Handling of the options.
17706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17707 ac_cs_recheck=: ;;
17708 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17709 $as_echo "$ac_cs_version"; exit ;;
17710 --config | --confi | --conf | --con | --co | --c )
17711 $as_echo "$ac_cs_config"; exit ;;
17712 --debug | --debu | --deb | --de | --d | -d )
17713 debug=: ;;
17714 --file | --fil | --fi | --f )
17715 $ac_shift
17716 case $ac_optarg in
17717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17718 '') as_fn_error $? "missing file argument" ;;
17719 esac
17720 as_fn_append CONFIG_FILES " '$ac_optarg'"
17721 ac_need_defaults=false;;
17722 --header | --heade | --head | --hea )
17723 $ac_shift
17724 case $ac_optarg in
17725 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17726 esac
17727 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17728 ac_need_defaults=false;;
17729 --he | --h)
17730 # Conflict between --help and --header
17731 as_fn_error $? "ambiguous option: \`$1'
17732 Try \`$0 --help' for more information.";;
17733 --help | --hel | -h )
17734 $as_echo "$ac_cs_usage"; exit ;;
17735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17737 ac_cs_silent=: ;;
17738
17739 # This is an error.
17740 -*) as_fn_error $? "unrecognized option: \`$1'
17741 Try \`$0 --help' for more information." ;;
17742
17743 *) as_fn_append ac_config_targets " $1"
17744 ac_need_defaults=false ;;
17745
17746 esac
17747 shift
17748 done
17749
17750 ac_configure_extra_args=
17751
17752 if $ac_cs_silent; then
17753 exec 6>/dev/null
17754 ac_configure_extra_args="$ac_configure_extra_args --silent"
17755 fi
17756
17757 _ACEOF
17758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17759 if \$ac_cs_recheck; then
17760 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17761 shift
17762 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17763 CONFIG_SHELL='$SHELL'
17764 export CONFIG_SHELL
17765 exec "\$@"
17766 fi
17767
17768 _ACEOF
17769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17770 exec 5>>config.log
17771 {
17772 echo
17773 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17774 ## Running $as_me. ##
17775 _ASBOX
17776 $as_echo "$ac_log"
17777 } >&5
17778
17779 _ACEOF
17780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17781 #
17782 # INIT-COMMANDS
17783 #
17784
17785 srcdir="$srcdir"
17786 host="$host"
17787 target="$target"
17788 with_multisubdir="$with_multisubdir"
17789 with_multisrctop="$with_multisrctop"
17790 with_target_subdir="$with_target_subdir"
17791 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17792 multi_basedir="$multi_basedir"
17793 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17794 CC="$CC"
17795 CXX="$CXX"
17796 GFORTRAN="$GFORTRAN"
17797 GDC="$GDC"
17798 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17799
17800
17801 # The HP-UX ksh and POSIX shell print the target directory to stdout
17802 # if CDPATH is set.
17803 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17804
17805 sed_quote_subst='$sed_quote_subst'
17806 double_quote_subst='$double_quote_subst'
17807 delay_variable_subst='$delay_variable_subst'
17808 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17809 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17810 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17811 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17812 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17813 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17814 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17815 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17816 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17817 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17818 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17819 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17820 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17821 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17822 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17823 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17824 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17825 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17826 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17827 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17828 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17829 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17830 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17831 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17832 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17833 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17834 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17835 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17836 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17837 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17838 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17839 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17840 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17841 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17842 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17843 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17844 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17845 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17846 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17847 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17848 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17849 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17850 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17851 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17852 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17853 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17854 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17855 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17856 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"`'
17857 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17858 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17859 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17860 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17861 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17862 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17863 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17864 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17865 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17866 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17867 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17868 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17869 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17870 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17871 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17872 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17873 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17874 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17875 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17876 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17877 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17878 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17879 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17880 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17881 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17882 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17883 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17884 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17885 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17886 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17887 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17888 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17889 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17890 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17891 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17892 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17893 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17894 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17895 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17896 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17897 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17898 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17899 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17900 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17901 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17902 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17903 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17904 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17905 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17906 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17907 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17908 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17909 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17910 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17911 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17912 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17913 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17914 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17915 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17916 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17917 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17918 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17919 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17920 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17921 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17922 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17923 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17924 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17925 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17926 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17927 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17928 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17929 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17930 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17931 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17932 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17933 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17934 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17935 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17936 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17937 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17938 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17939 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17940 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17941 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17942 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17943 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17944 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17945 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17946 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17947 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17948 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17949 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17950 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17951 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17952 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17953 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17954 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17955 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17956 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17957 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17958 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17959 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17960 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17961 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17962 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17963 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17964 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17965 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17966 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17967 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17968 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17969 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17970 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17971 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17972 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17973 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17974 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17975 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17976 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17977 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17978 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17979 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17980 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17981 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17982 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17983
17984 LTCC='$LTCC'
17985 LTCFLAGS='$LTCFLAGS'
17986 compiler='$compiler_DEFAULT'
17987
17988 # A function that is used when there is no print builtin or printf.
17989 func_fallback_echo ()
17990 {
17991 eval 'cat <<_LTECHO_EOF
17992 \$1
17993 _LTECHO_EOF'
17994 }
17995
17996 # Quote evaled strings.
17997 for var in SHELL \
17998 ECHO \
17999 SED \
18000 GREP \
18001 EGREP \
18002 FGREP \
18003 LD \
18004 NM \
18005 LN_S \
18006 lt_SP2NL \
18007 lt_NL2SP \
18008 reload_flag \
18009 OBJDUMP \
18010 deplibs_check_method \
18011 file_magic_cmd \
18012 AR \
18013 AR_FLAGS \
18014 STRIP \
18015 RANLIB \
18016 CC \
18017 CFLAGS \
18018 compiler \
18019 lt_cv_sys_global_symbol_pipe \
18020 lt_cv_sys_global_symbol_to_cdecl \
18021 lt_cv_sys_global_symbol_to_c_name_address \
18022 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18023 lt_prog_compiler_no_builtin_flag \
18024 lt_prog_compiler_wl \
18025 lt_prog_compiler_pic \
18026 lt_prog_compiler_static \
18027 lt_cv_prog_compiler_c_o \
18028 need_locks \
18029 DSYMUTIL \
18030 NMEDIT \
18031 LIPO \
18032 OTOOL \
18033 OTOOL64 \
18034 shrext_cmds \
18035 export_dynamic_flag_spec \
18036 whole_archive_flag_spec \
18037 compiler_needs_object \
18038 with_gnu_ld \
18039 allow_undefined_flag \
18040 no_undefined_flag \
18041 hardcode_libdir_flag_spec \
18042 hardcode_libdir_flag_spec_ld \
18043 hardcode_libdir_separator \
18044 fix_srcfile_path \
18045 exclude_expsyms \
18046 include_expsyms \
18047 file_list_spec \
18048 variables_saved_for_relink \
18049 libname_spec \
18050 library_names_spec \
18051 soname_spec \
18052 install_override_mode \
18053 finish_eval \
18054 old_striplib \
18055 striplib \
18056 compiler_lib_search_dirs \
18057 predep_objects \
18058 postdep_objects \
18059 predeps \
18060 postdeps \
18061 compiler_lib_search_path \
18062 LD_FC \
18063 reload_flag_FC \
18064 compiler_FC \
18065 lt_prog_compiler_no_builtin_flag_FC \
18066 lt_prog_compiler_wl_FC \
18067 lt_prog_compiler_pic_FC \
18068 lt_prog_compiler_static_FC \
18069 lt_cv_prog_compiler_c_o_FC \
18070 export_dynamic_flag_spec_FC \
18071 whole_archive_flag_spec_FC \
18072 compiler_needs_object_FC \
18073 with_gnu_ld_FC \
18074 allow_undefined_flag_FC \
18075 no_undefined_flag_FC \
18076 hardcode_libdir_flag_spec_FC \
18077 hardcode_libdir_flag_spec_ld_FC \
18078 hardcode_libdir_separator_FC \
18079 fix_srcfile_path_FC \
18080 exclude_expsyms_FC \
18081 include_expsyms_FC \
18082 file_list_spec_FC \
18083 compiler_lib_search_dirs_FC \
18084 predep_objects_FC \
18085 postdep_objects_FC \
18086 predeps_FC \
18087 postdeps_FC \
18088 compiler_lib_search_path_FC; do
18089 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18090 *[\\\\\\\`\\"\\\$]*)
18091 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18092 ;;
18093 *)
18094 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18095 ;;
18096 esac
18097 done
18098
18099 # Double-quote double-evaled strings.
18100 for var in reload_cmds \
18101 old_postinstall_cmds \
18102 old_postuninstall_cmds \
18103 old_archive_cmds \
18104 extract_expsyms_cmds \
18105 old_archive_from_new_cmds \
18106 old_archive_from_expsyms_cmds \
18107 archive_cmds \
18108 archive_expsym_cmds \
18109 module_cmds \
18110 module_expsym_cmds \
18111 export_symbols_cmds \
18112 prelink_cmds \
18113 postinstall_cmds \
18114 postuninstall_cmds \
18115 finish_cmds \
18116 sys_lib_search_path_spec \
18117 sys_lib_dlsearch_path_spec \
18118 reload_cmds_FC \
18119 old_archive_cmds_FC \
18120 old_archive_from_new_cmds_FC \
18121 old_archive_from_expsyms_cmds_FC \
18122 archive_cmds_FC \
18123 archive_expsym_cmds_FC \
18124 module_cmds_FC \
18125 module_expsym_cmds_FC \
18126 export_symbols_cmds_FC \
18127 prelink_cmds_FC; do
18128 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18129 *[\\\\\\\`\\"\\\$]*)
18130 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18131 ;;
18132 *)
18133 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18134 ;;
18135 esac
18136 done
18137
18138 ac_aux_dir='$ac_aux_dir'
18139 xsi_shell='$xsi_shell'
18140 lt_shell_append='$lt_shell_append'
18141
18142 # See if we are running on zsh, and set the options which allow our
18143 # commands through without removal of \ escapes INIT.
18144 if test -n "\${ZSH_VERSION+set}" ; then
18145 setopt NO_GLOB_SUBST
18146 fi
18147
18148
18149 PACKAGE='$PACKAGE'
18150 VERSION='$VERSION'
18151 TIMESTAMP='$TIMESTAMP'
18152 RM='$RM'
18153 ofile='$ofile'
18154
18155
18156
18157
18158
18159
18160 _ACEOF
18161
18162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18163
18164 # Handling of arguments.
18165 for ac_config_target in $ac_config_targets
18166 do
18167 case $ac_config_target in
18168 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18169 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18170 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18171 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18172 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18173 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18174 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18175 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18176 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18177 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18178 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18179 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18180 "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18181
18182 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18183 esac
18184 done
18185
18186
18187 # If the user did not use the arguments to specify the items to instantiate,
18188 # then the envvar interface is used. Set only those that are not.
18189 # We use the long form for the default assignment because of an extremely
18190 # bizarre bug on SunOS 4.1.3.
18191 if $ac_need_defaults; then
18192 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18193 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18194 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18195 fi
18196
18197 # Have a temporary directory for convenience. Make it in the build tree
18198 # simply because there is no reason against having it here, and in addition,
18199 # creating and moving files from /tmp can sometimes cause problems.
18200 # Hook for its removal unless debugging.
18201 # Note that there is a small window in which the directory will not be cleaned:
18202 # after its creation but before its name has been assigned to `$tmp'.
18203 $debug ||
18204 {
18205 tmp= ac_tmp=
18206 trap 'exit_status=$?
18207 : "${ac_tmp:=$tmp}"
18208 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18209 ' 0
18210 trap 'as_fn_exit 1' 1 2 13 15
18211 }
18212 # Create a (secure) tmp directory for tmp files.
18213
18214 {
18215 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18216 test -d "$tmp"
18217 } ||
18218 {
18219 tmp=./conf$$-$RANDOM
18220 (umask 077 && mkdir "$tmp")
18221 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18222 ac_tmp=$tmp
18223
18224 # Set up the scripts for CONFIG_FILES section.
18225 # No need to generate them if there are no CONFIG_FILES.
18226 # This happens for instance with `./config.status config.h'.
18227 if test -n "$CONFIG_FILES"; then
18228
18229
18230 ac_cr=`echo X | tr X '\015'`
18231 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18232 # But we know of no other shell where ac_cr would be empty at this
18233 # point, so we can use a bashism as a fallback.
18234 if test "x$ac_cr" = x; then
18235 eval ac_cr=\$\'\\r\'
18236 fi
18237 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18238 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18239 ac_cs_awk_cr='\\r'
18240 else
18241 ac_cs_awk_cr=$ac_cr
18242 fi
18243
18244 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18245 _ACEOF
18246
18247
18248 {
18249 echo "cat >conf$$subs.awk <<_ACEOF" &&
18250 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18251 echo "_ACEOF"
18252 } >conf$$subs.sh ||
18253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18254 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18255 ac_delim='%!_!# '
18256 for ac_last_try in false false false false false :; do
18257 . ./conf$$subs.sh ||
18258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18259
18260 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18261 if test $ac_delim_n = $ac_delim_num; then
18262 break
18263 elif $ac_last_try; then
18264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18265 else
18266 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18267 fi
18268 done
18269 rm -f conf$$subs.sh
18270
18271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18272 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18273 _ACEOF
18274 sed -n '
18275 h
18276 s/^/S["/; s/!.*/"]=/
18277 p
18278 g
18279 s/^[^!]*!//
18280 :repl
18281 t repl
18282 s/'"$ac_delim"'$//
18283 t delim
18284 :nl
18285 h
18286 s/\(.\{148\}\)..*/\1/
18287 t more1
18288 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18289 p
18290 n
18291 b repl
18292 :more1
18293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18294 p
18295 g
18296 s/.\{148\}//
18297 t nl
18298 :delim
18299 h
18300 s/\(.\{148\}\)..*/\1/
18301 t more2
18302 s/["\\]/\\&/g; s/^/"/; s/$/"/
18303 p
18304 b
18305 :more2
18306 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18307 p
18308 g
18309 s/.\{148\}//
18310 t delim
18311 ' <conf$$subs.awk | sed '
18312 /^[^""]/{
18313 N
18314 s/\n//
18315 }
18316 ' >>$CONFIG_STATUS || ac_write_fail=1
18317 rm -f conf$$subs.awk
18318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18319 _ACAWK
18320 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18321 for (key in S) S_is_set[key] = 1
18322 FS = "\a"
18323
18324 }
18325 {
18326 line = $ 0
18327 nfields = split(line, field, "@")
18328 substed = 0
18329 len = length(field[1])
18330 for (i = 2; i < nfields; i++) {
18331 key = field[i]
18332 keylen = length(key)
18333 if (S_is_set[key]) {
18334 value = S[key]
18335 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18336 len += length(value) + length(field[++i])
18337 substed = 1
18338 } else
18339 len += 1 + keylen
18340 }
18341
18342 print line
18343 }
18344
18345 _ACAWK
18346 _ACEOF
18347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18348 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18349 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18350 else
18351 cat
18352 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18353 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18354 _ACEOF
18355
18356 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18357 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18358 # trailing colons and then remove the whole line if VPATH becomes empty
18359 # (actually we leave an empty line to preserve line numbers).
18360 if test "x$srcdir" = x.; then
18361 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18362 h
18363 s///
18364 s/^/:/
18365 s/[ ]*$/:/
18366 s/:\$(srcdir):/:/g
18367 s/:\${srcdir}:/:/g
18368 s/:@srcdir@:/:/g
18369 s/^:*//
18370 s/:*$//
18371 x
18372 s/\(=[ ]*\).*/\1/
18373 G
18374 s/\n//
18375 s/^[^=]*=[ ]*$//
18376 }'
18377 fi
18378
18379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18380 fi # test -n "$CONFIG_FILES"
18381
18382 # Set up the scripts for CONFIG_HEADERS section.
18383 # No need to generate them if there are no CONFIG_HEADERS.
18384 # This happens for instance with `./config.status Makefile'.
18385 if test -n "$CONFIG_HEADERS"; then
18386 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18387 BEGIN {
18388 _ACEOF
18389
18390 # Transform confdefs.h into an awk script `defines.awk', embedded as
18391 # here-document in config.status, that substitutes the proper values into
18392 # config.h.in to produce config.h.
18393
18394 # Create a delimiter string that does not exist in confdefs.h, to ease
18395 # handling of long lines.
18396 ac_delim='%!_!# '
18397 for ac_last_try in false false :; do
18398 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18399 if test -z "$ac_tt"; then
18400 break
18401 elif $ac_last_try; then
18402 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18403 else
18404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18405 fi
18406 done
18407
18408 # For the awk script, D is an array of macro values keyed by name,
18409 # likewise P contains macro parameters if any. Preserve backslash
18410 # newline sequences.
18411
18412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18413 sed -n '
18414 s/.\{148\}/&'"$ac_delim"'/g
18415 t rset
18416 :rset
18417 s/^[ ]*#[ ]*define[ ][ ]*/ /
18418 t def
18419 d
18420 :def
18421 s/\\$//
18422 t bsnl
18423 s/["\\]/\\&/g
18424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18425 D["\1"]=" \3"/p
18426 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18427 d
18428 :bsnl
18429 s/["\\]/\\&/g
18430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18431 D["\1"]=" \3\\\\\\n"\\/p
18432 t cont
18433 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18434 t cont
18435 d
18436 :cont
18437 n
18438 s/.\{148\}/&'"$ac_delim"'/g
18439 t clear
18440 :clear
18441 s/\\$//
18442 t bsnlc
18443 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18444 d
18445 :bsnlc
18446 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18447 b cont
18448 ' <confdefs.h | sed '
18449 s/'"$ac_delim"'/"\\\
18450 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18451
18452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18453 for (key in D) D_is_set[key] = 1
18454 FS = "\a"
18455 }
18456 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18457 line = \$ 0
18458 split(line, arg, " ")
18459 if (arg[1] == "#") {
18460 defundef = arg[2]
18461 mac1 = arg[3]
18462 } else {
18463 defundef = substr(arg[1], 2)
18464 mac1 = arg[2]
18465 }
18466 split(mac1, mac2, "(") #)
18467 macro = mac2[1]
18468 prefix = substr(line, 1, index(line, defundef) - 1)
18469 if (D_is_set[macro]) {
18470 # Preserve the white space surrounding the "#".
18471 print prefix "define", macro P[macro] D[macro]
18472 next
18473 } else {
18474 # Replace #undef with comments. This is necessary, for example,
18475 # in the case of _POSIX_SOURCE, which is predefined and required
18476 # on some systems where configure will not decide to define it.
18477 if (defundef == "undef") {
18478 print "/*", prefix defundef, macro, "*/"
18479 next
18480 }
18481 }
18482 }
18483 { print }
18484 _ACAWK
18485 _ACEOF
18486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18487 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18488 fi # test -n "$CONFIG_HEADERS"
18489
18490
18491 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18492 shift
18493 for ac_tag
18494 do
18495 case $ac_tag in
18496 :[FHLC]) ac_mode=$ac_tag; continue;;
18497 esac
18498 case $ac_mode$ac_tag in
18499 :[FHL]*:*);;
18500 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18501 :[FH]-) ac_tag=-:-;;
18502 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18503 esac
18504 ac_save_IFS=$IFS
18505 IFS=:
18506 set x $ac_tag
18507 IFS=$ac_save_IFS
18508 shift
18509 ac_file=$1
18510 shift
18511
18512 case $ac_mode in
18513 :L) ac_source=$1;;
18514 :[FH])
18515 ac_file_inputs=
18516 for ac_f
18517 do
18518 case $ac_f in
18519 -) ac_f="$ac_tmp/stdin";;
18520 *) # Look for the file first in the build tree, then in the source tree
18521 # (if the path is not absolute). The absolute path cannot be DOS-style,
18522 # because $ac_f cannot contain `:'.
18523 test -f "$ac_f" ||
18524 case $ac_f in
18525 [\\/$]*) false;;
18526 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18527 esac ||
18528 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18529 esac
18530 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18531 as_fn_append ac_file_inputs " '$ac_f'"
18532 done
18533
18534 # Let's still pretend it is `configure' which instantiates (i.e., don't
18535 # use $as_me), people would be surprised to read:
18536 # /* config.h. Generated by config.status. */
18537 configure_input='Generated from '`
18538 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18539 `' by configure.'
18540 if test x"$ac_file" != x-; then
18541 configure_input="$ac_file. $configure_input"
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18543 $as_echo "$as_me: creating $ac_file" >&6;}
18544 fi
18545 # Neutralize special characters interpreted by sed in replacement strings.
18546 case $configure_input in #(
18547 *\&* | *\|* | *\\* )
18548 ac_sed_conf_input=`$as_echo "$configure_input" |
18549 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18550 *) ac_sed_conf_input=$configure_input;;
18551 esac
18552
18553 case $ac_tag in
18554 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18556 esac
18557 ;;
18558 esac
18559
18560 ac_dir=`$as_dirname -- "$ac_file" ||
18561 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18562 X"$ac_file" : 'X\(//\)[^/]' \| \
18563 X"$ac_file" : 'X\(//\)$' \| \
18564 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18565 $as_echo X"$ac_file" |
18566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18567 s//\1/
18568 q
18569 }
18570 /^X\(\/\/\)[^/].*/{
18571 s//\1/
18572 q
18573 }
18574 /^X\(\/\/\)$/{
18575 s//\1/
18576 q
18577 }
18578 /^X\(\/\).*/{
18579 s//\1/
18580 q
18581 }
18582 s/.*/./; q'`
18583 as_dir="$ac_dir"; as_fn_mkdir_p
18584 ac_builddir=.
18585
18586 case "$ac_dir" in
18587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18588 *)
18589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18590 # A ".." for each directory in $ac_dir_suffix.
18591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18592 case $ac_top_builddir_sub in
18593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18595 esac ;;
18596 esac
18597 ac_abs_top_builddir=$ac_pwd
18598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18599 # for backward compatibility:
18600 ac_top_builddir=$ac_top_build_prefix
18601
18602 case $srcdir in
18603 .) # We are building in place.
18604 ac_srcdir=.
18605 ac_top_srcdir=$ac_top_builddir_sub
18606 ac_abs_top_srcdir=$ac_pwd ;;
18607 [\\/]* | ?:[\\/]* ) # Absolute name.
18608 ac_srcdir=$srcdir$ac_dir_suffix;
18609 ac_top_srcdir=$srcdir
18610 ac_abs_top_srcdir=$srcdir ;;
18611 *) # Relative name.
18612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18613 ac_top_srcdir=$ac_top_build_prefix$srcdir
18614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18615 esac
18616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18617
18618
18619 case $ac_mode in
18620 :F)
18621 #
18622 # CONFIG_FILE
18623 #
18624
18625 case $INSTALL in
18626 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18627 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18628 esac
18629 ac_MKDIR_P=$MKDIR_P
18630 case $MKDIR_P in
18631 [\\/$]* | ?:[\\/]* ) ;;
18632 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18633 esac
18634 _ACEOF
18635
18636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18637 # If the template does not know about datarootdir, expand it.
18638 # FIXME: This hack should be removed a few years after 2.60.
18639 ac_datarootdir_hack=; ac_datarootdir_seen=
18640 ac_sed_dataroot='
18641 /datarootdir/ {
18642 p
18643 q
18644 }
18645 /@datadir@/p
18646 /@docdir@/p
18647 /@infodir@/p
18648 /@localedir@/p
18649 /@mandir@/p'
18650 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18651 *datarootdir*) ac_datarootdir_seen=yes;;
18652 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18654 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18655 _ACEOF
18656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18657 ac_datarootdir_hack='
18658 s&@datadir@&$datadir&g
18659 s&@docdir@&$docdir&g
18660 s&@infodir@&$infodir&g
18661 s&@localedir@&$localedir&g
18662 s&@mandir@&$mandir&g
18663 s&\\\${datarootdir}&$datarootdir&g' ;;
18664 esac
18665 _ACEOF
18666
18667 # Neutralize VPATH when `$srcdir' = `.'.
18668 # Shell code in configure.ac might set extrasub.
18669 # FIXME: do we really want to maintain this feature?
18670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18671 ac_sed_extra="$ac_vpsub
18672 $extrasub
18673 _ACEOF
18674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18675 :t
18676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18677 s|@configure_input@|$ac_sed_conf_input|;t t
18678 s&@top_builddir@&$ac_top_builddir_sub&;t t
18679 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18680 s&@srcdir@&$ac_srcdir&;t t
18681 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18682 s&@top_srcdir@&$ac_top_srcdir&;t t
18683 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18684 s&@builddir@&$ac_builddir&;t t
18685 s&@abs_builddir@&$ac_abs_builddir&;t t
18686 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18687 s&@INSTALL@&$ac_INSTALL&;t t
18688 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18689 $ac_datarootdir_hack
18690 "
18691 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18692 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18693
18694 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18695 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18696 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18697 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18699 which seems to be undefined. Please make sure it is defined" >&5
18700 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18701 which seems to be undefined. Please make sure it is defined" >&2;}
18702
18703 rm -f "$ac_tmp/stdin"
18704 case $ac_file in
18705 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18706 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18707 esac \
18708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18709 ;;
18710 :H)
18711 #
18712 # CONFIG_HEADER
18713 #
18714 if test x"$ac_file" != x-; then
18715 {
18716 $as_echo "/* $configure_input */" \
18717 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18718 } >"$ac_tmp/config.h" \
18719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18720 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18722 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18723 else
18724 rm -f "$ac_file"
18725 mv "$ac_tmp/config.h" "$ac_file" \
18726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18727 fi
18728 else
18729 $as_echo "/* $configure_input */" \
18730 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18731 || as_fn_error $? "could not create -" "$LINENO" 5
18732 fi
18733 # Compute "$ac_file"'s index in $config_headers.
18734 _am_arg="$ac_file"
18735 _am_stamp_count=1
18736 for _am_header in $config_headers :; do
18737 case $_am_header in
18738 $_am_arg | $_am_arg:* )
18739 break ;;
18740 * )
18741 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18742 esac
18743 done
18744 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18745 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18746 X"$_am_arg" : 'X\(//\)[^/]' \| \
18747 X"$_am_arg" : 'X\(//\)$' \| \
18748 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18749 $as_echo X"$_am_arg" |
18750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18751 s//\1/
18752 q
18753 }
18754 /^X\(\/\/\)[^/].*/{
18755 s//\1/
18756 q
18757 }
18758 /^X\(\/\/\)$/{
18759 s//\1/
18760 q
18761 }
18762 /^X\(\/\).*/{
18763 s//\1/
18764 q
18765 }
18766 s/.*/./; q'`/stamp-h$_am_stamp_count
18767 ;;
18768
18769 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18770 $as_echo "$as_me: executing $ac_file commands" >&6;}
18771 ;;
18772 esac
18773
18774
18775 case $ac_file$ac_mode in
18776 "default-1":C)
18777 # Only add multilib support code if we just rebuilt the top-level
18778 # Makefile.
18779 case " $CONFIG_FILES " in
18780 *" Makefile "*)
18781 ac_file=Makefile . ${multi_basedir}/config-ml.in
18782 ;;
18783 esac ;;
18784 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18785 # Older Autoconf quotes --file arguments for eval, but not when files
18786 # are listed without --file. Let's play safe and only enable the eval
18787 # if we detect the quoting.
18788 # TODO: see whether this extra hack can be removed once we start
18789 # requiring Autoconf 2.70 or later.
18790 case $CONFIG_FILES in #(
18791 *\'*) :
18792 eval set x "$CONFIG_FILES" ;; #(
18793 *) :
18794 set x $CONFIG_FILES ;; #(
18795 *) :
18796 ;;
18797 esac
18798 shift
18799 # Used to flag and report bootstrapping failures.
18800 am_rc=0
18801 for am_mf
18802 do
18803 # Strip MF so we end up with the name of the file.
18804 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18805 # Check whether this is an Automake generated Makefile which includes
18806 # dependency-tracking related rules and includes.
18807 # Grep'ing the whole file directly is not great: AIX grep has a line
18808 # limit of 2048, but all sed's we know have understand at least 4000.
18809 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18810 || continue
18811 am_dirpart=`$as_dirname -- "$am_mf" ||
18812 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18813 X"$am_mf" : 'X\(//\)[^/]' \| \
18814 X"$am_mf" : 'X\(//\)$' \| \
18815 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18816 $as_echo X"$am_mf" |
18817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18818 s//\1/
18819 q
18820 }
18821 /^X\(\/\/\)[^/].*/{
18822 s//\1/
18823 q
18824 }
18825 /^X\(\/\/\)$/{
18826 s//\1/
18827 q
18828 }
18829 /^X\(\/\).*/{
18830 s//\1/
18831 q
18832 }
18833 s/.*/./; q'`
18834 am_filepart=`$as_basename -- "$am_mf" ||
18835 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18836 X"$am_mf" : 'X\(//\)$' \| \
18837 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18838 $as_echo X/"$am_mf" |
18839 sed '/^.*\/\([^/][^/]*\)\/*$/{
18840 s//\1/
18841 q
18842 }
18843 /^X\/\(\/\/\)$/{
18844 s//\1/
18845 q
18846 }
18847 /^X\/\(\/\).*/{
18848 s//\1/
18849 q
18850 }
18851 s/.*/./; q'`
18852 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18853 && sed -e '/# am--include-marker/d' "$am_filepart" \
18854 | $MAKE -f - am--depfiles" >&5
18855 (cd "$am_dirpart" \
18856 && sed -e '/# am--include-marker/d' "$am_filepart" \
18857 | $MAKE -f - am--depfiles) >&5 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } || am_rc=$?
18861 done
18862 if test $am_rc -ne 0; then
18863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18865 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18866 for automatic dependency tracking. Try re-running configure with the
18867 '--disable-dependency-tracking' option to at least be able to build
18868 the package (albeit without support for automatic dependency tracking).
18869 See \`config.log' for more details" "$LINENO" 5; }
18870 fi
18871 { am_dirpart=; unset am_dirpart;}
18872 { am_filepart=; unset am_filepart;}
18873 { am_mf=; unset am_mf;}
18874 { am_rc=; unset am_rc;}
18875 rm -f conftest-deps.mk
18876 }
18877 ;;
18878 "libtool":C)
18879
18880 # See if we are running on zsh, and set the options which allow our
18881 # commands through without removal of \ escapes.
18882 if test -n "${ZSH_VERSION+set}" ; then
18883 setopt NO_GLOB_SUBST
18884 fi
18885
18886 cfgfile="${ofile}T"
18887 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18888 $RM "$cfgfile"
18889
18890 cat <<_LT_EOF >> "$cfgfile"
18891 #! $SHELL
18892
18893 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18894 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18895 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18896 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18897 #
18898 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18899 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18900 # Written by Gordon Matzigkeit, 1996
18901 #
18902 # This file is part of GNU Libtool.
18903 #
18904 # GNU Libtool is free software; you can redistribute it and/or
18905 # modify it under the terms of the GNU General Public License as
18906 # published by the Free Software Foundation; either version 2 of
18907 # the License, or (at your option) any later version.
18908 #
18909 # As a special exception to the GNU General Public License,
18910 # if you distribute this file as part of a program or library that
18911 # is built using GNU Libtool, you may include this file under the
18912 # same distribution terms that you use for the rest of that program.
18913 #
18914 # GNU Libtool is distributed in the hope that it will be useful,
18915 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18916 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18917 # GNU General Public License for more details.
18918 #
18919 # You should have received a copy of the GNU General Public License
18920 # along with GNU Libtool; see the file COPYING. If not, a copy
18921 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18922 # obtained by writing to the Free Software Foundation, Inc.,
18923 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18924
18925
18926 # The names of the tagged configurations supported by this script.
18927 available_tags="FC "
18928
18929 # ### BEGIN LIBTOOL CONFIG
18930
18931 # Which release of libtool.m4 was used?
18932 macro_version=$macro_version
18933 macro_revision=$macro_revision
18934
18935 # Whether or not to build shared libraries.
18936 build_libtool_libs=$enable_shared
18937
18938 # Whether or not to build static libraries.
18939 build_old_libs=$enable_static
18940
18941 # What type of objects to build.
18942 pic_mode=$pic_mode
18943
18944 # Whether or not to optimize for fast installation.
18945 fast_install=$enable_fast_install
18946
18947 # Shell to use when invoking shell scripts.
18948 SHELL=$lt_SHELL
18949
18950 # An echo program that protects backslashes.
18951 ECHO=$lt_ECHO
18952
18953 # The host system.
18954 host_alias=$host_alias
18955 host=$host
18956 host_os=$host_os
18957
18958 # The build system.
18959 build_alias=$build_alias
18960 build=$build
18961 build_os=$build_os
18962
18963 # A sed program that does not truncate output.
18964 SED=$lt_SED
18965
18966 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18967 Xsed="\$SED -e 1s/^X//"
18968
18969 # A grep program that handles long lines.
18970 GREP=$lt_GREP
18971
18972 # An ERE matcher.
18973 EGREP=$lt_EGREP
18974
18975 # A literal string matcher.
18976 FGREP=$lt_FGREP
18977
18978 # A BSD- or MS-compatible name lister.
18979 NM=$lt_NM
18980
18981 # Whether we need soft or hard links.
18982 LN_S=$lt_LN_S
18983
18984 # What is the maximum length of a command?
18985 max_cmd_len=$max_cmd_len
18986
18987 # Object file suffix (normally "o").
18988 objext=$ac_objext
18989
18990 # Executable file suffix (normally "").
18991 exeext=$exeext
18992
18993 # whether the shell understands "unset".
18994 lt_unset=$lt_unset
18995
18996 # turn spaces into newlines.
18997 SP2NL=$lt_lt_SP2NL
18998
18999 # turn newlines into spaces.
19000 NL2SP=$lt_lt_NL2SP
19001
19002 # An object symbol dumper.
19003 OBJDUMP=$lt_OBJDUMP
19004
19005 # Method to check whether dependent libraries are shared objects.
19006 deplibs_check_method=$lt_deplibs_check_method
19007
19008 # Command to use when deplibs_check_method == "file_magic".
19009 file_magic_cmd=$lt_file_magic_cmd
19010
19011 # The archiver.
19012 AR=$lt_AR
19013 AR_FLAGS=$lt_AR_FLAGS
19014
19015 # A symbol stripping program.
19016 STRIP=$lt_STRIP
19017
19018 # Commands used to install an old-style archive.
19019 RANLIB=$lt_RANLIB
19020 old_postinstall_cmds=$lt_old_postinstall_cmds
19021 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19022
19023 # Whether to use a lock for old archive extraction.
19024 lock_old_archive_extraction=$lock_old_archive_extraction
19025
19026 # A C compiler.
19027 LTCC=$lt_CC
19028
19029 # LTCC compiler flags.
19030 LTCFLAGS=$lt_CFLAGS
19031
19032 # Take the output of nm and produce a listing of raw symbols and C names.
19033 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19034
19035 # Transform the output of nm in a proper C declaration.
19036 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19037
19038 # Transform the output of nm in a C name address pair.
19039 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19040
19041 # Transform the output of nm in a C name address pair when lib prefix is needed.
19042 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19043
19044 # The name of the directory that contains temporary libtool files.
19045 objdir=$objdir
19046
19047 # Used to examine libraries when file_magic_cmd begins with "file".
19048 MAGIC_CMD=$MAGIC_CMD
19049
19050 # Must we lock files when doing compilation?
19051 need_locks=$lt_need_locks
19052
19053 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19054 DSYMUTIL=$lt_DSYMUTIL
19055
19056 # Tool to change global to local symbols on Mac OS X.
19057 NMEDIT=$lt_NMEDIT
19058
19059 # Tool to manipulate fat objects and archives on Mac OS X.
19060 LIPO=$lt_LIPO
19061
19062 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19063 OTOOL=$lt_OTOOL
19064
19065 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19066 OTOOL64=$lt_OTOOL64
19067
19068 # Old archive suffix (normally "a").
19069 libext=$libext
19070
19071 # Shared library suffix (normally ".so").
19072 shrext_cmds=$lt_shrext_cmds
19073
19074 # The commands to extract the exported symbol list from a shared archive.
19075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19076
19077 # Variables whose values should be saved in libtool wrapper scripts and
19078 # restored at link time.
19079 variables_saved_for_relink=$lt_variables_saved_for_relink
19080
19081 # Do we need the "lib" prefix for modules?
19082 need_lib_prefix=$need_lib_prefix
19083
19084 # Do we need a version for libraries?
19085 need_version=$need_version
19086
19087 # Library versioning type.
19088 version_type=$version_type
19089
19090 # Shared library runtime path variable.
19091 runpath_var=$runpath_var
19092
19093 # Shared library path variable.
19094 shlibpath_var=$shlibpath_var
19095
19096 # Is shlibpath searched before the hard-coded library search path?
19097 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19098
19099 # Format of library name prefix.
19100 libname_spec=$lt_libname_spec
19101
19102 # List of archive names. First name is the real one, the rest are links.
19103 # The last name is the one that the linker finds with -lNAME
19104 library_names_spec=$lt_library_names_spec
19105
19106 # The coded name of the library, if different from the real name.
19107 soname_spec=$lt_soname_spec
19108
19109 # Permission mode override for installation of shared libraries.
19110 install_override_mode=$lt_install_override_mode
19111
19112 # Command to use after installation of a shared archive.
19113 postinstall_cmds=$lt_postinstall_cmds
19114
19115 # Command to use after uninstallation of a shared archive.
19116 postuninstall_cmds=$lt_postuninstall_cmds
19117
19118 # Commands used to finish a libtool library installation in a directory.
19119 finish_cmds=$lt_finish_cmds
19120
19121 # As "finish_cmds", except a single script fragment to be evaled but
19122 # not shown.
19123 finish_eval=$lt_finish_eval
19124
19125 # Whether we should hardcode library paths into libraries.
19126 hardcode_into_libs=$hardcode_into_libs
19127
19128 # Compile-time system search path for libraries.
19129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19130
19131 # Run-time system search path for libraries.
19132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19133
19134 # Whether dlopen is supported.
19135 dlopen_support=$enable_dlopen
19136
19137 # Whether dlopen of programs is supported.
19138 dlopen_self=$enable_dlopen_self
19139
19140 # Whether dlopen of statically linked programs is supported.
19141 dlopen_self_static=$enable_dlopen_self_static
19142
19143 # Commands to strip libraries.
19144 old_striplib=$lt_old_striplib
19145 striplib=$lt_striplib
19146
19147
19148 # The linker used to build libraries.
19149 LD=$lt_LD
19150
19151 # How to create reloadable object files.
19152 reload_flag=$lt_reload_flag
19153 reload_cmds=$lt_reload_cmds
19154
19155 # Commands used to build an old-style archive.
19156 old_archive_cmds=$lt_old_archive_cmds
19157
19158 # A language specific compiler.
19159 CC=$lt_compiler
19160
19161 # Is the compiler the GNU compiler?
19162 with_gcc=$GCC
19163
19164 # Compiler flag to turn off builtin functions.
19165 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19166
19167 # How to pass a linker flag through the compiler.
19168 wl=$lt_lt_prog_compiler_wl
19169
19170 # Additional compiler flags for building library objects.
19171 pic_flag=$lt_lt_prog_compiler_pic
19172
19173 # Compiler flag to prevent dynamic linking.
19174 link_static_flag=$lt_lt_prog_compiler_static
19175
19176 # Does compiler simultaneously support -c and -o options?
19177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19178
19179 # Whether or not to add -lc for building shared libraries.
19180 build_libtool_need_lc=$archive_cmds_need_lc
19181
19182 # Whether or not to disallow shared libs when runtime libs are static.
19183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19184
19185 # Compiler flag to allow reflexive dlopens.
19186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19187
19188 # Compiler flag to generate shared objects directly from archives.
19189 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19190
19191 # Whether the compiler copes with passing no objects directly.
19192 compiler_needs_object=$lt_compiler_needs_object
19193
19194 # Create an old-style archive from a shared archive.
19195 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19196
19197 # Create a temporary old-style archive to link instead of a shared archive.
19198 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19199
19200 # Commands used to build a shared archive.
19201 archive_cmds=$lt_archive_cmds
19202 archive_expsym_cmds=$lt_archive_expsym_cmds
19203
19204 # Commands used to build a loadable module if different from building
19205 # a shared archive.
19206 module_cmds=$lt_module_cmds
19207 module_expsym_cmds=$lt_module_expsym_cmds
19208
19209 # Whether we are building with GNU ld or not.
19210 with_gnu_ld=$lt_with_gnu_ld
19211
19212 # Flag that allows shared libraries with undefined symbols to be built.
19213 allow_undefined_flag=$lt_allow_undefined_flag
19214
19215 # Flag that enforces no undefined symbols.
19216 no_undefined_flag=$lt_no_undefined_flag
19217
19218 # Flag to hardcode \$libdir into a binary during linking.
19219 # This must work even if \$libdir does not exist
19220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19221
19222 # If ld is used when linking, flag to hardcode \$libdir into a binary
19223 # during linking. This must work even if \$libdir does not exist.
19224 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19225
19226 # Whether we need a single "-rpath" flag with a separated argument.
19227 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19228
19229 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19230 # DIR into the resulting binary.
19231 hardcode_direct=$hardcode_direct
19232
19233 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19234 # DIR into the resulting binary and the resulting library dependency is
19235 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19236 # library is relocated.
19237 hardcode_direct_absolute=$hardcode_direct_absolute
19238
19239 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19240 # into the resulting binary.
19241 hardcode_minus_L=$hardcode_minus_L
19242
19243 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19244 # into the resulting binary.
19245 hardcode_shlibpath_var=$hardcode_shlibpath_var
19246
19247 # Set to "yes" if building a shared library automatically hardcodes DIR
19248 # into the library and all subsequent libraries and executables linked
19249 # against it.
19250 hardcode_automatic=$hardcode_automatic
19251
19252 # Set to yes if linker adds runtime paths of dependent libraries
19253 # to runtime path list.
19254 inherit_rpath=$inherit_rpath
19255
19256 # Whether libtool must link a program against all its dependency libraries.
19257 link_all_deplibs=$link_all_deplibs
19258
19259 # Fix the shell variable \$srcfile for the compiler.
19260 fix_srcfile_path=$lt_fix_srcfile_path
19261
19262 # Set to "yes" if exported symbols are required.
19263 always_export_symbols=$always_export_symbols
19264
19265 # The commands to list exported symbols.
19266 export_symbols_cmds=$lt_export_symbols_cmds
19267
19268 # Symbols that should not be listed in the preloaded symbols.
19269 exclude_expsyms=$lt_exclude_expsyms
19270
19271 # Symbols that must always be exported.
19272 include_expsyms=$lt_include_expsyms
19273
19274 # Commands necessary for linking programs (against libraries) with templates.
19275 prelink_cmds=$lt_prelink_cmds
19276
19277 # Specify filename containing input files.
19278 file_list_spec=$lt_file_list_spec
19279
19280 # How to hardcode a shared library path into an executable.
19281 hardcode_action=$hardcode_action
19282
19283 # The directories searched by this compiler when creating a shared library.
19284 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19285
19286 # Dependencies to place before and after the objects being linked to
19287 # create a shared library.
19288 predep_objects=$lt_predep_objects
19289 postdep_objects=$lt_postdep_objects
19290 predeps=$lt_predeps
19291 postdeps=$lt_postdeps
19292
19293 # The library search path used internally by the compiler when linking
19294 # a shared library.
19295 compiler_lib_search_path=$lt_compiler_lib_search_path
19296
19297 # ### END LIBTOOL CONFIG
19298
19299 _LT_EOF
19300
19301 case $host_os in
19302 aix3*)
19303 cat <<\_LT_EOF >> "$cfgfile"
19304 # AIX sometimes has problems with the GCC collect2 program. For some
19305 # reason, if we set the COLLECT_NAMES environment variable, the problems
19306 # vanish in a puff of smoke.
19307 if test "X${COLLECT_NAMES+set}" != Xset; then
19308 COLLECT_NAMES=
19309 export COLLECT_NAMES
19310 fi
19311 _LT_EOF
19312 ;;
19313 esac
19314
19315
19316 ltmain="$ac_aux_dir/ltmain.sh"
19317
19318
19319 # We use sed instead of cat because bash on DJGPP gets confused if
19320 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19321 # text mode, it properly converts lines to CR/LF. This bash problem
19322 # is reportedly fixed, but why not run on old versions too?
19323 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19324 || (rm -f "$cfgfile"; exit 1)
19325
19326 case $xsi_shell in
19327 yes)
19328 cat << \_LT_EOF >> "$cfgfile"
19329
19330 # func_dirname file append nondir_replacement
19331 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19332 # otherwise set result to NONDIR_REPLACEMENT.
19333 func_dirname ()
19334 {
19335 case ${1} in
19336 */*) func_dirname_result="${1%/*}${2}" ;;
19337 * ) func_dirname_result="${3}" ;;
19338 esac
19339 }
19340
19341 # func_basename file
19342 func_basename ()
19343 {
19344 func_basename_result="${1##*/}"
19345 }
19346
19347 # func_dirname_and_basename file append nondir_replacement
19348 # perform func_basename and func_dirname in a single function
19349 # call:
19350 # dirname: Compute the dirname of FILE. If nonempty,
19351 # add APPEND to the result, otherwise set result
19352 # to NONDIR_REPLACEMENT.
19353 # value returned in "$func_dirname_result"
19354 # basename: Compute filename of FILE.
19355 # value retuned in "$func_basename_result"
19356 # Implementation must be kept synchronized with func_dirname
19357 # and func_basename. For efficiency, we do not delegate to
19358 # those functions but instead duplicate the functionality here.
19359 func_dirname_and_basename ()
19360 {
19361 case ${1} in
19362 */*) func_dirname_result="${1%/*}${2}" ;;
19363 * ) func_dirname_result="${3}" ;;
19364 esac
19365 func_basename_result="${1##*/}"
19366 }
19367
19368 # func_stripname prefix suffix name
19369 # strip PREFIX and SUFFIX off of NAME.
19370 # PREFIX and SUFFIX must not contain globbing or regex special
19371 # characters, hashes, percent signs, but SUFFIX may contain a leading
19372 # dot (in which case that matches only a dot).
19373 func_stripname ()
19374 {
19375 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19376 # positional parameters, so assign one to ordinary parameter first.
19377 func_stripname_result=${3}
19378 func_stripname_result=${func_stripname_result#"${1}"}
19379 func_stripname_result=${func_stripname_result%"${2}"}
19380 }
19381
19382 # func_opt_split
19383 func_opt_split ()
19384 {
19385 func_opt_split_opt=${1%%=*}
19386 func_opt_split_arg=${1#*=}
19387 }
19388
19389 # func_lo2o object
19390 func_lo2o ()
19391 {
19392 case ${1} in
19393 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19394 *) func_lo2o_result=${1} ;;
19395 esac
19396 }
19397
19398 # func_xform libobj-or-source
19399 func_xform ()
19400 {
19401 func_xform_result=${1%.*}.lo
19402 }
19403
19404 # func_arith arithmetic-term...
19405 func_arith ()
19406 {
19407 func_arith_result=$(( $* ))
19408 }
19409
19410 # func_len string
19411 # STRING may not start with a hyphen.
19412 func_len ()
19413 {
19414 func_len_result=${#1}
19415 }
19416
19417 _LT_EOF
19418 ;;
19419 *) # Bourne compatible functions.
19420 cat << \_LT_EOF >> "$cfgfile"
19421
19422 # func_dirname file append nondir_replacement
19423 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19424 # otherwise set result to NONDIR_REPLACEMENT.
19425 func_dirname ()
19426 {
19427 # Extract subdirectory from the argument.
19428 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19429 if test "X$func_dirname_result" = "X${1}"; then
19430 func_dirname_result="${3}"
19431 else
19432 func_dirname_result="$func_dirname_result${2}"
19433 fi
19434 }
19435
19436 # func_basename file
19437 func_basename ()
19438 {
19439 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19440 }
19441
19442
19443 # func_stripname prefix suffix name
19444 # strip PREFIX and SUFFIX off of NAME.
19445 # PREFIX and SUFFIX must not contain globbing or regex special
19446 # characters, hashes, percent signs, but SUFFIX may contain a leading
19447 # dot (in which case that matches only a dot).
19448 # func_strip_suffix prefix name
19449 func_stripname ()
19450 {
19451 case ${2} in
19452 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19453 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19454 esac
19455 }
19456
19457 # sed scripts:
19458 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19459 my_sed_long_arg='1s/^-[^=]*=//'
19460
19461 # func_opt_split
19462 func_opt_split ()
19463 {
19464 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19465 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19466 }
19467
19468 # func_lo2o object
19469 func_lo2o ()
19470 {
19471 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19472 }
19473
19474 # func_xform libobj-or-source
19475 func_xform ()
19476 {
19477 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19478 }
19479
19480 # func_arith arithmetic-term...
19481 func_arith ()
19482 {
19483 func_arith_result=`expr "$@"`
19484 }
19485
19486 # func_len string
19487 # STRING may not start with a hyphen.
19488 func_len ()
19489 {
19490 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19491 }
19492
19493 _LT_EOF
19494 esac
19495
19496 case $lt_shell_append in
19497 yes)
19498 cat << \_LT_EOF >> "$cfgfile"
19499
19500 # func_append var value
19501 # Append VALUE to the end of shell variable VAR.
19502 func_append ()
19503 {
19504 eval "$1+=\$2"
19505 }
19506 _LT_EOF
19507 ;;
19508 *)
19509 cat << \_LT_EOF >> "$cfgfile"
19510
19511 # func_append var value
19512 # Append VALUE to the end of shell variable VAR.
19513 func_append ()
19514 {
19515 eval "$1=\$$1\$2"
19516 }
19517
19518 _LT_EOF
19519 ;;
19520 esac
19521
19522
19523 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19524 || (rm -f "$cfgfile"; exit 1)
19525
19526 mv -f "$cfgfile" "$ofile" ||
19527 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19528 chmod +x "$ofile"
19529
19530
19531 cat <<_LT_EOF >> "$ofile"
19532
19533 # ### BEGIN LIBTOOL TAG CONFIG: FC
19534
19535 # The linker used to build libraries.
19536 LD=$lt_LD_FC
19537
19538 # How to create reloadable object files.
19539 reload_flag=$lt_reload_flag_FC
19540 reload_cmds=$lt_reload_cmds_FC
19541
19542 # Commands used to build an old-style archive.
19543 old_archive_cmds=$lt_old_archive_cmds_FC
19544
19545 # A language specific compiler.
19546 CC=$lt_compiler_FC
19547
19548 # Is the compiler the GNU compiler?
19549 with_gcc=$GCC_FC
19550
19551 # Compiler flag to turn off builtin functions.
19552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19553
19554 # How to pass a linker flag through the compiler.
19555 wl=$lt_lt_prog_compiler_wl_FC
19556
19557 # Additional compiler flags for building library objects.
19558 pic_flag=$lt_lt_prog_compiler_pic_FC
19559
19560 # Compiler flag to prevent dynamic linking.
19561 link_static_flag=$lt_lt_prog_compiler_static_FC
19562
19563 # Does compiler simultaneously support -c and -o options?
19564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19565
19566 # Whether or not to add -lc for building shared libraries.
19567 build_libtool_need_lc=$archive_cmds_need_lc_FC
19568
19569 # Whether or not to disallow shared libs when runtime libs are static.
19570 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19571
19572 # Compiler flag to allow reflexive dlopens.
19573 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19574
19575 # Compiler flag to generate shared objects directly from archives.
19576 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19577
19578 # Whether the compiler copes with passing no objects directly.
19579 compiler_needs_object=$lt_compiler_needs_object_FC
19580
19581 # Create an old-style archive from a shared archive.
19582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19583
19584 # Create a temporary old-style archive to link instead of a shared archive.
19585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19586
19587 # Commands used to build a shared archive.
19588 archive_cmds=$lt_archive_cmds_FC
19589 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19590
19591 # Commands used to build a loadable module if different from building
19592 # a shared archive.
19593 module_cmds=$lt_module_cmds_FC
19594 module_expsym_cmds=$lt_module_expsym_cmds_FC
19595
19596 # Whether we are building with GNU ld or not.
19597 with_gnu_ld=$lt_with_gnu_ld_FC
19598
19599 # Flag that allows shared libraries with undefined symbols to be built.
19600 allow_undefined_flag=$lt_allow_undefined_flag_FC
19601
19602 # Flag that enforces no undefined symbols.
19603 no_undefined_flag=$lt_no_undefined_flag_FC
19604
19605 # Flag to hardcode \$libdir into a binary during linking.
19606 # This must work even if \$libdir does not exist
19607 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19608
19609 # If ld is used when linking, flag to hardcode \$libdir into a binary
19610 # during linking. This must work even if \$libdir does not exist.
19611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19612
19613 # Whether we need a single "-rpath" flag with a separated argument.
19614 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19615
19616 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19617 # DIR into the resulting binary.
19618 hardcode_direct=$hardcode_direct_FC
19619
19620 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19621 # DIR into the resulting binary and the resulting library dependency is
19622 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19623 # library is relocated.
19624 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19625
19626 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19627 # into the resulting binary.
19628 hardcode_minus_L=$hardcode_minus_L_FC
19629
19630 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19631 # into the resulting binary.
19632 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19633
19634 # Set to "yes" if building a shared library automatically hardcodes DIR
19635 # into the library and all subsequent libraries and executables linked
19636 # against it.
19637 hardcode_automatic=$hardcode_automatic_FC
19638
19639 # Set to yes if linker adds runtime paths of dependent libraries
19640 # to runtime path list.
19641 inherit_rpath=$inherit_rpath_FC
19642
19643 # Whether libtool must link a program against all its dependency libraries.
19644 link_all_deplibs=$link_all_deplibs_FC
19645
19646 # Fix the shell variable \$srcfile for the compiler.
19647 fix_srcfile_path=$lt_fix_srcfile_path_FC
19648
19649 # Set to "yes" if exported symbols are required.
19650 always_export_symbols=$always_export_symbols_FC
19651
19652 # The commands to list exported symbols.
19653 export_symbols_cmds=$lt_export_symbols_cmds_FC
19654
19655 # Symbols that should not be listed in the preloaded symbols.
19656 exclude_expsyms=$lt_exclude_expsyms_FC
19657
19658 # Symbols that must always be exported.
19659 include_expsyms=$lt_include_expsyms_FC
19660
19661 # Commands necessary for linking programs (against libraries) with templates.
19662 prelink_cmds=$lt_prelink_cmds_FC
19663
19664 # Specify filename containing input files.
19665 file_list_spec=$lt_file_list_spec_FC
19666
19667 # How to hardcode a shared library path into an executable.
19668 hardcode_action=$hardcode_action_FC
19669
19670 # The directories searched by this compiler when creating a shared library.
19671 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19672
19673 # Dependencies to place before and after the objects being linked to
19674 # create a shared library.
19675 predep_objects=$lt_predep_objects_FC
19676 postdep_objects=$lt_postdep_objects_FC
19677 predeps=$lt_predeps_FC
19678 postdeps=$lt_postdeps_FC
19679
19680 # The library search path used internally by the compiler when linking
19681 # a shared library.
19682 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19683
19684 # ### END LIBTOOL TAG CONFIG: FC
19685 _LT_EOF
19686
19687 ;;
19688
19689 esac
19690 done # for ac_tag
19691
19692
19693 as_fn_exit 0
19694 _ACEOF
19695 ac_clean_files=$ac_clean_files_save
19696
19697 test $ac_write_fail = 0 ||
19698 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19699
19700
19701 # configure is writing to config.log, and then calls config.status.
19702 # config.status does its own redirection, appending to config.log.
19703 # Unfortunately, on DOS this fails, as config.log is still kept open
19704 # by configure, so config.status won't be able to write to it; its
19705 # output is simply discarded. So we exec the FD to /dev/null,
19706 # effectively closing config.log, so it can be properly (re)opened and
19707 # appended to by config.status. When coming back to configure, we
19708 # need to make the FD available again.
19709 if test "$no_create" != yes; then
19710 ac_cs_success=:
19711 ac_config_status_args=
19712 test "$silent" = yes &&
19713 ac_config_status_args="$ac_config_status_args --quiet"
19714 exec 5>/dev/null
19715 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19716 exec 5>>config.log
19717 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19718 # would make configure fail if this is the last instruction.
19719 $ac_cs_success || as_fn_exit 1
19720 fi
19721 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19723 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19724 fi
19725