]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/configure
Sync from git Libtool and regenerate.
[thirdparty/gcc.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU OpenMP Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU OpenMP Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 OMP_NEST_LOCK_25_KIND
605 OMP_LOCK_25_KIND
606 OMP_NEST_LOCK_25_ALIGN
607 OMP_NEST_LOCK_25_SIZE
608 OMP_LOCK_25_ALIGN
609 OMP_LOCK_25_SIZE
610 OMP_NEST_LOCK_KIND
611 OMP_LOCK_KIND
612 OMP_NEST_LOCK_ALIGN
613 OMP_NEST_LOCK_SIZE
614 OMP_LOCK_ALIGN
615 OMP_LOCK_SIZE
616 USE_FORTRAN_FALSE
617 USE_FORTRAN_TRUE
618 link_gomp
619 XLDFLAGS
620 XCFLAGS
621 config_path
622 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
624 OPT_LDFLAGS
625 SECTION_LDFLAGS
626 libtool_VERSION
627 ac_ct_FC
628 FCFLAGS
629 FC
630 MAINT
631 MAINTAINER_MODE_FALSE
632 MAINTAINER_MODE_TRUE
633 enable_static
634 enable_shared
635 CPP
636 OTOOL64
637 OTOOL
638 LIPO
639 NMEDIT
640 DSYMUTIL
641 OBJDUMP
642 LN_S
643 NM
644 ac_ct_DUMPBIN
645 DUMPBIN
646 LD
647 FGREP
648 EGREP
649 GREP
650 SED
651 LIBTOOL
652 BUILD_INFO_FALSE
653 BUILD_INFO_TRUE
654 PERL
655 RANLIB
656 AR
657 am__fastdepCC_FALSE
658 am__fastdepCC_TRUE
659 CCDEPMODE
660 AMDEPBACKSLASH
661 AMDEP_FALSE
662 AMDEP_TRUE
663 am__quote
664 am__include
665 DEPDIR
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
672 CC
673 toolexeclibdir
674 toolexecdir
675 multi_basedir
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
681 AWK
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 target_os
700 target_vendor
701 target_cpu
702 target
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 GENINSRC_FALSE
712 GENINSRC_TRUE
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_version_specific_runtime_libs
755 enable_generated_files_in_srcdir
756 enable_multilib
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 enable_libtool_lock
764 enable_maintainer_mode
765 enable_linux_futex
766 enable_tls
767 enable_symvers
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CPP
773 CPPFLAGS
774 FC
775 FCFLAGS
776 LDFLAGS
777 LIBS'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *) ac_optarg=yes ;;
842 esac
843
844 # Accept the important Cygnus configure options, so we can diagnose typos.
845
846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
849
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
854
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
859
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
866
867 --config-cache | -C)
868 cache_file=config.cache ;;
869
870 -datadir | --datadir | --datadi | --datad)
871 ac_prev=datadir ;;
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
874
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
881
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
897
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
902
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
907
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
923
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
932
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
936
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
943
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
948
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
954
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
961
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
966
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
971
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
978
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
990
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
995
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
999
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1003
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1007
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1016
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1021
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1028
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1035
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1052
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1057
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1062
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1066
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1072
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1083
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1088
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1093
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1100
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1105
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1108
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1111
1112 -with-* | --with-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=\$ac_optarg ;;
1127
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
1143
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1147
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1154
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1161
1162 -*) as_fn_error "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information."
1164 ;;
1165
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1172 esac
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1175
1176 *)
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1182 ;;
1183
1184 esac
1185 done
1186
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error "missing argument to $ac_option"
1190 fi
1191
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
1195 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 esac
1198 fi
1199
1200 # Check all directory arguments for consistency.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1205 do
1206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
1208 case $ac_val in
1209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1212 esac
1213 # Be sure to have absolute directory names.
1214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
1218 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1236 fi
1237 fi
1238
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242 test "$silent" = yes && exec 6>/dev/null
1243
1244
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 as_fn_error "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 as_fn_error "pwd does not report name of working directory"
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
1280 srcdir=$ac_confdir
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 srcdir=..
1283 fi
1284 else
1285 ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1294 pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
1319 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1372 _ACEOF
1373
1374 cat <<\_ACEOF
1375
1376 Program names:
1377 --program-prefix=PREFIX prepend PREFIX to installed program names
1378 --program-suffix=SUFFIX append SUFFIX to installed program names
1379 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380
1381 System types:
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 --target=TARGET configure for building compilers for TARGET [HOST]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-version-specific-runtime-libs
1399 Specify that runtime libraries should be installed
1400 in a compiler-specific directory [default=no]
1401 --enable-generated-files-in-srcdir
1402 put copies of generated files in source dir intended
1403 for creating source tarballs for users without
1404 texinfo bison or flex. [default=no]
1405 --enable-multilib build many library versions (default)
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing) to the casual installer
1415 --enable-linux-futex use the Linux futex system call [default=default]
1416 --enable-tls Use thread-local storage [default=yes]
1417 --enable-symvers=STYLE enables symbol versioning of the shared library
1418 [default=yes]
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CPP C preprocessor
1436 FC Fortran compiler command
1437 FCFLAGS Fortran compiler flags
1438
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to the package provider.
1443 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1444 General help using GNU software: <http://www.gnu.org/gethelp/>.
1445 _ACEOF
1446 ac_status=$?
1447 fi
1448
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1456
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *)
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1472
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 GNU OpenMP Runtime Library configure 1.0
1508 generated by GNU Autoconf 2.64
1509
1510 Copyright (C) 2009 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1515 fi
1516
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1520
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1525 {
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553 fi
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555 return $ac_retval
1556
1557 } # ac_fn_c_try_compile
1558
1559 # ac_fn_c_try_link LINENO
1560 # -----------------------
1561 # Try to link conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_link ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest$ac_exeext
1566 if { { ac_try="$ac_link"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest$ac_exeext && {
1585 test "$cross_compiling" = yes ||
1586 $as_test_x conftest$ac_exeext
1587 }; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594 fi
1595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597 # interfere with the next link command; also delete a directory that is
1598 # left behind by Apple's compiler. We do this before executing the actions.
1599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601 return $ac_retval
1602
1603 } # ac_fn_c_try_link
1604
1605 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606 # -------------------------------------------------------
1607 # Tests whether HEADER exists and can be compiled using the include files in
1608 # INCLUDES, setting the cache variable VAR accordingly.
1609 ac_fn_c_check_header_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615 $as_echo_n "(cached) " >&6
1616 else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 $4
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624 else
1625 eval "$3=no"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633
1634 } # ac_fn_c_check_header_compile
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } >/dev/null && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1670
1671 } # ac_fn_c_try_cpp
1672
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status
1708 fi
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 return $ac_retval
1712
1713 } # ac_fn_c_try_run
1714
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1730 #define $2 innocuous_$2
1731
1732 /* System header to define __stub macros and hopefully few prototypes,
1733 which can conflict with char $2 (); below.
1734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1735 <limits.h> exists even on freestanding compilers. */
1736
1737 #ifdef __STDC__
1738 # include <limits.h>
1739 #else
1740 # include <assert.h>
1741 #endif
1742
1743 #undef $2
1744
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1748 #ifdef __cplusplus
1749 extern "C"
1750 #endif
1751 char $2 ();
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1756 choke me
1757 #endif
1758
1759 int
1760 main ()
1761 {
1762 return $2 ();
1763 ;
1764 return 0;
1765 }
1766 _ACEOF
1767 if ac_fn_c_try_link "$LINENO"; then :
1768 eval "$3=yes"
1769 else
1770 eval "$3=no"
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext \
1773 conftest$ac_exeext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779
1780 } # ac_fn_c_check_func
1781
1782 # ac_fn_fc_try_compile LINENO
1783 # ---------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_fc_try_compile ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_fc_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814 fi
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1817
1818 } # ac_fn_fc_try_compile
1819
1820 # ac_fn_fc_try_link LINENO
1821 # ------------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_fc_try_link ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext conftest$ac_exeext
1827 if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_fc_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest$ac_exeext && {
1846 test "$cross_compiling" = yes ||
1847 $as_test_x conftest$ac_exeext
1848 }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=1
1855 fi
1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858 # interfere with the next link command; also delete a directory that is
1859 # left behind by Apple's compiler. We do this before executing the actions.
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 return $ac_retval
1863
1864 } # ac_fn_fc_try_link
1865
1866 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869 # the include files in INCLUDES and setting the cache variable VAR
1870 # accordingly.
1871 ac_fn_c_check_header_mongrel ()
1872 {
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 else
1884 # Is the header compilable?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886 $as_echo_n "checking $2 usability... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $4
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 ac_header_compiler=yes
1894 else
1895 ac_header_compiler=no
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899 $as_echo "$ac_header_compiler" >&6; }
1900
1901 # Is the header present?
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903 $as_echo_n "checking $2 presence... " >&6; }
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_cpp "$LINENO"; then :
1909 ac_header_preproc=yes
1910 else
1911 ac_header_preproc=no
1912 fi
1913 rm -f conftest.err conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915 $as_echo "$ac_header_preproc" >&6; }
1916
1917 # So? What about this header?
1918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1919 yes:no: )
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924 ;;
1925 no:yes:* )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1929 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1933 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936 ;;
1937 esac
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 eval "$3=\$ac_header_compiler"
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 fi
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950
1951 } # ac_fn_c_check_header_mongrel
1952
1953 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1954 # -------------------------------------------
1955 # Tests whether TYPE exists after having included INCLUDES, setting cache
1956 # variable VAR accordingly.
1957 ac_fn_c_check_type ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 eval "$3=no"
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $4
1969 int
1970 main ()
1971 {
1972 if (sizeof ($2))
1973 return 0;
1974 ;
1975 return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $4
1982 int
1983 main ()
1984 {
1985 if (sizeof (($2)))
1986 return 0;
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992
1993 else
1994 eval "$3=yes"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004
2005 } # ac_fn_c_check_type
2006
2007 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2008 # --------------------------------------------
2009 # Tries to find the compile-time value of EXPR in a program that includes
2010 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2011 # computed
2012 ac_fn_c_compute_int ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if test "$cross_compiling" = yes; then
2016 # Depending upon the size, compute the lo and hi bounds.
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) >= 0)];
2024 test_array [0] = 0
2025
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_lo=0 ac_mid=0
2032 while :; do
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main ()
2038 {
2039 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 test_array [0] = 0
2041
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 ac_hi=$ac_mid; break
2048 else
2049 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2050 if test $ac_lo -le $ac_mid; then
2051 ac_lo= ac_hi=
2052 break
2053 fi
2054 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 done
2058 else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main ()
2064 {
2065 static int test_array [1 - 2 * !(($2) < 0)];
2066 test_array [0] = 0
2067
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_hi=-1 ac_mid=-1
2074 while :; do
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 int
2079 main ()
2080 {
2081 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2082 test_array [0] = 0
2083
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_lo=$ac_mid; break
2090 else
2091 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2092 if test $ac_mid -le $ac_hi; then
2093 ac_lo= ac_hi=
2094 break
2095 fi
2096 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 else
2101 ac_lo= ac_hi=
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 # Binary search between lo and hi bounds.
2107 while test "x$ac_lo" != "x$ac_hi"; do
2108 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2111 $4
2112 int
2113 main ()
2114 {
2115 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 test_array [0] = 0
2117
2118 ;
2119 return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 ac_hi=$ac_mid
2124 else
2125 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 done
2129 case $ac_lo in #((
2130 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2131 '') ac_retval=1 ;;
2132 esac
2133 else
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $4
2137 static long int longval () { return $2; }
2138 static unsigned long int ulongval () { return $2; }
2139 #include <stdio.h>
2140 #include <stdlib.h>
2141 int
2142 main ()
2143 {
2144
2145 FILE *f = fopen ("conftest.val", "w");
2146 if (! f)
2147 return 1;
2148 if (($2) < 0)
2149 {
2150 long int i = longval ();
2151 if (i != ($2))
2152 return 1;
2153 fprintf (f, "%ld", i);
2154 }
2155 else
2156 {
2157 unsigned long int i = ulongval ();
2158 if (i != ($2))
2159 return 1;
2160 fprintf (f, "%lu", i);
2161 }
2162 /* Do not output a trailing newline, as this causes \r\n confusion
2163 on some platforms. */
2164 return ferror (f) || fclose (f) != 0;
2165
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_run "$LINENO"; then :
2171 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2172 else
2173 ac_retval=1
2174 fi
2175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2176 conftest.$ac_objext conftest.beam conftest.$ac_ext
2177 rm -f conftest.val
2178
2179 fi
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181 return $ac_retval
2182
2183 } # ac_fn_c_compute_int
2184 cat >config.log <<_ACEOF
2185 This file contains any messages produced by compilers while
2186 running configure, to aid debugging if configure makes a mistake.
2187
2188 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2189 generated by GNU Autoconf 2.64. Invocation command line was
2190
2191 $ $0 $@
2192
2193 _ACEOF
2194 exec 5>>config.log
2195 {
2196 cat <<_ASUNAME
2197 ## --------- ##
2198 ## Platform. ##
2199 ## --------- ##
2200
2201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2206
2207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2208 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2209
2210 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2211 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2213 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2214 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2215 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2216 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2217
2218 _ASUNAME
2219
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 $as_echo "PATH: $as_dir"
2226 done
2227 IFS=$as_save_IFS
2228
2229 } >&5
2230
2231 cat >&5 <<_ACEOF
2232
2233
2234 ## ----------- ##
2235 ## Core tests. ##
2236 ## ----------- ##
2237
2238 _ACEOF
2239
2240
2241 # Keep a trace of the command line.
2242 # Strip out --no-create and --no-recursion so they do not pile up.
2243 # Strip out --silent because we don't want to record it for future runs.
2244 # Also quote any args containing shell meta-characters.
2245 # Make two passes to allow for proper duplicate-argument suppression.
2246 ac_configure_args=
2247 ac_configure_args0=
2248 ac_configure_args1=
2249 ac_must_keep_next=false
2250 for ac_pass in 1 2
2251 do
2252 for ac_arg
2253 do
2254 case $ac_arg in
2255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2257 | -silent | --silent | --silen | --sile | --sil)
2258 continue ;;
2259 *\'*)
2260 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2261 esac
2262 case $ac_pass in
2263 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2264 2)
2265 as_fn_append ac_configure_args1 " '$ac_arg'"
2266 if test $ac_must_keep_next = true; then
2267 ac_must_keep_next=false # Got value, back to normal.
2268 else
2269 case $ac_arg in
2270 *=* | --config-cache | -C | -disable-* | --disable-* \
2271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2273 | -with-* | --with-* | -without-* | --without-* | --x)
2274 case "$ac_configure_args0 " in
2275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2276 esac
2277 ;;
2278 -* ) ac_must_keep_next=true ;;
2279 esac
2280 fi
2281 as_fn_append ac_configure_args " '$ac_arg'"
2282 ;;
2283 esac
2284 done
2285 done
2286 { ac_configure_args0=; unset ac_configure_args0;}
2287 { ac_configure_args1=; unset ac_configure_args1;}
2288
2289 # When interrupted or exit'd, cleanup temporary files, and complete
2290 # config.log. We remove comments because anyway the quotes in there
2291 # would cause problems or look ugly.
2292 # WARNING: Use '\'' to represent an apostrophe within the trap.
2293 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2294 trap 'exit_status=$?
2295 # Save into config.log some information that might help in debugging.
2296 {
2297 echo
2298
2299 cat <<\_ASBOX
2300 ## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##
2303 _ASBOX
2304 echo
2305 # The following way of writing the cache mishandles newlines in values,
2306 (
2307 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2308 eval ac_val=\$$ac_var
2309 case $ac_val in #(
2310 *${as_nl}*)
2311 case $ac_var in #(
2312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2313 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2314 esac
2315 case $ac_var in #(
2316 _ | IFS | as_nl) ;; #(
2317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2318 *) { eval $ac_var=; unset $ac_var;} ;;
2319 esac ;;
2320 esac
2321 done
2322 (set) 2>&1 |
2323 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2324 *${as_nl}ac_space=\ *)
2325 sed -n \
2326 "s/'\''/'\''\\\\'\'''\''/g;
2327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2328 ;; #(
2329 *)
2330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331 ;;
2332 esac |
2333 sort
2334 )
2335 echo
2336
2337 cat <<\_ASBOX
2338 ## ----------------- ##
2339 ## Output variables. ##
2340 ## ----------------- ##
2341 _ASBOX
2342 echo
2343 for ac_var in $ac_subst_vars
2344 do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2352
2353 if test -n "$ac_subst_files"; then
2354 cat <<\_ASBOX
2355 ## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##
2358 _ASBOX
2359 echo
2360 for ac_var in $ac_subst_files
2361 do
2362 eval ac_val=\$$ac_var
2363 case $ac_val in
2364 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365 esac
2366 $as_echo "$ac_var='\''$ac_val'\''"
2367 done | sort
2368 echo
2369 fi
2370
2371 if test -s confdefs.h; then
2372 cat <<\_ASBOX
2373 ## ----------- ##
2374 ## confdefs.h. ##
2375 ## ----------- ##
2376 _ASBOX
2377 echo
2378 cat confdefs.h
2379 echo
2380 fi
2381 test "$ac_signal" != 0 &&
2382 $as_echo "$as_me: caught signal $ac_signal"
2383 $as_echo "$as_me: exit $exit_status"
2384 } >&5
2385 rm -f core *.core core.conftest.* &&
2386 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2387 exit $exit_status
2388 ' 0
2389 for ac_signal in 1 2 13 15; do
2390 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 done
2392 ac_signal=0
2393
2394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2395 rm -f -r conftest* confdefs.h
2396
2397 $as_echo "/* confdefs.h */" > confdefs.h
2398
2399 # Predefined preprocessor variables.
2400
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_NAME "$PACKAGE_NAME"
2403 _ACEOF
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_STRING "$PACKAGE_STRING"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_URL "$PACKAGE_URL"
2423 _ACEOF
2424
2425
2426 # Let the site file select an alternate cache file if it wants to.
2427 # Prefer an explicitly selected file to automatically selected ones.
2428 ac_site_file1=NONE
2429 ac_site_file2=NONE
2430 if test -n "$CONFIG_SITE"; then
2431 ac_site_file1=$CONFIG_SITE
2432 elif test "x$prefix" != xNONE; then
2433 ac_site_file1=$prefix/share/config.site
2434 ac_site_file2=$prefix/etc/config.site
2435 else
2436 ac_site_file1=$ac_default_prefix/share/config.site
2437 ac_site_file2=$ac_default_prefix/etc/config.site
2438 fi
2439 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2440 do
2441 test "x$ac_site_file" = xNONE && continue
2442 if test -r "$ac_site_file"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2444 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2445 sed 's/^/| /' "$ac_site_file" >&5
2446 . "$ac_site_file"
2447 fi
2448 done
2449
2450 if test -r "$cache_file"; then
2451 # Some versions of bash will fail to source /dev/null (special
2452 # files actually), so we avoid doing that.
2453 if test -f "$cache_file"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2455 $as_echo "$as_me: loading cache $cache_file" >&6;}
2456 case $cache_file in
2457 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2458 *) . "./$cache_file";;
2459 esac
2460 fi
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2463 $as_echo "$as_me: creating cache $cache_file" >&6;}
2464 >$cache_file
2465 fi
2466
2467 # Check that the precious variables saved in the cache have kept the same
2468 # value.
2469 ac_cache_corrupted=false
2470 for ac_var in $ac_precious_vars; do
2471 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2472 eval ac_new_set=\$ac_env_${ac_var}_set
2473 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2474 eval ac_new_val=\$ac_env_${ac_var}_value
2475 case $ac_old_set,$ac_new_set in
2476 set,)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,set)
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2484 ,);;
2485 *)
2486 if test "x$ac_old_val" != "x$ac_new_val"; then
2487 # differences in whitespace do not lead to failure.
2488 ac_old_val_w=`echo x $ac_old_val`
2489 ac_new_val_w=`echo x $ac_new_val`
2490 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2492 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2493 ac_cache_corrupted=:
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2496 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2497 eval $ac_var=\$ac_old_val
2498 fi
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2500 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2502 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2503 fi;;
2504 esac
2505 # Pass precious variables to config.status.
2506 if test "$ac_new_set" = set; then
2507 case $ac_new_val in
2508 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2509 *) ac_arg=$ac_var=$ac_new_val ;;
2510 esac
2511 case " $ac_configure_args " in
2512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2513 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2514 esac
2515 fi
2516 done
2517 if $ac_cache_corrupted; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2521 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2522 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2523 fi
2524 ## -------------------- ##
2525 ## Main body of script. ##
2526 ## -------------------- ##
2527
2528 ac_ext=c
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533
2534
2535
2536
2537
2538 ac_config_headers="$ac_config_headers config.h"
2539
2540
2541 # -------
2542 # Options
2543 # -------
2544
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2546 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2547 # Check whether --enable-version-specific-runtime-libs was given.
2548 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2549 enableval=$enable_version_specific_runtime_libs;
2550 case "$enableval" in
2551 yes|no) ;;
2552 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2553 esac
2554
2555 else
2556 enable_version_specific_runtime_libs=no
2557 fi
2558
2559
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2561 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2562
2563 # We would like our source tree to be readonly. However when releases or
2564 # pre-releases are generated, the flex/bison generated files as well as the
2565 # various formats of manuals need to be included along with the rest of the
2566 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2567 # just that.
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2569 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2570 # Check whether --enable-generated-files-in-srcdir was given.
2571 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2572 enableval=$enable_generated_files_in_srcdir;
2573 case "$enableval" in
2574 yes|no) ;;
2575 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2576 esac
2577
2578 else
2579 enable_generated_files_in_srcdir=no
2580 fi
2581
2582
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2584 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2585 if test "$enable_generated_files_in_srcdir" = yes; then
2586 GENINSRC_TRUE=
2587 GENINSRC_FALSE='#'
2588 else
2589 GENINSRC_TRUE='#'
2590 GENINSRC_FALSE=
2591 fi
2592
2593
2594
2595 # -------
2596 # -------
2597
2598 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2599 #
2600 # You will slowly go insane if you do not grok the following fact: when
2601 # building this library, the top-level /target/ becomes the library's /host/.
2602 #
2603 # configure then causes --target to default to --host, exactly like any
2604 # other package using autoconf. Therefore, 'target' and 'host' will
2605 # always be the same. This makes sense both for native and cross compilers
2606 # just think about it for a little while. :-)
2607 #
2608 # Also, if this library is being configured as part of a cross compiler, the
2609 # top-level configure script will pass the "real" host as $with_cross_host.
2610 #
2611 # Do not delete or change the following two lines. For why, see
2612 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2613 ac_aux_dir=
2614 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2615 for ac_t in install-sh install.sh shtool; do
2616 if test -f "$ac_dir/$ac_t"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/$ac_t -c"
2619 break 2
2620 fi
2621 done
2622 done
2623 if test -z "$ac_aux_dir"; then
2624 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2625 fi
2626
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634
2635
2636 # Make sure we can run config.sub.
2637 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641 $as_echo_n "checking build system type... " >&6; }
2642 if test "${ac_cv_build+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 ac_build_alias=$build_alias
2646 test "x$ac_build_alias" = x &&
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648 test "x$ac_build_alias" = x &&
2649 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2650 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2651 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2652
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655 $as_echo "$ac_cv_build" >&6; }
2656 case $ac_cv_build in
2657 *-*-*) ;;
2658 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2659 esac
2660 build=$ac_cv_build
2661 ac_save_IFS=$IFS; IFS='-'
2662 set x $ac_cv_build
2663 shift
2664 build_cpu=$1
2665 build_vendor=$2
2666 shift; shift
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2669 build_os=$*
2670 IFS=$ac_save_IFS
2671 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2672
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675 $as_echo_n "checking host system type... " >&6; }
2676 if test "${ac_cv_host+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test "x$host_alias" = x; then
2680 ac_cv_host=$ac_cv_build
2681 else
2682 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2684 fi
2685
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688 $as_echo "$ac_cv_host" >&6; }
2689 case $ac_cv_host in
2690 *-*-*) ;;
2691 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2692 esac
2693 host=$ac_cv_host
2694 ac_save_IFS=$IFS; IFS='-'
2695 set x $ac_cv_host
2696 shift
2697 host_cpu=$1
2698 host_vendor=$2
2699 shift; shift
2700 # Remember, the first character of IFS is used to create $*,
2701 # except with old shells:
2702 host_os=$*
2703 IFS=$ac_save_IFS
2704 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2705
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2708 $as_echo_n "checking target system type... " >&6; }
2709 if test "${ac_cv_target+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test "x$target_alias" = x; then
2713 ac_cv_target=$ac_cv_host
2714 else
2715 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2716 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2717 fi
2718
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2721 $as_echo "$ac_cv_target" >&6; }
2722 case $ac_cv_target in
2723 *-*-*) ;;
2724 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2725 esac
2726 target=$ac_cv_target
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_target
2729 shift
2730 target_cpu=$1
2731 target_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 target_os=$*
2736 IFS=$ac_save_IFS
2737 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2738
2739
2740 # The aliases save the names the user supplied, while $host etc.
2741 # will get canonicalized.
2742 test -n "$target_alias" &&
2743 test "$program_prefix$program_suffix$program_transform_name" = \
2744 NONENONEs,x,x, &&
2745 program_prefix=${target_alias}-
2746
2747 target_alias=${target_alias-$host_alias}
2748
2749 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2750 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2751 # 1.9.0: minimum required version
2752 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2753 # of other PACKAGE_* variables will, however, and there's nothing
2754 # we can do about that; they come from AC_INIT).
2755 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2756 # file in the top srcdir, etc, etc), so stop complaining.
2757 # -Wall: turns on all automake warnings...
2758 # -Wno-portability: ...except this one, since GNU make is required.
2759 # -Wno-override: ... and this one, since we do want this in testsuite.
2760 am__api_version='1.11'
2761
2762 # Find a good install program. We prefer a C program (faster),
2763 # so one script is as good as another. But avoid the broken or
2764 # incompatible versions:
2765 # SysV /etc/install, /usr/sbin/install
2766 # SunOS /usr/etc/install
2767 # IRIX /sbin/install
2768 # AIX /bin/install
2769 # AmigaOS /C/install, which installs bootblocks on floppy discs
2770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2773 # OS/2's system install, which has a completely different semantic
2774 # ./install, which can be erroneously created by make from ./install.sh.
2775 # Reject install programs that cannot install multiple files.
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2777 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2778 if test -z "$INSTALL"; then
2779 if test "${ac_cv_path_install+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 # Account for people who put trailing slashes in PATH elements.
2788 case $as_dir/ in #((
2789 ./ | .// | /[cC]/* | \
2790 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2791 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2792 /usr/ucb/* ) ;;
2793 *)
2794 # OSF1 and SCO ODT 3.0 have their own names for install.
2795 # Don't use installbsd from OSF since it installs stuff as root
2796 # by default.
2797 for ac_prog in ginstall scoinst install; do
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2800 if test $ac_prog = install &&
2801 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2802 # AIX install. It has an incompatible calling convention.
2803 :
2804 elif test $ac_prog = install &&
2805 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2806 # program-specific install script used by HP pwplus--don't use.
2807 :
2808 else
2809 rm -rf conftest.one conftest.two conftest.dir
2810 echo one > conftest.one
2811 echo two > conftest.two
2812 mkdir conftest.dir
2813 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2814 test -s conftest.one && test -s conftest.two &&
2815 test -s conftest.dir/conftest.one &&
2816 test -s conftest.dir/conftest.two
2817 then
2818 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2819 break 3
2820 fi
2821 fi
2822 fi
2823 done
2824 done
2825 ;;
2826 esac
2827
2828 done
2829 IFS=$as_save_IFS
2830
2831 rm -rf conftest.one conftest.two conftest.dir
2832
2833 fi
2834 if test "${ac_cv_path_install+set}" = set; then
2835 INSTALL=$ac_cv_path_install
2836 else
2837 # As a last resort, use the slow shell script. Don't cache a
2838 # value for INSTALL within a source directory, because that will
2839 # break other packages using the cache if that directory is
2840 # removed, or if the value is a relative name.
2841 INSTALL=$ac_install_sh
2842 fi
2843 fi
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2845 $as_echo "$INSTALL" >&6; }
2846
2847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2848 # It thinks the first close brace ends the variable substitution.
2849 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2850
2851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2852
2853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2854
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2856 $as_echo_n "checking whether build environment is sane... " >&6; }
2857 # Just in case
2858 sleep 1
2859 echo timestamp > conftest.file
2860 # Reject unsafe characters in $srcdir or the absolute working directory
2861 # name. Accept space and tab only in the latter.
2862 am_lf='
2863 '
2864 case `pwd` in
2865 *[\\\"\#\$\&\'\`$am_lf]*)
2866 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2867 esac
2868 case $srcdir in
2869 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2870 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2871 esac
2872
2873 # Do `set' in a subshell so we don't clobber the current shell's
2874 # arguments. Must try -L first in case configure is actually a
2875 # symlink; some systems play weird games with the mod time of symlinks
2876 # (eg FreeBSD returns the mod time of the symlink's containing
2877 # directory).
2878 if (
2879 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2880 if test "$*" = "X"; then
2881 # -L didn't work.
2882 set X `ls -t "$srcdir/configure" conftest.file`
2883 fi
2884 rm -f conftest.file
2885 if test "$*" != "X $srcdir/configure conftest.file" \
2886 && test "$*" != "X conftest.file $srcdir/configure"; then
2887
2888 # If neither matched, then we have a broken ls. This can happen
2889 # if, for instance, CONFIG_SHELL is bash and it inherits a
2890 # broken ls alias from the environment. This has actually
2891 # happened. Such a system could not be considered "sane".
2892 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2893 alias in your environment" "$LINENO" 5
2894 fi
2895
2896 test "$2" = conftest.file
2897 )
2898 then
2899 # Ok.
2900 :
2901 else
2902 as_fn_error "newly created file is older than distributed files!
2903 Check your system clock" "$LINENO" 5
2904 fi
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906 $as_echo "yes" >&6; }
2907 test "$program_prefix" != NONE &&
2908 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2909 # Use a double $ so make ignores it.
2910 test "$program_suffix" != NONE &&
2911 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2912 # Double any \ or $.
2913 # By default was `s,x,x', remove it if useless.
2914 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2915 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2916
2917 # expand $ac_aux_dir to an absolute path
2918 am_aux_dir=`cd $ac_aux_dir && pwd`
2919
2920 if test x"${MISSING+set}" != xset; then
2921 case $am_aux_dir in
2922 *\ * | *\ *)
2923 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2924 *)
2925 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2926 esac
2927 fi
2928 # Use eval to expand $SHELL
2929 if eval "$MISSING --run true"; then
2930 am_missing_run="$MISSING --run "
2931 else
2932 am_missing_run=
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2934 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2935 fi
2936
2937 if test x"${install_sh}" != xset; then
2938 case $am_aux_dir in
2939 *\ * | *\ *)
2940 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2941 *)
2942 install_sh="\${SHELL} $am_aux_dir/install-sh"
2943 esac
2944 fi
2945
2946 # Installed binaries are usually stripped using `strip' when the user
2947 # run `make install-strip'. However `strip' might not be the right
2948 # tool to use in cross-compilation environments, therefore Automake
2949 # will honor the `STRIP' environment variable to overrule this program.
2950 if test "$cross_compiling" != no; then
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}strip; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if test "${ac_cv_prog_STRIP+set}" = set; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 if test -n "$STRIP"; then
2960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973 done
2974 done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 STRIP=$ac_cv_prog_STRIP
2980 if test -n "$STRIP"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2982 $as_echo "$STRIP" >&6; }
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989 fi
2990 if test -z "$ac_cv_prog_STRIP"; then
2991 ac_ct_STRIP=$STRIP
2992 # Extract the first word of "strip", so it can be a program name with args.
2993 set dummy strip; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2998 else
2999 if test -n "$ac_ct_STRIP"; then
3000 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_ac_ct_STRIP="strip"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 fi
3018 fi
3019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3020 if test -n "$ac_ct_STRIP"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3022 $as_echo "$ac_ct_STRIP" >&6; }
3023 else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 fi
3027
3028 if test "x$ac_ct_STRIP" = x; then
3029 STRIP=":"
3030 else
3031 case $cross_compiling:$ac_tool_warned in
3032 yes:)
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037 STRIP=$ac_ct_STRIP
3038 fi
3039 else
3040 STRIP="$ac_cv_prog_STRIP"
3041 fi
3042
3043 fi
3044 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3047 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3048 if test -z "$MKDIR_P"; then
3049 if test "${ac_cv_path_mkdir+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_prog in mkdir gmkdir; do
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3060 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3061 'mkdir (GNU coreutils) '* | \
3062 'mkdir (coreutils) '* | \
3063 'mkdir (fileutils) '4.1*)
3064 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3065 break 3;;
3066 esac
3067 done
3068 done
3069 done
3070 IFS=$as_save_IFS
3071
3072 fi
3073
3074 if test "${ac_cv_path_mkdir+set}" = set; then
3075 MKDIR_P="$ac_cv_path_mkdir -p"
3076 else
3077 # As a last resort, use the slow shell script. Don't cache a
3078 # value for MKDIR_P within a source directory, because that will
3079 # break other packages using the cache if that directory is
3080 # removed, or if the value is a relative name.
3081 test -d ./--version && rmdir ./--version
3082 MKDIR_P="$ac_install_sh -d"
3083 fi
3084 fi
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3086 $as_echo "$MKDIR_P" >&6; }
3087
3088 mkdir_p="$MKDIR_P"
3089 case $mkdir_p in
3090 [\\/$]* | ?:[\\/]*) ;;
3091 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3092 esac
3093
3094 for ac_prog in gawk mawk nawk awk
3095 do
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy $ac_prog; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_AWK+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$AWK"; then
3104 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_AWK="$ac_prog"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 fi
3122 fi
3123 AWK=$ac_cv_prog_AWK
3124 if test -n "$AWK"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3126 $as_echo "$AWK" >&6; }
3127 else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 fi
3131
3132
3133 test -n "$AWK" && break
3134 done
3135
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3137 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3138 set x ${MAKE-make}
3139 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3140 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 cat >conftest.make <<\_ACEOF
3144 SHELL = /bin/sh
3145 all:
3146 @echo '@@@%%%=$(MAKE)=@@@%%%'
3147 _ACEOF
3148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3149 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3150 *@@@%%%=?*=@@@%%%*)
3151 eval ac_cv_prog_make_${ac_make}_set=yes;;
3152 *)
3153 eval ac_cv_prog_make_${ac_make}_set=no;;
3154 esac
3155 rm -f conftest.make
3156 fi
3157 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3160 SET_MAKE=
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 SET_MAKE="MAKE=${MAKE-make}"
3165 fi
3166
3167 rm -rf .tst 2>/dev/null
3168 mkdir .tst 2>/dev/null
3169 if test -d .tst; then
3170 am__leading_dot=.
3171 else
3172 am__leading_dot=_
3173 fi
3174 rmdir .tst 2>/dev/null
3175
3176 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3177 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3178 # is not polluted with repeated "-I."
3179 am__isrc=' -I$(srcdir)'
3180 # test to see if srcdir already configured
3181 if test -f $srcdir/config.status; then
3182 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3183 fi
3184 fi
3185
3186 # test whether we have cygpath
3187 if test -z "$CYGPATH_W"; then
3188 if (cygpath --version) >/dev/null 2>/dev/null; then
3189 CYGPATH_W='cygpath -w'
3190 else
3191 CYGPATH_W=echo
3192 fi
3193 fi
3194
3195
3196 # Define the identity of the package.
3197 PACKAGE='libgomp'
3198 VERSION='1.0'
3199
3200
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE "$PACKAGE"
3203 _ACEOF
3204
3205
3206 cat >>confdefs.h <<_ACEOF
3207 #define VERSION "$VERSION"
3208 _ACEOF
3209
3210 # Some tools Automake needs.
3211
3212 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3213
3214
3215 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3216
3217
3218 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3219
3220
3221 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3222
3223
3224 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3225
3226 # We need awk for the "check" target. The system "awk" is bad on
3227 # some platforms.
3228 # Always define AMTAR for backward compatibility.
3229
3230 AMTAR=${AMTAR-"${am_missing_run}tar"}
3231
3232 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3233
3234
3235
3236
3237
3238 # Default to --enable-multilib
3239 # Check whether --enable-multilib was given.
3240 if test "${enable_multilib+set}" = set; then :
3241 enableval=$enable_multilib; case "$enableval" in
3242 yes) multilib=yes ;;
3243 no) multilib=no ;;
3244 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3245 esac
3246 else
3247 multilib=yes
3248 fi
3249
3250
3251 # We may get other options which we leave undocumented:
3252 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3253 # See config-ml.in if you want the gory details.
3254
3255 if test "$srcdir" = "."; then
3256 if test "$with_target_subdir" != "."; then
3257 multi_basedir="$srcdir/$with_multisrctop../.."
3258 else
3259 multi_basedir="$srcdir/$with_multisrctop.."
3260 fi
3261 else
3262 multi_basedir="$srcdir/.."
3263 fi
3264
3265
3266 # Even if the default multilib is not a cross compilation,
3267 # it may be that some of the other multilibs are.
3268 if test $cross_compiling = no && test $multilib = yes \
3269 && test "x${with_multisubdir}" != x ; then
3270 cross_compiling=maybe
3271 fi
3272
3273 ac_config_commands="$ac_config_commands default-1"
3274
3275
3276 # Calculate toolexeclibdir
3277 # Also toolexecdir, though it's only used in toolexeclibdir
3278 case ${enable_version_specific_runtime_libs} in
3279 yes)
3280 # Need the gcc compiler version to know where to install libraries
3281 # and header files if --enable-version-specific-runtime-libs option
3282 # is selected.
3283 toolexecdir='$(libdir)/gcc/$(target_alias)'
3284 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3285 ;;
3286 no)
3287 if test -n "$with_cross_host" &&
3288 test x"$with_cross_host" != x"no"; then
3289 # Install a library built with a cross compiler in tooldir, not libdir.
3290 toolexecdir='$(exec_prefix)/$(target_alias)'
3291 toolexeclibdir='$(toolexecdir)/lib'
3292 else
3293 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3294 toolexeclibdir='$(libdir)'
3295 fi
3296 multi_os_directory=`$CC -print-multi-os-directory`
3297 case $multi_os_directory in
3298 .) ;; # Avoid trailing /.
3299 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3300 esac
3301 ;;
3302 esac
3303
3304
3305
3306 # Check the compiler.
3307 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3308 # We must force CC to /not/ be precious variables; otherwise
3309 # the wrong, non-multilib-adjusted value will be used in multilibs.
3310 # As a side effect, we have to subst CFLAGS ourselves.
3311
3312
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if test "${ac_cv_prog_CC+set}" = set; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$ac_cv_prog_CC"; then
3359 ac_ct_CC=$CC
3360 # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_ac_ct_CC="gcc"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396 if test "x$ac_ct_CC" = x; then
3397 CC=""
3398 else
3399 case $cross_compiling:$ac_tool_warned in
3400 yes:)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3404 esac
3405 CC=$ac_ct_CC
3406 fi
3407 else
3408 CC="$ac_cv_prog_CC"
3409 fi
3410
3411 if test -z "$CC"; then
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 ac_cv_prog_CC="${ac_tool_prefix}cc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3433 fi
3434 done
3435 done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450 fi
3451 fi
3452 if test -z "$CC"; then
3453 # Extract the first word of "cc", so it can be a program name with args.
3454 set dummy cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463 ac_prog_rejected=no
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472 ac_prog_rejected=yes
3473 continue
3474 fi
3475 ac_cv_prog_CC="cc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3478 fi
3479 done
3480 done
3481 IFS=$as_save_IFS
3482
3483 if test $ac_prog_rejected = yes; then
3484 # We found a bogon in the path, so make sure we never use it.
3485 set dummy $ac_cv_prog_CC
3486 shift
3487 if test $# != 0; then
3488 # We chose a different compiler from the bogus one.
3489 # However, it has the same basename, so the bogon will be chosen
3490 # first if we set CC to just the basename; use the full file name.
3491 shift
3492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3493 fi
3494 fi
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507 fi
3508 if test -z "$CC"; then
3509 if test -n "$ac_tool_prefix"; then
3510 for ac_prog in cl.exe
3511 do
3512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_CC+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533 done
3534 done
3535 IFS=$as_save_IFS
3536
3537 fi
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548
3549 test -n "$CC" && break
3550 done
3551 fi
3552 if test -z "$CC"; then
3553 ac_ct_CC=$CC
3554 for ac_prog in cl.exe
3555 do
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$ac_ct_CC"; then
3564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_ac_ct_CC="$ac_prog"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577 done
3578 done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 $as_echo "$ac_ct_CC" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3591
3592
3593 test -n "$ac_ct_CC" && break
3594 done
3595
3596 if test "x$ac_ct_CC" = x; then
3597 CC=""
3598 else
3599 case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605 CC=$ac_ct_CC
3606 fi
3607 fi
3608
3609 fi
3610
3611
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error "no acceptable C compiler found in \$PATH
3615 See \`config.log' for more details." "$LINENO" 5; }
3616
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3619 set X $ac_compile
3620 ac_compiler=$2
3621 for ac_option in --version -v -V -qversion; do
3622 { { ac_try="$ac_compiler $ac_option >&5"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3630 ac_status=$?
3631 if test -s conftest.err; then
3632 sed '10a\
3633 ... rest of stderr output deleted ...
3634 10q' conftest.err >conftest.er1
3635 cat conftest.er1 >&5
3636 rm -f conftest.er1 conftest.err
3637 fi
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }
3640 done
3641
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 ac_clean_files_save=$ac_clean_files
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3655 # Try to create an executable without -o first, disregard a.out.
3656 # It will help us diagnose broken compilers, and finding out an intuition
3657 # of exeext.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3659 $as_echo_n "checking for C compiler default output file name... " >&6; }
3660 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3661
3662 # The possible output files:
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3664
3665 ac_rmfiles=
3666 for ac_file in $ac_files
3667 do
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3671 esac
3672 done
3673 rm -f $ac_rmfiles
3674
3675 if { { ac_try="$ac_link_default"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_link_default") 2>&5
3683 ac_status=$?
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; then :
3686 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3687 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3688 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3689 # so that the user can short-circuit this test for compilers unknown to
3690 # Autoconf.
3691 for ac_file in $ac_files ''
3692 do
3693 test -f "$ac_file" || continue
3694 case $ac_file in
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3696 ;;
3697 [ab].out )
3698 # We found the default executable, but exeext='' is most
3699 # certainly right.
3700 break;;
3701 *.* )
3702 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3703 then :; else
3704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705 fi
3706 # We set ac_cv_exeext here because the later test for it is not
3707 # safe: cross compilers may not add the suffix if given an `-o'
3708 # argument, so we may need to know it at that point already.
3709 # Even if this section looks crufty: it has the advantage of
3710 # actually working.
3711 break;;
3712 * )
3713 break;;
3714 esac
3715 done
3716 test "$ac_cv_exeext" = no && ac_cv_exeext=
3717
3718 else
3719 ac_file=''
3720 fi
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3722 $as_echo "$ac_file" >&6; }
3723 if test -z "$ac_file"; then :
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 { as_fn_set_status 77
3730 as_fn_error "C compiler cannot create executables
3731 See \`config.log' for more details." "$LINENO" 5; }; }
3732 fi
3733 ac_exeext=$ac_cv_exeext
3734
3735 # Check that the compiler produces executables we can run. If not, either
3736 # the compiler is broken, or we cross compile.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3738 $as_echo_n "checking whether the C compiler works... " >&6; }
3739 # If not cross compiling, check that we can run a simple program.
3740 if test "$cross_compiling" != yes; then
3741 if { ac_try='./$ac_file'
3742 { { case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_try") 2>&5
3749 ac_status=$?
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }; }; then
3752 cross_compiling=no
3753 else
3754 if test "$cross_compiling" = maybe; then
3755 cross_compiling=yes
3756 else
3757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error "cannot run C compiled programs.
3760 If you meant to cross compile, use \`--host'.
3761 See \`config.log' for more details." "$LINENO" 5; }
3762 fi
3763 fi
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766 $as_echo "yes" >&6; }
3767
3768 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3769 ac_clean_files=$ac_clean_files_save
3770 # Check that the compiler produces executables we can run. If not, either
3771 # the compiler is broken, or we cross compile.
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3773 $as_echo_n "checking whether we are cross compiling... " >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3775 $as_echo "$cross_compiling" >&6; }
3776
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3778 $as_echo_n "checking for suffix of executables... " >&6; }
3779 if { { ac_try="$ac_link"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_link") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; then :
3790 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3791 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3792 # work properly (i.e., refer to `conftest.exe'), while it won't with
3793 # `rm'.
3794 for ac_file in conftest.exe conftest conftest.*; do
3795 test -f "$ac_file" || continue
3796 case $ac_file in
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3798 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3799 break;;
3800 * ) break;;
3801 esac
3802 done
3803 else
3804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error "cannot compute suffix of executables: cannot compile and link
3807 See \`config.log' for more details." "$LINENO" 5; }
3808 fi
3809 rm -f conftest$ac_cv_exeext
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3811 $as_echo "$ac_cv_exeext" >&6; }
3812
3813 rm -f conftest.$ac_ext
3814 EXEEXT=$ac_cv_exeext
3815 ac_exeext=$EXEEXT
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3817 $as_echo_n "checking for suffix of object files... " >&6; }
3818 if test "${ac_cv_objext+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823
3824 int
3825 main ()
3826 {
3827
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.o conftest.obj
3833 if { { ac_try="$ac_compile"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_compile") 2>&5
3841 ac_status=$?
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; then :
3844 for ac_file in conftest.o conftest.obj conftest.*; do
3845 test -f "$ac_file" || continue;
3846 case $ac_file in
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3848 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3849 break;;
3850 esac
3851 done
3852 else
3853 $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error "cannot compute suffix of object files: cannot compile
3859 See \`config.log' for more details." "$LINENO" 5; }
3860 fi
3861 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3864 $as_echo "$ac_cv_objext" >&6; }
3865 OBJEXT=$ac_cv_objext
3866 ac_objext=$OBJEXT
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3868 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3869 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874
3875 int
3876 main ()
3877 {
3878 #ifndef __GNUC__
3879 choke me
3880 #endif
3881
3882 ;
3883 return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_compiler_gnu=yes
3888 else
3889 ac_compiler_gnu=no
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3893
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3896 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3897 if test $ac_compiler_gnu = yes; then
3898 GCC=yes
3899 else
3900 GCC=
3901 fi
3902 ac_test_CFLAGS=${CFLAGS+set}
3903 ac_save_CFLAGS=$CFLAGS
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3905 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3906 if test "${ac_cv_prog_cc_g+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 ac_save_c_werror_flag=$ac_c_werror_flag
3910 ac_c_werror_flag=yes
3911 ac_cv_prog_cc_g=no
3912 CFLAGS="-g"
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915
3916 int
3917 main ()
3918 {
3919
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_cv_prog_cc_g=yes
3926 else
3927 CFLAGS=""
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930
3931 int
3932 main ()
3933 {
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940
3941 else
3942 ac_c_werror_flag=$ac_save_c_werror_flag
3943 CFLAGS="-g"
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946
3947 int
3948 main ()
3949 {
3950
3951 ;
3952 return 0;
3953 }
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956 ac_cv_prog_cc_g=yes
3957 fi
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 fi
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_c_werror_flag=$ac_save_c_werror_flag
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3966 $as_echo "$ac_cv_prog_cc_g" >&6; }
3967 if test "$ac_test_CFLAGS" = set; then
3968 CFLAGS=$ac_save_CFLAGS
3969 elif test $ac_cv_prog_cc_g = yes; then
3970 if test "$GCC" = yes; then
3971 CFLAGS="-g -O2"
3972 else
3973 CFLAGS="-g"
3974 fi
3975 else
3976 if test "$GCC" = yes; then
3977 CFLAGS="-O2"
3978 else
3979 CFLAGS=
3980 fi
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3983 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3984 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 ac_cv_prog_cc_c89=no
3988 ac_save_CC=$CC
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991 #include <stdarg.h>
3992 #include <stdio.h>
3993 #include <sys/types.h>
3994 #include <sys/stat.h>
3995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3996 struct buf { int x; };
3997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3998 static char *e (p, i)
3999 char **p;
4000 int i;
4001 {
4002 return p[i];
4003 }
4004 static char *f (char * (*g) (char **, int), char **p, ...)
4005 {
4006 char *s;
4007 va_list v;
4008 va_start (v,p);
4009 s = g (p, va_arg (v,int));
4010 va_end (v);
4011 return s;
4012 }
4013
4014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4015 function prototypes and stuff, but not '\xHH' hex character constants.
4016 These don't provoke an error unfortunately, instead are silently treated
4017 as 'x'. The following induces an error, until -std is added to get
4018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4019 array size at least. It's necessary to write '\x00'==0 to get something
4020 that's true only with -std. */
4021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4022
4023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4024 inside strings and character constants. */
4025 #define FOO(x) 'x'
4026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4027
4028 int test (int i, double x);
4029 struct s1 {int (*f) (int a);};
4030 struct s2 {int (*f) (double a);};
4031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4032 int argc;
4033 char **argv;
4034 int
4035 main ()
4036 {
4037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4038 ;
4039 return 0;
4040 }
4041 _ACEOF
4042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4044 do
4045 CC="$ac_save_CC $ac_arg"
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_cv_prog_cc_c89=$ac_arg
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext
4050 test "x$ac_cv_prog_cc_c89" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4054
4055 fi
4056 # AC_CACHE_VAL
4057 case "x$ac_cv_prog_cc_c89" in
4058 x)
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4061 xno)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4064 *)
4065 CC="$CC $ac_cv_prog_cc_c89"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4068 esac
4069 if test "x$ac_cv_prog_cc_c89" != xno; then :
4070
4071 fi
4072
4073 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 DEPDIR="${am__leading_dot}deps"
4079
4080 ac_config_commands="$ac_config_commands depfiles"
4081
4082
4083 am_make=${MAKE-make}
4084 cat > confinc << 'END'
4085 am__doit:
4086 @echo this is the am__doit target
4087 .PHONY: am__doit
4088 END
4089 # If we don't find an include directive, just comment out the code.
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4091 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4092 am__include="#"
4093 am__quote=
4094 _am_result=none
4095 # First try GNU make style include.
4096 echo "include confinc" > confmf
4097 # Ignore all kinds of additional output from `make'.
4098 case `$am_make -s -f confmf 2> /dev/null` in #(
4099 *the\ am__doit\ target*)
4100 am__include=include
4101 am__quote=
4102 _am_result=GNU
4103 ;;
4104 esac
4105 # Now try BSD make style include.
4106 if test "$am__include" = "#"; then
4107 echo '.include "confinc"' > confmf
4108 case `$am_make -s -f confmf 2> /dev/null` in #(
4109 *the\ am__doit\ target*)
4110 am__include=.include
4111 am__quote="\""
4112 _am_result=BSD
4113 ;;
4114 esac
4115 fi
4116
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4119 $as_echo "$_am_result" >&6; }
4120 rm -f confinc confmf
4121
4122 # Check whether --enable-dependency-tracking was given.
4123 if test "${enable_dependency_tracking+set}" = set; then :
4124 enableval=$enable_dependency_tracking;
4125 fi
4126
4127 if test "x$enable_dependency_tracking" != xno; then
4128 am_depcomp="$ac_aux_dir/depcomp"
4129 AMDEPBACKSLASH='\'
4130 fi
4131 if test "x$enable_dependency_tracking" != xno; then
4132 AMDEP_TRUE=
4133 AMDEP_FALSE='#'
4134 else
4135 AMDEP_TRUE='#'
4136 AMDEP_FALSE=
4137 fi
4138
4139
4140
4141 depcc="$CC" am_compiler_list=
4142
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4144 $as_echo_n "checking dependency style of $depcc... " >&6; }
4145 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4149 # We make a subdir and do the tests there. Otherwise we can end up
4150 # making bogus files that we don't know about and never remove. For
4151 # instance it was reported that on HP-UX the gcc test will end up
4152 # making a dummy file named `D' -- because `-MD' means `put the output
4153 # in D'.
4154 mkdir conftest.dir
4155 # Copy depcomp to subdir because otherwise we won't find it if we're
4156 # using a relative directory.
4157 cp "$am_depcomp" conftest.dir
4158 cd conftest.dir
4159 # We will build objects and dependencies in a subdirectory because
4160 # it helps to detect inapplicable dependency modes. For instance
4161 # both Tru64's cc and ICC support -MD to output dependencies as a
4162 # side effect of compilation, but ICC will put the dependencies in
4163 # the current directory while Tru64 will put them in the object
4164 # directory.
4165 mkdir sub
4166
4167 am_cv_CC_dependencies_compiler_type=none
4168 if test "$am_compiler_list" = ""; then
4169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4170 fi
4171 am__universal=false
4172 case " $depcc " in #(
4173 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4174 esac
4175
4176 for depmode in $am_compiler_list; do
4177 # Setup a source with many dependencies, because some compilers
4178 # like to wrap large dependency lists on column 80 (with \), and
4179 # we should not choose a depcomp mode which is confused by this.
4180 #
4181 # We need to recreate these files for each test, as the compiler may
4182 # overwrite some of them when testing with obscure command lines.
4183 # This happens at least with the AIX C compiler.
4184 : > sub/conftest.c
4185 for i in 1 2 3 4 5 6; do
4186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4187 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4188 # Solaris 8's {/usr,}/bin/sh.
4189 touch sub/conftst$i.h
4190 done
4191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4192
4193 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4194 # mode. It turns out that the SunPro C++ compiler does not properly
4195 # handle `-M -o', and we need to detect this. Also, some Intel
4196 # versions had trouble with output in subdirs
4197 am__obj=sub/conftest.${OBJEXT-o}
4198 am__minus_obj="-o $am__obj"
4199 case $depmode in
4200 gcc)
4201 # This depmode causes a compiler race in universal mode.
4202 test "$am__universal" = false || continue
4203 ;;
4204 nosideeffect)
4205 # after this tag, mechanisms are not by side-effect, so they'll
4206 # only be used when explicitly requested
4207 if test "x$enable_dependency_tracking" = xyes; then
4208 continue
4209 else
4210 break
4211 fi
4212 ;;
4213 msvisualcpp | msvcmsys)
4214 # This compiler won't grok `-c -o', but also, the minuso test has
4215 # not run yet. These depmodes are late enough in the game, and
4216 # so weak that their functioning should not be impacted.
4217 am__obj=conftest.${OBJEXT-o}
4218 am__minus_obj=
4219 ;;
4220 none) break ;;
4221 esac
4222 if depmode=$depmode \
4223 source=sub/conftest.c object=$am__obj \
4224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4225 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4226 >/dev/null 2>conftest.err &&
4227 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4229 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4231 # icc doesn't choke on unknown options, it will just issue warnings
4232 # or remarks (even with -Werror). So we grep stderr for any message
4233 # that says an option was ignored or not supported.
4234 # When given -MP, icc 7.0 and 7.1 complain thusly:
4235 # icc: Command line warning: ignoring option '-M'; no argument required
4236 # The diagnosis changed in icc 8.0:
4237 # icc: Command line remark: option '-MP' not supported
4238 if (grep 'ignoring option' conftest.err ||
4239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4240 am_cv_CC_dependencies_compiler_type=$depmode
4241 break
4242 fi
4243 fi
4244 done
4245
4246 cd ..
4247 rm -rf conftest.dir
4248 else
4249 am_cv_CC_dependencies_compiler_type=none
4250 fi
4251
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4254 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4256
4257 if
4258 test "x$enable_dependency_tracking" != xno \
4259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4260 am__fastdepCC_TRUE=
4261 am__fastdepCC_FALSE='#'
4262 else
4263 am__fastdepCC_TRUE='#'
4264 am__fastdepCC_FALSE=
4265 fi
4266
4267
4268
4269
4270
4271
4272 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4273 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4274 # in both places for now and restore CFLAGS at the end of config.
4275 save_CFLAGS="$CFLAGS"
4276
4277 # Add -Wall -Werror if we are using GCC.
4278 if test "x$GCC" = "xyes"; then
4279 XCFLAGS="$XCFLAGS -Wall -Werror"
4280 fi
4281
4282 # Find other programs we need.
4283 if test -n "$ac_tool_prefix"; then
4284 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4285 set dummy ${ac_tool_prefix}ar; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if test "${ac_cv_prog_AR+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -n "$AR"; then
4292 ac_cv_prog_AR="$AR" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_AR="${ac_tool_prefix}ar"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4304 fi
4305 done
4306 done
4307 IFS=$as_save_IFS
4308
4309 fi
4310 fi
4311 AR=$ac_cv_prog_AR
4312 if test -n "$AR"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4314 $as_echo "$AR" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 fi
4319
4320
4321 fi
4322 if test -z "$ac_cv_prog_AR"; then
4323 ac_ct_AR=$AR
4324 # Extract the first word of "ar", so it can be a program name with args.
4325 set dummy ar; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$ac_ct_AR"; then
4332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_ac_ct_AR="ar"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4344 fi
4345 done
4346 done
4347 IFS=$as_save_IFS
4348
4349 fi
4350 fi
4351 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4352 if test -n "$ac_ct_AR"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4354 $as_echo "$ac_ct_AR" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4358 fi
4359
4360 if test "x$ac_ct_AR" = x; then
4361 AR=""
4362 else
4363 case $cross_compiling:$ac_tool_warned in
4364 yes:)
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4367 ac_tool_warned=yes ;;
4368 esac
4369 AR=$ac_ct_AR
4370 fi
4371 else
4372 AR="$ac_cv_prog_AR"
4373 fi
4374
4375 if test -n "$ac_tool_prefix"; then
4376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 if test -n "$RANLIB"; then
4384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4385 else
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4396 fi
4397 done
4398 done
4399 IFS=$as_save_IFS
4400
4401 fi
4402 fi
4403 RANLIB=$ac_cv_prog_RANLIB
4404 if test -n "$RANLIB"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4406 $as_echo "$RANLIB" >&6; }
4407 else
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4410 fi
4411
4412
4413 fi
4414 if test -z "$ac_cv_prog_RANLIB"; then
4415 ac_ct_RANLIB=$RANLIB
4416 # Extract the first word of "ranlib", so it can be a program name with args.
4417 set dummy ranlib; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$ac_ct_RANLIB"; then
4424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_ac_ct_RANLIB="ranlib"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437 done
4438 done
4439 IFS=$as_save_IFS
4440
4441 fi
4442 fi
4443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4446 $as_echo "$ac_ct_RANLIB" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 fi
4451
4452 if test "x$ac_ct_RANLIB" = x; then
4453 RANLIB="ranlib-not-found-in-path-error"
4454 else
4455 case $cross_compiling:$ac_tool_warned in
4456 yes:)
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4459 ac_tool_warned=yes ;;
4460 esac
4461 RANLIB=$ac_ct_RANLIB
4462 fi
4463 else
4464 RANLIB="$ac_cv_prog_RANLIB"
4465 fi
4466
4467 # Extract the first word of "perl", so it can be a program name with args.
4468 set dummy perl; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if test "${ac_cv_path_PERL+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 case $PERL in
4475 [\\/]* | ?:[\\/]*)
4476 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4477 ;;
4478 *)
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490 done
4491 done
4492 IFS=$as_save_IFS
4493
4494 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4495 ;;
4496 esac
4497 fi
4498 PERL=$ac_cv_path_PERL
4499 if test -n "$PERL"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4501 $as_echo "$PERL" >&6; }
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4505 fi
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4509 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4510 set x ${MAKE-make}
4511 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4512 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 cat >conftest.make <<\_ACEOF
4516 SHELL = /bin/sh
4517 all:
4518 @echo '@@@%%%=$(MAKE)=@@@%%%'
4519 _ACEOF
4520 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4521 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4522 *@@@%%%=?*=@@@%%%*)
4523 eval ac_cv_prog_make_${ac_make}_set=yes;;
4524 *)
4525 eval ac_cv_prog_make_${ac_make}_set=no;;
4526 esac
4527 rm -f conftest.make
4528 fi
4529 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4531 $as_echo "yes" >&6; }
4532 SET_MAKE=
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 SET_MAKE="MAKE=${MAKE-make}"
4537 fi
4538
4539
4540
4541 # See if makeinfo has been installed and is modern enough
4542 # that we can use it.
4543
4544 # Extract the first word of "makeinfo", so it can be a program name with args.
4545 set dummy makeinfo; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$MAKEINFO"; then
4552 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_MAKEINFO="makeinfo"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 MAKEINFO=$ac_cv_prog_MAKEINFO
4572 if test -n "$MAKEINFO"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4574 $as_echo "$MAKEINFO" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581 if test -n "$MAKEINFO"; then
4582 # Found it, now check the version.
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4584 $as_echo_n "checking for modern makeinfo... " >&6; }
4585 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4589 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4590
4591 case $ac_prog_version in
4592 '') gcc_cv_prog_makeinfo_modern=no;;
4593 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4594 *) gcc_cv_prog_makeinfo_modern=no;;
4595 esac
4596
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4599 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4600 else
4601 gcc_cv_prog_makeinfo_modern=no
4602 fi
4603 if test $gcc_cv_prog_makeinfo_modern = no; then
4604 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4605 fi
4606
4607 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4608 BUILD_INFO_TRUE=
4609 BUILD_INFO_FALSE='#'
4610 else
4611 BUILD_INFO_TRUE='#'
4612 BUILD_INFO_FALSE=
4613 fi
4614
4615
4616
4617 # Configure libtool
4618 case `pwd` in
4619 *\ * | *\ *)
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4621 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4622 esac
4623
4624
4625
4626 macro_version='2.2.7a'
4627 macro_revision='1.3134'
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641 ltmain="$ac_aux_dir/ltmain.sh"
4642
4643 # Backslashify metacharacters that are still active within
4644 # double-quoted strings.
4645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4646
4647 # Same as above, but do not quote variable references.
4648 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4649
4650 # Sed substitution to delay expansion of an escaped shell variable in a
4651 # double_quote_subst'ed string.
4652 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4653
4654 # Sed substitution to delay expansion of an escaped single quote.
4655 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4656
4657 # Sed substitution to avoid accidental globbing in evaled expressions
4658 no_glob_subst='s/\*/\\\*/g'
4659
4660 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4665 $as_echo_n "checking how to print strings... " >&6; }
4666 # Test print first, because it will be a builtin if present.
4667 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4668 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4669 ECHO='print -r --'
4670 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4671 ECHO='printf %s\n'
4672 else
4673 # Use this function as a fallback that always works.
4674 func_fallback_echo ()
4675 {
4676 eval 'cat <<_LTECHO_EOF
4677 $1
4678 _LTECHO_EOF'
4679 }
4680 ECHO='func_fallback_echo'
4681 fi
4682
4683 # func_echo_all arg...
4684 # Invoke $ECHO with all args, space-separated.
4685 func_echo_all ()
4686 {
4687 $ECHO ""
4688 }
4689
4690 case "$ECHO" in
4691 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4692 $as_echo "printf" >&6; } ;;
4693 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4694 $as_echo "print -r" >&6; } ;;
4695 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4696 $as_echo "cat" >&6; } ;;
4697 esac
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4713 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4714 if test "${ac_cv_path_SED+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4718 for ac_i in 1 2 3 4 5 6 7; do
4719 ac_script="$ac_script$as_nl$ac_script"
4720 done
4721 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4722 { ac_script=; unset ac_script;}
4723 if test -z "$SED"; then
4724 ac_path_SED_found=false
4725 # Loop through the user's path and test for each of PROGNAME-LIST
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_prog in sed gsed; do
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4734 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4735 # Check for GNU ac_path_SED and select it if it is found.
4736 # Check for GNU $ac_path_SED
4737 case `"$ac_path_SED" --version 2>&1` in
4738 *GNU*)
4739 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4740 *)
4741 ac_count=0
4742 $as_echo_n 0123456789 >"conftest.in"
4743 while :
4744 do
4745 cat "conftest.in" "conftest.in" >"conftest.tmp"
4746 mv "conftest.tmp" "conftest.in"
4747 cp "conftest.in" "conftest.nl"
4748 $as_echo '' >> "conftest.nl"
4749 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4751 as_fn_arith $ac_count + 1 && ac_count=$as_val
4752 if test $ac_count -gt ${ac_path_SED_max-0}; then
4753 # Best one so far, save it but keep looking for a better one
4754 ac_cv_path_SED="$ac_path_SED"
4755 ac_path_SED_max=$ac_count
4756 fi
4757 # 10*(2^10) chars as input seems more than enough
4758 test $ac_count -gt 10 && break
4759 done
4760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4761 esac
4762
4763 $ac_path_SED_found && break 3
4764 done
4765 done
4766 done
4767 IFS=$as_save_IFS
4768 if test -z "$ac_cv_path_SED"; then
4769 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4770 fi
4771 else
4772 ac_cv_path_SED=$SED
4773 fi
4774
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4777 $as_echo "$ac_cv_path_SED" >&6; }
4778 SED="$ac_cv_path_SED"
4779 rm -f conftest.sed
4780
4781 test -z "$SED" && SED=sed
4782 Xsed="$SED -e 1s/^X//"
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4795 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4796 if test "${ac_cv_path_GREP+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -z "$GREP"; then
4800 ac_path_GREP_found=false
4801 # Loop through the user's path and test for each of PROGNAME-LIST
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4804 do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_prog in grep ggrep; do
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4810 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4811 # Check for GNU ac_path_GREP and select it if it is found.
4812 # Check for GNU $ac_path_GREP
4813 case `"$ac_path_GREP" --version 2>&1` in
4814 *GNU*)
4815 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4816 *)
4817 ac_count=0
4818 $as_echo_n 0123456789 >"conftest.in"
4819 while :
4820 do
4821 cat "conftest.in" "conftest.in" >"conftest.tmp"
4822 mv "conftest.tmp" "conftest.in"
4823 cp "conftest.in" "conftest.nl"
4824 $as_echo 'GREP' >> "conftest.nl"
4825 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4827 as_fn_arith $ac_count + 1 && ac_count=$as_val
4828 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4829 # Best one so far, save it but keep looking for a better one
4830 ac_cv_path_GREP="$ac_path_GREP"
4831 ac_path_GREP_max=$ac_count
4832 fi
4833 # 10*(2^10) chars as input seems more than enough
4834 test $ac_count -gt 10 && break
4835 done
4836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837 esac
4838
4839 $ac_path_GREP_found && break 3
4840 done
4841 done
4842 done
4843 IFS=$as_save_IFS
4844 if test -z "$ac_cv_path_GREP"; then
4845 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4846 fi
4847 else
4848 ac_cv_path_GREP=$GREP
4849 fi
4850
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4853 $as_echo "$ac_cv_path_GREP" >&6; }
4854 GREP="$ac_cv_path_GREP"
4855
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4858 $as_echo_n "checking for egrep... " >&6; }
4859 if test "${ac_cv_path_EGREP+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4863 then ac_cv_path_EGREP="$GREP -E"
4864 else
4865 if test -z "$EGREP"; then
4866 ac_path_EGREP_found=false
4867 # Loop through the user's path and test for each of PROGNAME-LIST
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4870 do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_prog in egrep; do
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4876 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4877 # Check for GNU ac_path_EGREP and select it if it is found.
4878 # Check for GNU $ac_path_EGREP
4879 case `"$ac_path_EGREP" --version 2>&1` in
4880 *GNU*)
4881 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4882 *)
4883 ac_count=0
4884 $as_echo_n 0123456789 >"conftest.in"
4885 while :
4886 do
4887 cat "conftest.in" "conftest.in" >"conftest.tmp"
4888 mv "conftest.tmp" "conftest.in"
4889 cp "conftest.in" "conftest.nl"
4890 $as_echo 'EGREP' >> "conftest.nl"
4891 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4893 as_fn_arith $ac_count + 1 && ac_count=$as_val
4894 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4895 # Best one so far, save it but keep looking for a better one
4896 ac_cv_path_EGREP="$ac_path_EGREP"
4897 ac_path_EGREP_max=$ac_count
4898 fi
4899 # 10*(2^10) chars as input seems more than enough
4900 test $ac_count -gt 10 && break
4901 done
4902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4903 esac
4904
4905 $ac_path_EGREP_found && break 3
4906 done
4907 done
4908 done
4909 IFS=$as_save_IFS
4910 if test -z "$ac_cv_path_EGREP"; then
4911 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4912 fi
4913 else
4914 ac_cv_path_EGREP=$EGREP
4915 fi
4916
4917 fi
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4920 $as_echo "$ac_cv_path_EGREP" >&6; }
4921 EGREP="$ac_cv_path_EGREP"
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4925 $as_echo_n "checking for fgrep... " >&6; }
4926 if test "${ac_cv_path_FGREP+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4930 then ac_cv_path_FGREP="$GREP -F"
4931 else
4932 if test -z "$FGREP"; then
4933 ac_path_FGREP_found=false
4934 # Loop through the user's path and test for each of PROGNAME-LIST
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4937 do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_prog in fgrep; do
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4943 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4944 # Check for GNU ac_path_FGREP and select it if it is found.
4945 # Check for GNU $ac_path_FGREP
4946 case `"$ac_path_FGREP" --version 2>&1` in
4947 *GNU*)
4948 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4949 *)
4950 ac_count=0
4951 $as_echo_n 0123456789 >"conftest.in"
4952 while :
4953 do
4954 cat "conftest.in" "conftest.in" >"conftest.tmp"
4955 mv "conftest.tmp" "conftest.in"
4956 cp "conftest.in" "conftest.nl"
4957 $as_echo 'FGREP' >> "conftest.nl"
4958 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4960 as_fn_arith $ac_count + 1 && ac_count=$as_val
4961 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4962 # Best one so far, save it but keep looking for a better one
4963 ac_cv_path_FGREP="$ac_path_FGREP"
4964 ac_path_FGREP_max=$ac_count
4965 fi
4966 # 10*(2^10) chars as input seems more than enough
4967 test $ac_count -gt 10 && break
4968 done
4969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4970 esac
4971
4972 $ac_path_FGREP_found && break 3
4973 done
4974 done
4975 done
4976 IFS=$as_save_IFS
4977 if test -z "$ac_cv_path_FGREP"; then
4978 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4979 fi
4980 else
4981 ac_cv_path_FGREP=$FGREP
4982 fi
4983
4984 fi
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4987 $as_echo "$ac_cv_path_FGREP" >&6; }
4988 FGREP="$ac_cv_path_FGREP"
4989
4990
4991 test -z "$GREP" && GREP=grep
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 # Check whether --with-gnu-ld was given.
5012 if test "${with_gnu_ld+set}" = set; then :
5013 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5014 else
5015 with_gnu_ld=no
5016 fi
5017
5018 ac_prog=ld
5019 if test "$GCC" = yes; then
5020 # Check if gcc -print-prog-name=ld gives a path.
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5022 $as_echo_n "checking for ld used by $CC... " >&6; }
5023 case $host in
5024 *-*-mingw*)
5025 # gcc leaves a trailing carriage return which upsets mingw
5026 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5027 *)
5028 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5029 esac
5030 case $ac_prog in
5031 # Accept absolute paths.
5032 [\\/]* | ?:[\\/]*)
5033 re_direlt='/[^/][^/]*/\.\./'
5034 # Canonicalize the pathname of ld
5035 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5036 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5037 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5038 done
5039 test -z "$LD" && LD="$ac_prog"
5040 ;;
5041 "")
5042 # If it fails, then pretend we aren't using GCC.
5043 ac_prog=ld
5044 ;;
5045 *)
5046 # If it is relative, then search for the first ld in PATH.
5047 with_gnu_ld=unknown
5048 ;;
5049 esac
5050 elif test "$with_gnu_ld" = yes; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5052 $as_echo_n "checking for GNU ld... " >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5055 $as_echo_n "checking for non-GNU ld... " >&6; }
5056 fi
5057 if test "${lt_cv_path_LD+set}" = set; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -z "$LD"; then
5061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5062 for ac_dir in $PATH; do
5063 IFS="$lt_save_ifs"
5064 test -z "$ac_dir" && ac_dir=.
5065 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5066 lt_cv_path_LD="$ac_dir/$ac_prog"
5067 # Check to see if the program is GNU ld. I'd rather use --version,
5068 # but apparently some variants of GNU ld only accept -v.
5069 # Break only if it was the GNU/non-GNU ld that we prefer.
5070 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5071 *GNU* | *'with BFD'*)
5072 test "$with_gnu_ld" != no && break
5073 ;;
5074 *)
5075 test "$with_gnu_ld" != yes && break
5076 ;;
5077 esac
5078 fi
5079 done
5080 IFS="$lt_save_ifs"
5081 else
5082 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5083 fi
5084 fi
5085
5086 LD="$lt_cv_path_LD"
5087 if test -n "$LD"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5089 $as_echo "$LD" >&6; }
5090 else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5096 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5097 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5101 case `$LD -v 2>&1 </dev/null` in
5102 *GNU* | *'with BFD'*)
5103 lt_cv_prog_gnu_ld=yes
5104 ;;
5105 *)
5106 lt_cv_prog_gnu_ld=no
5107 ;;
5108 esac
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5111 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5112 with_gnu_ld=$lt_cv_prog_gnu_ld
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5123 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5124 if test "${lt_cv_path_NM+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$NM"; then
5128 # Let the user override the test.
5129 lt_cv_path_NM="$NM"
5130 else
5131 lt_nm_to_check="${ac_tool_prefix}nm"
5132 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5133 lt_nm_to_check="$lt_nm_to_check nm"
5134 fi
5135 for lt_tmp_nm in $lt_nm_to_check; do
5136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5137 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5138 IFS="$lt_save_ifs"
5139 test -z "$ac_dir" && ac_dir=.
5140 tmp_nm="$ac_dir/$lt_tmp_nm"
5141 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5142 # Check to see if the nm accepts a BSD-compat flag.
5143 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5144 # nm: unknown option "B" ignored
5145 # Tru64's nm complains that /dev/null is an invalid object file
5146 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5147 */dev/null* | *'Invalid file or object type'*)
5148 lt_cv_path_NM="$tmp_nm -B"
5149 break
5150 ;;
5151 *)
5152 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5153 */dev/null*)
5154 lt_cv_path_NM="$tmp_nm -p"
5155 break
5156 ;;
5157 *)
5158 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5159 continue # so that we can try to find one that supports BSD flags
5160 ;;
5161 esac
5162 ;;
5163 esac
5164 fi
5165 done
5166 IFS="$lt_save_ifs"
5167 done
5168 : ${lt_cv_path_NM=no}
5169 fi
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5172 $as_echo "$lt_cv_path_NM" >&6; }
5173 if test "$lt_cv_path_NM" != "no"; then
5174 NM="$lt_cv_path_NM"
5175 else
5176 # Didn't find any BSD compatible name lister, look for dumpbin.
5177 if test -n "$DUMPBIN"; then :
5178 # Let the user override the test.
5179 else
5180 if test -n "$ac_tool_prefix"; then
5181 for ac_prog in dumpbin "link -dump"
5182 do
5183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$DUMPBIN"; then
5191 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204 done
5205 done
5206 IFS=$as_save_IFS
5207
5208 fi
5209 fi
5210 DUMPBIN=$ac_cv_prog_DUMPBIN
5211 if test -n "$DUMPBIN"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5213 $as_echo "$DUMPBIN" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218
5219
5220 test -n "$DUMPBIN" && break
5221 done
5222 fi
5223 if test -z "$DUMPBIN"; then
5224 ac_ct_DUMPBIN=$DUMPBIN
5225 for ac_prog in dumpbin "link -dump"
5226 do
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -n "$ac_ct_DUMPBIN"; then
5235 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248 done
5249 done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5255 if test -n "$ac_ct_DUMPBIN"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5257 $as_echo "$ac_ct_DUMPBIN" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263
5264 test -n "$ac_ct_DUMPBIN" && break
5265 done
5266
5267 if test "x$ac_ct_DUMPBIN" = x; then
5268 DUMPBIN=":"
5269 else
5270 case $cross_compiling:$ac_tool_warned in
5271 yes:)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 DUMPBIN=$ac_ct_DUMPBIN
5277 fi
5278 fi
5279
5280 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5281 *COFF*)
5282 DUMPBIN="$DUMPBIN -symbols"
5283 ;;
5284 *)
5285 DUMPBIN=:
5286 ;;
5287 esac
5288 fi
5289
5290 if test "$DUMPBIN" != ":"; then
5291 NM="$DUMPBIN"
5292 fi
5293 fi
5294 test -z "$NM" && NM=nm
5295
5296
5297
5298
5299
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5302 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5303 if test "${lt_cv_nm_interface+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 lt_cv_nm_interface="BSD nm"
5307 echo "int some_variable = 0;" > conftest.$ac_ext
5308 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5309 (eval "$ac_compile" 2>conftest.err)
5310 cat conftest.err >&5
5311 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5312 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5313 cat conftest.err >&5
5314 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5315 cat conftest.out >&5
5316 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5317 lt_cv_nm_interface="MS dumpbin"
5318 fi
5319 rm -f conftest*
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5322 $as_echo "$lt_cv_nm_interface" >&6; }
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5325 $as_echo_n "checking whether ln -s works... " >&6; }
5326 LN_S=$as_ln_s
5327 if test "$LN_S" = "ln -s"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5329 $as_echo "yes" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5332 $as_echo "no, using $LN_S" >&6; }
5333 fi
5334
5335 # find the maximum length of command line arguments
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5337 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5338 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 i=0
5342 teststring="ABCD"
5343
5344 case $build_os in
5345 msdosdjgpp*)
5346 # On DJGPP, this test can blow up pretty badly due to problems in libc
5347 # (any single argument exceeding 2000 bytes causes a buffer overrun
5348 # during glob expansion). Even if it were fixed, the result of this
5349 # check would be larger than it should be.
5350 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5351 ;;
5352
5353 gnu*)
5354 # Under GNU Hurd, this test is not required because there is
5355 # no limit to the length of command line arguments.
5356 # Libtool will interpret -1 as no limit whatsoever
5357 lt_cv_sys_max_cmd_len=-1;
5358 ;;
5359
5360 cygwin* | mingw* | cegcc*)
5361 # On Win9x/ME, this test blows up -- it succeeds, but takes
5362 # about 5 minutes as the teststring grows exponentially.
5363 # Worse, since 9x/ME are not pre-emptively multitasking,
5364 # you end up with a "frozen" computer, even though with patience
5365 # the test eventually succeeds (with a max line length of 256k).
5366 # Instead, let's just punt: use the minimum linelength reported by
5367 # all of the supported platforms: 8192 (on NT/2K/XP).
5368 lt_cv_sys_max_cmd_len=8192;
5369 ;;
5370
5371 mint*)
5372 # On MiNT this can take a long time and run out of memory.
5373 lt_cv_sys_max_cmd_len=8192;
5374 ;;
5375
5376 amigaos*)
5377 # On AmigaOS with pdksh, this test takes hours, literally.
5378 # So we just punt and use a minimum line length of 8192.
5379 lt_cv_sys_max_cmd_len=8192;
5380 ;;
5381
5382 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5383 # This has been around since 386BSD, at least. Likely further.
5384 if test -x /sbin/sysctl; then
5385 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5386 elif test -x /usr/sbin/sysctl; then
5387 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5388 else
5389 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5390 fi
5391 # And add a safety zone
5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5394 ;;
5395
5396 interix*)
5397 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5398 lt_cv_sys_max_cmd_len=196608
5399 ;;
5400
5401 osf*)
5402 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5403 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5404 # nice to cause kernel panics so lets avoid the loop below.
5405 # First set a reasonable default.
5406 lt_cv_sys_max_cmd_len=16384
5407 #
5408 if test -x /sbin/sysconfig; then
5409 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5410 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5411 esac
5412 fi
5413 ;;
5414 sco3.2v5*)
5415 lt_cv_sys_max_cmd_len=102400
5416 ;;
5417 sysv5* | sco5v6* | sysv4.2uw2*)
5418 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5419 if test -n "$kargmax"; then
5420 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5421 else
5422 lt_cv_sys_max_cmd_len=32768
5423 fi
5424 ;;
5425 *)
5426 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5427 if test -n "$lt_cv_sys_max_cmd_len"; then
5428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430 else
5431 # Make teststring a little bigger before we do anything with it.
5432 # a 1K string should be a reasonable start.
5433 for i in 1 2 3 4 5 6 7 8 ; do
5434 teststring=$teststring$teststring
5435 done
5436 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5437 # If test is not a shell built-in, we'll probably end up computing a
5438 # maximum length that is only half of the actual maximum length, but
5439 # we can't tell.
5440 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5441 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5442 test $i != 17 # 1/2 MB should be enough
5443 do
5444 i=`expr $i + 1`
5445 teststring=$teststring$teststring
5446 done
5447 # Only check the string length outside the loop.
5448 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5449 teststring=
5450 # Add a significant safety factor because C++ compilers can tack on
5451 # massive amounts of additional arguments before passing them to the
5452 # linker. It appears as though 1/2 is a usable value.
5453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5454 fi
5455 ;;
5456 esac
5457
5458 fi
5459
5460 if test -n $lt_cv_sys_max_cmd_len ; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5462 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5465 $as_echo "none" >&6; }
5466 fi
5467 max_cmd_len=$lt_cv_sys_max_cmd_len
5468
5469
5470
5471
5472
5473
5474 : ${CP="cp -f"}
5475 : ${MV="mv -f"}
5476 : ${RM="rm -f"}
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5479 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5480 # Try some XSI features
5481 xsi_shell=no
5482 ( _lt_dummy="a/b/c"
5483 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5484 = c,a/b,, \
5485 && eval 'test $(( 1 + 1 )) -eq 2 \
5486 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5487 && xsi_shell=yes
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5489 $as_echo "$xsi_shell" >&6; }
5490
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5493 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5494 lt_shell_append=no
5495 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5496 >/dev/null 2>&1 \
5497 && lt_shell_append=yes
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5499 $as_echo "$lt_shell_append" >&6; }
5500
5501
5502 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5503 lt_unset=unset
5504 else
5505 lt_unset=false
5506 fi
5507
5508
5509
5510
5511
5512 # test EBCDIC or ASCII
5513 case `echo X|tr X '\101'` in
5514 A) # ASCII based system
5515 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5516 lt_SP2NL='tr \040 \012'
5517 lt_NL2SP='tr \015\012 \040\040'
5518 ;;
5519 *) # EBCDIC based system
5520 lt_SP2NL='tr \100 \n'
5521 lt_NL2SP='tr \r\n \100\100'
5522 ;;
5523 esac
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5534 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5535 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 lt_cv_ld_reload_flag='-r'
5539 fi
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5541 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5542 reload_flag=$lt_cv_ld_reload_flag
5543 case $reload_flag in
5544 "" | " "*) ;;
5545 *) reload_flag=" $reload_flag" ;;
5546 esac
5547 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548 case $host_os in
5549 darwin*)
5550 if test "$GCC" = yes; then
5551 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5552 else
5553 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554 fi
5555 ;;
5556 esac
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 if test -n "$ac_tool_prefix"; then
5567 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5568 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$OBJDUMP"; then
5575 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 OBJDUMP=$ac_cv_prog_OBJDUMP
5595 if test -n "$OBJDUMP"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5597 $as_echo "$OBJDUMP" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603
5604 fi
5605 if test -z "$ac_cv_prog_OBJDUMP"; then
5606 ac_ct_OBJDUMP=$OBJDUMP
5607 # Extract the first word of "objdump", so it can be a program name with args.
5608 set dummy objdump; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$ac_ct_OBJDUMP"; then
5615 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628 done
5629 done
5630 IFS=$as_save_IFS
5631
5632 fi
5633 fi
5634 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5635 if test -n "$ac_ct_OBJDUMP"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5637 $as_echo "$ac_ct_OBJDUMP" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643 if test "x$ac_ct_OBJDUMP" = x; then
5644 OBJDUMP="false"
5645 else
5646 case $cross_compiling:$ac_tool_warned in
5647 yes:)
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 ac_tool_warned=yes ;;
5651 esac
5652 OBJDUMP=$ac_ct_OBJDUMP
5653 fi
5654 else
5655 OBJDUMP="$ac_cv_prog_OBJDUMP"
5656 fi
5657
5658 test -z "$OBJDUMP" && OBJDUMP=objdump
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5669 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5670 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 lt_cv_file_magic_cmd='$MAGIC_CMD'
5674 lt_cv_file_magic_test_file=
5675 lt_cv_deplibs_check_method='unknown'
5676 # Need to set the preceding variable on all platforms that support
5677 # interlibrary dependencies.
5678 # 'none' -- dependencies not supported.
5679 # `unknown' -- same as none, but documents that we really don't know.
5680 # 'pass_all' -- all dependencies passed with no checks.
5681 # 'test_compile' -- check by making test program.
5682 # 'file_magic [[regex]]' -- check by looking for files in library path
5683 # which responds to the $file_magic_cmd with a given extended regex.
5684 # If you have `file' or equivalent on your system and you're not sure
5685 # whether `pass_all' will *always* work, you probably want this one.
5686
5687 case $host_os in
5688 aix[4-9]*)
5689 lt_cv_deplibs_check_method=pass_all
5690 ;;
5691
5692 beos*)
5693 lt_cv_deplibs_check_method=pass_all
5694 ;;
5695
5696 bsdi[45]*)
5697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5698 lt_cv_file_magic_cmd='/usr/bin/file -L'
5699 lt_cv_file_magic_test_file=/shlib/libc.so
5700 ;;
5701
5702 cygwin*)
5703 # func_win32_libid is a shell function defined in ltmain.sh
5704 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5705 lt_cv_file_magic_cmd='func_win32_libid'
5706 ;;
5707
5708 mingw* | pw32*)
5709 # Base MSYS/MinGW do not provide the 'file' command needed by
5710 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5711 # unless we find 'file', for example because we are cross-compiling.
5712 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5713 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5714 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5715 lt_cv_file_magic_cmd='func_win32_libid'
5716 else
5717 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5718 lt_cv_file_magic_cmd='$OBJDUMP -f'
5719 fi
5720 ;;
5721
5722 cegcc*)
5723 # use the weaker test based on 'objdump'. See mingw*.
5724 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5725 lt_cv_file_magic_cmd='$OBJDUMP -f'
5726 ;;
5727
5728 darwin* | rhapsody*)
5729 lt_cv_deplibs_check_method=pass_all
5730 ;;
5731
5732 freebsd* | dragonfly*)
5733 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5734 case $host_cpu in
5735 i*86 )
5736 # Not sure whether the presence of OpenBSD here was a mistake.
5737 # Let's accept both of them until this is cleared up.
5738 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5739 lt_cv_file_magic_cmd=/usr/bin/file
5740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5741 ;;
5742 esac
5743 else
5744 lt_cv_deplibs_check_method=pass_all
5745 fi
5746 ;;
5747
5748 gnu*)
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751
5752 haiku*)
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756 hpux10.20* | hpux11*)
5757 lt_cv_file_magic_cmd=/usr/bin/file
5758 case $host_cpu in
5759 ia64*)
5760 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5761 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5762 ;;
5763 hppa*64*)
5764 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]'
5765 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5766 ;;
5767 *)
5768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5769 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5770 ;;
5771 esac
5772 ;;
5773
5774 interix[3-9]*)
5775 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5777 ;;
5778
5779 irix5* | irix6* | nonstopux*)
5780 case $LD in
5781 *-32|*"-32 ") libmagic=32-bit;;
5782 *-n32|*"-n32 ") libmagic=N32;;
5783 *-64|*"-64 ") libmagic=64-bit;;
5784 *) libmagic=never-match;;
5785 esac
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788
5789 # This must be Linux ELF.
5790 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5791 lt_cv_deplibs_check_method=pass_all
5792 ;;
5793
5794 netbsd*)
5795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5797 else
5798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5799 fi
5800 ;;
5801
5802 newos6*)
5803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5804 lt_cv_file_magic_cmd=/usr/bin/file
5805 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5806 ;;
5807
5808 *nto* | *qnx*)
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 openbsd*)
5813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5815 else
5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5817 fi
5818 ;;
5819
5820 osf3* | osf4* | osf5*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823
5824 rdos*)
5825 lt_cv_deplibs_check_method=pass_all
5826 ;;
5827
5828 solaris*)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831
5832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836 sysv4 | sysv4.3*)
5837 case $host_vendor in
5838 motorola)
5839 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]'
5840 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5841 ;;
5842 ncr)
5843 lt_cv_deplibs_check_method=pass_all
5844 ;;
5845 sequent)
5846 lt_cv_file_magic_cmd='/bin/file'
5847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5848 ;;
5849 sni)
5850 lt_cv_file_magic_cmd='/bin/file'
5851 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5852 lt_cv_file_magic_test_file=/lib/libc.so
5853 ;;
5854 siemens)
5855 lt_cv_deplibs_check_method=pass_all
5856 ;;
5857 pc)
5858 lt_cv_deplibs_check_method=pass_all
5859 ;;
5860 esac
5861 ;;
5862
5863 tpf*)
5864 lt_cv_deplibs_check_method=pass_all
5865 ;;
5866 esac
5867
5868 fi
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5870 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5871 file_magic_cmd=$lt_cv_file_magic_cmd
5872 deplibs_check_method=$lt_cv_deplibs_check_method
5873 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}ar; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_AR+set}" = set; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$AR"; then
5895 ac_cv_prog_AR="$AR" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_AR="${ac_tool_prefix}ar"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 AR=$ac_cv_prog_AR
5915 if test -n "$AR"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5917 $as_echo "$AR" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923
5924 fi
5925 if test -z "$ac_cv_prog_AR"; then
5926 ac_ct_AR=$AR
5927 # Extract the first word of "ar", so it can be a program name with args.
5928 set dummy ar; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$ac_ct_AR"; then
5935 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_ac_ct_AR="ar"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5955 if test -n "$ac_ct_AR"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5957 $as_echo "$ac_ct_AR" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963 if test "x$ac_ct_AR" = x; then
5964 AR="false"
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972 AR=$ac_ct_AR
5973 fi
5974 else
5975 AR="$ac_cv_prog_AR"
5976 fi
5977
5978 test -z "$AR" && AR=ar
5979 test -z "$AR_FLAGS" && AR_FLAGS=cru
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 if test -n "$ac_tool_prefix"; then
5992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5993 set dummy ${ac_tool_prefix}strip; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if test "${ac_cv_prog_STRIP+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$STRIP"; then
6000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 STRIP=$ac_cv_prog_STRIP
6020 if test -n "$STRIP"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6022 $as_echo "$STRIP" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028
6029 fi
6030 if test -z "$ac_cv_prog_STRIP"; then
6031 ac_ct_STRIP=$STRIP
6032 # Extract the first word of "strip", so it can be a program name with args.
6033 set dummy strip; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -n "$ac_ct_STRIP"; then
6040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049 ac_cv_prog_ac_ct_STRIP="strip"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053 done
6054 done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6060 if test -n "$ac_ct_STRIP"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6062 $as_echo "$ac_ct_STRIP" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068 if test "x$ac_ct_STRIP" = x; then
6069 STRIP=":"
6070 else
6071 case $cross_compiling:$ac_tool_warned in
6072 yes:)
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075 ac_tool_warned=yes ;;
6076 esac
6077 STRIP=$ac_ct_STRIP
6078 fi
6079 else
6080 STRIP="$ac_cv_prog_STRIP"
6081 fi
6082
6083 test -z "$STRIP" && STRIP=:
6084
6085
6086
6087
6088
6089
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$RANLIB"; then
6099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 RANLIB=$ac_cv_prog_RANLIB
6119 if test -n "$RANLIB"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6121 $as_echo "$RANLIB" >&6; }
6122 else
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126
6127
6128 fi
6129 if test -z "$ac_cv_prog_RANLIB"; then
6130 ac_ct_RANLIB=$RANLIB
6131 # Extract the first word of "ranlib", so it can be a program name with args.
6132 set dummy ranlib; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$ac_ct_RANLIB"; then
6139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_RANLIB="ranlib"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6151 fi
6152 done
6153 done
6154 IFS=$as_save_IFS
6155
6156 fi
6157 fi
6158 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6159 if test -n "$ac_ct_RANLIB"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6161 $as_echo "$ac_ct_RANLIB" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166
6167 if test "x$ac_ct_RANLIB" = x; then
6168 RANLIB=":"
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176 RANLIB=$ac_ct_RANLIB
6177 fi
6178 else
6179 RANLIB="$ac_cv_prog_RANLIB"
6180 fi
6181
6182 test -z "$RANLIB" && RANLIB=:
6183
6184
6185
6186
6187
6188
6189 # Determine commands to create old-style static archives.
6190 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6191 old_postinstall_cmds='chmod 644 $oldlib'
6192 old_postuninstall_cmds=
6193
6194 if test -n "$RANLIB"; then
6195 case $host_os in
6196 openbsd*)
6197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6198 ;;
6199 *)
6200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6201 ;;
6202 esac
6203 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6204 fi
6205
6206 case $host_os in
6207 darwin*)
6208 lock_old_archive_extraction=yes ;;
6209 *)
6210 lock_old_archive_extraction=no ;;
6211 esac
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251 # If no C compiler was specified, use CC.
6252 LTCC=${LTCC-"$CC"}
6253
6254 # If no C compiler flags were specified, use CFLAGS.
6255 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6256
6257 # Allow CC to be a program name with arguments.
6258 compiler=$CC
6259
6260
6261 # Check for command to grab the raw symbol name followed by C symbol from nm.
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6263 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6264 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267
6268 # These are sane defaults that work on at least a few old systems.
6269 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6270
6271 # Character class describing NM global symbol codes.
6272 symcode='[BCDEGRST]'
6273
6274 # Regexp to match symbols that can be accessed directly from C.
6275 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6276
6277 # Define system-specific variables.
6278 case $host_os in
6279 aix*)
6280 symcode='[BCDT]'
6281 ;;
6282 cygwin* | mingw* | pw32* | cegcc*)
6283 symcode='[ABCDGISTW]'
6284 ;;
6285 hpux*)
6286 if test "$host_cpu" = ia64; then
6287 symcode='[ABCDEGRST]'
6288 fi
6289 ;;
6290 irix* | nonstopux*)
6291 symcode='[BCDEGRST]'
6292 ;;
6293 osf*)
6294 symcode='[BCDEGQRST]'
6295 ;;
6296 solaris*)
6297 symcode='[BDRT]'
6298 ;;
6299 sco3.2v5*)
6300 symcode='[DT]'
6301 ;;
6302 sysv4.2uw2*)
6303 symcode='[DT]'
6304 ;;
6305 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6306 symcode='[ABDT]'
6307 ;;
6308 sysv4)
6309 symcode='[DFNSTU]'
6310 ;;
6311 esac
6312
6313 # If we're using GNU nm, then use its standard symbol codes.
6314 case `$NM -V 2>&1` in
6315 *GNU* | *'with BFD'*)
6316 symcode='[ABCDGIRSTW]' ;;
6317 esac
6318
6319 # Transform an extracted symbol line into a proper C declaration.
6320 # Some systems (esp. on ia64) link data and code symbols differently,
6321 # so use this general approach.
6322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6323
6324 # Transform an extracted symbol line into symbol name and symbol address
6325 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6326 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'"
6327
6328 # Handle CRLF in mingw tool chain
6329 opt_cr=
6330 case $build_os in
6331 mingw*)
6332 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6333 ;;
6334 esac
6335
6336 # Try without a prefix underscore, then with it.
6337 for ac_symprfx in "" "_"; do
6338
6339 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6340 symxfrm="\\1 $ac_symprfx\\2 \\2"
6341
6342 # Write the raw and C identifiers.
6343 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6344 # Fake it for dumpbin and say T for any non-static function
6345 # and D for any global variable.
6346 # Also find C++ and __fastcall symbols from MSVC++,
6347 # which start with @ or ?.
6348 lt_cv_sys_global_symbol_pipe="$AWK '"\
6349 " {last_section=section; section=\$ 3};"\
6350 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6351 " \$ 0!~/External *\|/{next};"\
6352 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6353 " {if(hide[section]) next};"\
6354 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6355 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6356 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6357 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6358 " ' prfx=^$ac_symprfx"
6359 else
6360 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6361 fi
6362
6363 # Check to see that the pipe works correctly.
6364 pipe_works=no
6365
6366 rm -f conftest*
6367 cat > conftest.$ac_ext <<_LT_EOF
6368 #ifdef __cplusplus
6369 extern "C" {
6370 #endif
6371 char nm_test_var;
6372 void nm_test_func(void);
6373 void nm_test_func(void){}
6374 #ifdef __cplusplus
6375 }
6376 #endif
6377 int main(){nm_test_var='a';nm_test_func();return(0);}
6378 _LT_EOF
6379
6380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6381 (eval $ac_compile) 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; }; then
6385 # Now try to grab the symbols.
6386 nlist=conftest.nm
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6388 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; } && test -s "$nlist"; then
6392 # Try sorting and uniquifying the output.
6393 if sort "$nlist" | uniq > "$nlist"T; then
6394 mv -f "$nlist"T "$nlist"
6395 else
6396 rm -f "$nlist"T
6397 fi
6398
6399 # Make sure that we snagged all the symbols we need.
6400 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6401 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6402 cat <<_LT_EOF > conftest.$ac_ext
6403 #ifdef __cplusplus
6404 extern "C" {
6405 #endif
6406
6407 _LT_EOF
6408 # Now generate the symbol file.
6409 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6410
6411 cat <<_LT_EOF >> conftest.$ac_ext
6412
6413 /* The mapping between symbol names and symbols. */
6414 const struct {
6415 const char *name;
6416 void *address;
6417 }
6418 lt__PROGRAM__LTX_preloaded_symbols[] =
6419 {
6420 { "@PROGRAM@", (void *) 0 },
6421 _LT_EOF
6422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6423 cat <<\_LT_EOF >> conftest.$ac_ext
6424 {0, (void *) 0}
6425 };
6426
6427 /* This works around a problem in FreeBSD linker */
6428 #ifdef FREEBSD_WORKAROUND
6429 static const void *lt_preloaded_setup() {
6430 return lt__PROGRAM__LTX_preloaded_symbols;
6431 }
6432 #endif
6433
6434 #ifdef __cplusplus
6435 }
6436 #endif
6437 _LT_EOF
6438 # Now try linking the two files.
6439 mv conftest.$ac_objext conftstm.$ac_objext
6440 lt_save_LIBS="$LIBS"
6441 lt_save_CFLAGS="$CFLAGS"
6442 LIBS="conftstm.$ac_objext"
6443 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6445 (eval $ac_link) 2>&5
6446 ac_status=$?
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6449 pipe_works=yes
6450 fi
6451 LIBS="$lt_save_LIBS"
6452 CFLAGS="$lt_save_CFLAGS"
6453 else
6454 echo "cannot find nm_test_func in $nlist" >&5
6455 fi
6456 else
6457 echo "cannot find nm_test_var in $nlist" >&5
6458 fi
6459 else
6460 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6461 fi
6462 else
6463 echo "$progname: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6465 fi
6466 rm -rf conftest* conftst*
6467
6468 # Do not use the global_symbol_pipe unless it works.
6469 if test "$pipe_works" = yes; then
6470 break
6471 else
6472 lt_cv_sys_global_symbol_pipe=
6473 fi
6474 done
6475
6476 fi
6477
6478 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6479 lt_cv_sys_global_symbol_to_cdecl=
6480 fi
6481 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6483 $as_echo "failed" >&6; }
6484 else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6486 $as_echo "ok" >&6; }
6487 fi
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511 # Check whether --enable-libtool-lock was given.
6512 if test "${enable_libtool_lock+set}" = set; then :
6513 enableval=$enable_libtool_lock;
6514 fi
6515
6516 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6517
6518 # Some flags need to be propagated to the compiler or linker for good
6519 # libtool support.
6520 case $host in
6521 ia64-*-hpux*)
6522 # Find out which ABI we are using.
6523 echo 'int i;' > conftest.$ac_ext
6524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6525 (eval $ac_compile) 2>&5
6526 ac_status=$?
6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528 test $ac_status = 0; }; then
6529 case `/usr/bin/file conftest.$ac_objext` in
6530 *ELF-32*)
6531 HPUX_IA64_MODE="32"
6532 ;;
6533 *ELF-64*)
6534 HPUX_IA64_MODE="64"
6535 ;;
6536 esac
6537 fi
6538 rm -rf conftest*
6539 ;;
6540 *-*-irix6*)
6541 # Find out which ABI we are using.
6542 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 if test "$lt_cv_prog_gnu_ld" = yes; then
6549 case `/usr/bin/file conftest.$ac_objext` in
6550 *32-bit*)
6551 LD="${LD-ld} -melf32bsmip"
6552 ;;
6553 *N32*)
6554 LD="${LD-ld} -melf32bmipn32"
6555 ;;
6556 *64-bit*)
6557 LD="${LD-ld} -melf64bmip"
6558 ;;
6559 esac
6560 else
6561 case `/usr/bin/file conftest.$ac_objext` in
6562 *32-bit*)
6563 LD="${LD-ld} -32"
6564 ;;
6565 *N32*)
6566 LD="${LD-ld} -n32"
6567 ;;
6568 *64-bit*)
6569 LD="${LD-ld} -64"
6570 ;;
6571 esac
6572 fi
6573 fi
6574 rm -rf conftest*
6575 ;;
6576
6577 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6578 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6579 # Find out which ABI we are using.
6580 echo 'int i;' > conftest.$ac_ext
6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582 (eval $ac_compile) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; }; then
6586 case `/usr/bin/file conftest.o` in
6587 *32-bit*)
6588 case $host in
6589 x86_64-*kfreebsd*-gnu)
6590 LD="${LD-ld} -m elf_i386_fbsd"
6591 ;;
6592 x86_64-*linux*)
6593 LD="${LD-ld} -m elf_i386"
6594 ;;
6595 ppc64-*linux*|powerpc64-*linux*)
6596 LD="${LD-ld} -m elf32ppclinux"
6597 ;;
6598 s390x-*linux*)
6599 LD="${LD-ld} -m elf_s390"
6600 ;;
6601 sparc64-*linux*)
6602 LD="${LD-ld} -m elf32_sparc"
6603 ;;
6604 esac
6605 ;;
6606 *64-bit*)
6607 case $host in
6608 x86_64-*kfreebsd*-gnu)
6609 LD="${LD-ld} -m elf_x86_64_fbsd"
6610 ;;
6611 x86_64-*linux*)
6612 LD="${LD-ld} -m elf_x86_64"
6613 ;;
6614 ppc*-*linux*|powerpc*-*linux*)
6615 LD="${LD-ld} -m elf64ppc"
6616 ;;
6617 s390*-*linux*|s390*-*tpf*)
6618 LD="${LD-ld} -m elf64_s390"
6619 ;;
6620 sparc*-*linux*)
6621 LD="${LD-ld} -m elf64_sparc"
6622 ;;
6623 esac
6624 ;;
6625 esac
6626 fi
6627 rm -rf conftest*
6628 ;;
6629
6630 *-*-sco3.2v5*)
6631 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6632 SAVE_CFLAGS="$CFLAGS"
6633 CFLAGS="$CFLAGS -belf"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6635 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6636 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 ac_ext=c
6640 ac_cpp='$CPP $CPPFLAGS'
6641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6644
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647
6648 int
6649 main ()
6650 {
6651
6652 ;
6653 return 0;
6654 }
6655 _ACEOF
6656 if ac_fn_c_try_link "$LINENO"; then :
6657 lt_cv_cc_needs_belf=yes
6658 else
6659 lt_cv_cc_needs_belf=no
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext \
6662 conftest$ac_exeext conftest.$ac_ext
6663 ac_ext=c
6664 ac_cpp='$CPP $CPPFLAGS'
6665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6671 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6672 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6673 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6674 CFLAGS="$SAVE_CFLAGS"
6675 fi
6676 ;;
6677 sparc*-*solaris*)
6678 # Find out which ABI we are using.
6679 echo 'int i;' > conftest.$ac_ext
6680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681 (eval $ac_compile) 2>&5
6682 ac_status=$?
6683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684 test $ac_status = 0; }; then
6685 case `/usr/bin/file conftest.o` in
6686 *64-bit*)
6687 case $lt_cv_prog_gnu_ld in
6688 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6689 *)
6690 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6691 LD="${LD-ld} -64"
6692 fi
6693 ;;
6694 esac
6695 ;;
6696 esac
6697 fi
6698 rm -rf conftest*
6699 ;;
6700 esac
6701
6702 need_locks="$enable_libtool_lock"
6703
6704
6705 case $host_os in
6706 rhapsody* | darwin*)
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$DSYMUTIL"; then
6716 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6736 if test -n "$DSYMUTIL"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6738 $as_echo "$DSYMUTIL" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_DSYMUTIL"; then
6747 ac_ct_DSYMUTIL=$DSYMUTIL
6748 # Extract the first word of "dsymutil", so it can be a program name with args.
6749 set dummy dsymutil; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$ac_ct_DSYMUTIL"; then
6756 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6776 if test -n "$ac_ct_DSYMUTIL"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6778 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784 if test "x$ac_ct_DSYMUTIL" = x; then
6785 DSYMUTIL=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 DSYMUTIL=$ac_ct_DSYMUTIL
6794 fi
6795 else
6796 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6797 fi
6798
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$NMEDIT"; then
6808 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 NMEDIT=$ac_cv_prog_NMEDIT
6828 if test -n "$NMEDIT"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6830 $as_echo "$NMEDIT" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836
6837 fi
6838 if test -z "$ac_cv_prog_NMEDIT"; then
6839 ac_ct_NMEDIT=$NMEDIT
6840 # Extract the first word of "nmedit", so it can be a program name with args.
6841 set dummy nmedit; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$ac_ct_NMEDIT"; then
6848 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6868 if test -n "$ac_ct_NMEDIT"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6870 $as_echo "$ac_ct_NMEDIT" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876 if test "x$ac_ct_NMEDIT" = x; then
6877 NMEDIT=":"
6878 else
6879 case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885 NMEDIT=$ac_ct_NMEDIT
6886 fi
6887 else
6888 NMEDIT="$ac_cv_prog_NMEDIT"
6889 fi
6890
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if test "${ac_cv_prog_LIPO+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$LIPO"; then
6900 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 LIPO=$ac_cv_prog_LIPO
6920 if test -n "$LIPO"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6922 $as_echo "$LIPO" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_LIPO"; then
6931 ac_ct_LIPO=$LIPO
6932 # Extract the first word of "lipo", so it can be a program name with args.
6933 set dummy lipo; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_LIPO"; then
6940 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_ac_ct_LIPO="lipo"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6960 if test -n "$ac_ct_LIPO"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6962 $as_echo "$ac_ct_LIPO" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968 if test "x$ac_ct_LIPO" = x; then
6969 LIPO=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 LIPO=$ac_ct_LIPO
6978 fi
6979 else
6980 LIPO="$ac_cv_prog_LIPO"
6981 fi
6982
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}otool; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$OTOOL"; then
6992 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 OTOOL=$ac_cv_prog_OTOOL
7012 if test -n "$OTOOL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7014 $as_echo "$OTOOL" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_OTOOL"; then
7023 ac_ct_OTOOL=$OTOOL
7024 # Extract the first word of "otool", so it can be a program name with args.
7025 set dummy otool; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$ac_ct_OTOOL"; then
7032 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_prog_ac_ct_OTOOL="otool"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045 done
7046 done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7052 if test -n "$ac_ct_OTOOL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7054 $as_echo "$ac_ct_OTOOL" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060 if test "x$ac_ct_OTOOL" = x; then
7061 OTOOL=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 OTOOL=$ac_ct_OTOOL
7070 fi
7071 else
7072 OTOOL="$ac_cv_prog_OTOOL"
7073 fi
7074
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$OTOOL64"; then
7084 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 OTOOL64=$ac_cv_prog_OTOOL64
7104 if test -n "$OTOOL64"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7106 $as_echo "$OTOOL64" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_OTOOL64"; then
7115 ac_ct_OTOOL64=$OTOOL64
7116 # Extract the first word of "otool64", so it can be a program name with args.
7117 set dummy otool64; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_OTOOL64"; then
7124 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_ac_ct_OTOOL64="otool64"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7144 if test -n "$ac_ct_OTOOL64"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7146 $as_echo "$ac_ct_OTOOL64" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152 if test "x$ac_ct_OTOOL64" = x; then
7153 OTOOL64=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 OTOOL64=$ac_ct_OTOOL64
7162 fi
7163 else
7164 OTOOL64="$ac_cv_prog_OTOOL64"
7165 fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7194 $as_echo_n "checking for -single_module linker flag... " >&6; }
7195 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 lt_cv_apple_cc_single_mod=no
7199 if test -z "${LT_MULTI_MODULE}"; then
7200 # By default we will add the -single_module flag. You can override
7201 # by either setting the environment variable LT_MULTI_MODULE
7202 # non-empty at configure time, or by adding -multi_module to the
7203 # link flags.
7204 rm -rf libconftest.dylib*
7205 echo "int foo(void){return 1;}" > conftest.c
7206 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7207 -dynamiclib -Wl,-single_module conftest.c" >&5
7208 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7209 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7210 _lt_result=$?
7211 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7212 lt_cv_apple_cc_single_mod=yes
7213 else
7214 cat conftest.err >&5
7215 fi
7216 rm -rf libconftest.dylib*
7217 rm -f conftest.*
7218 fi
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7221 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7223 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7224 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 lt_cv_ld_exported_symbols_list=no
7228 save_LDFLAGS=$LDFLAGS
7229 echo "_main" > conftest.sym
7230 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233
7234 int
7235 main ()
7236 {
7237
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_link "$LINENO"; then :
7243 lt_cv_ld_exported_symbols_list=yes
7244 else
7245 lt_cv_ld_exported_symbols_list=no
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext \
7248 conftest$ac_exeext conftest.$ac_ext
7249 LDFLAGS="$save_LDFLAGS"
7250
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7253 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7255 $as_echo_n "checking for -force_load linker flag... " >&6; }
7256 if test "${lt_cv_ld_force_load+set}" = set; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 lt_cv_ld_force_load=no
7260 cat > conftest.c << _LT_EOF
7261 int forced_loaded() { return 2;}
7262 _LT_EOF
7263 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7264 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7265 echo "$AR cru libconftest.a conftest.o" >&5
7266 $AR cru libconftest.a conftest.o 2>&5
7267 cat > conftest.c << _LT_EOF
7268 int main() { return 0;}
7269 _LT_EOF
7270 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7271 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7272 _lt_result=$?
7273 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7274 lt_cv_ld_force_load=yes
7275 else
7276 cat conftest.err >&5
7277 fi
7278 rm -f conftest.err libconftest.a conftest conftest.c
7279 rm -rf conftest.dSYM
7280
7281 fi
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7283 $as_echo "$lt_cv_ld_force_load" >&6; }
7284 case $host_os in
7285 rhapsody* | darwin1.[012])
7286 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7287 darwin1.*)
7288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7289 darwin*) # darwin 5.x on
7290 # if running on 10.5 or later, the deployment target defaults
7291 # to the OS version, if on x86, and 10.4, the deployment
7292 # target defaults to 10.4. Don't you love it?
7293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7294 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7295 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7296 10.[012]*)
7297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298 10.*)
7299 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7300 esac
7301 ;;
7302 esac
7303 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7304 _lt_dar_single_mod='$single_module'
7305 fi
7306 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7307 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7308 else
7309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7310 fi
7311 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7312 _lt_dsymutil='~$DSYMUTIL $lib || :'
7313 else
7314 _lt_dsymutil=
7315 fi
7316 ;;
7317 esac
7318
7319 ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7326 # On Suns, sometimes $CPP names a directory.
7327 if test -n "$CPP" && test -d "$CPP"; then
7328 CPP=
7329 fi
7330 if test -z "$CPP"; then
7331 if test "${ac_cv_prog_CPP+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 # Double quotes because CPP needs to be expanded
7335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7336 do
7337 ac_preproc_ok=false
7338 for ac_c_preproc_warn_flag in '' yes
7339 do
7340 # Use a header file that comes with gcc, so configuring glibc
7341 # with a fresh cross-compiler works.
7342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7343 # <limits.h> exists even on freestanding compilers.
7344 # On the NeXT, cc -E runs the code through the compiler's parser,
7345 # not just through cpp. "Syntax error" is here to catch this case.
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 #ifdef __STDC__
7349 # include <limits.h>
7350 #else
7351 # include <assert.h>
7352 #endif
7353 Syntax error
7354 _ACEOF
7355 if ac_fn_c_try_cpp "$LINENO"; then :
7356
7357 else
7358 # Broken: fails on valid input.
7359 continue
7360 fi
7361 rm -f conftest.err conftest.$ac_ext
7362
7363 # OK, works on sane cases. Now check whether nonexistent headers
7364 # can be detected and how.
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 #include <ac_nonexistent.h>
7368 _ACEOF
7369 if ac_fn_c_try_cpp "$LINENO"; then :
7370 # Broken: success on invalid input.
7371 continue
7372 else
7373 # Passes both tests.
7374 ac_preproc_ok=:
7375 break
7376 fi
7377 rm -f conftest.err conftest.$ac_ext
7378
7379 done
7380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7381 rm -f conftest.err conftest.$ac_ext
7382 if $ac_preproc_ok; then :
7383 break
7384 fi
7385
7386 done
7387 ac_cv_prog_CPP=$CPP
7388
7389 fi
7390 CPP=$ac_cv_prog_CPP
7391 else
7392 ac_cv_prog_CPP=$CPP
7393 fi
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7395 $as_echo "$CPP" >&6; }
7396 ac_preproc_ok=false
7397 for ac_c_preproc_warn_flag in '' yes
7398 do
7399 # Use a header file that comes with gcc, so configuring glibc
7400 # with a fresh cross-compiler works.
7401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7402 # <limits.h> exists even on freestanding compilers.
7403 # On the NeXT, cc -E runs the code through the compiler's parser,
7404 # not just through cpp. "Syntax error" is here to catch this case.
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7407 #ifdef __STDC__
7408 # include <limits.h>
7409 #else
7410 # include <assert.h>
7411 #endif
7412 Syntax error
7413 _ACEOF
7414 if ac_fn_c_try_cpp "$LINENO"; then :
7415
7416 else
7417 # Broken: fails on valid input.
7418 continue
7419 fi
7420 rm -f conftest.err conftest.$ac_ext
7421
7422 # OK, works on sane cases. Now check whether nonexistent headers
7423 # can be detected and how.
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 #include <ac_nonexistent.h>
7427 _ACEOF
7428 if ac_fn_c_try_cpp "$LINENO"; then :
7429 # Broken: success on invalid input.
7430 continue
7431 else
7432 # Passes both tests.
7433 ac_preproc_ok=:
7434 break
7435 fi
7436 rm -f conftest.err conftest.$ac_ext
7437
7438 done
7439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7440 rm -f conftest.err conftest.$ac_ext
7441 if $ac_preproc_ok; then :
7442
7443 else
7444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7446 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7447 See \`config.log' for more details." "$LINENO" 5; }
7448 fi
7449
7450 ac_ext=c
7451 ac_cpp='$CPP $CPPFLAGS'
7452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455
7456
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7458 $as_echo_n "checking for ANSI C header files... " >&6; }
7459 if test "${ac_cv_header_stdc+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #include <stdlib.h>
7465 #include <stdarg.h>
7466 #include <string.h>
7467 #include <float.h>
7468
7469 int
7470 main ()
7471 {
7472
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 ac_cv_header_stdc=yes
7479 else
7480 ac_cv_header_stdc=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483
7484 if test $ac_cv_header_stdc = yes; then
7485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 #include <string.h>
7489
7490 _ACEOF
7491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7492 $EGREP "memchr" >/dev/null 2>&1; then :
7493
7494 else
7495 ac_cv_header_stdc=no
7496 fi
7497 rm -f conftest*
7498
7499 fi
7500
7501 if test $ac_cv_header_stdc = yes; then
7502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 #include <stdlib.h>
7506
7507 _ACEOF
7508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509 $EGREP "free" >/dev/null 2>&1; then :
7510
7511 else
7512 ac_cv_header_stdc=no
7513 fi
7514 rm -f conftest*
7515
7516 fi
7517
7518 if test $ac_cv_header_stdc = yes; then
7519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7520 if test "$cross_compiling" = yes; then :
7521 :
7522 else
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <ctype.h>
7526 #include <stdlib.h>
7527 #if ((' ' & 0x0FF) == 0x020)
7528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7530 #else
7531 # define ISLOWER(c) \
7532 (('a' <= (c) && (c) <= 'i') \
7533 || ('j' <= (c) && (c) <= 'r') \
7534 || ('s' <= (c) && (c) <= 'z'))
7535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7536 #endif
7537
7538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7539 int
7540 main ()
7541 {
7542 int i;
7543 for (i = 0; i < 256; i++)
7544 if (XOR (islower (i), ISLOWER (i))
7545 || toupper (i) != TOUPPER (i))
7546 return 2;
7547 return 0;
7548 }
7549 _ACEOF
7550 if ac_fn_c_try_run "$LINENO"; then :
7551
7552 else
7553 ac_cv_header_stdc=no
7554 fi
7555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7556 conftest.$ac_objext conftest.beam conftest.$ac_ext
7557 fi
7558
7559 fi
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7562 $as_echo "$ac_cv_header_stdc" >&6; }
7563 if test $ac_cv_header_stdc = yes; then
7564
7565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7566
7567 fi
7568
7569 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7571 inttypes.h stdint.h unistd.h
7572 do :
7573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7574 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7575 "
7576 eval as_val=\$$as_ac_Header
7577 if test "x$as_val" = x""yes; then :
7578 cat >>confdefs.h <<_ACEOF
7579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580 _ACEOF
7581
7582 fi
7583
7584 done
7585
7586
7587 for ac_header in dlfcn.h
7588 do :
7589 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7590 "
7591 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7592 cat >>confdefs.h <<_ACEOF
7593 #define HAVE_DLFCN_H 1
7594 _ACEOF
7595
7596 fi
7597
7598 done
7599
7600
7601
7602
7603
7604 # Set options
7605
7606
7607
7608 enable_dlopen=no
7609
7610
7611 enable_win32_dll=no
7612
7613
7614 # Check whether --enable-shared was given.
7615 if test "${enable_shared+set}" = set; then :
7616 enableval=$enable_shared; p=${PACKAGE-default}
7617 case $enableval in
7618 yes) enable_shared=yes ;;
7619 no) enable_shared=no ;;
7620 *)
7621 enable_shared=no
7622 # Look at the argument we got. We use all the common list separators.
7623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7624 for pkg in $enableval; do
7625 IFS="$lt_save_ifs"
7626 if test "X$pkg" = "X$p"; then
7627 enable_shared=yes
7628 fi
7629 done
7630 IFS="$lt_save_ifs"
7631 ;;
7632 esac
7633 else
7634 enable_shared=yes
7635 fi
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 # Check whether --enable-static was given.
7646 if test "${enable_static+set}" = set; then :
7647 enableval=$enable_static; p=${PACKAGE-default}
7648 case $enableval in
7649 yes) enable_static=yes ;;
7650 no) enable_static=no ;;
7651 *)
7652 enable_static=no
7653 # Look at the argument we got. We use all the common list separators.
7654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655 for pkg in $enableval; do
7656 IFS="$lt_save_ifs"
7657 if test "X$pkg" = "X$p"; then
7658 enable_static=yes
7659 fi
7660 done
7661 IFS="$lt_save_ifs"
7662 ;;
7663 esac
7664 else
7665 enable_static=yes
7666 fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677 # Check whether --with-pic was given.
7678 if test "${with_pic+set}" = set; then :
7679 withval=$with_pic; pic_mode="$withval"
7680 else
7681 pic_mode=default
7682 fi
7683
7684
7685 test -z "$pic_mode" && pic_mode=default
7686
7687
7688
7689
7690
7691
7692
7693 # Check whether --enable-fast-install was given.
7694 if test "${enable_fast_install+set}" = set; then :
7695 enableval=$enable_fast_install; p=${PACKAGE-default}
7696 case $enableval in
7697 yes) enable_fast_install=yes ;;
7698 no) enable_fast_install=no ;;
7699 *)
7700 enable_fast_install=no
7701 # Look at the argument we got. We use all the common list separators.
7702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7703 for pkg in $enableval; do
7704 IFS="$lt_save_ifs"
7705 if test "X$pkg" = "X$p"; then
7706 enable_fast_install=yes
7707 fi
7708 done
7709 IFS="$lt_save_ifs"
7710 ;;
7711 esac
7712 else
7713 enable_fast_install=yes
7714 fi
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726 # This can be used to rebuild libtool when needed
7727 LIBTOOL_DEPS="$ltmain"
7728
7729 # Always use our own libtool.
7730 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757 test -z "$LN_S" && LN_S="ln -s"
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772 if test -n "${ZSH_VERSION+set}" ; then
7773 setopt NO_GLOB_SUBST
7774 fi
7775
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7777 $as_echo_n "checking for objdir... " >&6; }
7778 if test "${lt_cv_objdir+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 rm -f .libs 2>/dev/null
7782 mkdir .libs 2>/dev/null
7783 if test -d .libs; then
7784 lt_cv_objdir=.libs
7785 else
7786 # MS-DOS does not allow filenames that begin with a dot.
7787 lt_cv_objdir=_libs
7788 fi
7789 rmdir .libs 2>/dev/null
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7792 $as_echo "$lt_cv_objdir" >&6; }
7793 objdir=$lt_cv_objdir
7794
7795
7796
7797
7798
7799 cat >>confdefs.h <<_ACEOF
7800 #define LT_OBJDIR "$lt_cv_objdir/"
7801 _ACEOF
7802
7803
7804
7805
7806 case $host_os in
7807 aix3*)
7808 # AIX sometimes has problems with the GCC collect2 program. For some
7809 # reason, if we set the COLLECT_NAMES environment variable, the problems
7810 # vanish in a puff of smoke.
7811 if test "X${COLLECT_NAMES+set}" != Xset; then
7812 COLLECT_NAMES=
7813 export COLLECT_NAMES
7814 fi
7815 ;;
7816 esac
7817
7818 # Global variables:
7819 ofile=libtool
7820 can_build_shared=yes
7821
7822 # All known linkers require a `.a' archive for static linking (except MSVC,
7823 # which needs '.lib').
7824 libext=a
7825
7826 with_gnu_ld="$lt_cv_prog_gnu_ld"
7827
7828 old_CC="$CC"
7829 old_CFLAGS="$CFLAGS"
7830
7831 # Set sane defaults for various variables
7832 test -z "$CC" && CC=cc
7833 test -z "$LTCC" && LTCC=$CC
7834 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7835 test -z "$LD" && LD=ld
7836 test -z "$ac_objext" && ac_objext=o
7837
7838 for cc_temp in $compiler""; do
7839 case $cc_temp in
7840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7842 \-*) ;;
7843 *) break;;
7844 esac
7845 done
7846 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7847
7848
7849 # Only perform the check for file, if the check method requires it
7850 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7851 case $deplibs_check_method in
7852 file_magic*)
7853 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7855 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7856 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 case $MAGIC_CMD in
7860 [\\/*] | ?:[\\/]*)
7861 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7862 ;;
7863 *)
7864 lt_save_MAGIC_CMD="$MAGIC_CMD"
7865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7866 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7867 for ac_dir in $ac_dummy; do
7868 IFS="$lt_save_ifs"
7869 test -z "$ac_dir" && ac_dir=.
7870 if test -f $ac_dir/${ac_tool_prefix}file; then
7871 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7872 if test -n "$file_magic_test_file"; then
7873 case $deplibs_check_method in
7874 "file_magic "*)
7875 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7877 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7878 $EGREP "$file_magic_regex" > /dev/null; then
7879 :
7880 else
7881 cat <<_LT_EOF 1>&2
7882
7883 *** Warning: the command libtool uses to detect shared libraries,
7884 *** $file_magic_cmd, produces output that libtool cannot recognize.
7885 *** The result is that libtool may fail to recognize shared libraries
7886 *** as such. This will affect the creation of libtool libraries that
7887 *** depend on shared libraries, but programs linked with such libtool
7888 *** libraries will work regardless of this problem. Nevertheless, you
7889 *** may want to report the problem to your system manager and/or to
7890 *** bug-libtool@gnu.org
7891
7892 _LT_EOF
7893 fi ;;
7894 esac
7895 fi
7896 break
7897 fi
7898 done
7899 IFS="$lt_save_ifs"
7900 MAGIC_CMD="$lt_save_MAGIC_CMD"
7901 ;;
7902 esac
7903 fi
7904
7905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906 if test -n "$MAGIC_CMD"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7908 $as_echo "$MAGIC_CMD" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913
7914
7915
7916
7917
7918 if test -z "$lt_cv_path_MAGIC_CMD"; then
7919 if test -n "$ac_tool_prefix"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7921 $as_echo_n "checking for file... " >&6; }
7922 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 case $MAGIC_CMD in
7926 [\\/*] | ?:[\\/]*)
7927 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7928 ;;
7929 *)
7930 lt_save_MAGIC_CMD="$MAGIC_CMD"
7931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7933 for ac_dir in $ac_dummy; do
7934 IFS="$lt_save_ifs"
7935 test -z "$ac_dir" && ac_dir=.
7936 if test -f $ac_dir/file; then
7937 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7938 if test -n "$file_magic_test_file"; then
7939 case $deplibs_check_method in
7940 "file_magic "*)
7941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7944 $EGREP "$file_magic_regex" > /dev/null; then
7945 :
7946 else
7947 cat <<_LT_EOF 1>&2
7948
7949 *** Warning: the command libtool uses to detect shared libraries,
7950 *** $file_magic_cmd, produces output that libtool cannot recognize.
7951 *** The result is that libtool may fail to recognize shared libraries
7952 *** as such. This will affect the creation of libtool libraries that
7953 *** depend on shared libraries, but programs linked with such libtool
7954 *** libraries will work regardless of this problem. Nevertheless, you
7955 *** may want to report the problem to your system manager and/or to
7956 *** bug-libtool@gnu.org
7957
7958 _LT_EOF
7959 fi ;;
7960 esac
7961 fi
7962 break
7963 fi
7964 done
7965 IFS="$lt_save_ifs"
7966 MAGIC_CMD="$lt_save_MAGIC_CMD"
7967 ;;
7968 esac
7969 fi
7970
7971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972 if test -n "$MAGIC_CMD"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7974 $as_echo "$MAGIC_CMD" >&6; }
7975 else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980
7981 else
7982 MAGIC_CMD=:
7983 fi
7984 fi
7985
7986 fi
7987 ;;
7988 esac
7989
7990 # Use C for the default configuration in the libtool script
7991
7992 lt_save_CC="$CC"
7993 ac_ext=c
7994 ac_cpp='$CPP $CPPFLAGS'
7995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998
7999
8000 # Source file extension for C test sources.
8001 ac_ext=c
8002
8003 # Object file extension for compiled C test sources.
8004 objext=o
8005 objext=$objext
8006
8007 # Code to be used in simple compile tests
8008 lt_simple_compile_test_code="int some_variable = 0;"
8009
8010 # Code to be used in simple link tests
8011 lt_simple_link_test_code='int main(){return(0);}'
8012
8013
8014
8015
8016
8017
8018
8019 # If no C compiler was specified, use CC.
8020 LTCC=${LTCC-"$CC"}
8021
8022 # If no C compiler flags were specified, use CFLAGS.
8023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8024
8025 # Allow CC to be a program name with arguments.
8026 compiler=$CC
8027
8028 # Save the default compiler, since it gets overwritten when the other
8029 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8030 compiler_DEFAULT=$CC
8031
8032 # save warnings/boilerplate of simple test code
8033 ac_outfile=conftest.$ac_objext
8034 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8035 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8036 _lt_compiler_boilerplate=`cat conftest.err`
8037 $RM conftest*
8038
8039 ac_outfile=conftest.$ac_objext
8040 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8041 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8042 _lt_linker_boilerplate=`cat conftest.err`
8043 $RM -r conftest*
8044
8045
8046 ## CAVEAT EMPTOR:
8047 ## There is no encapsulation within the following macros, do not change
8048 ## the running order or otherwise move them around unless you know exactly
8049 ## what you are doing...
8050 if test -n "$compiler"; then
8051
8052 lt_prog_compiler_no_builtin_flag=
8053
8054 if test "$GCC" = yes; then
8055 case $cc_basename in
8056 nvcc*)
8057 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8058 *)
8059 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8060 esac
8061
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8063 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8064 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_prog_compiler_rtti_exceptions=no
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070 lt_compiler_flag="-fno-rtti -fno-exceptions"
8071 # Insert the option either (1) after the last *FLAGS variable, or
8072 # (2) before a word containing "conftest.", or (3) at the end.
8073 # Note that $ac_compile itself does not contain backslashes and begins
8074 # with a dollar sign (not a hyphen), so the echo should work correctly.
8075 # The option is referenced via a variable to avoid confusing sed.
8076 lt_compile=`echo "$ac_compile" | $SED \
8077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079 -e 's:$: $lt_compiler_flag:'`
8080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8081 (eval "$lt_compile" 2>conftest.err)
8082 ac_status=$?
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 if (exit $ac_status) && test -s "$ac_outfile"; then
8086 # The compiler can only warn and ignore the option if not recognized
8087 # So say no if there are warnings other than the usual output.
8088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8091 lt_cv_prog_compiler_rtti_exceptions=yes
8092 fi
8093 fi
8094 $RM conftest*
8095
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8098 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8099
8100 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8101 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8102 else
8103 :
8104 fi
8105
8106 fi
8107
8108
8109
8110
8111
8112
8113 lt_prog_compiler_wl=
8114 lt_prog_compiler_pic=
8115 lt_prog_compiler_static=
8116
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8118 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8119
8120 if test "$GCC" = yes; then
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_static='-static'
8123
8124 case $host_os in
8125 aix*)
8126 # All AIX code is PIC.
8127 if test "$host_cpu" = ia64; then
8128 # AIX 5 now supports IA64 processor
8129 lt_prog_compiler_static='-Bstatic'
8130 fi
8131 ;;
8132
8133 amigaos*)
8134 case $host_cpu in
8135 powerpc)
8136 # see comment about AmigaOS4 .so support
8137 lt_prog_compiler_pic='-fPIC'
8138 ;;
8139 m68k)
8140 # FIXME: we need at least 68020 code to build shared libraries, but
8141 # adding the `-m68020' flag to GCC prevents building anything better,
8142 # like `-m68040'.
8143 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8144 ;;
8145 esac
8146 ;;
8147
8148 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8149 # PIC is the default for these OSes.
8150 ;;
8151
8152 mingw* | cygwin* | pw32* | os2* | cegcc*)
8153 # This hack is so that the source file can tell whether it is being
8154 # built for inclusion in a dll (and should export symbols for example).
8155 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8156 # (--disable-auto-import) libraries
8157 lt_prog_compiler_pic='-DDLL_EXPORT'
8158 ;;
8159
8160 darwin* | rhapsody*)
8161 # PIC is the default on this platform
8162 # Common symbols not allowed in MH_DYLIB files
8163 lt_prog_compiler_pic='-fno-common'
8164 ;;
8165
8166 haiku*)
8167 # PIC is the default for Haiku.
8168 # The "-static" flag exists, but is broken.
8169 lt_prog_compiler_static=
8170 ;;
8171
8172 hpux*)
8173 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8174 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8175 # sets the default TLS model and affects inlining.
8176 case $host_cpu in
8177 hppa*64*)
8178 # +Z the default
8179 ;;
8180 *)
8181 lt_prog_compiler_pic='-fPIC'
8182 ;;
8183 esac
8184 ;;
8185
8186 interix[3-9]*)
8187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8188 # Instead, we relocate shared libraries at runtime.
8189 ;;
8190
8191 msdosdjgpp*)
8192 # Just because we use GCC doesn't mean we suddenly get shared libraries
8193 # on systems that don't support them.
8194 lt_prog_compiler_can_build_shared=no
8195 enable_shared=no
8196 ;;
8197
8198 *nto* | *qnx*)
8199 # QNX uses GNU C++, but need to define -shared option too, otherwise
8200 # it will coredump.
8201 lt_prog_compiler_pic='-fPIC -shared'
8202 ;;
8203
8204 sysv4*MP*)
8205 if test -d /usr/nec; then
8206 lt_prog_compiler_pic=-Kconform_pic
8207 fi
8208 ;;
8209
8210 *)
8211 lt_prog_compiler_pic='-fPIC'
8212 ;;
8213 esac
8214
8215 case $cc_basename in
8216 nvcc*) # Cuda Compiler Driver 2.2
8217 lt_prog_compiler_wl='-Xlinker '
8218 lt_prog_compiler_pic='-Xcompiler -fPIC'
8219 ;;
8220 esac
8221 else
8222 # PORTME Check for flag to pass linker flags through the system compiler.
8223 case $host_os in
8224 aix*)
8225 lt_prog_compiler_wl='-Wl,'
8226 if test "$host_cpu" = ia64; then
8227 # AIX 5 now supports IA64 processor
8228 lt_prog_compiler_static='-Bstatic'
8229 else
8230 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8231 fi
8232 ;;
8233
8234 mingw* | cygwin* | pw32* | os2* | cegcc*)
8235 # This hack is so that the source file can tell whether it is being
8236 # built for inclusion in a dll (and should export symbols for example).
8237 lt_prog_compiler_pic='-DDLL_EXPORT'
8238 ;;
8239
8240 hpux9* | hpux10* | hpux11*)
8241 lt_prog_compiler_wl='-Wl,'
8242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8243 # not for PA HP-UX.
8244 case $host_cpu in
8245 hppa*64*|ia64*)
8246 # +Z the default
8247 ;;
8248 *)
8249 lt_prog_compiler_pic='+Z'
8250 ;;
8251 esac
8252 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8253 lt_prog_compiler_static='${wl}-a ${wl}archive'
8254 ;;
8255
8256 irix5* | irix6* | nonstopux*)
8257 lt_prog_compiler_wl='-Wl,'
8258 # PIC (with -KPIC) is the default.
8259 lt_prog_compiler_static='-non_shared'
8260 ;;
8261
8262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8263 case $cc_basename in
8264 # old Intel for x86_64 which still supported -KPIC.
8265 ecc*)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-KPIC'
8268 lt_prog_compiler_static='-static'
8269 ;;
8270 # icc used to be incompatible with GCC.
8271 # ICC 10 doesn't accept -KPIC any more.
8272 icc* | ifort*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='-fPIC'
8275 lt_prog_compiler_static='-static'
8276 ;;
8277 # Lahey Fortran 8.1.
8278 lf95*)
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_pic='--shared'
8281 lt_prog_compiler_static='--static'
8282 ;;
8283 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8284 # Portland Group compilers (*not* the Pentium gcc compiler,
8285 # which looks to be a dead project)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_pic='-fpic'
8288 lt_prog_compiler_static='-Bstatic'
8289 ;;
8290 ccc*)
8291 lt_prog_compiler_wl='-Wl,'
8292 # All Alpha code is PIC.
8293 lt_prog_compiler_static='-non_shared'
8294 ;;
8295 xl* | bgxl* | bgf* | mpixl*)
8296 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_pic='-qpic'
8299 lt_prog_compiler_static='-qstaticlink'
8300 ;;
8301 *)
8302 case `$CC -V 2>&1 | sed 5q` in
8303 *Sun\ F* | *Sun*Fortran*)
8304 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8305 lt_prog_compiler_pic='-KPIC'
8306 lt_prog_compiler_static='-Bstatic'
8307 lt_prog_compiler_wl=''
8308 ;;
8309 *Sun\ C*)
8310 # Sun C 5.9
8311 lt_prog_compiler_pic='-KPIC'
8312 lt_prog_compiler_static='-Bstatic'
8313 lt_prog_compiler_wl='-Wl,'
8314 ;;
8315 esac
8316 ;;
8317 esac
8318 ;;
8319
8320 newsos6)
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-Bstatic'
8323 ;;
8324
8325 *nto* | *qnx*)
8326 # QNX uses GNU C++, but need to define -shared option too, otherwise
8327 # it will coredump.
8328 lt_prog_compiler_pic='-fPIC -shared'
8329 ;;
8330
8331 osf3* | osf4* | osf5*)
8332 lt_prog_compiler_wl='-Wl,'
8333 # All OSF/1 code is PIC.
8334 lt_prog_compiler_static='-non_shared'
8335 ;;
8336
8337 rdos*)
8338 lt_prog_compiler_static='-non_shared'
8339 ;;
8340
8341 solaris*)
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8344 case $cc_basename in
8345 f77* | f90* | f95*)
8346 lt_prog_compiler_wl='-Qoption ld ';;
8347 *)
8348 lt_prog_compiler_wl='-Wl,';;
8349 esac
8350 ;;
8351
8352 sunos4*)
8353 lt_prog_compiler_wl='-Qoption ld '
8354 lt_prog_compiler_pic='-PIC'
8355 lt_prog_compiler_static='-Bstatic'
8356 ;;
8357
8358 sysv4 | sysv4.2uw2* | sysv4.3*)
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 ;;
8363
8364 sysv4*MP*)
8365 if test -d /usr/nec ;then
8366 lt_prog_compiler_pic='-Kconform_pic'
8367 lt_prog_compiler_static='-Bstatic'
8368 fi
8369 ;;
8370
8371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8372 lt_prog_compiler_wl='-Wl,'
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 ;;
8376
8377 unicos*)
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_can_build_shared=no
8380 ;;
8381
8382 uts4*)
8383 lt_prog_compiler_pic='-pic'
8384 lt_prog_compiler_static='-Bstatic'
8385 ;;
8386
8387 *)
8388 lt_prog_compiler_can_build_shared=no
8389 ;;
8390 esac
8391 fi
8392
8393 case $host_os in
8394 # For platforms which do not support PIC, -DPIC is meaningless:
8395 *djgpp*)
8396 lt_prog_compiler_pic=
8397 ;;
8398 *)
8399 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8400 ;;
8401 esac
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8403 $as_echo "$lt_prog_compiler_pic" >&6; }
8404
8405
8406
8407
8408
8409
8410 #
8411 # Check to make sure the PIC flag actually works.
8412 #
8413 if test -n "$lt_prog_compiler_pic"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8415 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8416 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 lt_cv_prog_compiler_pic_works=no
8420 ac_outfile=conftest.$ac_objext
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 # The option is referenced via a variable to avoid confusing sed.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>conftest.err)
8434 ac_status=$?
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s "$ac_outfile"; then
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings other than the usual output.
8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8443 lt_cv_prog_compiler_pic_works=yes
8444 fi
8445 fi
8446 $RM conftest*
8447
8448 fi
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8450 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8451
8452 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8453 case $lt_prog_compiler_pic in
8454 "" | " "*) ;;
8455 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8456 esac
8457 else
8458 lt_prog_compiler_pic=
8459 lt_prog_compiler_can_build_shared=no
8460 fi
8461
8462 fi
8463
8464
8465
8466
8467
8468
8469 #
8470 # Check to make sure the static flag actually works.
8471 #
8472 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8474 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8475 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_prog_compiler_static_works=no
8479 save_LDFLAGS="$LDFLAGS"
8480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8481 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8483 # The linker can only warn and ignore the option if not recognized
8484 # So say no if there are warnings
8485 if test -s conftest.err; then
8486 # Append any errors to the config.log.
8487 cat conftest.err 1>&5
8488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8490 if diff conftest.exp conftest.er2 >/dev/null; then
8491 lt_cv_prog_compiler_static_works=yes
8492 fi
8493 else
8494 lt_cv_prog_compiler_static_works=yes
8495 fi
8496 fi
8497 $RM -r conftest*
8498 LDFLAGS="$save_LDFLAGS"
8499
8500 fi
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8502 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8503
8504 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8505 :
8506 else
8507 lt_prog_compiler_static=
8508 fi
8509
8510
8511
8512
8513
8514
8515
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8517 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8518 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 lt_cv_prog_compiler_c_o=no
8522 $RM -r conftest 2>/dev/null
8523 mkdir conftest
8524 cd conftest
8525 mkdir out
8526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8527
8528 lt_compiler_flag="-o out/conftest2.$ac_objext"
8529 # Insert the option either (1) after the last *FLAGS variable, or
8530 # (2) before a word containing "conftest.", or (3) at the end.
8531 # Note that $ac_compile itself does not contain backslashes and begins
8532 # with a dollar sign (not a hyphen), so the echo should work correctly.
8533 lt_compile=`echo "$ac_compile" | $SED \
8534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8536 -e 's:$: $lt_compiler_flag:'`
8537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8538 (eval "$lt_compile" 2>out/conftest.err)
8539 ac_status=$?
8540 cat out/conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8543 then
8544 # The compiler can only warn and ignore the option if not recognized
8545 # So say no if there are warnings
8546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8549 lt_cv_prog_compiler_c_o=yes
8550 fi
8551 fi
8552 chmod u+w . 2>&5
8553 $RM conftest*
8554 # SGI C++ compiler will create directory out/ii_files/ for
8555 # template instantiation
8556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8557 $RM out/* && rmdir out
8558 cd ..
8559 $RM -r conftest
8560 $RM conftest*
8561
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8564 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8565
8566
8567
8568
8569
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8572 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8573 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 lt_cv_prog_compiler_c_o=no
8577 $RM -r conftest 2>/dev/null
8578 mkdir conftest
8579 cd conftest
8580 mkdir out
8581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8582
8583 lt_compiler_flag="-o out/conftest2.$ac_objext"
8584 # Insert the option either (1) after the last *FLAGS variable, or
8585 # (2) before a word containing "conftest.", or (3) at the end.
8586 # Note that $ac_compile itself does not contain backslashes and begins
8587 # with a dollar sign (not a hyphen), so the echo should work correctly.
8588 lt_compile=`echo "$ac_compile" | $SED \
8589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8591 -e 's:$: $lt_compiler_flag:'`
8592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8593 (eval "$lt_compile" 2>out/conftest.err)
8594 ac_status=$?
8595 cat out/conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8598 then
8599 # The compiler can only warn and ignore the option if not recognized
8600 # So say no if there are warnings
8601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8604 lt_cv_prog_compiler_c_o=yes
8605 fi
8606 fi
8607 chmod u+w . 2>&5
8608 $RM conftest*
8609 # SGI C++ compiler will create directory out/ii_files/ for
8610 # template instantiation
8611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8612 $RM out/* && rmdir out
8613 cd ..
8614 $RM -r conftest
8615 $RM conftest*
8616
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8619 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8620
8621
8622
8623
8624 hard_links="nottested"
8625 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8626 # do not overwrite the value of need_locks provided by the user
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8628 $as_echo_n "checking if we can lock with hard links... " >&6; }
8629 hard_links=yes
8630 $RM conftest*
8631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8632 touch conftest.a
8633 ln conftest.a conftest.b 2>&5 || hard_links=no
8634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8636 $as_echo "$hard_links" >&6; }
8637 if test "$hard_links" = no; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8639 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8640 need_locks=warn
8641 fi
8642 else
8643 need_locks=no
8644 fi
8645
8646
8647
8648
8649
8650
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8652 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8653
8654 runpath_var=
8655 allow_undefined_flag=
8656 always_export_symbols=no
8657 archive_cmds=
8658 archive_expsym_cmds=
8659 compiler_needs_object=no
8660 enable_shared_with_static_runtimes=no
8661 export_dynamic_flag_spec=
8662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8663 hardcode_automatic=no
8664 hardcode_direct=no
8665 hardcode_direct_absolute=no
8666 hardcode_libdir_flag_spec=
8667 hardcode_libdir_flag_spec_ld=
8668 hardcode_libdir_separator=
8669 hardcode_minus_L=no
8670 hardcode_shlibpath_var=unsupported
8671 inherit_rpath=no
8672 link_all_deplibs=unknown
8673 module_cmds=
8674 module_expsym_cmds=
8675 old_archive_from_new_cmds=
8676 old_archive_from_expsyms_cmds=
8677 thread_safe_flag_spec=
8678 whole_archive_flag_spec=
8679 # include_expsyms should be a list of space-separated symbols to be *always*
8680 # included in the symbol list
8681 include_expsyms=
8682 # exclude_expsyms can be an extended regexp of symbols to exclude
8683 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8685 # as well as any symbol that contains `d'.
8686 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8688 # platforms (ab)use it in PIC code, but their linkers get confused if
8689 # the symbol is explicitly referenced. Since portable code cannot
8690 # rely on this symbol name, it's probably fine to never include it in
8691 # preloaded symbol tables.
8692 # Exclude shared library initialization/finalization symbols.
8693 extract_expsyms_cmds=
8694
8695 case $host_os in
8696 cygwin* | mingw* | pw32* | cegcc*)
8697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8698 # When not using gcc, we currently assume that we are using
8699 # Microsoft Visual C++.
8700 if test "$GCC" != yes; then
8701 with_gnu_ld=no
8702 fi
8703 ;;
8704 interix*)
8705 # we just hope/assume this is gcc and not c89 (= MSVC++)
8706 with_gnu_ld=yes
8707 ;;
8708 openbsd*)
8709 with_gnu_ld=no
8710 ;;
8711 esac
8712
8713 ld_shlibs=yes
8714
8715 # On some targets, GNU ld is compatible enough with the native linker
8716 # that we're better off using the native interface for both.
8717 lt_use_gnu_ld_interface=no
8718 if test "$with_gnu_ld" = yes; then
8719 case $host_os in
8720 aix*)
8721 # The AIX port of GNU ld has always aspired to compatibility
8722 # with the native linker. However, as the warning in the GNU ld
8723 # block says, versions before 2.19.5* couldn't really create working
8724 # shared libraries, regardless of the interface used.
8725 case `$LD -v 2>&1` in
8726 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8727 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8728 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8729 *)
8730 lt_use_gnu_ld_interface=yes
8731 ;;
8732 esac
8733 ;;
8734 *)
8735 lt_use_gnu_ld_interface=yes
8736 ;;
8737 esac
8738 fi
8739
8740 if test "$lt_use_gnu_ld_interface" = yes; then
8741 # If archive_cmds runs LD, not CC, wlarc should be empty
8742 wlarc='${wl}'
8743
8744 # Set some defaults for GNU ld with shared library support. These
8745 # are reset later if shared libraries are not supported. Putting them
8746 # here allows them to be overridden if necessary.
8747 runpath_var=LD_RUN_PATH
8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749 export_dynamic_flag_spec='${wl}--export-dynamic'
8750 # ancient GNU ld didn't support --whole-archive et. al.
8751 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8752 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8753 else
8754 whole_archive_flag_spec=
8755 fi
8756 supports_anon_versioning=no
8757 case `$LD -v 2>&1` in
8758 *GNU\ gold*) supports_anon_versioning=yes ;;
8759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8762 *\ 2.11.*) ;; # other 2.11 versions
8763 *) supports_anon_versioning=yes ;;
8764 esac
8765
8766 # See if GNU ld supports shared libraries.
8767 case $host_os in
8768 aix[3-9]*)
8769 # On AIX/PPC, the GNU linker is very broken
8770 if test "$host_cpu" != ia64; then
8771 ld_shlibs=no
8772 cat <<_LT_EOF 1>&2
8773
8774 *** Warning: the GNU linker, at least up to release 2.19, is reported
8775 *** to be unable to reliably create shared libraries on AIX.
8776 *** Therefore, libtool is disabling shared libraries support. If you
8777 *** really care for shared libraries, you may want to install binutils
8778 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8779 *** You will then need to restart the configuration process.
8780
8781 _LT_EOF
8782 fi
8783 ;;
8784
8785 amigaos*)
8786 case $host_cpu in
8787 powerpc)
8788 # see comment about AmigaOS4 .so support
8789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790 archive_expsym_cmds=''
8791 ;;
8792 m68k)
8793 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)'
8794 hardcode_libdir_flag_spec='-L$libdir'
8795 hardcode_minus_L=yes
8796 ;;
8797 esac
8798 ;;
8799
8800 beos*)
8801 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8802 allow_undefined_flag=unsupported
8803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8804 # support --undefined. This deserves some investigation. FIXME
8805 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8806 else
8807 ld_shlibs=no
8808 fi
8809 ;;
8810
8811 cygwin* | mingw* | pw32* | cegcc*)
8812 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8813 # as there is no search path for DLLs.
8814 hardcode_libdir_flag_spec='-L$libdir'
8815 export_dynamic_flag_spec='${wl}--export-all-symbols'
8816 allow_undefined_flag=unsupported
8817 always_export_symbols=no
8818 enable_shared_with_static_runtimes=yes
8819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8820
8821 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8823 # If the export-symbols file already is a .def file (1st line
8824 # is EXPORTS), use it as is; otherwise, prepend...
8825 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8826 cp $export_symbols $output_objdir/$soname.def;
8827 else
8828 echo EXPORTS > $output_objdir/$soname.def;
8829 cat $export_symbols >> $output_objdir/$soname.def;
8830 fi~
8831 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8832 else
8833 ld_shlibs=no
8834 fi
8835 ;;
8836
8837 haiku*)
8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839 link_all_deplibs=yes
8840 ;;
8841
8842 interix[3-9]*)
8843 hardcode_direct=no
8844 hardcode_shlibpath_var=no
8845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8846 export_dynamic_flag_spec='${wl}-E'
8847 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8848 # Instead, shared libraries are loaded at an image base (0x10000000 by
8849 # default) and relocated if they conflict, which is a slow very memory
8850 # consuming and fragmenting process. To avoid this, we pick a random,
8851 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8852 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8854 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'
8855 ;;
8856
8857 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8858 tmp_diet=no
8859 if test "$host_os" = linux-dietlibc; then
8860 case $cc_basename in
8861 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8862 esac
8863 fi
8864 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8865 && test "$tmp_diet" = no
8866 then
8867 tmp_addflag=
8868 tmp_sharedflag='-shared'
8869 case $cc_basename,$host_cpu in
8870 pgcc*) # Portland Group C compiler
8871 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'
8872 tmp_addflag=' $pic_flag'
8873 ;;
8874 pgf77* | pgf90* | pgf95* | pgfortran*)
8875 # Portland Group f77 and f90 compilers
8876 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'
8877 tmp_addflag=' $pic_flag -Mnomain' ;;
8878 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8879 tmp_addflag=' -i_dynamic' ;;
8880 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8881 tmp_addflag=' -i_dynamic -nofor_main' ;;
8882 ifc* | ifort*) # Intel Fortran compiler
8883 tmp_addflag=' -nofor_main' ;;
8884 lf95*) # Lahey Fortran 8.1
8885 whole_archive_flag_spec=
8886 tmp_sharedflag='--shared' ;;
8887 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8888 tmp_sharedflag='-qmkshrobj'
8889 tmp_addflag= ;;
8890 nvcc*) # Cuda Compiler Driver 2.2
8891 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'
8892 compiler_needs_object=yes
8893 ;;
8894 esac
8895 case `$CC -V 2>&1 | sed 5q` in
8896 *Sun\ C*) # Sun C 5.9
8897 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'
8898 compiler_needs_object=yes
8899 tmp_sharedflag='-G' ;;
8900 *Sun\ F*) # Sun Fortran 8.3
8901 tmp_sharedflag='-G' ;;
8902 esac
8903 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8904
8905 if test "x$supports_anon_versioning" = xyes; then
8906 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8908 echo "local: *; };" >> $output_objdir/$libname.ver~
8909 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8910 fi
8911
8912 case $cc_basename in
8913 xlf* | bgf* | bgxlf* | mpixlf*)
8914 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8915 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8916 hardcode_libdir_flag_spec=
8917 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8918 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8919 if test "x$supports_anon_versioning" = xyes; then
8920 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8921 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8922 echo "local: *; };" >> $output_objdir/$libname.ver~
8923 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8924 fi
8925 ;;
8926 esac
8927 else
8928 ld_shlibs=no
8929 fi
8930 ;;
8931
8932 netbsd*)
8933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8934 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8935 wlarc=
8936 else
8937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8939 fi
8940 ;;
8941
8942 solaris*)
8943 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8944 ld_shlibs=no
8945 cat <<_LT_EOF 1>&2
8946
8947 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8948 *** create shared libraries on Solaris systems. Therefore, libtool
8949 *** is disabling shared libraries support. We urge you to upgrade GNU
8950 *** binutils to release 2.9.1 or newer. Another option is to modify
8951 *** your PATH or compiler configuration so that the native linker is
8952 *** used, and then restart.
8953
8954 _LT_EOF
8955 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8958 else
8959 ld_shlibs=no
8960 fi
8961 ;;
8962
8963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8964 case `$LD -v 2>&1` in
8965 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8966 ld_shlibs=no
8967 cat <<_LT_EOF 1>&2
8968
8969 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8970 *** reliably create shared libraries on SCO systems. Therefore, libtool
8971 *** is disabling shared libraries support. We urge you to upgrade GNU
8972 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8973 *** your PATH or compiler configuration so that the native linker is
8974 *** used, and then restart.
8975
8976 _LT_EOF
8977 ;;
8978 *)
8979 # For security reasons, it is highly recommended that you always
8980 # use absolute paths for naming shared libraries, and exclude the
8981 # DT_RUNPATH tag from executables and libraries. But doing so
8982 # requires that you compile everything twice, which is a pain.
8983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987 else
8988 ld_shlibs=no
8989 fi
8990 ;;
8991 esac
8992 ;;
8993
8994 sunos4*)
8995 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8996 wlarc=
8997 hardcode_direct=yes
8998 hardcode_shlibpath_var=no
8999 ;;
9000
9001 *)
9002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9005 else
9006 ld_shlibs=no
9007 fi
9008 ;;
9009 esac
9010
9011 if test "$ld_shlibs" = no; then
9012 runpath_var=
9013 hardcode_libdir_flag_spec=
9014 export_dynamic_flag_spec=
9015 whole_archive_flag_spec=
9016 fi
9017 else
9018 # PORTME fill in a description of your system's linker (not GNU ld)
9019 case $host_os in
9020 aix3*)
9021 allow_undefined_flag=unsupported
9022 always_export_symbols=yes
9023 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'
9024 # Note: this linker hardcodes the directories in LIBPATH if there
9025 # are no directories specified by -L.
9026 hardcode_minus_L=yes
9027 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9028 # Neither direct hardcoding nor static linking is supported with a
9029 # broken collect2.
9030 hardcode_direct=unsupported
9031 fi
9032 ;;
9033
9034 aix[4-9]*)
9035 if test "$host_cpu" = ia64; then
9036 # On IA64, the linker does run time linking by default, so we don't
9037 # have to do anything special.
9038 aix_use_runtimelinking=no
9039 exp_sym_flag='-Bexport'
9040 no_entry_flag=""
9041 else
9042 # If we're using GNU nm, then we don't want the "-C" option.
9043 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9044 # Also, AIX nm treats weak defined symbols like other global
9045 # defined symbols, whereas GNU nm marks them as "W".
9046 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9047 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'
9048 else
9049 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9050 fi
9051 aix_use_runtimelinking=no
9052
9053 # Test if we are trying to use run time linking or normal
9054 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9055 # need to do runtime linking.
9056 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9057 for ld_flag in $LDFLAGS; do
9058 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9059 aix_use_runtimelinking=yes
9060 break
9061 fi
9062 done
9063 ;;
9064 esac
9065
9066 exp_sym_flag='-bexport'
9067 no_entry_flag='-bnoentry'
9068 fi
9069
9070 # When large executables or shared objects are built, AIX ld can
9071 # have problems creating the table of contents. If linking a library
9072 # or program results in "error TOC overflow" add -mminimal-toc to
9073 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9074 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9075
9076 archive_cmds=''
9077 hardcode_direct=yes
9078 hardcode_direct_absolute=yes
9079 hardcode_libdir_separator=':'
9080 link_all_deplibs=yes
9081 file_list_spec='${wl}-f,'
9082
9083 if test "$GCC" = yes; then
9084 case $host_os in aix4.[012]|aix4.[012].*)
9085 # We only want to do this on AIX 4.2 and lower, the check
9086 # below for broken collect2 doesn't work under 4.3+
9087 collect2name=`${CC} -print-prog-name=collect2`
9088 if test -f "$collect2name" &&
9089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9090 then
9091 # We have reworked collect2
9092 :
9093 else
9094 # We have old collect2
9095 hardcode_direct=unsupported
9096 # It fails to find uninstalled libraries when the uninstalled
9097 # path is not listed in the libpath. Setting hardcode_minus_L
9098 # to unsupported forces relinking
9099 hardcode_minus_L=yes
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 hardcode_libdir_separator=
9102 fi
9103 ;;
9104 esac
9105 shared_flag='-shared'
9106 if test "$aix_use_runtimelinking" = yes; then
9107 shared_flag="$shared_flag "'${wl}-G'
9108 fi
9109 else
9110 # not using gcc
9111 if test "$host_cpu" = ia64; then
9112 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9113 # chokes on -Wl,-G. The following line is correct:
9114 shared_flag='-G'
9115 else
9116 if test "$aix_use_runtimelinking" = yes; then
9117 shared_flag='${wl}-G'
9118 else
9119 shared_flag='${wl}-bM:SRE'
9120 fi
9121 fi
9122 fi
9123
9124 export_dynamic_flag_spec='${wl}-bexpall'
9125 # It seems that -bexpall does not export symbols beginning with
9126 # underscore (_), so it is better to generate a list of symbols to export.
9127 always_export_symbols=yes
9128 if test "$aix_use_runtimelinking" = yes; then
9129 # Warning - without using the other runtime loading flags (-brtl),
9130 # -berok will link without error, but may produce a broken library.
9131 allow_undefined_flag='-berok'
9132 # Determine the default libpath from the value encoded in an
9133 # empty executable.
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136
9137 int
9138 main ()
9139 {
9140
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_c_try_link "$LINENO"; then :
9146
9147 lt_aix_libpath_sed='
9148 /Import File Strings/,/^$/ {
9149 /^0/ {
9150 s/^0 *\(.*\)$/\1/
9151 p
9152 }
9153 }'
9154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9155 # Check for a 64-bit object if we didn't find anything.
9156 if test -z "$aix_libpath"; then
9157 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9158 fi
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9163
9164 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9165 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"
9166 else
9167 if test "$host_cpu" = ia64; then
9168 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9169 allow_undefined_flag="-z nodefs"
9170 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"
9171 else
9172 # Determine the default libpath from the value encoded in an
9173 # empty executable.
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9176
9177 int
9178 main ()
9179 {
9180
9181 ;
9182 return 0;
9183 }
9184 _ACEOF
9185 if ac_fn_c_try_link "$LINENO"; then :
9186
9187 lt_aix_libpath_sed='
9188 /Import File Strings/,/^$/ {
9189 /^0/ {
9190 s/^0 *\(.*\)$/\1/
9191 p
9192 }
9193 }'
9194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9195 # Check for a 64-bit object if we didn't find anything.
9196 if test -z "$aix_libpath"; then
9197 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9198 fi
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9203
9204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9205 # Warning - without using the other run time loading flags,
9206 # -berok will link without error, but may produce a broken library.
9207 no_undefined_flag=' ${wl}-bernotok'
9208 allow_undefined_flag=' ${wl}-berok'
9209 if test "$with_gnu_ld" = yes; then
9210 # We only use this code for GNU lds that support --whole-archive.
9211 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9212 else
9213 # Exported symbols can be pulled into shared objects from archives
9214 whole_archive_flag_spec='$convenience'
9215 fi
9216 archive_cmds_need_lc=yes
9217 # This is similar to how AIX traditionally builds its shared libraries.
9218 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'
9219 fi
9220 fi
9221 ;;
9222
9223 amigaos*)
9224 case $host_cpu in
9225 powerpc)
9226 # see comment about AmigaOS4 .so support
9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228 archive_expsym_cmds=''
9229 ;;
9230 m68k)
9231 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)'
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 hardcode_minus_L=yes
9234 ;;
9235 esac
9236 ;;
9237
9238 bsdi[45]*)
9239 export_dynamic_flag_spec=-rdynamic
9240 ;;
9241
9242 cygwin* | mingw* | pw32* | cegcc*)
9243 # When not using gcc, we currently assume that we are using
9244 # Microsoft Visual C++.
9245 # hardcode_libdir_flag_spec is actually meaningless, as there is
9246 # no search path for DLLs.
9247 hardcode_libdir_flag_spec=' '
9248 allow_undefined_flag=unsupported
9249 # Tell ltmain to make .lib files, not .a files.
9250 libext=lib
9251 # Tell ltmain to make .dll files, not .so files.
9252 shrext_cmds=".dll"
9253 # FIXME: Setting linknames here is a bad hack.
9254 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9255 # The linker will automatically build a .lib file if we build a DLL.
9256 old_archive_from_new_cmds='true'
9257 # FIXME: Should let the user specify the lib program.
9258 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9259 fix_srcfile_path='`cygpath -w "$srcfile"`'
9260 enable_shared_with_static_runtimes=yes
9261 ;;
9262
9263 darwin* | rhapsody*)
9264
9265
9266 archive_cmds_need_lc=no
9267 hardcode_direct=no
9268 hardcode_automatic=yes
9269 hardcode_shlibpath_var=unsupported
9270 if test "$lt_cv_ld_force_load" = "yes"; then
9271 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\"`'
9272 else
9273 whole_archive_flag_spec=''
9274 fi
9275 link_all_deplibs=yes
9276 allow_undefined_flag="$_lt_dar_allow_undefined"
9277 case $cc_basename in
9278 ifort*) _lt_dar_can_shared=yes ;;
9279 *) _lt_dar_can_shared=$GCC ;;
9280 esac
9281 if test "$_lt_dar_can_shared" = "yes"; then
9282 output_verbose_link_cmd=func_echo_all
9283 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9284 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9285 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}"
9286 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}"
9287
9288 else
9289 ld_shlibs=no
9290 fi
9291
9292 ;;
9293
9294 dgux*)
9295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296 hardcode_libdir_flag_spec='-L$libdir'
9297 hardcode_shlibpath_var=no
9298 ;;
9299
9300 freebsd1*)
9301 ld_shlibs=no
9302 ;;
9303
9304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9305 # support. Future versions do this automatically, but an explicit c++rt0.o
9306 # does not break anything, and helps significantly (at the cost of a little
9307 # extra space).
9308 freebsd2.2*)
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9310 hardcode_libdir_flag_spec='-R$libdir'
9311 hardcode_direct=yes
9312 hardcode_shlibpath_var=no
9313 ;;
9314
9315 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9316 freebsd2*)
9317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9318 hardcode_direct=yes
9319 hardcode_minus_L=yes
9320 hardcode_shlibpath_var=no
9321 ;;
9322
9323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9324 freebsd* | dragonfly*)
9325 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9326 hardcode_libdir_flag_spec='-R$libdir'
9327 hardcode_direct=yes
9328 hardcode_shlibpath_var=no
9329 ;;
9330
9331 hpux9*)
9332 if test "$GCC" = yes; then
9333 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'
9334 else
9335 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'
9336 fi
9337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9338 hardcode_libdir_separator=:
9339 hardcode_direct=yes
9340
9341 # hardcode_minus_L: Not really in the search PATH,
9342 # but as the default location of the library.
9343 hardcode_minus_L=yes
9344 export_dynamic_flag_spec='${wl}-E'
9345 ;;
9346
9347 hpux10*)
9348 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9349 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9350 else
9351 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9352 fi
9353 if test "$with_gnu_ld" = no; then
9354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9355 hardcode_libdir_flag_spec_ld='+b $libdir'
9356 hardcode_libdir_separator=:
9357 hardcode_direct=yes
9358 hardcode_direct_absolute=yes
9359 export_dynamic_flag_spec='${wl}-E'
9360 # hardcode_minus_L: Not really in the search PATH,
9361 # but as the default location of the library.
9362 hardcode_minus_L=yes
9363 fi
9364 ;;
9365
9366 hpux11*)
9367 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9368 case $host_cpu in
9369 hppa*64*)
9370 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 ;;
9372 ia64*)
9373 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9374 ;;
9375 *)
9376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9377 ;;
9378 esac
9379 else
9380 case $host_cpu in
9381 hppa*64*)
9382 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 ;;
9384 ia64*)
9385 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9386 ;;
9387 *)
9388
9389 # Older versions of the 11.00 compiler do not understand -b yet
9390 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9392 $as_echo_n "checking if $CC understands -b... " >&6; }
9393 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 lt_cv_prog_compiler__b=no
9397 save_LDFLAGS="$LDFLAGS"
9398 LDFLAGS="$LDFLAGS -b"
9399 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9401 # The linker can only warn and ignore the option if not recognized
9402 # So say no if there are warnings
9403 if test -s conftest.err; then
9404 # Append any errors to the config.log.
9405 cat conftest.err 1>&5
9406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9408 if diff conftest.exp conftest.er2 >/dev/null; then
9409 lt_cv_prog_compiler__b=yes
9410 fi
9411 else
9412 lt_cv_prog_compiler__b=yes
9413 fi
9414 fi
9415 $RM -r conftest*
9416 LDFLAGS="$save_LDFLAGS"
9417
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9420 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9421
9422 if test x"$lt_cv_prog_compiler__b" = xyes; then
9423 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424 else
9425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9426 fi
9427
9428 ;;
9429 esac
9430 fi
9431 if test "$with_gnu_ld" = no; then
9432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9433 hardcode_libdir_separator=:
9434
9435 case $host_cpu in
9436 hppa*64*|ia64*)
9437 hardcode_direct=no
9438 hardcode_shlibpath_var=no
9439 ;;
9440 *)
9441 hardcode_direct=yes
9442 hardcode_direct_absolute=yes
9443 export_dynamic_flag_spec='${wl}-E'
9444
9445 # hardcode_minus_L: Not really in the search PATH,
9446 # but as the default location of the library.
9447 hardcode_minus_L=yes
9448 ;;
9449 esac
9450 fi
9451 ;;
9452
9453 irix5* | irix6* | nonstopux*)
9454 if test "$GCC" = yes; then
9455 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'
9456 # Try to use the -exported_symbol ld option, if it does not
9457 # work, assume that -exports_file does not work either and
9458 # implicitly export all symbols.
9459 save_LDFLAGS="$LDFLAGS"
9460 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 int foo(void) {}
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9466 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'
9467
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LDFLAGS="$save_LDFLAGS"
9472 else
9473 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'
9474 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'
9475 fi
9476 archive_cmds_need_lc='no'
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478 hardcode_libdir_separator=:
9479 inherit_rpath=yes
9480 link_all_deplibs=yes
9481 ;;
9482
9483 netbsd*)
9484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9486 else
9487 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9488 fi
9489 hardcode_libdir_flag_spec='-R$libdir'
9490 hardcode_direct=yes
9491 hardcode_shlibpath_var=no
9492 ;;
9493
9494 newsos6)
9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496 hardcode_direct=yes
9497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498 hardcode_libdir_separator=:
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 *nto* | *qnx*)
9503 ;;
9504
9505 openbsd*)
9506 if test -f /usr/libexec/ld.so; then
9507 hardcode_direct=yes
9508 hardcode_shlibpath_var=no
9509 hardcode_direct_absolute=yes
9510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9514 export_dynamic_flag_spec='${wl}-E'
9515 else
9516 case $host_os in
9517 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_libdir_flag_spec='-R$libdir'
9520 ;;
9521 *)
9522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9524 ;;
9525 esac
9526 fi
9527 else
9528 ld_shlibs=no
9529 fi
9530 ;;
9531
9532 os2*)
9533 hardcode_libdir_flag_spec='-L$libdir'
9534 hardcode_minus_L=yes
9535 allow_undefined_flag=unsupported
9536 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'
9537 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9538 ;;
9539
9540 osf3*)
9541 if test "$GCC" = yes; then
9542 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9543 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'
9544 else
9545 allow_undefined_flag=' -expect_unresolved \*'
9546 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'
9547 fi
9548 archive_cmds_need_lc='no'
9549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550 hardcode_libdir_separator=:
9551 ;;
9552
9553 osf4* | osf5*) # as osf3* with the addition of -msym flag
9554 if test "$GCC" = yes; then
9555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9556 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'
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558 else
9559 allow_undefined_flag=' -expect_unresolved \*'
9560 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'
9561 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~
9562 $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'
9563
9564 # Both c and cxx compiler support -rpath directly
9565 hardcode_libdir_flag_spec='-rpath $libdir'
9566 fi
9567 archive_cmds_need_lc='no'
9568 hardcode_libdir_separator=:
9569 ;;
9570
9571 solaris*)
9572 no_undefined_flag=' -z defs'
9573 if test "$GCC" = yes; then
9574 wlarc='${wl}'
9575 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9577 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9578 else
9579 case `$CC -V 2>&1` in
9580 *"Compilers 5.0"*)
9581 wlarc=''
9582 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9585 ;;
9586 *)
9587 wlarc='${wl}'
9588 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9590 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9591 ;;
9592 esac
9593 fi
9594 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_shlibpath_var=no
9596 case $host_os in
9597 solaris2.[0-5] | solaris2.[0-5].*) ;;
9598 *)
9599 # The compiler driver will combine and reorder linker options,
9600 # but understands `-z linker_flag'. GCC discards it without `$wl',
9601 # but is careful enough not to reorder.
9602 # Supported since Solaris 2.6 (maybe 2.5.1?)
9603 if test "$GCC" = yes; then
9604 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9605 else
9606 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9607 fi
9608 ;;
9609 esac
9610 link_all_deplibs=yes
9611 ;;
9612
9613 sunos4*)
9614 if test "x$host_vendor" = xsequent; then
9615 # Use $CC to link under sequent, because it throws in some extra .o
9616 # files that make .init and .fini sections work.
9617 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9618 else
9619 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9620 fi
9621 hardcode_libdir_flag_spec='-L$libdir'
9622 hardcode_direct=yes
9623 hardcode_minus_L=yes
9624 hardcode_shlibpath_var=no
9625 ;;
9626
9627 sysv4)
9628 case $host_vendor in
9629 sni)
9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631 hardcode_direct=yes # is this really true???
9632 ;;
9633 siemens)
9634 ## LD is ld it makes a PLAMLIB
9635 ## CC just makes a GrossModule.
9636 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9637 reload_cmds='$CC -r -o $output$reload_objs'
9638 hardcode_direct=no
9639 ;;
9640 motorola)
9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9643 ;;
9644 esac
9645 runpath_var='LD_RUN_PATH'
9646 hardcode_shlibpath_var=no
9647 ;;
9648
9649 sysv4.3*)
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_shlibpath_var=no
9652 export_dynamic_flag_spec='-Bexport'
9653 ;;
9654
9655 sysv4*MP*)
9656 if test -d /usr/nec; then
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_shlibpath_var=no
9659 runpath_var=LD_RUN_PATH
9660 hardcode_runpath_var=yes
9661 ld_shlibs=yes
9662 fi
9663 ;;
9664
9665 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9666 no_undefined_flag='${wl}-z,text'
9667 archive_cmds_need_lc=no
9668 hardcode_shlibpath_var=no
9669 runpath_var='LD_RUN_PATH'
9670
9671 if test "$GCC" = yes; then
9672 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 else
9675 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 fi
9678 ;;
9679
9680 sysv5* | sco3.2v5* | sco5v6*)
9681 # Note: We can NOT use -z defs as we might desire, because we do not
9682 # link with -lc, and that would cause any symbols used from libc to
9683 # always be unresolved, which means just about no library would
9684 # ever link correctly. If we're not using GNU ld we use -z text
9685 # though, which does catch some bad symbols but isn't as heavy-handed
9686 # as -z defs.
9687 no_undefined_flag='${wl}-z,text'
9688 allow_undefined_flag='${wl}-z,nodefs'
9689 archive_cmds_need_lc=no
9690 hardcode_shlibpath_var=no
9691 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9692 hardcode_libdir_separator=':'
9693 link_all_deplibs=yes
9694 export_dynamic_flag_spec='${wl}-Bexport'
9695 runpath_var='LD_RUN_PATH'
9696
9697 if test "$GCC" = yes; then
9698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 else
9701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 fi
9704 ;;
9705
9706 uts4*)
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_libdir_flag_spec='-L$libdir'
9709 hardcode_shlibpath_var=no
9710 ;;
9711
9712 *)
9713 ld_shlibs=no
9714 ;;
9715 esac
9716
9717 if test x$host_vendor = xsni; then
9718 case $host in
9719 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9720 export_dynamic_flag_spec='${wl}-Blargedynsym'
9721 ;;
9722 esac
9723 fi
9724 fi
9725
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9727 $as_echo "$ld_shlibs" >&6; }
9728 test "$ld_shlibs" = no && can_build_shared=no
9729
9730 with_gnu_ld=$with_gnu_ld
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746 #
9747 # Do we need to explicitly link libc?
9748 #
9749 case "x$archive_cmds_need_lc" in
9750 x|xyes)
9751 # Assume -lc should be added
9752 archive_cmds_need_lc=yes
9753
9754 if test "$enable_shared" = yes && test "$GCC" = yes; then
9755 case $archive_cmds in
9756 *'~'*)
9757 # FIXME: we may have to deal with multi-command sequences.
9758 ;;
9759 '$CC '*)
9760 # Test whether the compiler implicitly links with -lc since on some
9761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9762 # to ld, don't add -lc before -lgcc.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9764 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9765 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 $RM conftest*
9769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9770
9771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9772 (eval $ac_compile) 2>&5
9773 ac_status=$?
9774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775 test $ac_status = 0; } 2>conftest.err; then
9776 soname=conftest
9777 lib=conftest
9778 libobjs=conftest.$ac_objext
9779 deplibs=
9780 wl=$lt_prog_compiler_wl
9781 pic_flag=$lt_prog_compiler_pic
9782 compiler_flags=-v
9783 linker_flags=-v
9784 verstring=
9785 output_objdir=.
9786 libname=conftest
9787 lt_save_allow_undefined_flag=$allow_undefined_flag
9788 allow_undefined_flag=
9789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9790 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9791 ac_status=$?
9792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9793 test $ac_status = 0; }
9794 then
9795 lt_cv_archive_cmds_need_lc=no
9796 else
9797 lt_cv_archive_cmds_need_lc=yes
9798 fi
9799 allow_undefined_flag=$lt_save_allow_undefined_flag
9800 else
9801 cat conftest.err 1>&5
9802 fi
9803 $RM conftest*
9804
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9807 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9808 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9809 ;;
9810 esac
9811 fi
9812 ;;
9813 esac
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9972 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9973
9974 if test "$GCC" = yes; then
9975 case $host_os in
9976 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9977 *) lt_awk_arg="/^libraries:/" ;;
9978 esac
9979 case $host_os in
9980 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9981 *) lt_sed_strip_eq="s,=/,/,g" ;;
9982 esac
9983 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9984 case $lt_search_path_spec in
9985 *\;*)
9986 # if the path contains ";" then we assume it to be the separator
9987 # otherwise default to the standard path separator (i.e. ":") - it is
9988 # assumed that no part of a normal pathname contains ";" but that should
9989 # okay in the real world where ";" in dirpaths is itself problematic.
9990 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9991 ;;
9992 *)
9993 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9994 ;;
9995 esac
9996 # Ok, now we have the path, separated by spaces, we can step through it
9997 # and add multilib dir if necessary.
9998 lt_tmp_lt_search_path_spec=
9999 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10000 for lt_sys_path in $lt_search_path_spec; do
10001 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10003 else
10004 test -d "$lt_sys_path" && \
10005 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10006 fi
10007 done
10008 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10009 BEGIN {RS=" "; FS="/|\n";} {
10010 lt_foo="";
10011 lt_count=0;
10012 for (lt_i = NF; lt_i > 0; lt_i--) {
10013 if ($lt_i != "" && $lt_i != ".") {
10014 if ($lt_i == "..") {
10015 lt_count++;
10016 } else {
10017 if (lt_count == 0) {
10018 lt_foo="/" $lt_i lt_foo;
10019 } else {
10020 lt_count--;
10021 }
10022 }
10023 }
10024 }
10025 if (lt_foo != "") { lt_freq[lt_foo]++; }
10026 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10027 }'`
10028 # AWK program above erroneously prepends '/' to C:/dos/paths
10029 # for these hosts.
10030 case $host_os in
10031 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10032 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10033 esac
10034 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10035 else
10036 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10037 fi
10038 library_names_spec=
10039 libname_spec='lib$name'
10040 soname_spec=
10041 shrext_cmds=".so"
10042 postinstall_cmds=
10043 postuninstall_cmds=
10044 finish_cmds=
10045 finish_eval=
10046 shlibpath_var=
10047 shlibpath_overrides_runpath=unknown
10048 version_type=none
10049 dynamic_linker="$host_os ld.so"
10050 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10051 need_lib_prefix=unknown
10052 hardcode_into_libs=no
10053
10054 # when you set need_version to no, make sure it does not cause -set_version
10055 # flags to be left without arguments
10056 need_version=unknown
10057
10058 case $host_os in
10059 aix3*)
10060 version_type=linux
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10062 shlibpath_var=LIBPATH
10063
10064 # AIX 3 has no versioning support, so we append a major version to the name.
10065 soname_spec='${libname}${release}${shared_ext}$major'
10066 ;;
10067
10068 aix[4-9]*)
10069 version_type=linux
10070 need_lib_prefix=no
10071 need_version=no
10072 hardcode_into_libs=yes
10073 if test "$host_cpu" = ia64; then
10074 # AIX 5 supports IA64
10075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 else
10078 # With GCC up to 2.95.x, collect2 would create an import file
10079 # for dependence libraries. The import file would start with
10080 # the line `#! .'. This would cause the generated library to
10081 # depend on `.', always an invalid library. This was fixed in
10082 # development snapshots of GCC prior to 3.0.
10083 case $host_os in
10084 aix4 | aix4.[01] | aix4.[01].*)
10085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10086 echo ' yes '
10087 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10088 :
10089 else
10090 can_build_shared=no
10091 fi
10092 ;;
10093 esac
10094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10095 # soname into executable. Probably we can add versioning support to
10096 # collect2, so additional links can be useful in future.
10097 if test "$aix_use_runtimelinking" = yes; then
10098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10099 # instead of lib<name>.a to let people know that these are not
10100 # typical AIX shared libraries.
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 else
10103 # We preserve .a as extension for shared libraries through AIX4.2
10104 # and later when we are not doing run time linking.
10105 library_names_spec='${libname}${release}.a $libname.a'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 fi
10108 shlibpath_var=LIBPATH
10109 fi
10110 ;;
10111
10112 amigaos*)
10113 case $host_cpu in
10114 powerpc)
10115 # Since July 2007 AmigaOS4 officially supports .so libraries.
10116 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 ;;
10119 m68k)
10120 library_names_spec='$libname.ixlibrary $libname.a'
10121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10122 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'
10123 ;;
10124 esac
10125 ;;
10126
10127 beos*)
10128 library_names_spec='${libname}${shared_ext}'
10129 dynamic_linker="$host_os ld.so"
10130 shlibpath_var=LIBRARY_PATH
10131 ;;
10132
10133 bsdi[45]*)
10134 version_type=linux
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10141 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10142 # the default ld.so.conf also contains /usr/contrib/lib and
10143 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10144 # libtool to hard-code these into programs
10145 ;;
10146
10147 cygwin* | mingw* | pw32* | cegcc*)
10148 version_type=windows
10149 shrext_cmds=".dll"
10150 need_version=no
10151 need_lib_prefix=no
10152
10153 case $GCC,$host_os in
10154 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10155 library_names_spec='$libname.dll.a'
10156 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10157 postinstall_cmds='base_file=`basename \${file}`~
10158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10159 dldir=$destdir/`dirname \$dlpath`~
10160 test -d \$dldir || mkdir -p \$dldir~
10161 $install_prog $dir/$dlname \$dldir/$dlname~
10162 chmod a+x \$dldir/$dlname~
10163 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10164 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10165 fi'
10166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10167 dlpath=$dir/\$dldll~
10168 $RM \$dlpath'
10169 shlibpath_overrides_runpath=yes
10170
10171 case $host_os in
10172 cygwin*)
10173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10174 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10175
10176 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10177 ;;
10178 mingw* | cegcc*)
10179 # MinGW DLLs use traditional 'lib' prefix
10180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10181 ;;
10182 pw32*)
10183 # pw32 DLLs use 'pw' prefix rather than 'lib'
10184 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10185 ;;
10186 esac
10187 ;;
10188
10189 *)
10190 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10191 ;;
10192 esac
10193 dynamic_linker='Win32 ld.exe'
10194 # FIXME: first we should search . and the directory the executable is in
10195 shlibpath_var=PATH
10196 ;;
10197
10198 darwin* | rhapsody*)
10199 dynamic_linker="$host_os dyld"
10200 version_type=darwin
10201 need_lib_prefix=no
10202 need_version=no
10203 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10204 soname_spec='${libname}${release}${major}$shared_ext'
10205 shlibpath_overrides_runpath=yes
10206 shlibpath_var=DYLD_LIBRARY_PATH
10207 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10208
10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10210 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10211 ;;
10212
10213 dgux*)
10214 version_type=linux
10215 need_lib_prefix=no
10216 need_version=no
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 shlibpath_var=LD_LIBRARY_PATH
10220 ;;
10221
10222 freebsd1*)
10223 dynamic_linker=no
10224 ;;
10225
10226 freebsd* | dragonfly*)
10227 # DragonFly does not have aout. When/if they implement a new
10228 # versioning mechanism, adjust this.
10229 if test -x /usr/bin/objformat; then
10230 objformat=`/usr/bin/objformat`
10231 else
10232 case $host_os in
10233 freebsd[123]*) objformat=aout ;;
10234 *) objformat=elf ;;
10235 esac
10236 fi
10237 version_type=freebsd-$objformat
10238 case $version_type in
10239 freebsd-elf*)
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10241 need_version=no
10242 need_lib_prefix=no
10243 ;;
10244 freebsd-*)
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10246 need_version=yes
10247 ;;
10248 esac
10249 shlibpath_var=LD_LIBRARY_PATH
10250 case $host_os in
10251 freebsd2*)
10252 shlibpath_overrides_runpath=yes
10253 ;;
10254 freebsd3.[01]* | freebsdelf3.[01]*)
10255 shlibpath_overrides_runpath=yes
10256 hardcode_into_libs=yes
10257 ;;
10258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10260 shlibpath_overrides_runpath=no
10261 hardcode_into_libs=yes
10262 ;;
10263 *) # from 4.6 on, and DragonFly
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10266 ;;
10267 esac
10268 ;;
10269
10270 gnu*)
10271 version_type=linux
10272 need_lib_prefix=no
10273 need_version=no
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 hardcode_into_libs=yes
10278 ;;
10279
10280 haiku*)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 dynamic_linker="$host_os runtime_loader"
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10290 hardcode_into_libs=yes
10291 ;;
10292
10293 hpux9* | hpux10* | hpux11*)
10294 # Give a soname corresponding to the major version so that dld.sl refuses to
10295 # link against other versions.
10296 version_type=sunos
10297 need_lib_prefix=no
10298 need_version=no
10299 case $host_cpu in
10300 ia64*)
10301 shrext_cmds='.so'
10302 hardcode_into_libs=yes
10303 dynamic_linker="$host_os dld.so"
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 if test "X$HPUX_IA64_MODE" = X32; then
10309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10310 else
10311 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10312 fi
10313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10314 ;;
10315 hppa*64*)
10316 shrext_cmds='.sl'
10317 hardcode_into_libs=yes
10318 dynamic_linker="$host_os dld.sl"
10319 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10325 ;;
10326 *)
10327 shrext_cmds='.sl'
10328 dynamic_linker="$host_os dld.sl"
10329 shlibpath_var=SHLIB_PATH
10330 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 ;;
10334 esac
10335 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10336 postinstall_cmds='chmod 555 $lib'
10337 # or fails outright, so override atomically:
10338 install_override_mode=555
10339 ;;
10340
10341 interix[3-9]*)
10342 version_type=linux
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=no
10350 hardcode_into_libs=yes
10351 ;;
10352
10353 irix5* | irix6* | nonstopux*)
10354 case $host_os in
10355 nonstopux*) version_type=nonstopux ;;
10356 *)
10357 if test "$lt_cv_prog_gnu_ld" = yes; then
10358 version_type=linux
10359 else
10360 version_type=irix
10361 fi ;;
10362 esac
10363 need_lib_prefix=no
10364 need_version=no
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10367 case $host_os in
10368 irix5* | nonstopux*)
10369 libsuff= shlibsuff=
10370 ;;
10371 *)
10372 case $LD in # libtool.m4 will add one of these switches to LD
10373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10374 libsuff= shlibsuff= libmagic=32-bit;;
10375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10376 libsuff=32 shlibsuff=N32 libmagic=N32;;
10377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10379 *) libsuff= shlibsuff= libmagic=never-match;;
10380 esac
10381 ;;
10382 esac
10383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10384 shlibpath_overrides_runpath=no
10385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10387 hardcode_into_libs=yes
10388 ;;
10389
10390 # No shared lib support for Linux oldld, aout, or coff.
10391 linux*oldld* | linux*aout* | linux*coff*)
10392 dynamic_linker=no
10393 ;;
10394
10395 # This must be Linux ELF.
10396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10397 version_type=linux
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 shlibpath_overrides_runpath=no
10405
10406 # Some binutils ld are patched to set DT_RUNPATH
10407 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 lt_cv_shlibpath_overrides_runpath=no
10411 save_LDFLAGS=$LDFLAGS
10412 save_libdir=$libdir
10413 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10414 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417
10418 int
10419 main ()
10420 {
10421
10422 ;
10423 return 0;
10424 }
10425 _ACEOF
10426 if ac_fn_c_try_link "$LINENO"; then :
10427 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10428 lt_cv_shlibpath_overrides_runpath=yes
10429 fi
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433 LDFLAGS=$save_LDFLAGS
10434 libdir=$save_libdir
10435
10436 fi
10437
10438 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10439
10440 # This implies no fast_install, which is unacceptable.
10441 # Some rework will be needed to allow for fast_install
10442 # before this can be enabled.
10443 hardcode_into_libs=yes
10444
10445 # Append ld.so.conf contents to the search path
10446 if test -f /etc/ld.so.conf; then
10447 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' ' '`
10448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10449 fi
10450
10451 # We used to test for /lib/ld.so.1 and disable shared libraries on
10452 # powerpc, because MkLinux only supported shared libraries with the
10453 # GNU dynamic linker. Since this was broken with cross compilers,
10454 # most powerpc-linux boxes support dynamic linking these days and
10455 # people can always --disable-shared, the test was removed, and we
10456 # assume the GNU/Linux dynamic linker is in use.
10457 dynamic_linker='GNU/Linux ld.so'
10458 ;;
10459
10460 netbsd*)
10461 version_type=sunos
10462 need_lib_prefix=no
10463 need_version=no
10464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10467 dynamic_linker='NetBSD (a.out) ld.so'
10468 else
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 dynamic_linker='NetBSD ld.elf_so'
10472 fi
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=yes
10475 hardcode_into_libs=yes
10476 ;;
10477
10478 newsos6)
10479 version_type=linux
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=yes
10483 ;;
10484
10485 *nto* | *qnx*)
10486 version_type=qnx
10487 need_lib_prefix=no
10488 need_version=no
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=no
10493 hardcode_into_libs=yes
10494 dynamic_linker='ldqnx.so'
10495 ;;
10496
10497 openbsd*)
10498 version_type=sunos
10499 sys_lib_dlsearch_path_spec="/usr/lib"
10500 need_lib_prefix=no
10501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10502 case $host_os in
10503 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10504 *) need_version=no ;;
10505 esac
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10510 case $host_os in
10511 openbsd2.[89] | openbsd2.[89].*)
10512 shlibpath_overrides_runpath=no
10513 ;;
10514 *)
10515 shlibpath_overrides_runpath=yes
10516 ;;
10517 esac
10518 else
10519 shlibpath_overrides_runpath=yes
10520 fi
10521 ;;
10522
10523 os2*)
10524 libname_spec='$name'
10525 shrext_cmds=".dll"
10526 need_lib_prefix=no
10527 library_names_spec='$libname${shared_ext} $libname.a'
10528 dynamic_linker='OS/2 ld.exe'
10529 shlibpath_var=LIBPATH
10530 ;;
10531
10532 osf3* | osf4* | osf5*)
10533 version_type=osf
10534 need_lib_prefix=no
10535 need_version=no
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10540 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10541 ;;
10542
10543 rdos*)
10544 dynamic_linker=no
10545 ;;
10546
10547 solaris*)
10548 version_type=linux
10549 need_lib_prefix=no
10550 need_version=no
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 hardcode_into_libs=yes
10556 # ldd complains unless libraries are executable
10557 postinstall_cmds='chmod +x $lib'
10558 ;;
10559
10560 sunos4*)
10561 version_type=sunos
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 shlibpath_overrides_runpath=yes
10566 if test "$with_gnu_ld" = yes; then
10567 need_lib_prefix=no
10568 fi
10569 need_version=yes
10570 ;;
10571
10572 sysv4 | sysv4.3*)
10573 version_type=linux
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 case $host_vendor in
10578 sni)
10579 shlibpath_overrides_runpath=no
10580 need_lib_prefix=no
10581 runpath_var=LD_RUN_PATH
10582 ;;
10583 siemens)
10584 need_lib_prefix=no
10585 ;;
10586 motorola)
10587 need_lib_prefix=no
10588 need_version=no
10589 shlibpath_overrides_runpath=no
10590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10591 ;;
10592 esac
10593 ;;
10594
10595 sysv4*MP*)
10596 if test -d /usr/nec ;then
10597 version_type=linux
10598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10599 soname_spec='$libname${shared_ext}.$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 fi
10602 ;;
10603
10604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10605 version_type=freebsd-elf
10606 need_lib_prefix=no
10607 need_version=no
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 hardcode_into_libs=yes
10613 if test "$with_gnu_ld" = yes; then
10614 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10615 else
10616 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10617 case $host_os in
10618 sco3.2v5*)
10619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10620 ;;
10621 esac
10622 fi
10623 sys_lib_dlsearch_path_spec='/usr/lib'
10624 ;;
10625
10626 tpf*)
10627 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10628 version_type=linux
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=no
10634 hardcode_into_libs=yes
10635 ;;
10636
10637 uts4*)
10638 version_type=linux
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 ;;
10643
10644 *)
10645 dynamic_linker=no
10646 ;;
10647 esac
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10649 $as_echo "$dynamic_linker" >&6; }
10650 test "$dynamic_linker" = no && can_build_shared=no
10651
10652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10653 if test "$GCC" = yes; then
10654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10655 fi
10656
10657 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10658 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10659 fi
10660 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10661 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10662 fi
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10757 hardcode_action=
10758 if test -n "$hardcode_libdir_flag_spec" ||
10759 test -n "$runpath_var" ||
10760 test "X$hardcode_automatic" = "Xyes" ; then
10761
10762 # We can hardcode non-existent directories.
10763 if test "$hardcode_direct" != no &&
10764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10765 # have to relink, otherwise we might link with an installed library
10766 # when we should be linking with a yet-to-be-installed one
10767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10768 test "$hardcode_minus_L" != no; then
10769 # Linking always hardcodes the temporary library directory.
10770 hardcode_action=relink
10771 else
10772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10773 hardcode_action=immediate
10774 fi
10775 else
10776 # We cannot hardcode anything, or else we can only hardcode existing
10777 # directories.
10778 hardcode_action=unsupported
10779 fi
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10781 $as_echo "$hardcode_action" >&6; }
10782
10783 if test "$hardcode_action" = relink ||
10784 test "$inherit_rpath" = yes; then
10785 # Fast installation is not supported
10786 enable_fast_install=no
10787 elif test "$shlibpath_overrides_runpath" = yes ||
10788 test "$enable_shared" = no; then
10789 # Fast installation is not necessary
10790 enable_fast_install=needless
10791 fi
10792
10793
10794
10795
10796
10797
10798 if test "x$enable_dlopen" != xyes; then
10799 enable_dlopen=unknown
10800 enable_dlopen_self=unknown
10801 enable_dlopen_self_static=unknown
10802 else
10803 lt_cv_dlopen=no
10804 lt_cv_dlopen_libs=
10805
10806 case $host_os in
10807 beos*)
10808 lt_cv_dlopen="load_add_on"
10809 lt_cv_dlopen_libs=
10810 lt_cv_dlopen_self=yes
10811 ;;
10812
10813 mingw* | pw32* | cegcc*)
10814 lt_cv_dlopen="LoadLibrary"
10815 lt_cv_dlopen_libs=
10816 ;;
10817
10818 cygwin*)
10819 lt_cv_dlopen="dlopen"
10820 lt_cv_dlopen_libs=
10821 ;;
10822
10823 darwin*)
10824 # if libdl is installed we need to link against it
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10826 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-ldl $LIBS"
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834
10835 /* Override any GCC internal prototype to avoid an error.
10836 Use char because int might match the return type of a GCC
10837 builtin and then its argument prototype would still apply. */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 char dlopen ();
10842 int
10843 main ()
10844 {
10845 return dlopen ();
10846 ;
10847 return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851 ac_cv_lib_dl_dlopen=yes
10852 else
10853 ac_cv_lib_dl_dlopen=no
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10860 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10861 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10863 else
10864
10865 lt_cv_dlopen="dyld"
10866 lt_cv_dlopen_libs=
10867 lt_cv_dlopen_self=yes
10868
10869 fi
10870
10871 ;;
10872
10873 *)
10874 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10875 if test "x$ac_cv_func_shl_load" = x""yes; then :
10876 lt_cv_dlopen="shl_load"
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10879 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10880 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-ldld $LIBS"
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char shl_load ();
10895 int
10896 main ()
10897 {
10898 return shl_load ();
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 ac_cv_lib_dld_shl_load=yes
10905 else
10906 ac_cv_lib_dld_shl_load=no
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10911 fi
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10913 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10914 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10916 else
10917 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10918 if test "x$ac_cv_func_dlopen" = x""yes; then :
10919 lt_cv_dlopen="dlopen"
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10922 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10923 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 ac_check_lib_save_LIBS=$LIBS
10927 LIBS="-ldl $LIBS"
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10930
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char dlopen ();
10938 int
10939 main ()
10940 {
10941 return dlopen ();
10942 ;
10943 return 0;
10944 }
10945 _ACEOF
10946 if ac_fn_c_try_link "$LINENO"; then :
10947 ac_cv_lib_dl_dlopen=yes
10948 else
10949 ac_cv_lib_dl_dlopen=no
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10954 fi
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10956 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10957 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10961 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lsvld $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char dlopen ();
10977 int
10978 main ()
10979 {
10980 return dlopen ();
10981 ;
10982 return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_svld_dlopen=yes
10987 else
10988 ac_cv_lib_svld_dlopen=no
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10995 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10996 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11000 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11001 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-ldld $LIBS"
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dld_link ();
11016 int
11017 main ()
11018 {
11019 return dld_link ();
11020 ;
11021 return 0;
11022 }
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 ac_cv_lib_dld_dld_link=yes
11026 else
11027 ac_cv_lib_dld_dld_link=no
11028 fi
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11032 fi
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11034 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11035 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11037 fi
11038
11039
11040 fi
11041
11042
11043 fi
11044
11045
11046 fi
11047
11048
11049 fi
11050
11051
11052 fi
11053
11054 ;;
11055 esac
11056
11057 if test "x$lt_cv_dlopen" != xno; then
11058 enable_dlopen=yes
11059 else
11060 enable_dlopen=no
11061 fi
11062
11063 case $lt_cv_dlopen in
11064 dlopen)
11065 save_CPPFLAGS="$CPPFLAGS"
11066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11067
11068 save_LDFLAGS="$LDFLAGS"
11069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11070
11071 save_LIBS="$LIBS"
11072 LIBS="$lt_cv_dlopen_libs $LIBS"
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11075 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11076 if test "${lt_cv_dlopen_self+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 if test "$cross_compiling" = yes; then :
11080 lt_cv_dlopen_self=cross
11081 else
11082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11083 lt_status=$lt_dlunknown
11084 cat > conftest.$ac_ext <<_LT_EOF
11085 #line 11085 "configure"
11086 #include "confdefs.h"
11087
11088 #if HAVE_DLFCN_H
11089 #include <dlfcn.h>
11090 #endif
11091
11092 #include <stdio.h>
11093
11094 #ifdef RTLD_GLOBAL
11095 # define LT_DLGLOBAL RTLD_GLOBAL
11096 #else
11097 # ifdef DL_GLOBAL
11098 # define LT_DLGLOBAL DL_GLOBAL
11099 # else
11100 # define LT_DLGLOBAL 0
11101 # endif
11102 #endif
11103
11104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11105 find out it does not work in some platform. */
11106 #ifndef LT_DLLAZY_OR_NOW
11107 # ifdef RTLD_LAZY
11108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11109 # else
11110 # ifdef DL_LAZY
11111 # define LT_DLLAZY_OR_NOW DL_LAZY
11112 # else
11113 # ifdef RTLD_NOW
11114 # define LT_DLLAZY_OR_NOW RTLD_NOW
11115 # else
11116 # ifdef DL_NOW
11117 # define LT_DLLAZY_OR_NOW DL_NOW
11118 # else
11119 # define LT_DLLAZY_OR_NOW 0
11120 # endif
11121 # endif
11122 # endif
11123 # endif
11124 #endif
11125
11126 /* When -fvisbility=hidden is used, assume the code has been annotated
11127 correspondingly for the symbols needed. */
11128 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11129 void fnord () __attribute__((visibility("default")));
11130 #endif
11131
11132 void fnord () { int i=42; }
11133 int main ()
11134 {
11135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11136 int status = $lt_dlunknown;
11137
11138 if (self)
11139 {
11140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11141 else
11142 {
11143 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11144 else puts (dlerror ());
11145 }
11146 /* dlclose (self); */
11147 }
11148 else
11149 puts (dlerror ());
11150
11151 return status;
11152 }
11153 _LT_EOF
11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11159 (./conftest; exit; ) >&5 2>/dev/null
11160 lt_status=$?
11161 case x$lt_status in
11162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11165 esac
11166 else :
11167 # compilation failed
11168 lt_cv_dlopen_self=no
11169 fi
11170 fi
11171 rm -fr conftest*
11172
11173
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11176 $as_echo "$lt_cv_dlopen_self" >&6; }
11177
11178 if test "x$lt_cv_dlopen_self" = xyes; then
11179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11182 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 if test "$cross_compiling" = yes; then :
11186 lt_cv_dlopen_self_static=cross
11187 else
11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189 lt_status=$lt_dlunknown
11190 cat > conftest.$ac_ext <<_LT_EOF
11191 #line 11191 "configure"
11192 #include "confdefs.h"
11193
11194 #if HAVE_DLFCN_H
11195 #include <dlfcn.h>
11196 #endif
11197
11198 #include <stdio.h>
11199
11200 #ifdef RTLD_GLOBAL
11201 # define LT_DLGLOBAL RTLD_GLOBAL
11202 #else
11203 # ifdef DL_GLOBAL
11204 # define LT_DLGLOBAL DL_GLOBAL
11205 # else
11206 # define LT_DLGLOBAL 0
11207 # endif
11208 #endif
11209
11210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211 find out it does not work in some platform. */
11212 #ifndef LT_DLLAZY_OR_NOW
11213 # ifdef RTLD_LAZY
11214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11215 # else
11216 # ifdef DL_LAZY
11217 # define LT_DLLAZY_OR_NOW DL_LAZY
11218 # else
11219 # ifdef RTLD_NOW
11220 # define LT_DLLAZY_OR_NOW RTLD_NOW
11221 # else
11222 # ifdef DL_NOW
11223 # define LT_DLLAZY_OR_NOW DL_NOW
11224 # else
11225 # define LT_DLLAZY_OR_NOW 0
11226 # endif
11227 # endif
11228 # endif
11229 # endif
11230 #endif
11231
11232 /* When -fvisbility=hidden is used, assume the code has been annotated
11233 correspondingly for the symbols needed. */
11234 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11235 void fnord () __attribute__((visibility("default")));
11236 #endif
11237
11238 void fnord () { int i=42; }
11239 int main ()
11240 {
11241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11242 int status = $lt_dlunknown;
11243
11244 if (self)
11245 {
11246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11247 else
11248 {
11249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 else puts (dlerror ());
11251 }
11252 /* dlclose (self); */
11253 }
11254 else
11255 puts (dlerror ());
11256
11257 return status;
11258 }
11259 _LT_EOF
11260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11261 (eval $ac_link) 2>&5
11262 ac_status=$?
11263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11265 (./conftest; exit; ) >&5 2>/dev/null
11266 lt_status=$?
11267 case x$lt_status in
11268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11271 esac
11272 else :
11273 # compilation failed
11274 lt_cv_dlopen_self_static=no
11275 fi
11276 fi
11277 rm -fr conftest*
11278
11279
11280 fi
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11282 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11283 fi
11284
11285 CPPFLAGS="$save_CPPFLAGS"
11286 LDFLAGS="$save_LDFLAGS"
11287 LIBS="$save_LIBS"
11288 ;;
11289 esac
11290
11291 case $lt_cv_dlopen_self in
11292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11293 *) enable_dlopen_self=unknown ;;
11294 esac
11295
11296 case $lt_cv_dlopen_self_static in
11297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11298 *) enable_dlopen_self_static=unknown ;;
11299 esac
11300 fi
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318 striplib=
11319 old_striplib=
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11321 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11322 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11323 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11324 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11326 $as_echo "yes" >&6; }
11327 else
11328 # FIXME - insert some real tests, host_os isn't really good enough
11329 case $host_os in
11330 darwin*)
11331 if test -n "$STRIP" ; then
11332 striplib="$STRIP -x"
11333 old_striplib="$STRIP -S"
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335 $as_echo "yes" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11339 fi
11340 ;;
11341 *)
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11344 ;;
11345 esac
11346 fi
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359 # Report which library types will actually be built
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11361 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11363 $as_echo "$can_build_shared" >&6; }
11364
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11366 $as_echo_n "checking whether to build shared libraries... " >&6; }
11367 test "$can_build_shared" = "no" && enable_shared=no
11368
11369 # On AIX, shared libraries and static libraries use the same namespace, and
11370 # are all built from PIC.
11371 case $host_os in
11372 aix3*)
11373 test "$enable_shared" = yes && enable_static=no
11374 if test -n "$RANLIB"; then
11375 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11376 postinstall_cmds='$RANLIB $lib'
11377 fi
11378 ;;
11379
11380 aix[4-9]*)
11381 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11382 test "$enable_shared" = yes && enable_static=no
11383 fi
11384 ;;
11385 esac
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11387 $as_echo "$enable_shared" >&6; }
11388
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11390 $as_echo_n "checking whether to build static libraries... " >&6; }
11391 # Make sure either enable_shared or enable_static is yes.
11392 test "$enable_shared" = yes || enable_static=yes
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11394 $as_echo "$enable_static" >&6; }
11395
11396
11397
11398
11399 fi
11400 ac_ext=c
11401 ac_cpp='$CPP $CPPFLAGS'
11402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11405
11406 CC="$lt_save_CC"
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420 ac_config_commands="$ac_config_commands libtool"
11421
11422
11423
11424
11425 # Only expand once:
11426
11427
11428
11429
11430
11431
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11433 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11434 # Check whether --enable-maintainer-mode was given.
11435 if test "${enable_maintainer_mode+set}" = set; then :
11436 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11437 else
11438 USE_MAINTAINER_MODE=no
11439 fi
11440
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11442 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11443 if test $USE_MAINTAINER_MODE = yes; then
11444 MAINTAINER_MODE_TRUE=
11445 MAINTAINER_MODE_FALSE='#'
11446 else
11447 MAINTAINER_MODE_TRUE='#'
11448 MAINTAINER_MODE_FALSE=
11449 fi
11450
11451 MAINT=$MAINTAINER_MODE_TRUE
11452
11453
11454
11455 # We need gfortran to compile parts of the library
11456 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11457 #AC_PROG_FC(gfortran)
11458 case `echo $GFORTRAN` in
11459 -* | no* )
11460 FC=no ;;
11461 *)
11462 FC="$GFORTRAN" ;;
11463 esac
11464 ac_ext=${ac_fc_srcext-f}
11465 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11466 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11467 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11468 if test -n "$ac_tool_prefix"; then
11469 for ac_prog in gfortran
11470 do
11471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if test "${ac_cv_prog_FC+set}" = set; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 if test -n "$FC"; then
11479 ac_cv_prog_FC="$FC" # Let the user override the test.
11480 else
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11483 do
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11488 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11491 fi
11492 done
11493 done
11494 IFS=$as_save_IFS
11495
11496 fi
11497 fi
11498 FC=$ac_cv_prog_FC
11499 if test -n "$FC"; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11501 $as_echo "$FC" >&6; }
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505 fi
11506
11507
11508 test -n "$FC" && break
11509 done
11510 fi
11511 if test -z "$FC"; then
11512 ac_ct_FC=$FC
11513 for ac_prog in gfortran
11514 do
11515 # Extract the first word of "$ac_prog", so it can be a program name with args.
11516 set dummy $ac_prog; ac_word=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 if test -n "$ac_ct_FC"; then
11523 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11524 else
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11527 do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_prog_ac_ct_FC="$ac_prog"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11535 fi
11536 done
11537 done
11538 IFS=$as_save_IFS
11539
11540 fi
11541 fi
11542 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11543 if test -n "$ac_ct_FC"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11545 $as_echo "$ac_ct_FC" >&6; }
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11549 fi
11550
11551
11552 test -n "$ac_ct_FC" && break
11553 done
11554
11555 if test "x$ac_ct_FC" = x; then
11556 FC=""
11557 else
11558 case $cross_compiling:$ac_tool_warned in
11559 yes:)
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11562 ac_tool_warned=yes ;;
11563 esac
11564 FC=$ac_ct_FC
11565 fi
11566 fi
11567
11568
11569 # Provide some information about the compiler.
11570 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11571 set X $ac_compile
11572 ac_compiler=$2
11573 for ac_option in --version -v -V -qversion; do
11574 { { ac_try="$ac_compiler $ac_option >&5"
11575 case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578 esac
11579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11580 $as_echo "$ac_try_echo"; } >&5
11581 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11582 ac_status=$?
11583 if test -s conftest.err; then
11584 sed '10a\
11585 ... rest of stderr output deleted ...
11586 10q' conftest.err >conftest.er1
11587 cat conftest.er1 >&5
11588 rm -f conftest.er1 conftest.err
11589 fi
11590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11591 test $ac_status = 0; }
11592 done
11593 rm -f a.out
11594
11595 # If we don't use `.F' as extension, the preprocessor is not run on the
11596 # input file. (Note that this only needs to work for GNU compilers.)
11597 ac_save_ext=$ac_ext
11598 ac_ext=F
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11600 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11601 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 cat > conftest.$ac_ext <<_ACEOF
11605 program main
11606 #ifndef __GNUC__
11607 choke me
11608 #endif
11609
11610 end
11611 _ACEOF
11612 if ac_fn_fc_try_compile "$LINENO"; then :
11613 ac_compiler_gnu=yes
11614 else
11615 ac_compiler_gnu=no
11616 fi
11617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11618 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11619
11620 fi
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11622 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11623 ac_ext=$ac_save_ext
11624 ac_test_FCFLAGS=${FCFLAGS+set}
11625 ac_save_FCFLAGS=$FCFLAGS
11626 FCFLAGS=
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11628 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11629 if test "${ac_cv_prog_fc_g+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 FCFLAGS=-g
11633 cat > conftest.$ac_ext <<_ACEOF
11634 program main
11635
11636 end
11637 _ACEOF
11638 if ac_fn_fc_try_compile "$LINENO"; then :
11639 ac_cv_prog_fc_g=yes
11640 else
11641 ac_cv_prog_fc_g=no
11642 fi
11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11647 $as_echo "$ac_cv_prog_fc_g" >&6; }
11648 if test "$ac_test_FCFLAGS" = set; then
11649 FCFLAGS=$ac_save_FCFLAGS
11650 elif test $ac_cv_prog_fc_g = yes; then
11651 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11652 FCFLAGS="-g -O2"
11653 else
11654 FCFLAGS="-g"
11655 fi
11656 else
11657 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11658 FCFLAGS="-O2"
11659 else
11660 FCFLAGS=
11661 fi
11662 fi
11663
11664 ac_ext=c
11665 ac_cpp='$CPP $CPPFLAGS'
11666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11669
11670 ac_ext=${ac_fc_srcext-f}
11671 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11672 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11673 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11674
11675
11676 if test -z "$FC" || test "X$FC" = "Xno"; then
11677 _lt_disable_FC=yes
11678 fi
11679
11680 archive_cmds_need_lc_FC=no
11681 allow_undefined_flag_FC=
11682 always_export_symbols_FC=no
11683 archive_expsym_cmds_FC=
11684 export_dynamic_flag_spec_FC=
11685 hardcode_direct_FC=no
11686 hardcode_direct_absolute_FC=no
11687 hardcode_libdir_flag_spec_FC=
11688 hardcode_libdir_flag_spec_ld_FC=
11689 hardcode_libdir_separator_FC=
11690 hardcode_minus_L_FC=no
11691 hardcode_automatic_FC=no
11692 inherit_rpath_FC=no
11693 module_cmds_FC=
11694 module_expsym_cmds_FC=
11695 link_all_deplibs_FC=unknown
11696 old_archive_cmds_FC=$old_archive_cmds
11697 reload_flag_FC=$reload_flag
11698 reload_cmds_FC=$reload_cmds
11699 no_undefined_flag_FC=
11700 whole_archive_flag_spec_FC=
11701 enable_shared_with_static_runtimes_FC=no
11702
11703 # Source file extension for fc test sources.
11704 ac_ext=${ac_fc_srcext-f}
11705
11706 # Object file extension for compiled fc test sources.
11707 objext=o
11708 objext_FC=$objext
11709
11710 # No sense in running all these tests if we already determined that
11711 # the FC compiler isn't working. Some variables (like enable_shared)
11712 # are currently assumed to apply to all compilers on this platform,
11713 # and will be corrupted by setting them based on a non-working compiler.
11714 if test "$_lt_disable_FC" != yes; then
11715 # Code to be used in simple compile tests
11716 lt_simple_compile_test_code="\
11717 subroutine t
11718 return
11719 end
11720 "
11721
11722 # Code to be used in simple link tests
11723 lt_simple_link_test_code="\
11724 program t
11725 end
11726 "
11727
11728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11729
11730
11731
11732
11733
11734
11735 # If no C compiler was specified, use CC.
11736 LTCC=${LTCC-"$CC"}
11737
11738 # If no C compiler flags were specified, use CFLAGS.
11739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11740
11741 # Allow CC to be a program name with arguments.
11742 compiler=$CC
11743
11744
11745 # save warnings/boilerplate of simple test code
11746 ac_outfile=conftest.$ac_objext
11747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11749 _lt_compiler_boilerplate=`cat conftest.err`
11750 $RM conftest*
11751
11752 ac_outfile=conftest.$ac_objext
11753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11755 _lt_linker_boilerplate=`cat conftest.err`
11756 $RM -r conftest*
11757
11758
11759 # Allow CC to be a program name with arguments.
11760 lt_save_CC="$CC"
11761 lt_save_GCC=$GCC
11762 CC=${FC-"f95"}
11763 compiler=$CC
11764 GCC=$ac_cv_fc_compiler_gnu
11765
11766 compiler_FC=$CC
11767 for cc_temp in $compiler""; do
11768 case $cc_temp in
11769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11771 \-*) ;;
11772 *) break;;
11773 esac
11774 done
11775 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11776
11777
11778 if test -n "$compiler"; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11780 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11782 $as_echo "$can_build_shared" >&6; }
11783
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11785 $as_echo_n "checking whether to build shared libraries... " >&6; }
11786 test "$can_build_shared" = "no" && enable_shared=no
11787
11788 # On AIX, shared libraries and static libraries use the same namespace, and
11789 # are all built from PIC.
11790 case $host_os in
11791 aix3*)
11792 test "$enable_shared" = yes && enable_static=no
11793 if test -n "$RANLIB"; then
11794 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11795 postinstall_cmds='$RANLIB $lib'
11796 fi
11797 ;;
11798 aix[4-9]*)
11799 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11800 test "$enable_shared" = yes && enable_static=no
11801 fi
11802 ;;
11803 esac
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11805 $as_echo "$enable_shared" >&6; }
11806
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11808 $as_echo_n "checking whether to build static libraries... " >&6; }
11809 # Make sure either enable_shared or enable_static is yes.
11810 test "$enable_shared" = yes || enable_static=yes
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11812 $as_echo "$enable_static" >&6; }
11813
11814 GCC_FC="$ac_cv_fc_compiler_gnu"
11815 LD_FC="$LD"
11816
11817 ## CAVEAT EMPTOR:
11818 ## There is no encapsulation within the following macros, do not change
11819 ## the running order or otherwise move them around unless you know exactly
11820 ## what you are doing...
11821 # Dependencies to place before and after the object being linked:
11822 predep_objects_FC=
11823 postdep_objects_FC=
11824 predeps_FC=
11825 postdeps_FC=
11826 compiler_lib_search_path_FC=
11827
11828 cat > conftest.$ac_ext <<_LT_EOF
11829 subroutine foo
11830 implicit none
11831 integer a
11832 a=0
11833 return
11834 end
11835 _LT_EOF
11836
11837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11838 (eval $ac_compile) 2>&5
11839 ac_status=$?
11840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11841 test $ac_status = 0; }; then
11842 # Parse the compiler output and extract the necessary
11843 # objects, libraries and library flags.
11844
11845 # Sentinel used to keep track of whether or not we are before
11846 # the conftest object file.
11847 pre_test_object_deps_done=no
11848
11849 for p in `eval "$output_verbose_link_cmd"`; do
11850 case $p in
11851
11852 -L* | -R* | -l*)
11853 # Some compilers place space between "-{L,R}" and the path.
11854 # Remove the space.
11855 if test $p = "-L" ||
11856 test $p = "-R"; then
11857 prev=$p
11858 continue
11859 else
11860 prev=
11861 fi
11862
11863 if test "$pre_test_object_deps_done" = no; then
11864 case $p in
11865 -L* | -R*)
11866 # Internal compiler library paths should come after those
11867 # provided the user. The postdeps already come after the
11868 # user supplied libs so there is no need to process them.
11869 if test -z "$compiler_lib_search_path_FC"; then
11870 compiler_lib_search_path_FC="${prev}${p}"
11871 else
11872 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11873 fi
11874 ;;
11875 # The "-l" case would never come before the object being
11876 # linked, so don't bother handling this case.
11877 esac
11878 else
11879 if test -z "$postdeps_FC"; then
11880 postdeps_FC="${prev}${p}"
11881 else
11882 postdeps_FC="${postdeps_FC} ${prev}${p}"
11883 fi
11884 fi
11885 ;;
11886
11887 *.$objext)
11888 # This assumes that the test object file only shows up
11889 # once in the compiler output.
11890 if test "$p" = "conftest.$objext"; then
11891 pre_test_object_deps_done=yes
11892 continue
11893 fi
11894
11895 if test "$pre_test_object_deps_done" = no; then
11896 if test -z "$predep_objects_FC"; then
11897 predep_objects_FC="$p"
11898 else
11899 predep_objects_FC="$predep_objects_FC $p"
11900 fi
11901 else
11902 if test -z "$postdep_objects_FC"; then
11903 postdep_objects_FC="$p"
11904 else
11905 postdep_objects_FC="$postdep_objects_FC $p"
11906 fi
11907 fi
11908 ;;
11909
11910 *) ;; # Ignore the rest.
11911
11912 esac
11913 done
11914
11915 # Clean up.
11916 rm -f a.out a.exe
11917 else
11918 echo "libtool.m4: error: problem compiling FC test program"
11919 fi
11920
11921 $RM -f confest.$objext
11922
11923 # PORTME: override above test on systems where it is broken
11924
11925
11926 case " $postdeps_FC " in
11927 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11928 esac
11929 compiler_lib_search_dirs_FC=
11930 if test -n "${compiler_lib_search_path_FC}"; then
11931 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11932 fi
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964 lt_prog_compiler_wl_FC=
11965 lt_prog_compiler_pic_FC=
11966 lt_prog_compiler_static_FC=
11967
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11969 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11970
11971 if test "$GCC" = yes; then
11972 lt_prog_compiler_wl_FC='-Wl,'
11973 lt_prog_compiler_static_FC='-static'
11974
11975 case $host_os in
11976 aix*)
11977 # All AIX code is PIC.
11978 if test "$host_cpu" = ia64; then
11979 # AIX 5 now supports IA64 processor
11980 lt_prog_compiler_static_FC='-Bstatic'
11981 fi
11982 ;;
11983
11984 amigaos*)
11985 case $host_cpu in
11986 powerpc)
11987 # see comment about AmigaOS4 .so support
11988 lt_prog_compiler_pic_FC='-fPIC'
11989 ;;
11990 m68k)
11991 # FIXME: we need at least 68020 code to build shared libraries, but
11992 # adding the `-m68020' flag to GCC prevents building anything better,
11993 # like `-m68040'.
11994 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
11995 ;;
11996 esac
11997 ;;
11998
11999 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12000 # PIC is the default for these OSes.
12001 ;;
12002
12003 mingw* | cygwin* | pw32* | os2* | cegcc*)
12004 # This hack is so that the source file can tell whether it is being
12005 # built for inclusion in a dll (and should export symbols for example).
12006 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12007 # (--disable-auto-import) libraries
12008 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12009 ;;
12010
12011 darwin* | rhapsody*)
12012 # PIC is the default on this platform
12013 # Common symbols not allowed in MH_DYLIB files
12014 lt_prog_compiler_pic_FC='-fno-common'
12015 ;;
12016
12017 haiku*)
12018 # PIC is the default for Haiku.
12019 # The "-static" flag exists, but is broken.
12020 lt_prog_compiler_static_FC=
12021 ;;
12022
12023 hpux*)
12024 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12025 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12026 # sets the default TLS model and affects inlining.
12027 case $host_cpu in
12028 hppa*64*)
12029 # +Z the default
12030 ;;
12031 *)
12032 lt_prog_compiler_pic_FC='-fPIC'
12033 ;;
12034 esac
12035 ;;
12036
12037 interix[3-9]*)
12038 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12039 # Instead, we relocate shared libraries at runtime.
12040 ;;
12041
12042 msdosdjgpp*)
12043 # Just because we use GCC doesn't mean we suddenly get shared libraries
12044 # on systems that don't support them.
12045 lt_prog_compiler_can_build_shared_FC=no
12046 enable_shared=no
12047 ;;
12048
12049 *nto* | *qnx*)
12050 # QNX uses GNU C++, but need to define -shared option too, otherwise
12051 # it will coredump.
12052 lt_prog_compiler_pic_FC='-fPIC -shared'
12053 ;;
12054
12055 sysv4*MP*)
12056 if test -d /usr/nec; then
12057 lt_prog_compiler_pic_FC=-Kconform_pic
12058 fi
12059 ;;
12060
12061 *)
12062 lt_prog_compiler_pic_FC='-fPIC'
12063 ;;
12064 esac
12065
12066 case $cc_basename in
12067 nvcc*) # Cuda Compiler Driver 2.2
12068 lt_prog_compiler_wl_FC='-Xlinker '
12069 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12070 ;;
12071 esac
12072 else
12073 # PORTME Check for flag to pass linker flags through the system compiler.
12074 case $host_os in
12075 aix*)
12076 lt_prog_compiler_wl_FC='-Wl,'
12077 if test "$host_cpu" = ia64; then
12078 # AIX 5 now supports IA64 processor
12079 lt_prog_compiler_static_FC='-Bstatic'
12080 else
12081 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12082 fi
12083 ;;
12084
12085 mingw* | cygwin* | pw32* | os2* | cegcc*)
12086 # This hack is so that the source file can tell whether it is being
12087 # built for inclusion in a dll (and should export symbols for example).
12088 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12089 ;;
12090
12091 hpux9* | hpux10* | hpux11*)
12092 lt_prog_compiler_wl_FC='-Wl,'
12093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12094 # not for PA HP-UX.
12095 case $host_cpu in
12096 hppa*64*|ia64*)
12097 # +Z the default
12098 ;;
12099 *)
12100 lt_prog_compiler_pic_FC='+Z'
12101 ;;
12102 esac
12103 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12104 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12105 ;;
12106
12107 irix5* | irix6* | nonstopux*)
12108 lt_prog_compiler_wl_FC='-Wl,'
12109 # PIC (with -KPIC) is the default.
12110 lt_prog_compiler_static_FC='-non_shared'
12111 ;;
12112
12113 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12114 case $cc_basename in
12115 # old Intel for x86_64 which still supported -KPIC.
12116 ecc*)
12117 lt_prog_compiler_wl_FC='-Wl,'
12118 lt_prog_compiler_pic_FC='-KPIC'
12119 lt_prog_compiler_static_FC='-static'
12120 ;;
12121 # icc used to be incompatible with GCC.
12122 # ICC 10 doesn't accept -KPIC any more.
12123 icc* | ifort*)
12124 lt_prog_compiler_wl_FC='-Wl,'
12125 lt_prog_compiler_pic_FC='-fPIC'
12126 lt_prog_compiler_static_FC='-static'
12127 ;;
12128 # Lahey Fortran 8.1.
12129 lf95*)
12130 lt_prog_compiler_wl_FC='-Wl,'
12131 lt_prog_compiler_pic_FC='--shared'
12132 lt_prog_compiler_static_FC='--static'
12133 ;;
12134 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12135 # Portland Group compilers (*not* the Pentium gcc compiler,
12136 # which looks to be a dead project)
12137 lt_prog_compiler_wl_FC='-Wl,'
12138 lt_prog_compiler_pic_FC='-fpic'
12139 lt_prog_compiler_static_FC='-Bstatic'
12140 ;;
12141 ccc*)
12142 lt_prog_compiler_wl_FC='-Wl,'
12143 # All Alpha code is PIC.
12144 lt_prog_compiler_static_FC='-non_shared'
12145 ;;
12146 xl* | bgxl* | bgf* | mpixl*)
12147 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12148 lt_prog_compiler_wl_FC='-Wl,'
12149 lt_prog_compiler_pic_FC='-qpic'
12150 lt_prog_compiler_static_FC='-qstaticlink'
12151 ;;
12152 *)
12153 case `$CC -V 2>&1 | sed 5q` in
12154 *Sun\ F* | *Sun*Fortran*)
12155 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12156 lt_prog_compiler_pic_FC='-KPIC'
12157 lt_prog_compiler_static_FC='-Bstatic'
12158 lt_prog_compiler_wl_FC=''
12159 ;;
12160 *Sun\ C*)
12161 # Sun C 5.9
12162 lt_prog_compiler_pic_FC='-KPIC'
12163 lt_prog_compiler_static_FC='-Bstatic'
12164 lt_prog_compiler_wl_FC='-Wl,'
12165 ;;
12166 esac
12167 ;;
12168 esac
12169 ;;
12170
12171 newsos6)
12172 lt_prog_compiler_pic_FC='-KPIC'
12173 lt_prog_compiler_static_FC='-Bstatic'
12174 ;;
12175
12176 *nto* | *qnx*)
12177 # QNX uses GNU C++, but need to define -shared option too, otherwise
12178 # it will coredump.
12179 lt_prog_compiler_pic_FC='-fPIC -shared'
12180 ;;
12181
12182 osf3* | osf4* | osf5*)
12183 lt_prog_compiler_wl_FC='-Wl,'
12184 # All OSF/1 code is PIC.
12185 lt_prog_compiler_static_FC='-non_shared'
12186 ;;
12187
12188 rdos*)
12189 lt_prog_compiler_static_FC='-non_shared'
12190 ;;
12191
12192 solaris*)
12193 lt_prog_compiler_pic_FC='-KPIC'
12194 lt_prog_compiler_static_FC='-Bstatic'
12195 case $cc_basename in
12196 f77* | f90* | f95*)
12197 lt_prog_compiler_wl_FC='-Qoption ld ';;
12198 *)
12199 lt_prog_compiler_wl_FC='-Wl,';;
12200 esac
12201 ;;
12202
12203 sunos4*)
12204 lt_prog_compiler_wl_FC='-Qoption ld '
12205 lt_prog_compiler_pic_FC='-PIC'
12206 lt_prog_compiler_static_FC='-Bstatic'
12207 ;;
12208
12209 sysv4 | sysv4.2uw2* | sysv4.3*)
12210 lt_prog_compiler_wl_FC='-Wl,'
12211 lt_prog_compiler_pic_FC='-KPIC'
12212 lt_prog_compiler_static_FC='-Bstatic'
12213 ;;
12214
12215 sysv4*MP*)
12216 if test -d /usr/nec ;then
12217 lt_prog_compiler_pic_FC='-Kconform_pic'
12218 lt_prog_compiler_static_FC='-Bstatic'
12219 fi
12220 ;;
12221
12222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12223 lt_prog_compiler_wl_FC='-Wl,'
12224 lt_prog_compiler_pic_FC='-KPIC'
12225 lt_prog_compiler_static_FC='-Bstatic'
12226 ;;
12227
12228 unicos*)
12229 lt_prog_compiler_wl_FC='-Wl,'
12230 lt_prog_compiler_can_build_shared_FC=no
12231 ;;
12232
12233 uts4*)
12234 lt_prog_compiler_pic_FC='-pic'
12235 lt_prog_compiler_static_FC='-Bstatic'
12236 ;;
12237
12238 *)
12239 lt_prog_compiler_can_build_shared_FC=no
12240 ;;
12241 esac
12242 fi
12243
12244 case $host_os in
12245 # For platforms which do not support PIC, -DPIC is meaningless:
12246 *djgpp*)
12247 lt_prog_compiler_pic_FC=
12248 ;;
12249 *)
12250 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12251 ;;
12252 esac
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12254 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12255
12256
12257
12258 #
12259 # Check to make sure the PIC flag actually works.
12260 #
12261 if test -n "$lt_prog_compiler_pic_FC"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12263 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12264 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 lt_cv_prog_compiler_pic_works_FC=no
12268 ac_outfile=conftest.$ac_objext
12269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12270 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12271 # Insert the option either (1) after the last *FLAGS variable, or
12272 # (2) before a word containing "conftest.", or (3) at the end.
12273 # Note that $ac_compile itself does not contain backslashes and begins
12274 # with a dollar sign (not a hyphen), so the echo should work correctly.
12275 # The option is referenced via a variable to avoid confusing sed.
12276 lt_compile=`echo "$ac_compile" | $SED \
12277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12279 -e 's:$: $lt_compiler_flag:'`
12280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12281 (eval "$lt_compile" 2>conftest.err)
12282 ac_status=$?
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 if (exit $ac_status) && test -s "$ac_outfile"; then
12286 # The compiler can only warn and ignore the option if not recognized
12287 # So say no if there are warnings other than the usual output.
12288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12291 lt_cv_prog_compiler_pic_works_FC=yes
12292 fi
12293 fi
12294 $RM conftest*
12295
12296 fi
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12298 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12299
12300 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12301 case $lt_prog_compiler_pic_FC in
12302 "" | " "*) ;;
12303 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12304 esac
12305 else
12306 lt_prog_compiler_pic_FC=
12307 lt_prog_compiler_can_build_shared_FC=no
12308 fi
12309
12310 fi
12311
12312
12313
12314 #
12315 # Check to make sure the static flag actually works.
12316 #
12317 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12319 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12320 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 lt_cv_prog_compiler_static_works_FC=no
12324 save_LDFLAGS="$LDFLAGS"
12325 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12326 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12327 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12328 # The linker can only warn and ignore the option if not recognized
12329 # So say no if there are warnings
12330 if test -s conftest.err; then
12331 # Append any errors to the config.log.
12332 cat conftest.err 1>&5
12333 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12335 if diff conftest.exp conftest.er2 >/dev/null; then
12336 lt_cv_prog_compiler_static_works_FC=yes
12337 fi
12338 else
12339 lt_cv_prog_compiler_static_works_FC=yes
12340 fi
12341 fi
12342 $RM -r conftest*
12343 LDFLAGS="$save_LDFLAGS"
12344
12345 fi
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12347 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12348
12349 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12350 :
12351 else
12352 lt_prog_compiler_static_FC=
12353 fi
12354
12355
12356
12357
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12359 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12360 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 lt_cv_prog_compiler_c_o_FC=no
12364 $RM -r conftest 2>/dev/null
12365 mkdir conftest
12366 cd conftest
12367 mkdir out
12368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12369
12370 lt_compiler_flag="-o out/conftest2.$ac_objext"
12371 # Insert the option either (1) after the last *FLAGS variable, or
12372 # (2) before a word containing "conftest.", or (3) at the end.
12373 # Note that $ac_compile itself does not contain backslashes and begins
12374 # with a dollar sign (not a hyphen), so the echo should work correctly.
12375 lt_compile=`echo "$ac_compile" | $SED \
12376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12378 -e 's:$: $lt_compiler_flag:'`
12379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12380 (eval "$lt_compile" 2>out/conftest.err)
12381 ac_status=$?
12382 cat out/conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12385 then
12386 # The compiler can only warn and ignore the option if not recognized
12387 # So say no if there are warnings
12388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12391 lt_cv_prog_compiler_c_o_FC=yes
12392 fi
12393 fi
12394 chmod u+w . 2>&5
12395 $RM conftest*
12396 # SGI C++ compiler will create directory out/ii_files/ for
12397 # template instantiation
12398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12399 $RM out/* && rmdir out
12400 cd ..
12401 $RM -r conftest
12402 $RM conftest*
12403
12404 fi
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12406 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12407
12408
12409
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12412 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 lt_cv_prog_compiler_c_o_FC=no
12416 $RM -r conftest 2>/dev/null
12417 mkdir conftest
12418 cd conftest
12419 mkdir out
12420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12421
12422 lt_compiler_flag="-o out/conftest2.$ac_objext"
12423 # Insert the option either (1) after the last *FLAGS variable, or
12424 # (2) before a word containing "conftest.", or (3) at the end.
12425 # Note that $ac_compile itself does not contain backslashes and begins
12426 # with a dollar sign (not a hyphen), so the echo should work correctly.
12427 lt_compile=`echo "$ac_compile" | $SED \
12428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12430 -e 's:$: $lt_compiler_flag:'`
12431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12432 (eval "$lt_compile" 2>out/conftest.err)
12433 ac_status=$?
12434 cat out/conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12437 then
12438 # The compiler can only warn and ignore the option if not recognized
12439 # So say no if there are warnings
12440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12443 lt_cv_prog_compiler_c_o_FC=yes
12444 fi
12445 fi
12446 chmod u+w . 2>&5
12447 $RM conftest*
12448 # SGI C++ compiler will create directory out/ii_files/ for
12449 # template instantiation
12450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12451 $RM out/* && rmdir out
12452 cd ..
12453 $RM -r conftest
12454 $RM conftest*
12455
12456 fi
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12458 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12459
12460
12461
12462
12463 hard_links="nottested"
12464 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12465 # do not overwrite the value of need_locks provided by the user
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12467 $as_echo_n "checking if we can lock with hard links... " >&6; }
12468 hard_links=yes
12469 $RM conftest*
12470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12471 touch conftest.a
12472 ln conftest.a conftest.b 2>&5 || hard_links=no
12473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12475 $as_echo "$hard_links" >&6; }
12476 if test "$hard_links" = no; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12478 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12479 need_locks=warn
12480 fi
12481 else
12482 need_locks=no
12483 fi
12484
12485
12486
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12488 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12489
12490 runpath_var=
12491 allow_undefined_flag_FC=
12492 always_export_symbols_FC=no
12493 archive_cmds_FC=
12494 archive_expsym_cmds_FC=
12495 compiler_needs_object_FC=no
12496 enable_shared_with_static_runtimes_FC=no
12497 export_dynamic_flag_spec_FC=
12498 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12499 hardcode_automatic_FC=no
12500 hardcode_direct_FC=no
12501 hardcode_direct_absolute_FC=no
12502 hardcode_libdir_flag_spec_FC=
12503 hardcode_libdir_flag_spec_ld_FC=
12504 hardcode_libdir_separator_FC=
12505 hardcode_minus_L_FC=no
12506 hardcode_shlibpath_var_FC=unsupported
12507 inherit_rpath_FC=no
12508 link_all_deplibs_FC=unknown
12509 module_cmds_FC=
12510 module_expsym_cmds_FC=
12511 old_archive_from_new_cmds_FC=
12512 old_archive_from_expsyms_cmds_FC=
12513 thread_safe_flag_spec_FC=
12514 whole_archive_flag_spec_FC=
12515 # include_expsyms should be a list of space-separated symbols to be *always*
12516 # included in the symbol list
12517 include_expsyms_FC=
12518 # exclude_expsyms can be an extended regexp of symbols to exclude
12519 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12520 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12521 # as well as any symbol that contains `d'.
12522 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12523 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12524 # platforms (ab)use it in PIC code, but their linkers get confused if
12525 # the symbol is explicitly referenced. Since portable code cannot
12526 # rely on this symbol name, it's probably fine to never include it in
12527 # preloaded symbol tables.
12528 # Exclude shared library initialization/finalization symbols.
12529 extract_expsyms_cmds=
12530
12531 case $host_os in
12532 cygwin* | mingw* | pw32* | cegcc*)
12533 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12534 # When not using gcc, we currently assume that we are using
12535 # Microsoft Visual C++.
12536 if test "$GCC" != yes; then
12537 with_gnu_ld=no
12538 fi
12539 ;;
12540 interix*)
12541 # we just hope/assume this is gcc and not c89 (= MSVC++)
12542 with_gnu_ld=yes
12543 ;;
12544 openbsd*)
12545 with_gnu_ld=no
12546 ;;
12547 esac
12548
12549 ld_shlibs_FC=yes
12550
12551 # On some targets, GNU ld is compatible enough with the native linker
12552 # that we're better off using the native interface for both.
12553 lt_use_gnu_ld_interface=no
12554 if test "$with_gnu_ld" = yes; then
12555 case $host_os in
12556 aix*)
12557 # The AIX port of GNU ld has always aspired to compatibility
12558 # with the native linker. However, as the warning in the GNU ld
12559 # block says, versions before 2.19.5* couldn't really create working
12560 # shared libraries, regardless of the interface used.
12561 case `$LD -v 2>&1` in
12562 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12563 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12564 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12565 *)
12566 lt_use_gnu_ld_interface=yes
12567 ;;
12568 esac
12569 ;;
12570 *)
12571 lt_use_gnu_ld_interface=yes
12572 ;;
12573 esac
12574 fi
12575
12576 if test "$lt_use_gnu_ld_interface" = yes; then
12577 # If archive_cmds runs LD, not CC, wlarc should be empty
12578 wlarc='${wl}'
12579
12580 # Set some defaults for GNU ld with shared library support. These
12581 # are reset later if shared libraries are not supported. Putting them
12582 # here allows them to be overridden if necessary.
12583 runpath_var=LD_RUN_PATH
12584 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12585 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12586 # ancient GNU ld didn't support --whole-archive et. al.
12587 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12588 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12589 else
12590 whole_archive_flag_spec_FC=
12591 fi
12592 supports_anon_versioning=no
12593 case `$LD -v 2>&1` in
12594 *GNU\ gold*) supports_anon_versioning=yes ;;
12595 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12596 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12597 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12598 *\ 2.11.*) ;; # other 2.11 versions
12599 *) supports_anon_versioning=yes ;;
12600 esac
12601
12602 # See if GNU ld supports shared libraries.
12603 case $host_os in
12604 aix[3-9]*)
12605 # On AIX/PPC, the GNU linker is very broken
12606 if test "$host_cpu" != ia64; then
12607 ld_shlibs_FC=no
12608 cat <<_LT_EOF 1>&2
12609
12610 *** Warning: the GNU linker, at least up to release 2.19, is reported
12611 *** to be unable to reliably create shared libraries on AIX.
12612 *** Therefore, libtool is disabling shared libraries support. If you
12613 *** really care for shared libraries, you may want to install binutils
12614 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12615 *** You will then need to restart the configuration process.
12616
12617 _LT_EOF
12618 fi
12619 ;;
12620
12621 amigaos*)
12622 case $host_cpu in
12623 powerpc)
12624 # see comment about AmigaOS4 .so support
12625 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12626 archive_expsym_cmds_FC=''
12627 ;;
12628 m68k)
12629 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)'
12630 hardcode_libdir_flag_spec_FC='-L$libdir'
12631 hardcode_minus_L_FC=yes
12632 ;;
12633 esac
12634 ;;
12635
12636 beos*)
12637 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12638 allow_undefined_flag_FC=unsupported
12639 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12640 # support --undefined. This deserves some investigation. FIXME
12641 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12642 else
12643 ld_shlibs_FC=no
12644 fi
12645 ;;
12646
12647 cygwin* | mingw* | pw32* | cegcc*)
12648 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12649 # as there is no search path for DLLs.
12650 hardcode_libdir_flag_spec_FC='-L$libdir'
12651 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12652 allow_undefined_flag_FC=unsupported
12653 always_export_symbols_FC=no
12654 enable_shared_with_static_runtimes_FC=yes
12655 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12656
12657 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12658 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12659 # If the export-symbols file already is a .def file (1st line
12660 # is EXPORTS), use it as is; otherwise, prepend...
12661 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12662 cp $export_symbols $output_objdir/$soname.def;
12663 else
12664 echo EXPORTS > $output_objdir/$soname.def;
12665 cat $export_symbols >> $output_objdir/$soname.def;
12666 fi~
12667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12668 else
12669 ld_shlibs_FC=no
12670 fi
12671 ;;
12672
12673 haiku*)
12674 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12675 link_all_deplibs_FC=yes
12676 ;;
12677
12678 interix[3-9]*)
12679 hardcode_direct_FC=no
12680 hardcode_shlibpath_var_FC=no
12681 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12682 export_dynamic_flag_spec_FC='${wl}-E'
12683 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12684 # Instead, shared libraries are loaded at an image base (0x10000000 by
12685 # default) and relocated if they conflict, which is a slow very memory
12686 # consuming and fragmenting process. To avoid this, we pick a random,
12687 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12688 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12689 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'
12690 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'
12691 ;;
12692
12693 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12694 tmp_diet=no
12695 if test "$host_os" = linux-dietlibc; then
12696 case $cc_basename in
12697 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12698 esac
12699 fi
12700 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12701 && test "$tmp_diet" = no
12702 then
12703 tmp_addflag=
12704 tmp_sharedflag='-shared'
12705 case $cc_basename,$host_cpu in
12706 pgcc*) # Portland Group C compiler
12707 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'
12708 tmp_addflag=' $pic_flag'
12709 ;;
12710 pgf77* | pgf90* | pgf95* | pgfortran*)
12711 # Portland Group f77 and f90 compilers
12712 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'
12713 tmp_addflag=' $pic_flag -Mnomain' ;;
12714 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12715 tmp_addflag=' -i_dynamic' ;;
12716 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12717 tmp_addflag=' -i_dynamic -nofor_main' ;;
12718 ifc* | ifort*) # Intel Fortran compiler
12719 tmp_addflag=' -nofor_main' ;;
12720 lf95*) # Lahey Fortran 8.1
12721 whole_archive_flag_spec_FC=
12722 tmp_sharedflag='--shared' ;;
12723 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12724 tmp_sharedflag='-qmkshrobj'
12725 tmp_addflag= ;;
12726 nvcc*) # Cuda Compiler Driver 2.2
12727 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'
12728 compiler_needs_object_FC=yes
12729 ;;
12730 esac
12731 case `$CC -V 2>&1 | sed 5q` in
12732 *Sun\ C*) # Sun C 5.9
12733 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'
12734 compiler_needs_object_FC=yes
12735 tmp_sharedflag='-G' ;;
12736 *Sun\ F*) # Sun Fortran 8.3
12737 tmp_sharedflag='-G' ;;
12738 esac
12739 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740
12741 if test "x$supports_anon_versioning" = xyes; then
12742 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12744 echo "local: *; };" >> $output_objdir/$libname.ver~
12745 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12746 fi
12747
12748 case $cc_basename in
12749 xlf* | bgf* | bgxlf* | mpixlf*)
12750 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12751 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12752 hardcode_libdir_flag_spec_FC=
12753 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12754 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12755 if test "x$supports_anon_versioning" = xyes; then
12756 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12758 echo "local: *; };" >> $output_objdir/$libname.ver~
12759 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12760 fi
12761 ;;
12762 esac
12763 else
12764 ld_shlibs_FC=no
12765 fi
12766 ;;
12767
12768 netbsd*)
12769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12770 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12771 wlarc=
12772 else
12773 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12775 fi
12776 ;;
12777
12778 solaris*)
12779 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12780 ld_shlibs_FC=no
12781 cat <<_LT_EOF 1>&2
12782
12783 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12784 *** create shared libraries on Solaris systems. Therefore, libtool
12785 *** is disabling shared libraries support. We urge you to upgrade GNU
12786 *** binutils to release 2.9.1 or newer. Another option is to modify
12787 *** your PATH or compiler configuration so that the native linker is
12788 *** used, and then restart.
12789
12790 _LT_EOF
12791 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12792 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12794 else
12795 ld_shlibs_FC=no
12796 fi
12797 ;;
12798
12799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12800 case `$LD -v 2>&1` in
12801 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12802 ld_shlibs_FC=no
12803 cat <<_LT_EOF 1>&2
12804
12805 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12806 *** reliably create shared libraries on SCO systems. Therefore, libtool
12807 *** is disabling shared libraries support. We urge you to upgrade GNU
12808 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12809 *** your PATH or compiler configuration so that the native linker is
12810 *** used, and then restart.
12811
12812 _LT_EOF
12813 ;;
12814 *)
12815 # For security reasons, it is highly recommended that you always
12816 # use absolute paths for naming shared libraries, and exclude the
12817 # DT_RUNPATH tag from executables and libraries. But doing so
12818 # requires that you compile everything twice, which is a pain.
12819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12820 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12821 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12822 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12823 else
12824 ld_shlibs_FC=no
12825 fi
12826 ;;
12827 esac
12828 ;;
12829
12830 sunos4*)
12831 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12832 wlarc=
12833 hardcode_direct_FC=yes
12834 hardcode_shlibpath_var_FC=no
12835 ;;
12836
12837 *)
12838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12839 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12840 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12841 else
12842 ld_shlibs_FC=no
12843 fi
12844 ;;
12845 esac
12846
12847 if test "$ld_shlibs_FC" = no; then
12848 runpath_var=
12849 hardcode_libdir_flag_spec_FC=
12850 export_dynamic_flag_spec_FC=
12851 whole_archive_flag_spec_FC=
12852 fi
12853 else
12854 # PORTME fill in a description of your system's linker (not GNU ld)
12855 case $host_os in
12856 aix3*)
12857 allow_undefined_flag_FC=unsupported
12858 always_export_symbols_FC=yes
12859 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'
12860 # Note: this linker hardcodes the directories in LIBPATH if there
12861 # are no directories specified by -L.
12862 hardcode_minus_L_FC=yes
12863 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12864 # Neither direct hardcoding nor static linking is supported with a
12865 # broken collect2.
12866 hardcode_direct_FC=unsupported
12867 fi
12868 ;;
12869
12870 aix[4-9]*)
12871 if test "$host_cpu" = ia64; then
12872 # On IA64, the linker does run time linking by default, so we don't
12873 # have to do anything special.
12874 aix_use_runtimelinking=no
12875 exp_sym_flag='-Bexport'
12876 no_entry_flag=""
12877 else
12878 # If we're using GNU nm, then we don't want the "-C" option.
12879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12880 # Also, AIX nm treats weak defined symbols like other global
12881 # defined symbols, whereas GNU nm marks them as "W".
12882 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12883 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'
12884 else
12885 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12886 fi
12887 aix_use_runtimelinking=no
12888
12889 # Test if we are trying to use run time linking or normal
12890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12891 # need to do runtime linking.
12892 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12893 for ld_flag in $LDFLAGS; do
12894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12895 aix_use_runtimelinking=yes
12896 break
12897 fi
12898 done
12899 ;;
12900 esac
12901
12902 exp_sym_flag='-bexport'
12903 no_entry_flag='-bnoentry'
12904 fi
12905
12906 # When large executables or shared objects are built, AIX ld can
12907 # have problems creating the table of contents. If linking a library
12908 # or program results in "error TOC overflow" add -mminimal-toc to
12909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12911
12912 archive_cmds_FC=''
12913 hardcode_direct_FC=yes
12914 hardcode_direct_absolute_FC=yes
12915 hardcode_libdir_separator_FC=':'
12916 link_all_deplibs_FC=yes
12917 file_list_spec_FC='${wl}-f,'
12918
12919 if test "$GCC" = yes; then
12920 case $host_os in aix4.[012]|aix4.[012].*)
12921 # We only want to do this on AIX 4.2 and lower, the check
12922 # below for broken collect2 doesn't work under 4.3+
12923 collect2name=`${CC} -print-prog-name=collect2`
12924 if test -f "$collect2name" &&
12925 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12926 then
12927 # We have reworked collect2
12928 :
12929 else
12930 # We have old collect2
12931 hardcode_direct_FC=unsupported
12932 # It fails to find uninstalled libraries when the uninstalled
12933 # path is not listed in the libpath. Setting hardcode_minus_L
12934 # to unsupported forces relinking
12935 hardcode_minus_L_FC=yes
12936 hardcode_libdir_flag_spec_FC='-L$libdir'
12937 hardcode_libdir_separator_FC=
12938 fi
12939 ;;
12940 esac
12941 shared_flag='-shared'
12942 if test "$aix_use_runtimelinking" = yes; then
12943 shared_flag="$shared_flag "'${wl}-G'
12944 fi
12945 else
12946 # not using gcc
12947 if test "$host_cpu" = ia64; then
12948 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12949 # chokes on -Wl,-G. The following line is correct:
12950 shared_flag='-G'
12951 else
12952 if test "$aix_use_runtimelinking" = yes; then
12953 shared_flag='${wl}-G'
12954 else
12955 shared_flag='${wl}-bM:SRE'
12956 fi
12957 fi
12958 fi
12959
12960 export_dynamic_flag_spec_FC='${wl}-bexpall'
12961 # It seems that -bexpall does not export symbols beginning with
12962 # underscore (_), so it is better to generate a list of symbols to export.
12963 always_export_symbols_FC=yes
12964 if test "$aix_use_runtimelinking" = yes; then
12965 # Warning - without using the other runtime loading flags (-brtl),
12966 # -berok will link without error, but may produce a broken library.
12967 allow_undefined_flag_FC='-berok'
12968 # Determine the default libpath from the value encoded in an
12969 # empty executable.
12970 cat > conftest.$ac_ext <<_ACEOF
12971 program main
12972
12973 end
12974 _ACEOF
12975 if ac_fn_fc_try_link "$LINENO"; then :
12976
12977 lt_aix_libpath_sed='
12978 /Import File Strings/,/^$/ {
12979 /^0/ {
12980 s/^0 *\(.*\)$/\1/
12981 p
12982 }
12983 }'
12984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12985 # Check for a 64-bit object if we didn't find anything.
12986 if test -z "$aix_libpath"; then
12987 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12988 fi
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext conftest.$ac_ext
12992 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12993
12994 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12995 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"
12996 else
12997 if test "$host_cpu" = ia64; then
12998 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
12999 allow_undefined_flag_FC="-z nodefs"
13000 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"
13001 else
13002 # Determine the default libpath from the value encoded in an
13003 # empty executable.
13004 cat > conftest.$ac_ext <<_ACEOF
13005 program main
13006
13007 end
13008 _ACEOF
13009 if ac_fn_fc_try_link "$LINENO"; then :
13010
13011 lt_aix_libpath_sed='
13012 /Import File Strings/,/^$/ {
13013 /^0/ {
13014 s/^0 *\(.*\)$/\1/
13015 p
13016 }
13017 }'
13018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13019 # Check for a 64-bit object if we didn't find anything.
13020 if test -z "$aix_libpath"; then
13021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13022 fi
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13027
13028 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13029 # Warning - without using the other run time loading flags,
13030 # -berok will link without error, but may produce a broken library.
13031 no_undefined_flag_FC=' ${wl}-bernotok'
13032 allow_undefined_flag_FC=' ${wl}-berok'
13033 if test "$with_gnu_ld" = yes; then
13034 # We only use this code for GNU lds that support --whole-archive.
13035 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13036 else
13037 # Exported symbols can be pulled into shared objects from archives
13038 whole_archive_flag_spec_FC='$convenience'
13039 fi
13040 archive_cmds_need_lc_FC=yes
13041 # This is similar to how AIX traditionally builds its shared libraries.
13042 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'
13043 fi
13044 fi
13045 ;;
13046
13047 amigaos*)
13048 case $host_cpu in
13049 powerpc)
13050 # see comment about AmigaOS4 .so support
13051 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13052 archive_expsym_cmds_FC=''
13053 ;;
13054 m68k)
13055 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)'
13056 hardcode_libdir_flag_spec_FC='-L$libdir'
13057 hardcode_minus_L_FC=yes
13058 ;;
13059 esac
13060 ;;
13061
13062 bsdi[45]*)
13063 export_dynamic_flag_spec_FC=-rdynamic
13064 ;;
13065
13066 cygwin* | mingw* | pw32* | cegcc*)
13067 # When not using gcc, we currently assume that we are using
13068 # Microsoft Visual C++.
13069 # hardcode_libdir_flag_spec is actually meaningless, as there is
13070 # no search path for DLLs.
13071 hardcode_libdir_flag_spec_FC=' '
13072 allow_undefined_flag_FC=unsupported
13073 # Tell ltmain to make .lib files, not .a files.
13074 libext=lib
13075 # Tell ltmain to make .dll files, not .so files.
13076 shrext_cmds=".dll"
13077 # FIXME: Setting linknames here is a bad hack.
13078 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13079 # The linker will automatically build a .lib file if we build a DLL.
13080 old_archive_from_new_cmds_FC='true'
13081 # FIXME: Should let the user specify the lib program.
13082 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13083 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13084 enable_shared_with_static_runtimes_FC=yes
13085 ;;
13086
13087 darwin* | rhapsody*)
13088
13089
13090 archive_cmds_need_lc_FC=no
13091 hardcode_direct_FC=no
13092 hardcode_automatic_FC=yes
13093 hardcode_shlibpath_var_FC=unsupported
13094 if test "$lt_cv_ld_force_load" = "yes"; then
13095 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\"`'
13096 else
13097 whole_archive_flag_spec_FC=''
13098 fi
13099 link_all_deplibs_FC=yes
13100 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13101 case $cc_basename in
13102 ifort*) _lt_dar_can_shared=yes ;;
13103 *) _lt_dar_can_shared=$GCC ;;
13104 esac
13105 if test "$_lt_dar_can_shared" = "yes"; then
13106 output_verbose_link_cmd=func_echo_all
13107 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}"
13108 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13109 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}"
13110 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}"
13111
13112 else
13113 ld_shlibs_FC=no
13114 fi
13115
13116 ;;
13117
13118 dgux*)
13119 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13120 hardcode_libdir_flag_spec_FC='-L$libdir'
13121 hardcode_shlibpath_var_FC=no
13122 ;;
13123
13124 freebsd1*)
13125 ld_shlibs_FC=no
13126 ;;
13127
13128 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13129 # support. Future versions do this automatically, but an explicit c++rt0.o
13130 # does not break anything, and helps significantly (at the cost of a little
13131 # extra space).
13132 freebsd2.2*)
13133 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13134 hardcode_libdir_flag_spec_FC='-R$libdir'
13135 hardcode_direct_FC=yes
13136 hardcode_shlibpath_var_FC=no
13137 ;;
13138
13139 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13140 freebsd2*)
13141 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13142 hardcode_direct_FC=yes
13143 hardcode_minus_L_FC=yes
13144 hardcode_shlibpath_var_FC=no
13145 ;;
13146
13147 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13148 freebsd* | dragonfly*)
13149 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13150 hardcode_libdir_flag_spec_FC='-R$libdir'
13151 hardcode_direct_FC=yes
13152 hardcode_shlibpath_var_FC=no
13153 ;;
13154
13155 hpux9*)
13156 if test "$GCC" = yes; then
13157 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'
13158 else
13159 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'
13160 fi
13161 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13162 hardcode_libdir_separator_FC=:
13163 hardcode_direct_FC=yes
13164
13165 # hardcode_minus_L: Not really in the search PATH,
13166 # but as the default location of the library.
13167 hardcode_minus_L_FC=yes
13168 export_dynamic_flag_spec_FC='${wl}-E'
13169 ;;
13170
13171 hpux10*)
13172 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13173 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13174 else
13175 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13176 fi
13177 if test "$with_gnu_ld" = no; then
13178 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13179 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13180 hardcode_libdir_separator_FC=:
13181 hardcode_direct_FC=yes
13182 hardcode_direct_absolute_FC=yes
13183 export_dynamic_flag_spec_FC='${wl}-E'
13184 # hardcode_minus_L: Not really in the search PATH,
13185 # but as the default location of the library.
13186 hardcode_minus_L_FC=yes
13187 fi
13188 ;;
13189
13190 hpux11*)
13191 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13192 case $host_cpu in
13193 hppa*64*)
13194 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13195 ;;
13196 ia64*)
13197 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13198 ;;
13199 *)
13200 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13201 ;;
13202 esac
13203 else
13204 case $host_cpu in
13205 hppa*64*)
13206 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13207 ;;
13208 ia64*)
13209 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13210 ;;
13211 *)
13212 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13213 ;;
13214 esac
13215 fi
13216 if test "$with_gnu_ld" = no; then
13217 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13218 hardcode_libdir_separator_FC=:
13219
13220 case $host_cpu in
13221 hppa*64*|ia64*)
13222 hardcode_direct_FC=no
13223 hardcode_shlibpath_var_FC=no
13224 ;;
13225 *)
13226 hardcode_direct_FC=yes
13227 hardcode_direct_absolute_FC=yes
13228 export_dynamic_flag_spec_FC='${wl}-E'
13229
13230 # hardcode_minus_L: Not really in the search PATH,
13231 # but as the default location of the library.
13232 hardcode_minus_L_FC=yes
13233 ;;
13234 esac
13235 fi
13236 ;;
13237
13238 irix5* | irix6* | nonstopux*)
13239 if test "$GCC" = yes; then
13240 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'
13241 # Try to use the -exported_symbol ld option, if it does not
13242 # work, assume that -exports_file does not work either and
13243 # implicitly export all symbols.
13244 save_LDFLAGS="$LDFLAGS"
13245 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13246 cat > conftest.$ac_ext <<_ACEOF
13247 int foo(void) {}
13248 _ACEOF
13249 if ac_fn_fc_try_link "$LINENO"; then :
13250 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'
13251
13252 fi
13253 rm -f core conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
13255 LDFLAGS="$save_LDFLAGS"
13256 else
13257 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'
13258 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'
13259 fi
13260 archive_cmds_need_lc_FC='no'
13261 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13262 hardcode_libdir_separator_FC=:
13263 inherit_rpath_FC=yes
13264 link_all_deplibs_FC=yes
13265 ;;
13266
13267 netbsd*)
13268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13269 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13270 else
13271 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13272 fi
13273 hardcode_libdir_flag_spec_FC='-R$libdir'
13274 hardcode_direct_FC=yes
13275 hardcode_shlibpath_var_FC=no
13276 ;;
13277
13278 newsos6)
13279 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13280 hardcode_direct_FC=yes
13281 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13282 hardcode_libdir_separator_FC=:
13283 hardcode_shlibpath_var_FC=no
13284 ;;
13285
13286 *nto* | *qnx*)
13287 ;;
13288
13289 openbsd*)
13290 if test -f /usr/libexec/ld.so; then
13291 hardcode_direct_FC=yes
13292 hardcode_shlibpath_var_FC=no
13293 hardcode_direct_absolute_FC=yes
13294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13295 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13296 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13297 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13298 export_dynamic_flag_spec_FC='${wl}-E'
13299 else
13300 case $host_os in
13301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13302 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13303 hardcode_libdir_flag_spec_FC='-R$libdir'
13304 ;;
13305 *)
13306 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13307 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13308 ;;
13309 esac
13310 fi
13311 else
13312 ld_shlibs_FC=no
13313 fi
13314 ;;
13315
13316 os2*)
13317 hardcode_libdir_flag_spec_FC='-L$libdir'
13318 hardcode_minus_L_FC=yes
13319 allow_undefined_flag_FC=unsupported
13320 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'
13321 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13322 ;;
13323
13324 osf3*)
13325 if test "$GCC" = yes; then
13326 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13327 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'
13328 else
13329 allow_undefined_flag_FC=' -expect_unresolved \*'
13330 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'
13331 fi
13332 archive_cmds_need_lc_FC='no'
13333 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13334 hardcode_libdir_separator_FC=:
13335 ;;
13336
13337 osf4* | osf5*) # as osf3* with the addition of -msym flag
13338 if test "$GCC" = yes; then
13339 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13340 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'
13341 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13342 else
13343 allow_undefined_flag_FC=' -expect_unresolved \*'
13344 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'
13345 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~
13346 $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'
13347
13348 # Both c and cxx compiler support -rpath directly
13349 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13350 fi
13351 archive_cmds_need_lc_FC='no'
13352 hardcode_libdir_separator_FC=:
13353 ;;
13354
13355 solaris*)
13356 no_undefined_flag_FC=' -z defs'
13357 if test "$GCC" = yes; then
13358 wlarc='${wl}'
13359 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13361 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13362 else
13363 case `$CC -V 2>&1` in
13364 *"Compilers 5.0"*)
13365 wlarc=''
13366 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13367 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13368 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13369 ;;
13370 *)
13371 wlarc='${wl}'
13372 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13373 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13374 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13375 ;;
13376 esac
13377 fi
13378 hardcode_libdir_flag_spec_FC='-R$libdir'
13379 hardcode_shlibpath_var_FC=no
13380 case $host_os in
13381 solaris2.[0-5] | solaris2.[0-5].*) ;;
13382 *)
13383 # The compiler driver will combine and reorder linker options,
13384 # but understands `-z linker_flag'. GCC discards it without `$wl',
13385 # but is careful enough not to reorder.
13386 # Supported since Solaris 2.6 (maybe 2.5.1?)
13387 if test "$GCC" = yes; then
13388 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13389 else
13390 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13391 fi
13392 ;;
13393 esac
13394 link_all_deplibs_FC=yes
13395 ;;
13396
13397 sunos4*)
13398 if test "x$host_vendor" = xsequent; then
13399 # Use $CC to link under sequent, because it throws in some extra .o
13400 # files that make .init and .fini sections work.
13401 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13402 else
13403 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13404 fi
13405 hardcode_libdir_flag_spec_FC='-L$libdir'
13406 hardcode_direct_FC=yes
13407 hardcode_minus_L_FC=yes
13408 hardcode_shlibpath_var_FC=no
13409 ;;
13410
13411 sysv4)
13412 case $host_vendor in
13413 sni)
13414 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13415 hardcode_direct_FC=yes # is this really true???
13416 ;;
13417 siemens)
13418 ## LD is ld it makes a PLAMLIB
13419 ## CC just makes a GrossModule.
13420 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13421 reload_cmds_FC='$CC -r -o $output$reload_objs'
13422 hardcode_direct_FC=no
13423 ;;
13424 motorola)
13425 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13426 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13427 ;;
13428 esac
13429 runpath_var='LD_RUN_PATH'
13430 hardcode_shlibpath_var_FC=no
13431 ;;
13432
13433 sysv4.3*)
13434 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13435 hardcode_shlibpath_var_FC=no
13436 export_dynamic_flag_spec_FC='-Bexport'
13437 ;;
13438
13439 sysv4*MP*)
13440 if test -d /usr/nec; then
13441 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13442 hardcode_shlibpath_var_FC=no
13443 runpath_var=LD_RUN_PATH
13444 hardcode_runpath_var=yes
13445 ld_shlibs_FC=yes
13446 fi
13447 ;;
13448
13449 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13450 no_undefined_flag_FC='${wl}-z,text'
13451 archive_cmds_need_lc_FC=no
13452 hardcode_shlibpath_var_FC=no
13453 runpath_var='LD_RUN_PATH'
13454
13455 if test "$GCC" = yes; then
13456 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13457 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13458 else
13459 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461 fi
13462 ;;
13463
13464 sysv5* | sco3.2v5* | sco5v6*)
13465 # Note: We can NOT use -z defs as we might desire, because we do not
13466 # link with -lc, and that would cause any symbols used from libc to
13467 # always be unresolved, which means just about no library would
13468 # ever link correctly. If we're not using GNU ld we use -z text
13469 # though, which does catch some bad symbols but isn't as heavy-handed
13470 # as -z defs.
13471 no_undefined_flag_FC='${wl}-z,text'
13472 allow_undefined_flag_FC='${wl}-z,nodefs'
13473 archive_cmds_need_lc_FC=no
13474 hardcode_shlibpath_var_FC=no
13475 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13476 hardcode_libdir_separator_FC=':'
13477 link_all_deplibs_FC=yes
13478 export_dynamic_flag_spec_FC='${wl}-Bexport'
13479 runpath_var='LD_RUN_PATH'
13480
13481 if test "$GCC" = yes; then
13482 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13483 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13484 else
13485 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13486 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13487 fi
13488 ;;
13489
13490 uts4*)
13491 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13492 hardcode_libdir_flag_spec_FC='-L$libdir'
13493 hardcode_shlibpath_var_FC=no
13494 ;;
13495
13496 *)
13497 ld_shlibs_FC=no
13498 ;;
13499 esac
13500
13501 if test x$host_vendor = xsni; then
13502 case $host in
13503 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13504 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13505 ;;
13506 esac
13507 fi
13508 fi
13509
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13511 $as_echo "$ld_shlibs_FC" >&6; }
13512 test "$ld_shlibs_FC" = no && can_build_shared=no
13513
13514 with_gnu_ld_FC=$with_gnu_ld
13515
13516
13517
13518
13519
13520
13521 #
13522 # Do we need to explicitly link libc?
13523 #
13524 case "x$archive_cmds_need_lc_FC" in
13525 x|xyes)
13526 # Assume -lc should be added
13527 archive_cmds_need_lc_FC=yes
13528
13529 if test "$enable_shared" = yes && test "$GCC" = yes; then
13530 case $archive_cmds_FC in
13531 *'~'*)
13532 # FIXME: we may have to deal with multi-command sequences.
13533 ;;
13534 '$CC '*)
13535 # Test whether the compiler implicitly links with -lc since on some
13536 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13537 # to ld, don't add -lc before -lgcc.
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13539 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13540 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543 $RM conftest*
13544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13545
13546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13547 (eval $ac_compile) 2>&5
13548 ac_status=$?
13549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; } 2>conftest.err; then
13551 soname=conftest
13552 lib=conftest
13553 libobjs=conftest.$ac_objext
13554 deplibs=
13555 wl=$lt_prog_compiler_wl_FC
13556 pic_flag=$lt_prog_compiler_pic_FC
13557 compiler_flags=-v
13558 linker_flags=-v
13559 verstring=
13560 output_objdir=.
13561 libname=conftest
13562 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13563 allow_undefined_flag_FC=
13564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13565 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13566 ac_status=$?
13567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13568 test $ac_status = 0; }
13569 then
13570 lt_cv_archive_cmds_need_lc_FC=no
13571 else
13572 lt_cv_archive_cmds_need_lc_FC=yes
13573 fi
13574 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13575 else
13576 cat conftest.err 1>&5
13577 fi
13578 $RM conftest*
13579
13580 fi
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13582 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13583 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13584 ;;
13585 esac
13586 fi
13587 ;;
13588 esac
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13654 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13655
13656 library_names_spec=
13657 libname_spec='lib$name'
13658 soname_spec=
13659 shrext_cmds=".so"
13660 postinstall_cmds=
13661 postuninstall_cmds=
13662 finish_cmds=
13663 finish_eval=
13664 shlibpath_var=
13665 shlibpath_overrides_runpath=unknown
13666 version_type=none
13667 dynamic_linker="$host_os ld.so"
13668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13669 need_lib_prefix=unknown
13670 hardcode_into_libs=no
13671
13672 # when you set need_version to no, make sure it does not cause -set_version
13673 # flags to be left without arguments
13674 need_version=unknown
13675
13676 case $host_os in
13677 aix3*)
13678 version_type=linux
13679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13680 shlibpath_var=LIBPATH
13681
13682 # AIX 3 has no versioning support, so we append a major version to the name.
13683 soname_spec='${libname}${release}${shared_ext}$major'
13684 ;;
13685
13686 aix[4-9]*)
13687 version_type=linux
13688 need_lib_prefix=no
13689 need_version=no
13690 hardcode_into_libs=yes
13691 if test "$host_cpu" = ia64; then
13692 # AIX 5 supports IA64
13693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13694 shlibpath_var=LD_LIBRARY_PATH
13695 else
13696 # With GCC up to 2.95.x, collect2 would create an import file
13697 # for dependence libraries. The import file would start with
13698 # the line `#! .'. This would cause the generated library to
13699 # depend on `.', always an invalid library. This was fixed in
13700 # development snapshots of GCC prior to 3.0.
13701 case $host_os in
13702 aix4 | aix4.[01] | aix4.[01].*)
13703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13704 echo ' yes '
13705 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13706 :
13707 else
13708 can_build_shared=no
13709 fi
13710 ;;
13711 esac
13712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13713 # soname into executable. Probably we can add versioning support to
13714 # collect2, so additional links can be useful in future.
13715 if test "$aix_use_runtimelinking" = yes; then
13716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13717 # instead of lib<name>.a to let people know that these are not
13718 # typical AIX shared libraries.
13719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13720 else
13721 # We preserve .a as extension for shared libraries through AIX4.2
13722 # and later when we are not doing run time linking.
13723 library_names_spec='${libname}${release}.a $libname.a'
13724 soname_spec='${libname}${release}${shared_ext}$major'
13725 fi
13726 shlibpath_var=LIBPATH
13727 fi
13728 ;;
13729
13730 amigaos*)
13731 case $host_cpu in
13732 powerpc)
13733 # Since July 2007 AmigaOS4 officially supports .so libraries.
13734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736 ;;
13737 m68k)
13738 library_names_spec='$libname.ixlibrary $libname.a'
13739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13740 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'
13741 ;;
13742 esac
13743 ;;
13744
13745 beos*)
13746 library_names_spec='${libname}${shared_ext}'
13747 dynamic_linker="$host_os ld.so"
13748 shlibpath_var=LIBRARY_PATH
13749 ;;
13750
13751 bsdi[45]*)
13752 version_type=linux
13753 need_version=no
13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13755 soname_spec='${libname}${release}${shared_ext}$major'
13756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13757 shlibpath_var=LD_LIBRARY_PATH
13758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13760 # the default ld.so.conf also contains /usr/contrib/lib and
13761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13762 # libtool to hard-code these into programs
13763 ;;
13764
13765 cygwin* | mingw* | pw32* | cegcc*)
13766 version_type=windows
13767 shrext_cmds=".dll"
13768 need_version=no
13769 need_lib_prefix=no
13770
13771 case $GCC,$host_os in
13772 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13773 library_names_spec='$libname.dll.a'
13774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13775 postinstall_cmds='base_file=`basename \${file}`~
13776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13777 dldir=$destdir/`dirname \$dlpath`~
13778 test -d \$dldir || mkdir -p \$dldir~
13779 $install_prog $dir/$dlname \$dldir/$dlname~
13780 chmod a+x \$dldir/$dlname~
13781 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13782 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13783 fi'
13784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13785 dlpath=$dir/\$dldll~
13786 $RM \$dlpath'
13787 shlibpath_overrides_runpath=yes
13788
13789 case $host_os in
13790 cygwin*)
13791 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13792 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13793
13794 ;;
13795 mingw* | cegcc*)
13796 # MinGW DLLs use traditional 'lib' prefix
13797 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13798 ;;
13799 pw32*)
13800 # pw32 DLLs use 'pw' prefix rather than 'lib'
13801 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13802 ;;
13803 esac
13804 ;;
13805
13806 *)
13807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13808 ;;
13809 esac
13810 dynamic_linker='Win32 ld.exe'
13811 # FIXME: first we should search . and the directory the executable is in
13812 shlibpath_var=PATH
13813 ;;
13814
13815 darwin* | rhapsody*)
13816 dynamic_linker="$host_os dyld"
13817 version_type=darwin
13818 need_lib_prefix=no
13819 need_version=no
13820 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13821 soname_spec='${libname}${release}${major}$shared_ext'
13822 shlibpath_overrides_runpath=yes
13823 shlibpath_var=DYLD_LIBRARY_PATH
13824 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13825
13826 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13827 ;;
13828
13829 dgux*)
13830 version_type=linux
13831 need_lib_prefix=no
13832 need_version=no
13833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13834 soname_spec='${libname}${release}${shared_ext}$major'
13835 shlibpath_var=LD_LIBRARY_PATH
13836 ;;
13837
13838 freebsd1*)
13839 dynamic_linker=no
13840 ;;
13841
13842 freebsd* | dragonfly*)
13843 # DragonFly does not have aout. When/if they implement a new
13844 # versioning mechanism, adjust this.
13845 if test -x /usr/bin/objformat; then
13846 objformat=`/usr/bin/objformat`
13847 else
13848 case $host_os in
13849 freebsd[123]*) objformat=aout ;;
13850 *) objformat=elf ;;
13851 esac
13852 fi
13853 version_type=freebsd-$objformat
13854 case $version_type in
13855 freebsd-elf*)
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13857 need_version=no
13858 need_lib_prefix=no
13859 ;;
13860 freebsd-*)
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13862 need_version=yes
13863 ;;
13864 esac
13865 shlibpath_var=LD_LIBRARY_PATH
13866 case $host_os in
13867 freebsd2*)
13868 shlibpath_overrides_runpath=yes
13869 ;;
13870 freebsd3.[01]* | freebsdelf3.[01]*)
13871 shlibpath_overrides_runpath=yes
13872 hardcode_into_libs=yes
13873 ;;
13874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13876 shlibpath_overrides_runpath=no
13877 hardcode_into_libs=yes
13878 ;;
13879 *) # from 4.6 on, and DragonFly
13880 shlibpath_overrides_runpath=yes
13881 hardcode_into_libs=yes
13882 ;;
13883 esac
13884 ;;
13885
13886 gnu*)
13887 version_type=linux
13888 need_lib_prefix=no
13889 need_version=no
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13891 soname_spec='${libname}${release}${shared_ext}$major'
13892 shlibpath_var=LD_LIBRARY_PATH
13893 hardcode_into_libs=yes
13894 ;;
13895
13896 haiku*)
13897 version_type=linux
13898 need_lib_prefix=no
13899 need_version=no
13900 dynamic_linker="$host_os runtime_loader"
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13902 soname_spec='${libname}${release}${shared_ext}$major'
13903 shlibpath_var=LIBRARY_PATH
13904 shlibpath_overrides_runpath=yes
13905 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13906 hardcode_into_libs=yes
13907 ;;
13908
13909 hpux9* | hpux10* | hpux11*)
13910 # Give a soname corresponding to the major version so that dld.sl refuses to
13911 # link against other versions.
13912 version_type=sunos
13913 need_lib_prefix=no
13914 need_version=no
13915 case $host_cpu in
13916 ia64*)
13917 shrext_cmds='.so'
13918 hardcode_into_libs=yes
13919 dynamic_linker="$host_os dld.so"
13920 shlibpath_var=LD_LIBRARY_PATH
13921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923 soname_spec='${libname}${release}${shared_ext}$major'
13924 if test "X$HPUX_IA64_MODE" = X32; then
13925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13926 else
13927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13928 fi
13929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13930 ;;
13931 hppa*64*)
13932 shrext_cmds='.sl'
13933 hardcode_into_libs=yes
13934 dynamic_linker="$host_os dld.sl"
13935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13941 ;;
13942 *)
13943 shrext_cmds='.sl'
13944 dynamic_linker="$host_os dld.sl"
13945 shlibpath_var=SHLIB_PATH
13946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 ;;
13950 esac
13951 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13952 postinstall_cmds='chmod 555 $lib'
13953 # or fails outright, so override atomically:
13954 install_override_mode=555
13955 ;;
13956
13957 interix[3-9]*)
13958 version_type=linux
13959 need_lib_prefix=no
13960 need_version=no
13961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13962 soname_spec='${libname}${release}${shared_ext}$major'
13963 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13964 shlibpath_var=LD_LIBRARY_PATH
13965 shlibpath_overrides_runpath=no
13966 hardcode_into_libs=yes
13967 ;;
13968
13969 irix5* | irix6* | nonstopux*)
13970 case $host_os in
13971 nonstopux*) version_type=nonstopux ;;
13972 *)
13973 if test "$lt_cv_prog_gnu_ld" = yes; then
13974 version_type=linux
13975 else
13976 version_type=irix
13977 fi ;;
13978 esac
13979 need_lib_prefix=no
13980 need_version=no
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13983 case $host_os in
13984 irix5* | nonstopux*)
13985 libsuff= shlibsuff=
13986 ;;
13987 *)
13988 case $LD in # libtool.m4 will add one of these switches to LD
13989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13990 libsuff= shlibsuff= libmagic=32-bit;;
13991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13992 libsuff=32 shlibsuff=N32 libmagic=N32;;
13993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13994 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13995 *) libsuff= shlibsuff= libmagic=never-match;;
13996 esac
13997 ;;
13998 esac
13999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14000 shlibpath_overrides_runpath=no
14001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14003 hardcode_into_libs=yes
14004 ;;
14005
14006 # No shared lib support for Linux oldld, aout, or coff.
14007 linux*oldld* | linux*aout* | linux*coff*)
14008 dynamic_linker=no
14009 ;;
14010
14011 # This must be Linux ELF.
14012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14013 version_type=linux
14014 need_lib_prefix=no
14015 need_version=no
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14019 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=no
14021
14022 # Some binutils ld are patched to set DT_RUNPATH
14023 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14024 $as_echo_n "(cached) " >&6
14025 else
14026 lt_cv_shlibpath_overrides_runpath=no
14027 save_LDFLAGS=$LDFLAGS
14028 save_libdir=$libdir
14029 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14030 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14031 cat > conftest.$ac_ext <<_ACEOF
14032 program main
14033
14034 end
14035 _ACEOF
14036 if ac_fn_fc_try_link "$LINENO"; then :
14037 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14038 lt_cv_shlibpath_overrides_runpath=yes
14039 fi
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext \
14042 conftest$ac_exeext conftest.$ac_ext
14043 LDFLAGS=$save_LDFLAGS
14044 libdir=$save_libdir
14045
14046 fi
14047
14048 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14049
14050 # This implies no fast_install, which is unacceptable.
14051 # Some rework will be needed to allow for fast_install
14052 # before this can be enabled.
14053 hardcode_into_libs=yes
14054
14055 # Append ld.so.conf contents to the search path
14056 if test -f /etc/ld.so.conf; then
14057 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' ' '`
14058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14059 fi
14060
14061 # We used to test for /lib/ld.so.1 and disable shared libraries on
14062 # powerpc, because MkLinux only supported shared libraries with the
14063 # GNU dynamic linker. Since this was broken with cross compilers,
14064 # most powerpc-linux boxes support dynamic linking these days and
14065 # people can always --disable-shared, the test was removed, and we
14066 # assume the GNU/Linux dynamic linker is in use.
14067 dynamic_linker='GNU/Linux ld.so'
14068 ;;
14069
14070 netbsd*)
14071 version_type=sunos
14072 need_lib_prefix=no
14073 need_version=no
14074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14077 dynamic_linker='NetBSD (a.out) ld.so'
14078 else
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 dynamic_linker='NetBSD ld.elf_so'
14082 fi
14083 shlibpath_var=LD_LIBRARY_PATH
14084 shlibpath_overrides_runpath=yes
14085 hardcode_into_libs=yes
14086 ;;
14087
14088 newsos6)
14089 version_type=linux
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14091 shlibpath_var=LD_LIBRARY_PATH
14092 shlibpath_overrides_runpath=yes
14093 ;;
14094
14095 *nto* | *qnx*)
14096 version_type=qnx
14097 need_lib_prefix=no
14098 need_version=no
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 soname_spec='${libname}${release}${shared_ext}$major'
14101 shlibpath_var=LD_LIBRARY_PATH
14102 shlibpath_overrides_runpath=no
14103 hardcode_into_libs=yes
14104 dynamic_linker='ldqnx.so'
14105 ;;
14106
14107 openbsd*)
14108 version_type=sunos
14109 sys_lib_dlsearch_path_spec="/usr/lib"
14110 need_lib_prefix=no
14111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14112 case $host_os in
14113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14114 *) need_version=no ;;
14115 esac
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14118 shlibpath_var=LD_LIBRARY_PATH
14119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14120 case $host_os in
14121 openbsd2.[89] | openbsd2.[89].*)
14122 shlibpath_overrides_runpath=no
14123 ;;
14124 *)
14125 shlibpath_overrides_runpath=yes
14126 ;;
14127 esac
14128 else
14129 shlibpath_overrides_runpath=yes
14130 fi
14131 ;;
14132
14133 os2*)
14134 libname_spec='$name'
14135 shrext_cmds=".dll"
14136 need_lib_prefix=no
14137 library_names_spec='$libname${shared_ext} $libname.a'
14138 dynamic_linker='OS/2 ld.exe'
14139 shlibpath_var=LIBPATH
14140 ;;
14141
14142 osf3* | osf4* | osf5*)
14143 version_type=osf
14144 need_lib_prefix=no
14145 need_version=no
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148 shlibpath_var=LD_LIBRARY_PATH
14149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14151 ;;
14152
14153 rdos*)
14154 dynamic_linker=no
14155 ;;
14156
14157 solaris*)
14158 version_type=linux
14159 need_lib_prefix=no
14160 need_version=no
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 soname_spec='${libname}${release}${shared_ext}$major'
14163 shlibpath_var=LD_LIBRARY_PATH
14164 shlibpath_overrides_runpath=yes
14165 hardcode_into_libs=yes
14166 # ldd complains unless libraries are executable
14167 postinstall_cmds='chmod +x $lib'
14168 ;;
14169
14170 sunos4*)
14171 version_type=sunos
14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 shlibpath_overrides_runpath=yes
14176 if test "$with_gnu_ld" = yes; then
14177 need_lib_prefix=no
14178 fi
14179 need_version=yes
14180 ;;
14181
14182 sysv4 | sysv4.3*)
14183 version_type=linux
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14185 soname_spec='${libname}${release}${shared_ext}$major'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 case $host_vendor in
14188 sni)
14189 shlibpath_overrides_runpath=no
14190 need_lib_prefix=no
14191 runpath_var=LD_RUN_PATH
14192 ;;
14193 siemens)
14194 need_lib_prefix=no
14195 ;;
14196 motorola)
14197 need_lib_prefix=no
14198 need_version=no
14199 shlibpath_overrides_runpath=no
14200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14201 ;;
14202 esac
14203 ;;
14204
14205 sysv4*MP*)
14206 if test -d /usr/nec ;then
14207 version_type=linux
14208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14209 soname_spec='$libname${shared_ext}.$major'
14210 shlibpath_var=LD_LIBRARY_PATH
14211 fi
14212 ;;
14213
14214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14215 version_type=freebsd-elf
14216 need_lib_prefix=no
14217 need_version=no
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14219 soname_spec='${libname}${release}${shared_ext}$major'
14220 shlibpath_var=LD_LIBRARY_PATH
14221 shlibpath_overrides_runpath=yes
14222 hardcode_into_libs=yes
14223 if test "$with_gnu_ld" = yes; then
14224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14225 else
14226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14227 case $host_os in
14228 sco3.2v5*)
14229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14230 ;;
14231 esac
14232 fi
14233 sys_lib_dlsearch_path_spec='/usr/lib'
14234 ;;
14235
14236 tpf*)
14237 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14238 version_type=linux
14239 need_lib_prefix=no
14240 need_version=no
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 shlibpath_overrides_runpath=no
14244 hardcode_into_libs=yes
14245 ;;
14246
14247 uts4*)
14248 version_type=linux
14249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14250 soname_spec='${libname}${release}${shared_ext}$major'
14251 shlibpath_var=LD_LIBRARY_PATH
14252 ;;
14253
14254 *)
14255 dynamic_linker=no
14256 ;;
14257 esac
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14259 $as_echo "$dynamic_linker" >&6; }
14260 test "$dynamic_linker" = no && can_build_shared=no
14261
14262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14263 if test "$GCC" = yes; then
14264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14265 fi
14266
14267 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14268 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14269 fi
14270 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14272 fi
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14312 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14313 hardcode_action_FC=
14314 if test -n "$hardcode_libdir_flag_spec_FC" ||
14315 test -n "$runpath_var_FC" ||
14316 test "X$hardcode_automatic_FC" = "Xyes" ; then
14317
14318 # We can hardcode non-existent directories.
14319 if test "$hardcode_direct_FC" != no &&
14320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14321 # have to relink, otherwise we might link with an installed library
14322 # when we should be linking with a yet-to-be-installed one
14323 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14324 test "$hardcode_minus_L_FC" != no; then
14325 # Linking always hardcodes the temporary library directory.
14326 hardcode_action_FC=relink
14327 else
14328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14329 hardcode_action_FC=immediate
14330 fi
14331 else
14332 # We cannot hardcode anything, or else we can only hardcode existing
14333 # directories.
14334 hardcode_action_FC=unsupported
14335 fi
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14337 $as_echo "$hardcode_action_FC" >&6; }
14338
14339 if test "$hardcode_action_FC" = relink ||
14340 test "$inherit_rpath_FC" = yes; then
14341 # Fast installation is not supported
14342 enable_fast_install=no
14343 elif test "$shlibpath_overrides_runpath" = yes ||
14344 test "$enable_shared" = no; then
14345 # Fast installation is not necessary
14346 enable_fast_install=needless
14347 fi
14348
14349
14350
14351
14352
14353
14354
14355 fi # test -n "$compiler"
14356
14357 GCC=$lt_save_GCC
14358 CC="$lt_save_CC"
14359 fi # test "$_lt_disable_FC" != yes
14360
14361 ac_ext=c
14362 ac_cpp='$CPP $CPPFLAGS'
14363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14366
14367
14368 FCFLAGS="$FCFLAGS -Wall"
14369
14370 # For libtool versioning info, format is CURRENT:REVISION:AGE
14371 libtool_VERSION=1:0:0
14372
14373
14374 # Check header files.
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14376 $as_echo_n "checking for ANSI C header files... " >&6; }
14377 if test "${ac_cv_header_stdc+set}" = set; then :
14378 $as_echo_n "(cached) " >&6
14379 else
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 #include <stdlib.h>
14383 #include <stdarg.h>
14384 #include <string.h>
14385 #include <float.h>
14386
14387 int
14388 main ()
14389 {
14390
14391 ;
14392 return 0;
14393 }
14394 _ACEOF
14395 if ac_fn_c_try_compile "$LINENO"; then :
14396 ac_cv_header_stdc=yes
14397 else
14398 ac_cv_header_stdc=no
14399 fi
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401
14402 if test $ac_cv_header_stdc = yes; then
14403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 #include <string.h>
14407
14408 _ACEOF
14409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14410 $EGREP "memchr" >/dev/null 2>&1; then :
14411
14412 else
14413 ac_cv_header_stdc=no
14414 fi
14415 rm -f conftest*
14416
14417 fi
14418
14419 if test $ac_cv_header_stdc = yes; then
14420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423 #include <stdlib.h>
14424
14425 _ACEOF
14426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14427 $EGREP "free" >/dev/null 2>&1; then :
14428
14429 else
14430 ac_cv_header_stdc=no
14431 fi
14432 rm -f conftest*
14433
14434 fi
14435
14436 if test $ac_cv_header_stdc = yes; then
14437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14438 if test "$cross_compiling" = yes; then :
14439 :
14440 else
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443 #include <ctype.h>
14444 #include <stdlib.h>
14445 #if ((' ' & 0x0FF) == 0x020)
14446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14448 #else
14449 # define ISLOWER(c) \
14450 (('a' <= (c) && (c) <= 'i') \
14451 || ('j' <= (c) && (c) <= 'r') \
14452 || ('s' <= (c) && (c) <= 'z'))
14453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14454 #endif
14455
14456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14457 int
14458 main ()
14459 {
14460 int i;
14461 for (i = 0; i < 256; i++)
14462 if (XOR (islower (i), ISLOWER (i))
14463 || toupper (i) != TOUPPER (i))
14464 return 2;
14465 return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_run "$LINENO"; then :
14469
14470 else
14471 ac_cv_header_stdc=no
14472 fi
14473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14474 conftest.$ac_objext conftest.beam conftest.$ac_ext
14475 fi
14476
14477 fi
14478 fi
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14480 $as_echo "$ac_cv_header_stdc" >&6; }
14481 if test $ac_cv_header_stdc = yes; then
14482
14483 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14484
14485 fi
14486
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14488 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14489 if test "${ac_cv_header_time+set}" = set; then :
14490 $as_echo_n "(cached) " >&6
14491 else
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14494 #include <sys/types.h>
14495 #include <sys/time.h>
14496 #include <time.h>
14497
14498 int
14499 main ()
14500 {
14501 if ((struct tm *) 0)
14502 return 0;
14503 ;
14504 return 0;
14505 }
14506 _ACEOF
14507 if ac_fn_c_try_compile "$LINENO"; then :
14508 ac_cv_header_time=yes
14509 else
14510 ac_cv_header_time=no
14511 fi
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 fi
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14515 $as_echo "$ac_cv_header_time" >&6; }
14516 if test $ac_cv_header_time = yes; then
14517
14518 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14519
14520 fi
14521
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14523 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14524 if test "${gcc_cv_header_string+set}" = set; then :
14525 $as_echo_n "(cached) " >&6
14526 else
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529 #include <string.h>
14530 #include <strings.h>
14531 int
14532 main ()
14533 {
14534
14535 ;
14536 return 0;
14537 }
14538 _ACEOF
14539 if ac_fn_c_try_compile "$LINENO"; then :
14540 gcc_cv_header_string=yes
14541 else
14542 gcc_cv_header_string=no
14543 fi
14544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14547 $as_echo "$gcc_cv_header_string" >&6; }
14548 if test $gcc_cv_header_string = yes; then
14549
14550 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14551
14552 fi
14553
14554 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14555 do :
14556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14557 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14558 eval as_val=\$$as_ac_Header
14559 if test "x$as_val" = x""yes; then :
14560 cat >>confdefs.h <<_ACEOF
14561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14562 _ACEOF
14563
14564 fi
14565
14566 done
14567
14568
14569
14570
14571 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14572
14573 acx_cv_header_stdint=stddef.h
14574 acx_cv_header_stdint_kind="(already complete)"
14575 for i in stdint.h $inttype_headers; do
14576 unset ac_cv_type_uintptr_t
14577 unset ac_cv_type_uintmax_t
14578 unset ac_cv_type_int_least32_t
14579 unset ac_cv_type_int_fast32_t
14580 unset ac_cv_type_uint64_t
14581 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14582 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14583 #include <$i>
14584 "
14585 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14586 acx_cv_header_stdint=$i
14587 else
14588 continue
14589 fi
14590
14591 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14592 #include <$i>
14593 "
14594 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14595
14596 else
14597 acx_cv_header_stdint_kind="(mostly complete)"
14598 fi
14599
14600 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14601 #include <$i>
14602 "
14603 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14604
14605 else
14606 acx_cv_header_stdint_kind="(mostly complete)"
14607 fi
14608
14609 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14610 #include <$i>
14611 "
14612 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14613
14614 else
14615 acx_cv_header_stdint_kind="(mostly complete)"
14616 fi
14617
14618 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14619 #include <$i>
14620 "
14621 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14622
14623 else
14624 acx_cv_header_stdint_kind="(lacks uint64_t)"
14625 fi
14626
14627 break
14628 done
14629 if test "$acx_cv_header_stdint" = stddef.h; then
14630 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14631 for i in stdint.h $inttype_headers; do
14632 unset ac_cv_type_uintptr_t
14633 unset ac_cv_type_uint32_t
14634 unset ac_cv_type_uint64_t
14635 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14636 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14637 #include <$i>
14638 "
14639 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14640 acx_cv_header_stdint=$i
14641 else
14642 continue
14643 fi
14644
14645 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14646 #include <$i>
14647 "
14648 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14649
14650 fi
14651
14652 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14653 #include <$i>
14654 "
14655 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14656
14657 fi
14658
14659 break
14660 done
14661 fi
14662 if test "$acx_cv_header_stdint" = stddef.h; then
14663 acx_cv_header_stdint_kind="(u_intXX_t style)"
14664 for i in sys/types.h $inttype_headers; do
14665 unset ac_cv_type_u_int32_t
14666 unset ac_cv_type_u_int64_t
14667 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14668 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14669 #include <$i>
14670 "
14671 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14672 acx_cv_header_stdint=$i
14673 else
14674 continue
14675 fi
14676
14677 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14678 #include <$i>
14679 "
14680 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14681
14682 fi
14683
14684 break
14685 done
14686 fi
14687 if test "$acx_cv_header_stdint" = stddef.h; then
14688 acx_cv_header_stdint_kind="(using manual detection)"
14689 fi
14690
14691 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14692 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14693 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14694 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14695 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14696
14697 # ----------------- Summarize what we found so far
14698
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14700 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14701
14702 case `$as_basename -- gstdint.h ||
14703 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14704 Xgstdint.h : 'X\(//\)$' \| \
14705 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14706 $as_echo X/gstdint.h |
14707 sed '/^.*\/\([^/][^/]*\)\/*$/{
14708 s//\1/
14709 q
14710 }
14711 /^X\/\(\/\/\)$/{
14712 s//\1/
14713 q
14714 }
14715 /^X\/\(\/\).*/{
14716 s//\1/
14717 q
14718 }
14719 s/.*/./; q'` in
14720 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14721 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14722 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14723 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14724 *) ;;
14725 esac
14726
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14728 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14729
14730 # ----------------- done included file, check C basic types --------
14731
14732 # Lacking an uintptr_t? Test size of void *
14733 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14734 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14737 # This bug is HP SR number 8606223364.
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14739 $as_echo_n "checking size of void *... " >&6; }
14740 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14744
14745 else
14746 if test "$ac_cv_type_void_p" = yes; then
14747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14749 { as_fn_set_status 77
14750 as_fn_error "cannot compute sizeof (void *)
14751 See \`config.log' for more details." "$LINENO" 5; }; }
14752 else
14753 ac_cv_sizeof_void_p=0
14754 fi
14755 fi
14756
14757 fi
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14759 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14760
14761
14762
14763 cat >>confdefs.h <<_ACEOF
14764 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14765 _ACEOF
14766
14767 ;;
14768 esac
14769
14770 # Lacking an uint64_t? Test size of long
14771 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14772 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14775 # This bug is HP SR number 8606223364.
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14777 $as_echo_n "checking size of long... " >&6; }
14778 if test "${ac_cv_sizeof_long+set}" = set; then :
14779 $as_echo_n "(cached) " >&6
14780 else
14781 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14782
14783 else
14784 if test "$ac_cv_type_long" = yes; then
14785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14787 { as_fn_set_status 77
14788 as_fn_error "cannot compute sizeof (long)
14789 See \`config.log' for more details." "$LINENO" 5; }; }
14790 else
14791 ac_cv_sizeof_long=0
14792 fi
14793 fi
14794
14795 fi
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14797 $as_echo "$ac_cv_sizeof_long" >&6; }
14798
14799
14800
14801 cat >>confdefs.h <<_ACEOF
14802 #define SIZEOF_LONG $ac_cv_sizeof_long
14803 _ACEOF
14804
14805 ;;
14806 esac
14807
14808 if test $acx_cv_header_stdint = stddef.h; then
14809 # Lacking a good header? Test size of everything and deduce all types.
14810 # The cast to long int works around a bug in the HP C Compiler
14811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14813 # This bug is HP SR number 8606223364.
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14815 $as_echo_n "checking size of int... " >&6; }
14816 if test "${ac_cv_sizeof_int+set}" = set; then :
14817 $as_echo_n "(cached) " >&6
14818 else
14819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14820
14821 else
14822 if test "$ac_cv_type_int" = yes; then
14823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14825 { as_fn_set_status 77
14826 as_fn_error "cannot compute sizeof (int)
14827 See \`config.log' for more details." "$LINENO" 5; }; }
14828 else
14829 ac_cv_sizeof_int=0
14830 fi
14831 fi
14832
14833 fi
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14835 $as_echo "$ac_cv_sizeof_int" >&6; }
14836
14837
14838
14839 cat >>confdefs.h <<_ACEOF
14840 #define SIZEOF_INT $ac_cv_sizeof_int
14841 _ACEOF
14842
14843
14844 # The cast to long int works around a bug in the HP C Compiler
14845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14847 # This bug is HP SR number 8606223364.
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14849 $as_echo_n "checking size of short... " >&6; }
14850 if test "${ac_cv_sizeof_short+set}" = set; then :
14851 $as_echo_n "(cached) " >&6
14852 else
14853 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14854
14855 else
14856 if test "$ac_cv_type_short" = yes; then
14857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14859 { as_fn_set_status 77
14860 as_fn_error "cannot compute sizeof (short)
14861 See \`config.log' for more details." "$LINENO" 5; }; }
14862 else
14863 ac_cv_sizeof_short=0
14864 fi
14865 fi
14866
14867 fi
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14869 $as_echo "$ac_cv_sizeof_short" >&6; }
14870
14871
14872
14873 cat >>confdefs.h <<_ACEOF
14874 #define SIZEOF_SHORT $ac_cv_sizeof_short
14875 _ACEOF
14876
14877
14878 # The cast to long int works around a bug in the HP C Compiler
14879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14881 # This bug is HP SR number 8606223364.
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14883 $as_echo_n "checking size of char... " >&6; }
14884 if test "${ac_cv_sizeof_char+set}" = set; then :
14885 $as_echo_n "(cached) " >&6
14886 else
14887 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14888
14889 else
14890 if test "$ac_cv_type_char" = yes; then
14891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14893 { as_fn_set_status 77
14894 as_fn_error "cannot compute sizeof (char)
14895 See \`config.log' for more details." "$LINENO" 5; }; }
14896 else
14897 ac_cv_sizeof_char=0
14898 fi
14899 fi
14900
14901 fi
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14903 $as_echo "$ac_cv_sizeof_char" >&6; }
14904
14905
14906
14907 cat >>confdefs.h <<_ACEOF
14908 #define SIZEOF_CHAR $ac_cv_sizeof_char
14909 _ACEOF
14910
14911
14912
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14914 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14915 case "$ac_cv_sizeof_char" in
14916 1) acx_cv_type_int8_t=char ;;
14917 *) { as_fn_set_status please report a bug
14918 as_fn_error "no 8-bit type" "$LINENO" 5; }
14919 esac
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14921 $as_echo "$acx_cv_type_int8_t" >&6; }
14922
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14924 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14925 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14926 2:*) acx_cv_type_int16_t=int ;;
14927 *:2) acx_cv_type_int16_t=short ;;
14928 *) { as_fn_set_status please report a bug
14929 as_fn_error "no 16-bit type" "$LINENO" 5; }
14930 esac
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14932 $as_echo "$acx_cv_type_int16_t" >&6; }
14933
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14935 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14936 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14937 4:*) acx_cv_type_int32_t=int ;;
14938 *:4) acx_cv_type_int32_t=long ;;
14939 *) { as_fn_set_status please report a bug
14940 as_fn_error "no 32-bit type" "$LINENO" 5; }
14941 esac
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14943 $as_echo "$acx_cv_type_int32_t" >&6; }
14944 fi
14945
14946 # These tests are here to make the output prettier
14947
14948 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14949 case "$ac_cv_sizeof_long" in
14950 8) acx_cv_type_int64_t=long ;;
14951 esac
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14953 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14955 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14956 fi
14957
14958 # Now we can use the above types
14959
14960 if test "$ac_cv_type_uintptr_t" != yes; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14962 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14963 case $ac_cv_sizeof_void_p in
14964 2) acx_cv_type_intptr_t=int16_t ;;
14965 4) acx_cv_type_intptr_t=int32_t ;;
14966 8) acx_cv_type_intptr_t=int64_t ;;
14967 *) { as_fn_set_status please report a bug
14968 as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
14969 esac
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14971 $as_echo "$acx_cv_type_intptr_t" >&6; }
14972 fi
14973
14974 # ----------------- done all checks, emit header -------------
14975 ac_config_commands="$ac_config_commands gstdint.h"
14976
14977
14978
14979
14980 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14981 # In case the pthread.h system header is not found, this test will fail.
14982 XPCFLAGS=""
14983 CFLAGS="$CFLAGS -pthread"
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986 #include <pthread.h>
14987 void *g(void *d) { return NULL; }
14988 int
14989 main ()
14990 {
14991 pthread_t t; pthread_create(&t,NULL,g,NULL);
14992 ;
14993 return 0;
14994 }
14995 _ACEOF
14996 if ac_fn_c_try_link "$LINENO"; then :
14997 XPCFLAGS=" -Wc,-pthread"
14998 else
14999 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 #include <pthread.h>
15003 void *g(void *d) { return NULL; }
15004 int
15005 main ()
15006 {
15007 pthread_t t; pthread_create(&t,NULL,g,NULL);
15008 ;
15009 return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_link "$LINENO"; then :
15013
15014 else
15015 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext \
15018 conftest$ac_exeext conftest.$ac_ext
15019 fi
15020 rm -f core conftest.err conftest.$ac_objext \
15021 conftest$ac_exeext conftest.$ac_ext
15022
15023 # Check for functions needed.
15024 for ac_func in getloadavg clock_gettime strtoull
15025 do :
15026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15028 eval as_val=\$$as_ac_var
15029 if test "x$as_val" = x""yes; then :
15030 cat >>confdefs.h <<_ACEOF
15031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15032 _ACEOF
15033
15034 fi
15035 done
15036
15037
15038 # Check for broken semaphore implementation on darwin.
15039 # sem_init returns: sem_init error: Function not implemented.
15040 case "$host" in
15041 *-darwin*)
15042
15043 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15044
15045 ;;
15046 esac
15047
15048 # Check whether --enable-linux-futex was given.
15049 if test "${enable_linux_futex+set}" = set; then :
15050 enableval=$enable_linux_futex;
15051 case "$enableval" in
15052 yes|no|default) ;;
15053 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15054 esac
15055
15056 else
15057 enable_linux_futex=default
15058 fi
15059
15060
15061 case "$target" in
15062 *-linux*)
15063 case "$enable_linux_futex" in
15064 default)
15065 # If headers don't have gettid/futex syscalls definition, then
15066 # default to no, otherwise there will be compile time failures.
15067 # Otherwise, default to yes. If we don't detect we are
15068 # compiled/linked against NPTL and not cross-compiling, check
15069 # if programs are run by default against NPTL and if not, issue
15070 # a warning.
15071 enable_linux_futex=no
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 #include <sys/syscall.h>
15075 int lk;
15076 int
15077 main ()
15078 {
15079 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15080 ;
15081 return 0;
15082 }
15083 _ACEOF
15084 if ac_fn_c_try_link "$LINENO"; then :
15085 save_LIBS="$LIBS"
15086 LIBS="-lpthread $LIBS"
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 #ifndef _GNU_SOURCE
15090 #define _GNU_SOURCE 1
15091 #endif
15092 #include <pthread.h>
15093 pthread_t th; void *status;
15094 int
15095 main ()
15096 {
15097 pthread_tryjoin_np (th, &status);
15098 ;
15099 return 0;
15100 }
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15103 enable_linux_futex=yes
15104 else
15105 if test x$cross_compiling = xno; then
15106 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15107 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15109 If so, please configure with --disable-linux-futex" >&5
15110 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15111 If so, please configure with --disable-linux-futex" >&2;}
15112 fi
15113 fi
15114 enable_linux_futex=yes
15115 fi
15116 rm -f core conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
15118 LIBS="$save_LIBS"
15119 fi
15120 rm -f core conftest.err conftest.$ac_objext \
15121 conftest$ac_exeext conftest.$ac_ext
15122 ;;
15123 yes)
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15126 #include <sys/syscall.h>
15127 int lk;
15128 int
15129 main ()
15130 {
15131 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15132 ;
15133 return 0;
15134 }
15135 _ACEOF
15136 if ac_fn_c_try_link "$LINENO"; then :
15137
15138 else
15139 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15140 fi
15141 rm -f core conftest.err conftest.$ac_objext \
15142 conftest$ac_exeext conftest.$ac_ext
15143 ;;
15144 esac
15145 ;;
15146 *)
15147 enable_linux_futex=no
15148 ;;
15149 esac
15150 if test x$enable_linux_futex = xyes; then
15151 :
15152 fi
15153
15154
15155 # Check for pthread_{,attr_}[sg]etaffinity_np.
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158 #define _GNU_SOURCE
15159 #include <pthread.h>
15160 int
15161 main ()
15162 {
15163 cpu_set_t cpuset;
15164 pthread_attr_t attr;
15165 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15166 if (CPU_ISSET (0, &cpuset))
15167 CPU_SET (1, &cpuset);
15168 else
15169 CPU_ZERO (&cpuset);
15170 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15171 pthread_attr_init (&attr);
15172 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15173 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15174 ;
15175 return 0;
15176 }
15177 _ACEOF
15178 if ac_fn_c_try_link "$LINENO"; then :
15179
15180 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15181
15182 fi
15183 rm -f core conftest.err conftest.$ac_objext \
15184 conftest$ac_exeext conftest.$ac_ext
15185
15186 # At least for glibc, clock_gettime is in librt. But don't pull that
15187 # in if it still doesn't give us the function we want.
15188 if test $ac_cv_func_clock_gettime = no; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15190 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15191 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15192 $as_echo_n "(cached) " >&6
15193 else
15194 ac_check_lib_save_LIBS=$LIBS
15195 LIBS="-lrt $LIBS"
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198
15199 /* Override any GCC internal prototype to avoid an error.
15200 Use char because int might match the return type of a GCC
15201 builtin and then its argument prototype would still apply. */
15202 #ifdef __cplusplus
15203 extern "C"
15204 #endif
15205 char clock_gettime ();
15206 int
15207 main ()
15208 {
15209 return clock_gettime ();
15210 ;
15211 return 0;
15212 }
15213 _ACEOF
15214 if ac_fn_c_try_link "$LINENO"; then :
15215 ac_cv_lib_rt_clock_gettime=yes
15216 else
15217 ac_cv_lib_rt_clock_gettime=no
15218 fi
15219 rm -f core conftest.err conftest.$ac_objext \
15220 conftest$ac_exeext conftest.$ac_ext
15221 LIBS=$ac_check_lib_save_LIBS
15222 fi
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15224 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15225 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15226 LIBS="-lrt $LIBS"
15227
15228 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15229
15230 fi
15231
15232 fi
15233
15234 # See if we support thread-local storage.
15235
15236
15237 # Check whether --enable-tls was given.
15238 if test "${enable_tls+set}" = set; then :
15239 enableval=$enable_tls;
15240 case "$enableval" in
15241 yes|no) ;;
15242 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15243 esac
15244
15245 else
15246 enable_tls=yes
15247 fi
15248
15249
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15251 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15252 if test "${gcc_cv_have_tls+set}" = set; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255
15256 if test "$cross_compiling" = yes; then :
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15259 __thread int a; int b; int main() { return a = b; }
15260 _ACEOF
15261 if ac_fn_c_try_link "$LINENO"; then :
15262 chktls_save_LDFLAGS="$LDFLAGS"
15263 case $host in
15264 *-*-linux*)
15265 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15266 ;;
15267 esac
15268 chktls_save_CFLAGS="$CFLAGS"
15269 CFLAGS="-fPIC $CFLAGS"
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15272 int f() { return 0; }
15273 _ACEOF
15274 if ac_fn_c_try_link "$LINENO"; then :
15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15277 __thread int a; int b; int f() { return a = b; }
15278 _ACEOF
15279 if ac_fn_c_try_link "$LINENO"; then :
15280 gcc_cv_have_tls=yes
15281 else
15282 gcc_cv_have_tls=no
15283 fi
15284 rm -f core conftest.err conftest.$ac_objext \
15285 conftest$ac_exeext conftest.$ac_ext
15286 else
15287 gcc_cv_have_tls=yes
15288 fi
15289 rm -f core conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
15291 CFLAGS="$chktls_save_CFLAGS"
15292 LDFLAGS="$chktls_save_LDFLAGS"
15293 else
15294 gcc_cv_have_tls=no
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298
15299
15300 else
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15303 __thread int a; int b; int main() { return a = b; }
15304 _ACEOF
15305 if ac_fn_c_try_run "$LINENO"; then :
15306 chktls_save_LDFLAGS="$LDFLAGS"
15307 LDFLAGS="-static $LDFLAGS"
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h. */
15310 int main() { return 0; }
15311 _ACEOF
15312 if ac_fn_c_try_link "$LINENO"; then :
15313 if test "$cross_compiling" = yes; then :
15314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15316 as_fn_error "cannot run test program while cross compiling
15317 See \`config.log' for more details." "$LINENO" 5; }
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 __thread int a; int b; int main() { return a = b; }
15322 _ACEOF
15323 if ac_fn_c_try_run "$LINENO"; then :
15324 gcc_cv_have_tls=yes
15325 else
15326 gcc_cv_have_tls=no
15327 fi
15328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15329 conftest.$ac_objext conftest.beam conftest.$ac_ext
15330 fi
15331
15332 else
15333 gcc_cv_have_tls=yes
15334 fi
15335 rm -f core conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
15337 LDFLAGS="$chktls_save_LDFLAGS"
15338 if test $gcc_cv_have_tls = yes; then
15339 chktls_save_CFLAGS="$CFLAGS"
15340 thread_CFLAGS=failed
15341 for flag in '' '-pthread' '-lpthread'; do
15342 CFLAGS="$flag $chktls_save_CFLAGS"
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345 #include <pthread.h>
15346 void *g(void *d) { return NULL; }
15347 int
15348 main ()
15349 {
15350 pthread_t t; pthread_create(&t,NULL,g,NULL);
15351 ;
15352 return 0;
15353 }
15354 _ACEOF
15355 if ac_fn_c_try_link "$LINENO"; then :
15356 thread_CFLAGS="$flag"
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15360 if test "X$thread_CFLAGS" != Xfailed; then
15361 break
15362 fi
15363 done
15364 CFLAGS="$chktls_save_CFLAGS"
15365 if test "X$thread_CFLAGS" != Xfailed; then
15366 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15367 if test "$cross_compiling" = yes; then :
15368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15370 as_fn_error "cannot run test program while cross compiling
15371 See \`config.log' for more details." "$LINENO" 5; }
15372 else
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 #include <pthread.h>
15376 __thread int a;
15377 static int *a_in_other_thread;
15378 static void *
15379 thread_func (void *arg)
15380 {
15381 a_in_other_thread = &a;
15382 return (void *)0;
15383 }
15384 int
15385 main ()
15386 {
15387 pthread_t thread;
15388 void *thread_retval;
15389 int *a_in_main_thread;
15390 if (pthread_create (&thread, (pthread_attr_t *)0,
15391 thread_func, (void *)0))
15392 return 0;
15393 a_in_main_thread = &a;
15394 if (pthread_join (thread, &thread_retval))
15395 return 0;
15396 return (a_in_other_thread == a_in_main_thread);
15397 ;
15398 return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_run "$LINENO"; then :
15402 gcc_cv_have_tls=yes
15403 else
15404 gcc_cv_have_tls=no
15405 fi
15406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15407 conftest.$ac_objext conftest.beam conftest.$ac_ext
15408 fi
15409
15410 CFLAGS="$chktls_save_CFLAGS"
15411 fi
15412 fi
15413 else
15414 gcc_cv_have_tls=no
15415 fi
15416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15417 conftest.$ac_objext conftest.beam conftest.$ac_ext
15418 fi
15419
15420 fi
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15422 $as_echo "$gcc_cv_have_tls" >&6; }
15423 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15424
15425 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15426
15427 fi
15428
15429 # See what sort of export controls are availible.
15430
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15432 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15433 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436
15437 save_CFLAGS="$CFLAGS"
15438 CFLAGS="$CFLAGS -Werror"
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h. */
15441 void __attribute__((visibility("hidden"))) foo(void) { }
15442 int
15443 main ()
15444 {
15445
15446 ;
15447 return 0;
15448 }
15449 _ACEOF
15450 if ac_fn_c_try_compile "$LINENO"; then :
15451 libgomp_cv_have_attribute_visibility=yes
15452 else
15453 libgomp_cv_have_attribute_visibility=no
15454 fi
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 CFLAGS="$save_CFLAGS"
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15459 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15460 if test $libgomp_cv_have_attribute_visibility = yes; then
15461
15462 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15463
15464 fi
15465
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15467 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15468 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471
15472 save_CFLAGS="$CFLAGS"
15473 CFLAGS="$CFLAGS -Werror"
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15476 void __attribute__((dllexport)) foo(void) { }
15477 int
15478 main ()
15479 {
15480
15481 ;
15482 return 0;
15483 }
15484 _ACEOF
15485 if ac_fn_c_try_compile "$LINENO"; then :
15486 libgomp_cv_have_attribute_dllexport=yes
15487 else
15488 libgomp_cv_have_attribute_dllexport=no
15489 fi
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491 CFLAGS="$save_CFLAGS"
15492 fi
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15494 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15495 if test $libgomp_cv_have_attribute_dllexport = yes; then
15496
15497 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15498
15499 fi
15500
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15502 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15503 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15504 $as_echo_n "(cached) " >&6
15505 else
15506
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15509
15510 void foo(void) { }
15511 extern void bar(void) __attribute__((alias("foo")));
15512 int
15513 main ()
15514 {
15515 bar();
15516 ;
15517 return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_link "$LINENO"; then :
15521 libgomp_cv_have_attribute_alias=yes
15522 else
15523 libgomp_cv_have_attribute_alias=no
15524 fi
15525 rm -f core conftest.err conftest.$ac_objext \
15526 conftest$ac_exeext conftest.$ac_ext
15527 fi
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15529 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15530 if test $libgomp_cv_have_attribute_alias = yes; then
15531
15532 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15533
15534 fi
15535
15536
15537 # Check whether --with-gnu-ld was given.
15538 if test "${with_gnu_ld+set}" = set; then :
15539 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15540 else
15541 with_gnu_ld=no
15542 fi
15543
15544 ac_prog=ld
15545 if test "$GCC" = yes; then
15546 # Check if gcc -print-prog-name=ld gives a path.
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15548 $as_echo_n "checking for ld used by $CC... " >&6; }
15549 case $host in
15550 *-*-mingw*)
15551 # gcc leaves a trailing carriage return which upsets mingw
15552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15553 *)
15554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15555 esac
15556 case $ac_prog in
15557 # Accept absolute paths.
15558 [\\/]* | ?:[\\/]*)
15559 re_direlt='/[^/][^/]*/\.\./'
15560 # Canonicalize the pathname of ld
15561 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15562 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15563 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15564 done
15565 test -z "$LD" && LD="$ac_prog"
15566 ;;
15567 "")
15568 # If it fails, then pretend we aren't using GCC.
15569 ac_prog=ld
15570 ;;
15571 *)
15572 # If it is relative, then search for the first ld in PATH.
15573 with_gnu_ld=unknown
15574 ;;
15575 esac
15576 elif test "$with_gnu_ld" = yes; then
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15578 $as_echo_n "checking for GNU ld... " >&6; }
15579 else
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15581 $as_echo_n "checking for non-GNU ld... " >&6; }
15582 fi
15583 if test "${lt_cv_path_LD+set}" = set; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 if test -z "$LD"; then
15587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15588 for ac_dir in $PATH; do
15589 IFS="$lt_save_ifs"
15590 test -z "$ac_dir" && ac_dir=.
15591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15592 lt_cv_path_LD="$ac_dir/$ac_prog"
15593 # Check to see if the program is GNU ld. I'd rather use --version,
15594 # but apparently some variants of GNU ld only accept -v.
15595 # Break only if it was the GNU/non-GNU ld that we prefer.
15596 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15597 *GNU* | *'with BFD'*)
15598 test "$with_gnu_ld" != no && break
15599 ;;
15600 *)
15601 test "$with_gnu_ld" != yes && break
15602 ;;
15603 esac
15604 fi
15605 done
15606 IFS="$lt_save_ifs"
15607 else
15608 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15609 fi
15610 fi
15611
15612 LD="$lt_cv_path_LD"
15613 if test -n "$LD"; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15615 $as_echo "$LD" >&6; }
15616 else
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15618 $as_echo "no" >&6; }
15619 fi
15620 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15622 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15623 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15624 $as_echo_n "(cached) " >&6
15625 else
15626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15627 case `$LD -v 2>&1 </dev/null` in
15628 *GNU* | *'with BFD'*)
15629 lt_cv_prog_gnu_ld=yes
15630 ;;
15631 *)
15632 lt_cv_prog_gnu_ld=no
15633 ;;
15634 esac
15635 fi
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15637 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15638 with_gnu_ld=$lt_cv_prog_gnu_ld
15639
15640
15641
15642
15643
15644
15645
15646 # If we're not using GNU ld, then there's no point in even trying these
15647 # tests. Check for that first. We should have already tested for gld
15648 # by now (in libtool), but require it now just to be safe...
15649 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15650 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15651
15652
15653
15654 # The name set by libtool depends on the version of libtool. Shame on us
15655 # for depending on an impl detail, but c'est la vie. Older versions used
15656 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15657 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15658 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15659 # set (hence we're using an older libtool), then set it.
15660 if test x${with_gnu_ld+set} != xset; then
15661 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15662 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15663 with_gnu_ld=no
15664 else
15665 with_gnu_ld=$ac_cv_prog_gnu_ld
15666 fi
15667 fi
15668
15669 # Start by getting the version number. I think the libtool test already
15670 # does some of this, but throws away the result.
15671 libgomp_ld_is_gold=no
15672 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15673 libgomp_ld_is_gold=yes
15674 fi
15675
15676 ldver=`$LD --version 2>/dev/null |
15677 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
15678
15679 libgomp_gnu_ld_version=`echo $ldver | \
15680 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15681
15682 # Set --gc-sections.
15683 if test "$with_gnu_ld" = "notbroken"; then
15684 # GNU ld it is! Joy and bunny rabbits!
15685
15686 # All these tests are for C++; save the language and the compiler flags.
15687 # Need to do this so that g++ won't try to link in libstdc++
15688 ac_test_CFLAGS="${CFLAGS+set}"
15689 ac_save_CFLAGS="$CFLAGS"
15690 CFLAGS='-x c++ -Wl,--gc-sections'
15691
15692 # Check for -Wl,--gc-sections
15693 # XXX This test is broken at the moment, as symbols required for linking
15694 # are now in libsupc++ (not built yet). In addition, this test has
15695 # cored on solaris in the past. In addition, --gc-sections doesn't
15696 # really work at the moment (keeps on discarding used sections, first
15697 # .eh_frame and now some of the glibc sections for iconv).
15698 # Bzzzzt. Thanks for playing, maybe next time.
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15700 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15701 if test "$cross_compiling" = yes; then :
15702 ac_sectionLDflags=yes
15703 else
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706
15707 int main(void)
15708 {
15709 try { throw 1; }
15710 catch (...) { };
15711 return 0;
15712 }
15713
15714 _ACEOF
15715 if ac_fn_c_try_run "$LINENO"; then :
15716 ac_sectionLDflags=yes
15717 else
15718 ac_sectionLDflags=no
15719 fi
15720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15721 conftest.$ac_objext conftest.beam conftest.$ac_ext
15722 fi
15723
15724 if test "$ac_test_CFLAGS" = set; then
15725 CFLAGS="$ac_save_CFLAGS"
15726 else
15727 # this is the suspicious part
15728 CFLAGS=''
15729 fi
15730 if test "$ac_sectionLDflags" = "yes"; then
15731 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15732 fi
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15734 $as_echo "$ac_sectionLDflags" >&6; }
15735 fi
15736
15737 # Set linker optimization flags.
15738 if test x"$with_gnu_ld" = x"yes"; then
15739 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15740 fi
15741
15742
15743
15744
15745
15746
15747 # Check whether --enable-symvers was given.
15748 if test "${enable_symvers+set}" = set; then :
15749 enableval=$enable_symvers;
15750 case "$enableval" in
15751 yes|no|gnu) ;;
15752 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15753 esac
15754
15755 else
15756 enable_symvers=yes
15757 fi
15758
15759
15760
15761 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15762 # don't know enough about $LD to do tricks...
15763
15764 # FIXME The following test is too strict, in theory.
15765 if test $enable_shared = no ||
15766 test "x$LD" = x ||
15767 test x$libgomp_gnu_ld_version = x; then
15768 enable_symvers=no
15769 fi
15770
15771 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15772 if test $enable_symvers != no; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15774 $as_echo_n "checking for shared libgcc... " >&6; }
15775 ac_save_CFLAGS="$CFLAGS"
15776 CFLAGS=' -lgcc_s'
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15779
15780 int
15781 main ()
15782 {
15783 return 0;
15784 ;
15785 return 0;
15786 }
15787 _ACEOF
15788 if ac_fn_c_try_link "$LINENO"; then :
15789 libgomp_shared_libgcc=yes
15790 else
15791 libgomp_shared_libgcc=no
15792 fi
15793 rm -f core conftest.err conftest.$ac_objext \
15794 conftest$ac_exeext conftest.$ac_ext
15795 CFLAGS="$ac_save_CFLAGS"
15796 if test $libgomp_shared_libgcc = no; then
15797 cat > conftest.c <<EOF
15798 int main (void) { return 0; }
15799 EOF
15800 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15801 -shared -shared-libgcc -o conftest.so \
15802 conftest.c -v 2>&1 >/dev/null \
15803 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15804 rm -f conftest.c conftest.so
15805 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15806 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h. */
15809
15810 int
15811 main ()
15812 {
15813 return 0;
15814 ;
15815 return 0;
15816 }
15817 _ACEOF
15818 if ac_fn_c_try_link "$LINENO"; then :
15819 libgomp_shared_libgcc=yes
15820 fi
15821 rm -f core conftest.err conftest.$ac_objext \
15822 conftest$ac_exeext conftest.$ac_ext
15823 CFLAGS="$ac_save_CFLAGS"
15824 fi
15825 fi
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15827 $as_echo "$libgomp_shared_libgcc" >&6; }
15828 fi
15829
15830 # For GNU ld, we need at least this version. The format is described in
15831 # LIBGOMP_CHECK_LINKER_FEATURES above.
15832 libgomp_min_gnu_ld_version=21400
15833 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15834
15835 # Check to see if unspecified "yes" value can win, given results above.
15836 # Change "yes" into either "no" or a style name.
15837 if test $enable_symvers = yes; then
15838 if test $with_gnu_ld = yes &&
15839 test $libgomp_shared_libgcc = yes;
15840 then
15841 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15842 enable_symvers=gnu
15843 elif test $libgomp_ld_is_gold = yes ; then
15844 enable_symvers=gnu
15845 else
15846 # The right tools, the right setup, but too old. Fallbacks?
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15848 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15850 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15852 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15854 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15855 if test $libgomp_gnu_ld_version -ge 21200 ; then
15856 # Globbing fix is present, proper block support is not.
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15858 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15859 enable_symvers=no
15860 else
15861 # 2.11 or older.
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15863 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15864 enable_symvers=no
15865 fi
15866 fi
15867 else
15868 # just fail for now
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15870 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15872 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15874 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15876 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15877 enable_symvers=no
15878 fi
15879 fi
15880
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15882 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
15883 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 void foo (void); __asm (".symver foo, bar@SYMVER");
15890 int
15891 main ()
15892 {
15893
15894 ;
15895 return 0;
15896 }
15897 _ACEOF
15898 if ac_fn_c_try_compile "$LINENO"; then :
15899 libgomp_cv_have_as_symver_directive=yes
15900 else
15901 libgomp_cv_have_as_symver_directive=no
15902 fi
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 fi
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15906 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15907 if test $libgomp_cv_have_as_symver_directive = yes; then
15908
15909 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15910
15911 fi
15912
15913 if test $enable_symvers != no; then
15914 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15915 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15916 else
15917 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15918 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15919 fi
15920
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15922 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15923
15924
15925 if test $enable_symvers = gnu; then
15926
15927 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15928
15929 fi
15930
15931 # Get target configury.
15932 . ${srcdir}/configure.tgt
15933 CFLAGS="$save_CFLAGS $XCFLAGS"
15934
15935 # Check for __sync_val_compare_and_swap, but only after the target has
15936 # had a chance to set XCFLAGS.
15937
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
15939 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
15940 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
15941 $as_echo_n "(cached) " >&6
15942 else
15943
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15946
15947 int
15948 main ()
15949 {
15950 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
15951 ;
15952 return 0;
15953 }
15954 _ACEOF
15955 if ac_fn_c_try_link "$LINENO"; then :
15956 libgomp_cv_have_sync_builtins=yes
15957 else
15958 libgomp_cv_have_sync_builtins=no
15959 fi
15960 rm -f core conftest.err conftest.$ac_objext \
15961 conftest$ac_exeext conftest.$ac_ext
15962 fi
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
15964 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
15965 if test $libgomp_cv_have_sync_builtins = yes; then
15966
15967 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
15968
15969 fi
15970
15971 XCFLAGS="$XCFLAGS$XPCFLAGS"
15972
15973
15974
15975
15976
15977 # Cleanup and exit.
15978 CFLAGS="$save_CFLAGS"
15979 cat >confcache <<\_ACEOF
15980 # This file is a shell script that caches the results of configure
15981 # tests run on this system so they can be shared between configure
15982 # scripts and configure runs, see configure's option --config-cache.
15983 # It is not useful on other systems. If it contains results you don't
15984 # want to keep, you may remove or edit it.
15985 #
15986 # config.status only pays attention to the cache file if you give it
15987 # the --recheck option to rerun configure.
15988 #
15989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15991 # following values.
15992
15993 _ACEOF
15994
15995 # The following way of writing the cache mishandles newlines in values,
15996 # but we know of no workaround that is simple, portable, and efficient.
15997 # So, we kill variables containing newlines.
15998 # Ultrix sh set writes to stderr and can't be redirected directly,
15999 # and sets the high bit in the cache file unless we assign to the vars.
16000 (
16001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16002 eval ac_val=\$$ac_var
16003 case $ac_val in #(
16004 *${as_nl}*)
16005 case $ac_var in #(
16006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16008 esac
16009 case $ac_var in #(
16010 _ | IFS | as_nl) ;; #(
16011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16012 *) { eval $ac_var=; unset $ac_var;} ;;
16013 esac ;;
16014 esac
16015 done
16016
16017 (set) 2>&1 |
16018 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16019 *${as_nl}ac_space=\ *)
16020 # `set' does not quote correctly, so add quotes: double-quote
16021 # substitution turns \\\\ into \\, and sed turns \\ into \.
16022 sed -n \
16023 "s/'/'\\\\''/g;
16024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16025 ;; #(
16026 *)
16027 # `set' quotes correctly as required by POSIX, so do not add quotes.
16028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16029 ;;
16030 esac |
16031 sort
16032 ) |
16033 sed '
16034 /^ac_cv_env_/b end
16035 t clear
16036 :clear
16037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16038 t end
16039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16040 :end' >>confcache
16041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16042 if test -w "$cache_file"; then
16043 test "x$cache_file" != "x/dev/null" &&
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16045 $as_echo "$as_me: updating cache $cache_file" >&6;}
16046 cat confcache >$cache_file
16047 else
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16050 fi
16051 fi
16052 rm -f confcache
16053
16054 if test ${multilib} = yes; then
16055 multilib_arg="--enable-multilib"
16056 else
16057 multilib_arg=
16058 fi
16059
16060 # Set up the set of libraries that we need to link against for libgomp.
16061 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16062 # which will force linkage against -lpthread (or equivalent for the system).
16063 # That's not 100% ideal, but about the best we can do easily.
16064 if test $enable_shared = yes; then
16065 link_gomp="-lgomp %{static: $LIBS}"
16066 else
16067 link_gomp="-lgomp $LIBS"
16068 fi
16069
16070
16071 if test "$ac_cv_fc_compiler_gnu" = yes; then
16072 USE_FORTRAN_TRUE=
16073 USE_FORTRAN_FALSE='#'
16074 else
16075 USE_FORTRAN_TRUE='#'
16076 USE_FORTRAN_FALSE=
16077 fi
16078
16079
16080 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16081 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16082 # the underscore here and update the PREREQ. If it doesn't, then we'll
16083 # need to copy this macro to our acinclude.m4.
16084 save_CFLAGS="$CFLAGS"
16085 for i in $config_path; do
16086 if test -f $srcdir/config/$i/omp-lock.h; then
16087 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16088 break
16089 fi
16090 done
16091
16092 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16093
16094 else
16095 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16096 fi
16097
16098
16099 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16100
16101 fi
16102
16103
16104 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16105
16106 fi
16107
16108
16109 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16110
16111 fi
16112
16113
16114 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16115
16116 else
16117 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16118 fi
16119
16120
16121 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16122
16123 fi
16124
16125
16126 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16127
16128 fi
16129
16130
16131 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16132
16133 fi
16134
16135
16136
16137 # If the lock fits in an integer, then arrange for Fortran to use that
16138 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16139 # Except that we don't have a way at present to multi-lib the installed
16140 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16141 # actual target.
16142 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16143 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16144 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16145 OMP_LOCK_KIND=8
16146 fi
16147 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16148 OMP_NEST_LOCK_KIND=8
16149 fi
16150 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16151 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16152 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16153 OMP_LOCK_25_KIND=8
16154 fi
16155 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16156 OMP_NEST_LOCK_25_KIND=8
16157 fi
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171 CFLAGS="$save_CFLAGS"
16172
16173 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16174
16175 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16176
16177 cat >confcache <<\_ACEOF
16178 # This file is a shell script that caches the results of configure
16179 # tests run on this system so they can be shared between configure
16180 # scripts and configure runs, see configure's option --config-cache.
16181 # It is not useful on other systems. If it contains results you don't
16182 # want to keep, you may remove or edit it.
16183 #
16184 # config.status only pays attention to the cache file if you give it
16185 # the --recheck option to rerun configure.
16186 #
16187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16189 # following values.
16190
16191 _ACEOF
16192
16193 # The following way of writing the cache mishandles newlines in values,
16194 # but we know of no workaround that is simple, portable, and efficient.
16195 # So, we kill variables containing newlines.
16196 # Ultrix sh set writes to stderr and can't be redirected directly,
16197 # and sets the high bit in the cache file unless we assign to the vars.
16198 (
16199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16200 eval ac_val=\$$ac_var
16201 case $ac_val in #(
16202 *${as_nl}*)
16203 case $ac_var in #(
16204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16206 esac
16207 case $ac_var in #(
16208 _ | IFS | as_nl) ;; #(
16209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16210 *) { eval $ac_var=; unset $ac_var;} ;;
16211 esac ;;
16212 esac
16213 done
16214
16215 (set) 2>&1 |
16216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16217 *${as_nl}ac_space=\ *)
16218 # `set' does not quote correctly, so add quotes: double-quote
16219 # substitution turns \\\\ into \\, and sed turns \\ into \.
16220 sed -n \
16221 "s/'/'\\\\''/g;
16222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16223 ;; #(
16224 *)
16225 # `set' quotes correctly as required by POSIX, so do not add quotes.
16226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16227 ;;
16228 esac |
16229 sort
16230 ) |
16231 sed '
16232 /^ac_cv_env_/b end
16233 t clear
16234 :clear
16235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16236 t end
16237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16238 :end' >>confcache
16239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16240 if test -w "$cache_file"; then
16241 test "x$cache_file" != "x/dev/null" &&
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16243 $as_echo "$as_me: updating cache $cache_file" >&6;}
16244 cat confcache >$cache_file
16245 else
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16247 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16248 fi
16249 fi
16250 rm -f confcache
16251
16252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16253 # Let make expand exec_prefix.
16254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16255
16256 DEFS=-DHAVE_CONFIG_H
16257
16258 ac_libobjs=
16259 ac_ltlibobjs=
16260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16261 # 1. Remove the extension, and $U if already installed.
16262 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16263 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16264 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16265 # will be set to the directory where LIBOBJS objects are built.
16266 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16267 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16268 done
16269 LIBOBJS=$ac_libobjs
16270
16271 LTLIBOBJS=$ac_ltlibobjs
16272
16273
16274 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16275 as_fn_error "conditional \"GENINSRC\" was never defined.
16276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16277 fi
16278 if test -n "$EXEEXT"; then
16279 am__EXEEXT_TRUE=
16280 am__EXEEXT_FALSE='#'
16281 else
16282 am__EXEEXT_TRUE='#'
16283 am__EXEEXT_FALSE=
16284 fi
16285
16286 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16287 as_fn_error "conditional \"AMDEP\" was never defined.
16288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16289 fi
16290 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16291 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16293 fi
16294 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16295 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16297 fi
16298 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16299 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16301 fi
16302 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16303 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16305 fi
16306 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16307 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16309 fi
16310
16311 : ${CONFIG_STATUS=./config.status}
16312 ac_write_fail=0
16313 ac_clean_files_save=$ac_clean_files
16314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16316 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16317 as_write_fail=0
16318 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16319 #! $SHELL
16320 # Generated by $as_me.
16321 # Run this file to recreate the current configuration.
16322 # Compiler output produced by configure, useful for debugging
16323 # configure, is in config.log if it exists.
16324
16325 debug=false
16326 ac_cs_recheck=false
16327 ac_cs_silent=false
16328
16329 SHELL=\${CONFIG_SHELL-$SHELL}
16330 export SHELL
16331 _ASEOF
16332 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16333 ## -------------------- ##
16334 ## M4sh Initialization. ##
16335 ## -------------------- ##
16336
16337 # Be more Bourne compatible
16338 DUALCASE=1; export DUALCASE # for MKS sh
16339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16340 emulate sh
16341 NULLCMD=:
16342 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16343 # is contrary to our usage. Disable this feature.
16344 alias -g '${1+"$@"}'='"$@"'
16345 setopt NO_GLOB_SUBST
16346 else
16347 case `(set -o) 2>/dev/null` in #(
16348 *posix*) :
16349 set -o posix ;; #(
16350 *) :
16351 ;;
16352 esac
16353 fi
16354
16355
16356 as_nl='
16357 '
16358 export as_nl
16359 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16360 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16363 # Prefer a ksh shell builtin over an external printf program on Solaris,
16364 # but without wasting forks for bash or zsh.
16365 if test -z "$BASH_VERSION$ZSH_VERSION" \
16366 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16367 as_echo='print -r --'
16368 as_echo_n='print -rn --'
16369 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16370 as_echo='printf %s\n'
16371 as_echo_n='printf %s'
16372 else
16373 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16374 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16375 as_echo_n='/usr/ucb/echo -n'
16376 else
16377 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16378 as_echo_n_body='eval
16379 arg=$1;
16380 case $arg in #(
16381 *"$as_nl"*)
16382 expr "X$arg" : "X\\(.*\\)$as_nl";
16383 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16384 esac;
16385 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16386 '
16387 export as_echo_n_body
16388 as_echo_n='sh -c $as_echo_n_body as_echo'
16389 fi
16390 export as_echo_body
16391 as_echo='sh -c $as_echo_body as_echo'
16392 fi
16393
16394 # The user is always right.
16395 if test "${PATH_SEPARATOR+set}" != set; then
16396 PATH_SEPARATOR=:
16397 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16398 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16399 PATH_SEPARATOR=';'
16400 }
16401 fi
16402
16403
16404 # IFS
16405 # We need space, tab and new line, in precisely that order. Quoting is
16406 # there to prevent editors from complaining about space-tab.
16407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16408 # splitting by setting IFS to empty value.)
16409 IFS=" "" $as_nl"
16410
16411 # Find who we are. Look in the path if we contain no directory separator.
16412 case $0 in #((
16413 *[\\/]* ) as_myself=$0 ;;
16414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16415 for as_dir in $PATH
16416 do
16417 IFS=$as_save_IFS
16418 test -z "$as_dir" && as_dir=.
16419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16420 done
16421 IFS=$as_save_IFS
16422
16423 ;;
16424 esac
16425 # We did not find ourselves, most probably we were run as `sh COMMAND'
16426 # in which case we are not to be found in the path.
16427 if test "x$as_myself" = x; then
16428 as_myself=$0
16429 fi
16430 if test ! -f "$as_myself"; then
16431 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16432 exit 1
16433 fi
16434
16435 # Unset variables that we do not need and which cause bugs (e.g. in
16436 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16437 # suppresses any "Segmentation fault" message there. '((' could
16438 # trigger a bug in pdksh 5.2.14.
16439 for as_var in BASH_ENV ENV MAIL MAILPATH
16440 do eval test x\${$as_var+set} = xset \
16441 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16442 done
16443 PS1='$ '
16444 PS2='> '
16445 PS4='+ '
16446
16447 # NLS nuisances.
16448 LC_ALL=C
16449 export LC_ALL
16450 LANGUAGE=C
16451 export LANGUAGE
16452
16453 # CDPATH.
16454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16455
16456
16457 # as_fn_error ERROR [LINENO LOG_FD]
16458 # ---------------------------------
16459 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16460 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16461 # script with status $?, using 1 if that was 0.
16462 as_fn_error ()
16463 {
16464 as_status=$?; test $as_status -eq 0 && as_status=1
16465 if test "$3"; then
16466 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16467 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16468 fi
16469 $as_echo "$as_me: error: $1" >&2
16470 as_fn_exit $as_status
16471 } # as_fn_error
16472
16473
16474 # as_fn_set_status STATUS
16475 # -----------------------
16476 # Set $? to STATUS, without forking.
16477 as_fn_set_status ()
16478 {
16479 return $1
16480 } # as_fn_set_status
16481
16482 # as_fn_exit STATUS
16483 # -----------------
16484 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16485 as_fn_exit ()
16486 {
16487 set +e
16488 as_fn_set_status $1
16489 exit $1
16490 } # as_fn_exit
16491
16492 # as_fn_unset VAR
16493 # ---------------
16494 # Portably unset VAR.
16495 as_fn_unset ()
16496 {
16497 { eval $1=; unset $1;}
16498 }
16499 as_unset=as_fn_unset
16500 # as_fn_append VAR VALUE
16501 # ----------------------
16502 # Append the text in VALUE to the end of the definition contained in VAR. Take
16503 # advantage of any shell optimizations that allow amortized linear growth over
16504 # repeated appends, instead of the typical quadratic growth present in naive
16505 # implementations.
16506 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16507 eval 'as_fn_append ()
16508 {
16509 eval $1+=\$2
16510 }'
16511 else
16512 as_fn_append ()
16513 {
16514 eval $1=\$$1\$2
16515 }
16516 fi # as_fn_append
16517
16518 # as_fn_arith ARG...
16519 # ------------------
16520 # Perform arithmetic evaluation on the ARGs, and store the result in the
16521 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16522 # must be portable across $(()) and expr.
16523 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16524 eval 'as_fn_arith ()
16525 {
16526 as_val=$(( $* ))
16527 }'
16528 else
16529 as_fn_arith ()
16530 {
16531 as_val=`expr "$@" || test $? -eq 1`
16532 }
16533 fi # as_fn_arith
16534
16535
16536 if expr a : '\(a\)' >/dev/null 2>&1 &&
16537 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16538 as_expr=expr
16539 else
16540 as_expr=false
16541 fi
16542
16543 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16544 as_basename=basename
16545 else
16546 as_basename=false
16547 fi
16548
16549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16550 as_dirname=dirname
16551 else
16552 as_dirname=false
16553 fi
16554
16555 as_me=`$as_basename -- "$0" ||
16556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16557 X"$0" : 'X\(//\)$' \| \
16558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16559 $as_echo X/"$0" |
16560 sed '/^.*\/\([^/][^/]*\)\/*$/{
16561 s//\1/
16562 q
16563 }
16564 /^X\/\(\/\/\)$/{
16565 s//\1/
16566 q
16567 }
16568 /^X\/\(\/\).*/{
16569 s//\1/
16570 q
16571 }
16572 s/.*/./; q'`
16573
16574 # Avoid depending upon Character Ranges.
16575 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16576 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16577 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16578 as_cr_digits='0123456789'
16579 as_cr_alnum=$as_cr_Letters$as_cr_digits
16580
16581 ECHO_C= ECHO_N= ECHO_T=
16582 case `echo -n x` in #(((((
16583 -n*)
16584 case `echo 'xy\c'` in
16585 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16586 xy) ECHO_C='\c';;
16587 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16588 ECHO_T=' ';;
16589 esac;;
16590 *)
16591 ECHO_N='-n';;
16592 esac
16593
16594 rm -f conf$$ conf$$.exe conf$$.file
16595 if test -d conf$$.dir; then
16596 rm -f conf$$.dir/conf$$.file
16597 else
16598 rm -f conf$$.dir
16599 mkdir conf$$.dir 2>/dev/null
16600 fi
16601 if (echo >conf$$.file) 2>/dev/null; then
16602 if ln -s conf$$.file conf$$ 2>/dev/null; then
16603 as_ln_s='ln -s'
16604 # ... but there are two gotchas:
16605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16607 # In both cases, we have to default to `cp -p'.
16608 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16609 as_ln_s='cp -p'
16610 elif ln conf$$.file conf$$ 2>/dev/null; then
16611 as_ln_s=ln
16612 else
16613 as_ln_s='cp -p'
16614 fi
16615 else
16616 as_ln_s='cp -p'
16617 fi
16618 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16619 rmdir conf$$.dir 2>/dev/null
16620
16621
16622 # as_fn_mkdir_p
16623 # -------------
16624 # Create "$as_dir" as a directory, including parents if necessary.
16625 as_fn_mkdir_p ()
16626 {
16627
16628 case $as_dir in #(
16629 -*) as_dir=./$as_dir;;
16630 esac
16631 test -d "$as_dir" || eval $as_mkdir_p || {
16632 as_dirs=
16633 while :; do
16634 case $as_dir in #(
16635 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16636 *) as_qdir=$as_dir;;
16637 esac
16638 as_dirs="'$as_qdir' $as_dirs"
16639 as_dir=`$as_dirname -- "$as_dir" ||
16640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16641 X"$as_dir" : 'X\(//\)[^/]' \| \
16642 X"$as_dir" : 'X\(//\)$' \| \
16643 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16644 $as_echo X"$as_dir" |
16645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16646 s//\1/
16647 q
16648 }
16649 /^X\(\/\/\)[^/].*/{
16650 s//\1/
16651 q
16652 }
16653 /^X\(\/\/\)$/{
16654 s//\1/
16655 q
16656 }
16657 /^X\(\/\).*/{
16658 s//\1/
16659 q
16660 }
16661 s/.*/./; q'`
16662 test -d "$as_dir" && break
16663 done
16664 test -z "$as_dirs" || eval "mkdir $as_dirs"
16665 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16666
16667
16668 } # as_fn_mkdir_p
16669 if mkdir -p . 2>/dev/null; then
16670 as_mkdir_p='mkdir -p "$as_dir"'
16671 else
16672 test -d ./-p && rmdir ./-p
16673 as_mkdir_p=false
16674 fi
16675
16676 if test -x / >/dev/null 2>&1; then
16677 as_test_x='test -x'
16678 else
16679 if ls -dL / >/dev/null 2>&1; then
16680 as_ls_L_option=L
16681 else
16682 as_ls_L_option=
16683 fi
16684 as_test_x='
16685 eval sh -c '\''
16686 if test -d "$1"; then
16687 test -d "$1/.";
16688 else
16689 case $1 in #(
16690 -*)set "./$1";;
16691 esac;
16692 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16693 ???[sx]*):;;*)false;;esac;fi
16694 '\'' sh
16695 '
16696 fi
16697 as_executable_p=$as_test_x
16698
16699 # Sed expression to map a string onto a valid CPP name.
16700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16701
16702 # Sed expression to map a string onto a valid variable name.
16703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16704
16705
16706 exec 6>&1
16707 ## ----------------------------------- ##
16708 ## Main body of $CONFIG_STATUS script. ##
16709 ## ----------------------------------- ##
16710 _ASEOF
16711 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16712
16713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16714 # Save the log message, to keep $0 and so on meaningful, and to
16715 # report actual input values of CONFIG_FILES etc. instead of their
16716 # values after options handling.
16717 ac_log="
16718 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16719 generated by GNU Autoconf 2.64. Invocation command line was
16720
16721 CONFIG_FILES = $CONFIG_FILES
16722 CONFIG_HEADERS = $CONFIG_HEADERS
16723 CONFIG_LINKS = $CONFIG_LINKS
16724 CONFIG_COMMANDS = $CONFIG_COMMANDS
16725 $ $0 $@
16726
16727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16728 "
16729
16730 _ACEOF
16731
16732 case $ac_config_files in *"
16733 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16734 esac
16735
16736 case $ac_config_headers in *"
16737 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16738 esac
16739
16740
16741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16742 # Files that config.status was made for.
16743 config_files="$ac_config_files"
16744 config_headers="$ac_config_headers"
16745 config_commands="$ac_config_commands"
16746
16747 _ACEOF
16748
16749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16750 ac_cs_usage="\
16751 \`$as_me' instantiates files and other configuration actions
16752 from templates according to the current configuration. Unless the files
16753 and actions are specified as TAGs, all are instantiated by default.
16754
16755 Usage: $0 [OPTION]... [TAG]...
16756
16757 -h, --help print this help, then exit
16758 -V, --version print version number and configuration settings, then exit
16759 -q, --quiet, --silent
16760 do not print progress messages
16761 -d, --debug don't remove temporary files
16762 --recheck update $as_me by reconfiguring in the same conditions
16763 --file=FILE[:TEMPLATE]
16764 instantiate the configuration file FILE
16765 --header=FILE[:TEMPLATE]
16766 instantiate the configuration header FILE
16767
16768 Configuration files:
16769 $config_files
16770
16771 Configuration headers:
16772 $config_headers
16773
16774 Configuration commands:
16775 $config_commands
16776
16777 Report bugs to the package provider.
16778 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16779 General help using GNU software: <http://www.gnu.org/gethelp/>."
16780
16781 _ACEOF
16782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16783 ac_cs_version="\\
16784 GNU OpenMP Runtime Library config.status 1.0
16785 configured by $0, generated by GNU Autoconf 2.64,
16786 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16787
16788 Copyright (C) 2009 Free Software Foundation, Inc.
16789 This config.status script is free software; the Free Software Foundation
16790 gives unlimited permission to copy, distribute and modify it."
16791
16792 ac_pwd='$ac_pwd'
16793 srcdir='$srcdir'
16794 INSTALL='$INSTALL'
16795 MKDIR_P='$MKDIR_P'
16796 AWK='$AWK'
16797 test -n "\$AWK" || AWK=awk
16798 _ACEOF
16799
16800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16801 # The default lists apply if the user does not specify any file.
16802 ac_need_defaults=:
16803 while test $# != 0
16804 do
16805 case $1 in
16806 --*=*)
16807 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16808 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16809 ac_shift=:
16810 ;;
16811 *)
16812 ac_option=$1
16813 ac_optarg=$2
16814 ac_shift=shift
16815 ;;
16816 esac
16817
16818 case $ac_option in
16819 # Handling of the options.
16820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16821 ac_cs_recheck=: ;;
16822 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16823 $as_echo "$ac_cs_version"; exit ;;
16824 --debug | --debu | --deb | --de | --d | -d )
16825 debug=: ;;
16826 --file | --fil | --fi | --f )
16827 $ac_shift
16828 case $ac_optarg in
16829 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16830 esac
16831 as_fn_append CONFIG_FILES " '$ac_optarg'"
16832 ac_need_defaults=false;;
16833 --header | --heade | --head | --hea )
16834 $ac_shift
16835 case $ac_optarg in
16836 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16837 esac
16838 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16839 ac_need_defaults=false;;
16840 --he | --h)
16841 # Conflict between --help and --header
16842 as_fn_error "ambiguous option: \`$1'
16843 Try \`$0 --help' for more information.";;
16844 --help | --hel | -h )
16845 $as_echo "$ac_cs_usage"; exit ;;
16846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16847 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16848 ac_cs_silent=: ;;
16849
16850 # This is an error.
16851 -*) as_fn_error "unrecognized option: \`$1'
16852 Try \`$0 --help' for more information." ;;
16853
16854 *) as_fn_append ac_config_targets " $1"
16855 ac_need_defaults=false ;;
16856
16857 esac
16858 shift
16859 done
16860
16861 ac_configure_extra_args=
16862
16863 if $ac_cs_silent; then
16864 exec 6>/dev/null
16865 ac_configure_extra_args="$ac_configure_extra_args --silent"
16866 fi
16867
16868 _ACEOF
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 if \$ac_cs_recheck; then
16871 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16872 shift
16873 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16874 CONFIG_SHELL='$SHELL'
16875 export CONFIG_SHELL
16876 exec "\$@"
16877 fi
16878
16879 _ACEOF
16880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16881 exec 5>>config.log
16882 {
16883 echo
16884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16885 ## Running $as_me. ##
16886 _ASBOX
16887 $as_echo "$ac_log"
16888 } >&5
16889
16890 _ACEOF
16891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16892 #
16893 # INIT-COMMANDS
16894 #
16895
16896 srcdir="$srcdir"
16897 host="$host"
16898 target="$target"
16899 with_multisubdir="$with_multisubdir"
16900 with_multisrctop="$with_multisrctop"
16901 with_target_subdir="$with_target_subdir"
16902 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16903 multi_basedir="$multi_basedir"
16904 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16905 CC="$CC"
16906 CXX="$CXX"
16907 GFORTRAN="$GFORTRAN"
16908 GCJ="$GCJ"
16909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16910
16911
16912 # The HP-UX ksh and POSIX shell print the target directory to stdout
16913 # if CDPATH is set.
16914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16915
16916 sed_quote_subst='$sed_quote_subst'
16917 double_quote_subst='$double_quote_subst'
16918 delay_variable_subst='$delay_variable_subst'
16919 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16920 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16921 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16922 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16923 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16924 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16925 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16926 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16927 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16928 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16929 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16930 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16931 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16932 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16933 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16934 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16935 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16936 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16937 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16938 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16939 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16940 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16941 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16942 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16943 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16944 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16945 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16946 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16947 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16948 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16949 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16950 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16951 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16952 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16953 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16954 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16955 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16956 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16957 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16958 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16959 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16960 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16961 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16962 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16963 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16964 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16965 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16966 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16967 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"`'
16968 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16969 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16970 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16971 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16972 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16973 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16974 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16975 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16976 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16977 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16978 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16979 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16980 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16981 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16982 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16983 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16984 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16985 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16986 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16987 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16988 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16989 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16990 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16991 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16992 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16993 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16994 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16995 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16996 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16997 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16998 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16999 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17000 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17001 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17002 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17003 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17004 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17005 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17006 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17007 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17008 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17009 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17010 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17011 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17012 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17013 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17014 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17015 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17016 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17017 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17018 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17019 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17020 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17021 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17022 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17023 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17024 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17025 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17026 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17027 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17028 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17029 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17030 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17031 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17032 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17033 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17034 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17035 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17036 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17037 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17038 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17039 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17040 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17041 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17042 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17043 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17044 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17045 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17046 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17047 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17048 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17049 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17050 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17051 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17052 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17053 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17054 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17055 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17056 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17057 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17058 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17059 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17060 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17061 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17062 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17063 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17064 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17065 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17066 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17067 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17068 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17069 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17070 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17071 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17072 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17073 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17074 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17075 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17076 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17077 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17078 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17079 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17080 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17081 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17082 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17083 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17084 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17085 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17086 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17087 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17088 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17089 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17090 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17091 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17092 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17093 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17094
17095 LTCC='$LTCC'
17096 LTCFLAGS='$LTCFLAGS'
17097 compiler='$compiler_DEFAULT'
17098
17099 # A function that is used when there is no print builtin or printf.
17100 func_fallback_echo ()
17101 {
17102 eval 'cat <<_LTECHO_EOF
17103 \$1
17104 _LTECHO_EOF'
17105 }
17106
17107 # Quote evaled strings.
17108 for var in SHELL \
17109 ECHO \
17110 SED \
17111 GREP \
17112 EGREP \
17113 FGREP \
17114 LD \
17115 NM \
17116 LN_S \
17117 lt_SP2NL \
17118 lt_NL2SP \
17119 reload_flag \
17120 OBJDUMP \
17121 deplibs_check_method \
17122 file_magic_cmd \
17123 AR \
17124 AR_FLAGS \
17125 STRIP \
17126 RANLIB \
17127 CC \
17128 CFLAGS \
17129 compiler \
17130 lt_cv_sys_global_symbol_pipe \
17131 lt_cv_sys_global_symbol_to_cdecl \
17132 lt_cv_sys_global_symbol_to_c_name_address \
17133 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17134 lt_prog_compiler_no_builtin_flag \
17135 lt_prog_compiler_wl \
17136 lt_prog_compiler_pic \
17137 lt_prog_compiler_static \
17138 lt_cv_prog_compiler_c_o \
17139 need_locks \
17140 DSYMUTIL \
17141 NMEDIT \
17142 LIPO \
17143 OTOOL \
17144 OTOOL64 \
17145 shrext_cmds \
17146 export_dynamic_flag_spec \
17147 whole_archive_flag_spec \
17148 compiler_needs_object \
17149 with_gnu_ld \
17150 allow_undefined_flag \
17151 no_undefined_flag \
17152 hardcode_libdir_flag_spec \
17153 hardcode_libdir_flag_spec_ld \
17154 hardcode_libdir_separator \
17155 fix_srcfile_path \
17156 exclude_expsyms \
17157 include_expsyms \
17158 file_list_spec \
17159 variables_saved_for_relink \
17160 libname_spec \
17161 library_names_spec \
17162 soname_spec \
17163 install_override_mode \
17164 finish_eval \
17165 old_striplib \
17166 striplib \
17167 compiler_lib_search_dirs \
17168 predep_objects \
17169 postdep_objects \
17170 predeps \
17171 postdeps \
17172 compiler_lib_search_path \
17173 LD_FC \
17174 reload_flag_FC \
17175 compiler_FC \
17176 lt_prog_compiler_no_builtin_flag_FC \
17177 lt_prog_compiler_wl_FC \
17178 lt_prog_compiler_pic_FC \
17179 lt_prog_compiler_static_FC \
17180 lt_cv_prog_compiler_c_o_FC \
17181 export_dynamic_flag_spec_FC \
17182 whole_archive_flag_spec_FC \
17183 compiler_needs_object_FC \
17184 with_gnu_ld_FC \
17185 allow_undefined_flag_FC \
17186 no_undefined_flag_FC \
17187 hardcode_libdir_flag_spec_FC \
17188 hardcode_libdir_flag_spec_ld_FC \
17189 hardcode_libdir_separator_FC \
17190 fix_srcfile_path_FC \
17191 exclude_expsyms_FC \
17192 include_expsyms_FC \
17193 file_list_spec_FC \
17194 compiler_lib_search_dirs_FC \
17195 predep_objects_FC \
17196 postdep_objects_FC \
17197 predeps_FC \
17198 postdeps_FC \
17199 compiler_lib_search_path_FC; do
17200 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17201 *[\\\\\\\`\\"\\\$]*)
17202 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17203 ;;
17204 *)
17205 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17206 ;;
17207 esac
17208 done
17209
17210 # Double-quote double-evaled strings.
17211 for var in reload_cmds \
17212 old_postinstall_cmds \
17213 old_postuninstall_cmds \
17214 old_archive_cmds \
17215 extract_expsyms_cmds \
17216 old_archive_from_new_cmds \
17217 old_archive_from_expsyms_cmds \
17218 archive_cmds \
17219 archive_expsym_cmds \
17220 module_cmds \
17221 module_expsym_cmds \
17222 export_symbols_cmds \
17223 prelink_cmds \
17224 postinstall_cmds \
17225 postuninstall_cmds \
17226 finish_cmds \
17227 sys_lib_search_path_spec \
17228 sys_lib_dlsearch_path_spec \
17229 reload_cmds_FC \
17230 old_archive_cmds_FC \
17231 old_archive_from_new_cmds_FC \
17232 old_archive_from_expsyms_cmds_FC \
17233 archive_cmds_FC \
17234 archive_expsym_cmds_FC \
17235 module_cmds_FC \
17236 module_expsym_cmds_FC \
17237 export_symbols_cmds_FC \
17238 prelink_cmds_FC; do
17239 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17240 *[\\\\\\\`\\"\\\$]*)
17241 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17242 ;;
17243 *)
17244 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17245 ;;
17246 esac
17247 done
17248
17249 ac_aux_dir='$ac_aux_dir'
17250 xsi_shell='$xsi_shell'
17251 lt_shell_append='$lt_shell_append'
17252
17253 # See if we are running on zsh, and set the options which allow our
17254 # commands through without removal of \ escapes INIT.
17255 if test -n "\${ZSH_VERSION+set}" ; then
17256 setopt NO_GLOB_SUBST
17257 fi
17258
17259
17260 PACKAGE='$PACKAGE'
17261 VERSION='$VERSION'
17262 TIMESTAMP='$TIMESTAMP'
17263 RM='$RM'
17264 ofile='$ofile'
17265
17266
17267
17268
17269
17270
17271 GCC="$GCC"
17272 CC="$CC"
17273 acx_cv_header_stdint="$acx_cv_header_stdint"
17274 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17275 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17276 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17277 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17278 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17279 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17280 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17281 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17282 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17283 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17284 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17285 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17286 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17287
17288
17289 _ACEOF
17290
17291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17292
17293 # Handling of arguments.
17294 for ac_config_target in $ac_config_targets
17295 do
17296 case $ac_config_target in
17297 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17298 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17299 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17300 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17301 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17302 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17303 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17304 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17305 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17307 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17308 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17309
17310 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17311 esac
17312 done
17313
17314
17315 # If the user did not use the arguments to specify the items to instantiate,
17316 # then the envvar interface is used. Set only those that are not.
17317 # We use the long form for the default assignment because of an extremely
17318 # bizarre bug on SunOS 4.1.3.
17319 if $ac_need_defaults; then
17320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17323 fi
17324
17325 # Have a temporary directory for convenience. Make it in the build tree
17326 # simply because there is no reason against having it here, and in addition,
17327 # creating and moving files from /tmp can sometimes cause problems.
17328 # Hook for its removal unless debugging.
17329 # Note that there is a small window in which the directory will not be cleaned:
17330 # after its creation but before its name has been assigned to `$tmp'.
17331 $debug ||
17332 {
17333 tmp=
17334 trap 'exit_status=$?
17335 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17336 ' 0
17337 trap 'as_fn_exit 1' 1 2 13 15
17338 }
17339 # Create a (secure) tmp directory for tmp files.
17340
17341 {
17342 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17343 test -n "$tmp" && test -d "$tmp"
17344 } ||
17345 {
17346 tmp=./conf$$-$RANDOM
17347 (umask 077 && mkdir "$tmp")
17348 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17349
17350 # Set up the scripts for CONFIG_FILES section.
17351 # No need to generate them if there are no CONFIG_FILES.
17352 # This happens for instance with `./config.status config.h'.
17353 if test -n "$CONFIG_FILES"; then
17354
17355
17356 ac_cr=`echo X | tr X '\015'`
17357 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17358 # But we know of no other shell where ac_cr would be empty at this
17359 # point, so we can use a bashism as a fallback.
17360 if test "x$ac_cr" = x; then
17361 eval ac_cr=\$\'\\r\'
17362 fi
17363 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17365 ac_cs_awk_cr='\r'
17366 else
17367 ac_cs_awk_cr=$ac_cr
17368 fi
17369
17370 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17371 _ACEOF
17372
17373
17374 {
17375 echo "cat >conf$$subs.awk <<_ACEOF" &&
17376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17377 echo "_ACEOF"
17378 } >conf$$subs.sh ||
17379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17380 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17381 ac_delim='%!_!# '
17382 for ac_last_try in false false false false false :; do
17383 . ./conf$$subs.sh ||
17384 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17385
17386 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17387 if test $ac_delim_n = $ac_delim_num; then
17388 break
17389 elif $ac_last_try; then
17390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17391 else
17392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17393 fi
17394 done
17395 rm -f conf$$subs.sh
17396
17397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17398 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17399 _ACEOF
17400 sed -n '
17401 h
17402 s/^/S["/; s/!.*/"]=/
17403 p
17404 g
17405 s/^[^!]*!//
17406 :repl
17407 t repl
17408 s/'"$ac_delim"'$//
17409 t delim
17410 :nl
17411 h
17412 s/\(.\{148\}\).*/\1/
17413 t more1
17414 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17415 p
17416 n
17417 b repl
17418 :more1
17419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17420 p
17421 g
17422 s/.\{148\}//
17423 t nl
17424 :delim
17425 h
17426 s/\(.\{148\}\).*/\1/
17427 t more2
17428 s/["\\]/\\&/g; s/^/"/; s/$/"/
17429 p
17430 b
17431 :more2
17432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17433 p
17434 g
17435 s/.\{148\}//
17436 t delim
17437 ' <conf$$subs.awk | sed '
17438 /^[^""]/{
17439 N
17440 s/\n//
17441 }
17442 ' >>$CONFIG_STATUS || ac_write_fail=1
17443 rm -f conf$$subs.awk
17444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17445 _ACAWK
17446 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17447 for (key in S) S_is_set[key] = 1
17448 FS = "\a"
17449
17450 }
17451 {
17452 line = $ 0
17453 nfields = split(line, field, "@")
17454 substed = 0
17455 len = length(field[1])
17456 for (i = 2; i < nfields; i++) {
17457 key = field[i]
17458 keylen = length(key)
17459 if (S_is_set[key]) {
17460 value = S[key]
17461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17462 len += length(value) + length(field[++i])
17463 substed = 1
17464 } else
17465 len += 1 + keylen
17466 }
17467
17468 print line
17469 }
17470
17471 _ACAWK
17472 _ACEOF
17473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17476 else
17477 cat
17478 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17479 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17480 _ACEOF
17481
17482 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17483 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17484 # trailing colons and then remove the whole line if VPATH becomes empty
17485 # (actually we leave an empty line to preserve line numbers).
17486 if test "x$srcdir" = x.; then
17487 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17488 s/:*\$(srcdir):*/:/
17489 s/:*\${srcdir}:*/:/
17490 s/:*@srcdir@:*/:/
17491 s/^\([^=]*=[ ]*\):*/\1/
17492 s/:*$//
17493 s/^[^=]*=[ ]*$//
17494 }'
17495 fi
17496
17497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17498 fi # test -n "$CONFIG_FILES"
17499
17500 # Set up the scripts for CONFIG_HEADERS section.
17501 # No need to generate them if there are no CONFIG_HEADERS.
17502 # This happens for instance with `./config.status Makefile'.
17503 if test -n "$CONFIG_HEADERS"; then
17504 cat >"$tmp/defines.awk" <<\_ACAWK ||
17505 BEGIN {
17506 _ACEOF
17507
17508 # Transform confdefs.h into an awk script `defines.awk', embedded as
17509 # here-document in config.status, that substitutes the proper values into
17510 # config.h.in to produce config.h.
17511
17512 # Create a delimiter string that does not exist in confdefs.h, to ease
17513 # handling of long lines.
17514 ac_delim='%!_!# '
17515 for ac_last_try in false false :; do
17516 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17517 if test -z "$ac_t"; then
17518 break
17519 elif $ac_last_try; then
17520 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17521 else
17522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17523 fi
17524 done
17525
17526 # For the awk script, D is an array of macro values keyed by name,
17527 # likewise P contains macro parameters if any. Preserve backslash
17528 # newline sequences.
17529
17530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17531 sed -n '
17532 s/.\{148\}/&'"$ac_delim"'/g
17533 t rset
17534 :rset
17535 s/^[ ]*#[ ]*define[ ][ ]*/ /
17536 t def
17537 d
17538 :def
17539 s/\\$//
17540 t bsnl
17541 s/["\\]/\\&/g
17542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17543 D["\1"]=" \3"/p
17544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17545 d
17546 :bsnl
17547 s/["\\]/\\&/g
17548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17549 D["\1"]=" \3\\\\\\n"\\/p
17550 t cont
17551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17552 t cont
17553 d
17554 :cont
17555 n
17556 s/.\{148\}/&'"$ac_delim"'/g
17557 t clear
17558 :clear
17559 s/\\$//
17560 t bsnlc
17561 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17562 d
17563 :bsnlc
17564 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17565 b cont
17566 ' <confdefs.h | sed '
17567 s/'"$ac_delim"'/"\\\
17568 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17569
17570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17571 for (key in D) D_is_set[key] = 1
17572 FS = "\a"
17573 }
17574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17575 line = \$ 0
17576 split(line, arg, " ")
17577 if (arg[1] == "#") {
17578 defundef = arg[2]
17579 mac1 = arg[3]
17580 } else {
17581 defundef = substr(arg[1], 2)
17582 mac1 = arg[2]
17583 }
17584 split(mac1, mac2, "(") #)
17585 macro = mac2[1]
17586 prefix = substr(line, 1, index(line, defundef) - 1)
17587 if (D_is_set[macro]) {
17588 # Preserve the white space surrounding the "#".
17589 print prefix "define", macro P[macro] D[macro]
17590 next
17591 } else {
17592 # Replace #undef with comments. This is necessary, for example,
17593 # in the case of _POSIX_SOURCE, which is predefined and required
17594 # on some systems where configure will not decide to define it.
17595 if (defundef == "undef") {
17596 print "/*", prefix defundef, macro, "*/"
17597 next
17598 }
17599 }
17600 }
17601 { print }
17602 _ACAWK
17603 _ACEOF
17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17605 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17606 fi # test -n "$CONFIG_HEADERS"
17607
17608
17609 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17610 shift
17611 for ac_tag
17612 do
17613 case $ac_tag in
17614 :[FHLC]) ac_mode=$ac_tag; continue;;
17615 esac
17616 case $ac_mode$ac_tag in
17617 :[FHL]*:*);;
17618 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17619 :[FH]-) ac_tag=-:-;;
17620 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17621 esac
17622 ac_save_IFS=$IFS
17623 IFS=:
17624 set x $ac_tag
17625 IFS=$ac_save_IFS
17626 shift
17627 ac_file=$1
17628 shift
17629
17630 case $ac_mode in
17631 :L) ac_source=$1;;
17632 :[FH])
17633 ac_file_inputs=
17634 for ac_f
17635 do
17636 case $ac_f in
17637 -) ac_f="$tmp/stdin";;
17638 *) # Look for the file first in the build tree, then in the source tree
17639 # (if the path is not absolute). The absolute path cannot be DOS-style,
17640 # because $ac_f cannot contain `:'.
17641 test -f "$ac_f" ||
17642 case $ac_f in
17643 [\\/$]*) false;;
17644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17645 esac ||
17646 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17647 esac
17648 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17649 as_fn_append ac_file_inputs " '$ac_f'"
17650 done
17651
17652 # Let's still pretend it is `configure' which instantiates (i.e., don't
17653 # use $as_me), people would be surprised to read:
17654 # /* config.h. Generated by config.status. */
17655 configure_input='Generated from '`
17656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17657 `' by configure.'
17658 if test x"$ac_file" != x-; then
17659 configure_input="$ac_file. $configure_input"
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17661 $as_echo "$as_me: creating $ac_file" >&6;}
17662 fi
17663 # Neutralize special characters interpreted by sed in replacement strings.
17664 case $configure_input in #(
17665 *\&* | *\|* | *\\* )
17666 ac_sed_conf_input=`$as_echo "$configure_input" |
17667 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17668 *) ac_sed_conf_input=$configure_input;;
17669 esac
17670
17671 case $ac_tag in
17672 *:-:* | *:-) cat >"$tmp/stdin" \
17673 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17674 esac
17675 ;;
17676 esac
17677
17678 ac_dir=`$as_dirname -- "$ac_file" ||
17679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17680 X"$ac_file" : 'X\(//\)[^/]' \| \
17681 X"$ac_file" : 'X\(//\)$' \| \
17682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17683 $as_echo X"$ac_file" |
17684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17685 s//\1/
17686 q
17687 }
17688 /^X\(\/\/\)[^/].*/{
17689 s//\1/
17690 q
17691 }
17692 /^X\(\/\/\)$/{
17693 s//\1/
17694 q
17695 }
17696 /^X\(\/\).*/{
17697 s//\1/
17698 q
17699 }
17700 s/.*/./; q'`
17701 as_dir="$ac_dir"; as_fn_mkdir_p
17702 ac_builddir=.
17703
17704 case "$ac_dir" in
17705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17706 *)
17707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17708 # A ".." for each directory in $ac_dir_suffix.
17709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17710 case $ac_top_builddir_sub in
17711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17713 esac ;;
17714 esac
17715 ac_abs_top_builddir=$ac_pwd
17716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17717 # for backward compatibility:
17718 ac_top_builddir=$ac_top_build_prefix
17719
17720 case $srcdir in
17721 .) # We are building in place.
17722 ac_srcdir=.
17723 ac_top_srcdir=$ac_top_builddir_sub
17724 ac_abs_top_srcdir=$ac_pwd ;;
17725 [\\/]* | ?:[\\/]* ) # Absolute name.
17726 ac_srcdir=$srcdir$ac_dir_suffix;
17727 ac_top_srcdir=$srcdir
17728 ac_abs_top_srcdir=$srcdir ;;
17729 *) # Relative name.
17730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17731 ac_top_srcdir=$ac_top_build_prefix$srcdir
17732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17733 esac
17734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17735
17736
17737 case $ac_mode in
17738 :F)
17739 #
17740 # CONFIG_FILE
17741 #
17742
17743 case $INSTALL in
17744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17745 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17746 esac
17747 ac_MKDIR_P=$MKDIR_P
17748 case $MKDIR_P in
17749 [\\/$]* | ?:[\\/]* ) ;;
17750 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17751 esac
17752 _ACEOF
17753
17754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17755 # If the template does not know about datarootdir, expand it.
17756 # FIXME: This hack should be removed a few years after 2.60.
17757 ac_datarootdir_hack=; ac_datarootdir_seen=
17758 ac_sed_dataroot='
17759 /datarootdir/ {
17760 p
17761 q
17762 }
17763 /@datadir@/p
17764 /@docdir@/p
17765 /@infodir@/p
17766 /@localedir@/p
17767 /@mandir@/p'
17768 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17769 *datarootdir*) ac_datarootdir_seen=yes;;
17770 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17772 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17773 _ACEOF
17774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17775 ac_datarootdir_hack='
17776 s&@datadir@&$datadir&g
17777 s&@docdir@&$docdir&g
17778 s&@infodir@&$infodir&g
17779 s&@localedir@&$localedir&g
17780 s&@mandir@&$mandir&g
17781 s&\\\${datarootdir}&$datarootdir&g' ;;
17782 esac
17783 _ACEOF
17784
17785 # Neutralize VPATH when `$srcdir' = `.'.
17786 # Shell code in configure.ac might set extrasub.
17787 # FIXME: do we really want to maintain this feature?
17788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17789 ac_sed_extra="$ac_vpsub
17790 $extrasub
17791 _ACEOF
17792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17793 :t
17794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17795 s|@configure_input@|$ac_sed_conf_input|;t t
17796 s&@top_builddir@&$ac_top_builddir_sub&;t t
17797 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17798 s&@srcdir@&$ac_srcdir&;t t
17799 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17800 s&@top_srcdir@&$ac_top_srcdir&;t t
17801 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17802 s&@builddir@&$ac_builddir&;t t
17803 s&@abs_builddir@&$ac_abs_builddir&;t t
17804 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17805 s&@INSTALL@&$ac_INSTALL&;t t
17806 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17807 $ac_datarootdir_hack
17808 "
17809 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17810 || as_fn_error "could not create $ac_file" "$LINENO" 5
17811
17812 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17813 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17816 which seems to be undefined. Please make sure it is defined." >&5
17817 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17818 which seems to be undefined. Please make sure it is defined." >&2;}
17819
17820 rm -f "$tmp/stdin"
17821 case $ac_file in
17822 -) cat "$tmp/out" && rm -f "$tmp/out";;
17823 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17824 esac \
17825 || as_fn_error "could not create $ac_file" "$LINENO" 5
17826 ;;
17827 :H)
17828 #
17829 # CONFIG_HEADER
17830 #
17831 if test x"$ac_file" != x-; then
17832 {
17833 $as_echo "/* $configure_input */" \
17834 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17835 } >"$tmp/config.h" \
17836 || as_fn_error "could not create $ac_file" "$LINENO" 5
17837 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17839 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17840 else
17841 rm -f "$ac_file"
17842 mv "$tmp/config.h" "$ac_file" \
17843 || as_fn_error "could not create $ac_file" "$LINENO" 5
17844 fi
17845 else
17846 $as_echo "/* $configure_input */" \
17847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17848 || as_fn_error "could not create -" "$LINENO" 5
17849 fi
17850 # Compute "$ac_file"'s index in $config_headers.
17851 _am_arg="$ac_file"
17852 _am_stamp_count=1
17853 for _am_header in $config_headers :; do
17854 case $_am_header in
17855 $_am_arg | $_am_arg:* )
17856 break ;;
17857 * )
17858 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17859 esac
17860 done
17861 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17862 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17863 X"$_am_arg" : 'X\(//\)[^/]' \| \
17864 X"$_am_arg" : 'X\(//\)$' \| \
17865 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17866 $as_echo X"$_am_arg" |
17867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17868 s//\1/
17869 q
17870 }
17871 /^X\(\/\/\)[^/].*/{
17872 s//\1/
17873 q
17874 }
17875 /^X\(\/\/\)$/{
17876 s//\1/
17877 q
17878 }
17879 /^X\(\/\).*/{
17880 s//\1/
17881 q
17882 }
17883 s/.*/./; q'`/stamp-h$_am_stamp_count
17884 ;;
17885
17886 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17887 $as_echo "$as_me: executing $ac_file commands" >&6;}
17888 ;;
17889 esac
17890
17891
17892 case $ac_file$ac_mode in
17893 "default-1":C)
17894 # Only add multilib support code if we just rebuilt the top-level
17895 # Makefile.
17896 case " $CONFIG_FILES " in
17897 *" Makefile "*)
17898 ac_file=Makefile . ${multi_basedir}/config-ml.in
17899 ;;
17900 esac ;;
17901 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17902 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17903 # are listed without --file. Let's play safe and only enable the eval
17904 # if we detect the quoting.
17905 case $CONFIG_FILES in
17906 *\'*) eval set x "$CONFIG_FILES" ;;
17907 *) set x $CONFIG_FILES ;;
17908 esac
17909 shift
17910 for mf
17911 do
17912 # Strip MF so we end up with the name of the file.
17913 mf=`echo "$mf" | sed -e 's/:.*$//'`
17914 # Check whether this is an Automake generated Makefile or not.
17915 # We used to match only the files named `Makefile.in', but
17916 # some people rename them; so instead we look at the file content.
17917 # Grep'ing the first line is not enough: some people post-process
17918 # each Makefile.in and add a new line on top of each file to say so.
17919 # Grep'ing the whole file is not good either: AIX grep has a line
17920 # limit of 2048, but all sed's we know have understand at least 4000.
17921 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17922 dirpart=`$as_dirname -- "$mf" ||
17923 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17924 X"$mf" : 'X\(//\)[^/]' \| \
17925 X"$mf" : 'X\(//\)$' \| \
17926 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17927 $as_echo X"$mf" |
17928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17929 s//\1/
17930 q
17931 }
17932 /^X\(\/\/\)[^/].*/{
17933 s//\1/
17934 q
17935 }
17936 /^X\(\/\/\)$/{
17937 s//\1/
17938 q
17939 }
17940 /^X\(\/\).*/{
17941 s//\1/
17942 q
17943 }
17944 s/.*/./; q'`
17945 else
17946 continue
17947 fi
17948 # Extract the definition of DEPDIR, am__include, and am__quote
17949 # from the Makefile without running `make'.
17950 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17951 test -z "$DEPDIR" && continue
17952 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17953 test -z "am__include" && continue
17954 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17955 # When using ansi2knr, U may be empty or an underscore; expand it
17956 U=`sed -n 's/^U = //p' < "$mf"`
17957 # Find all dependency output files, they are included files with
17958 # $(DEPDIR) in their names. We invoke sed twice because it is the
17959 # simplest approach to changing $(DEPDIR) to its actual value in the
17960 # expansion.
17961 for file in `sed -n "
17962 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17963 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17964 # Make sure the directory exists.
17965 test -f "$dirpart/$file" && continue
17966 fdir=`$as_dirname -- "$file" ||
17967 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17968 X"$file" : 'X\(//\)[^/]' \| \
17969 X"$file" : 'X\(//\)$' \| \
17970 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17971 $as_echo X"$file" |
17972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17973 s//\1/
17974 q
17975 }
17976 /^X\(\/\/\)[^/].*/{
17977 s//\1/
17978 q
17979 }
17980 /^X\(\/\/\)$/{
17981 s//\1/
17982 q
17983 }
17984 /^X\(\/\).*/{
17985 s//\1/
17986 q
17987 }
17988 s/.*/./; q'`
17989 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17990 # echo "creating $dirpart/$file"
17991 echo '# dummy' > "$dirpart/$file"
17992 done
17993 done
17994 }
17995 ;;
17996 "libtool":C)
17997
17998 # See if we are running on zsh, and set the options which allow our
17999 # commands through without removal of \ escapes.
18000 if test -n "${ZSH_VERSION+set}" ; then
18001 setopt NO_GLOB_SUBST
18002 fi
18003
18004 cfgfile="${ofile}T"
18005 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18006 $RM "$cfgfile"
18007
18008 cat <<_LT_EOF >> "$cfgfile"
18009 #! $SHELL
18010
18011 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18012 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18014 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18015 #
18016 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18017 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18018 # Written by Gordon Matzigkeit, 1996
18019 #
18020 # This file is part of GNU Libtool.
18021 #
18022 # GNU Libtool is free software; you can redistribute it and/or
18023 # modify it under the terms of the GNU General Public License as
18024 # published by the Free Software Foundation; either version 2 of
18025 # the License, or (at your option) any later version.
18026 #
18027 # As a special exception to the GNU General Public License,
18028 # if you distribute this file as part of a program or library that
18029 # is built using GNU Libtool, you may include this file under the
18030 # same distribution terms that you use for the rest of that program.
18031 #
18032 # GNU Libtool is distributed in the hope that it will be useful,
18033 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18034 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18035 # GNU General Public License for more details.
18036 #
18037 # You should have received a copy of the GNU General Public License
18038 # along with GNU Libtool; see the file COPYING. If not, a copy
18039 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18040 # obtained by writing to the Free Software Foundation, Inc.,
18041 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18042
18043
18044 # The names of the tagged configurations supported by this script.
18045 available_tags="FC "
18046
18047 # ### BEGIN LIBTOOL CONFIG
18048
18049 # Which release of libtool.m4 was used?
18050 macro_version=$macro_version
18051 macro_revision=$macro_revision
18052
18053 # Whether or not to build shared libraries.
18054 build_libtool_libs=$enable_shared
18055
18056 # Whether or not to build static libraries.
18057 build_old_libs=$enable_static
18058
18059 # What type of objects to build.
18060 pic_mode=$pic_mode
18061
18062 # Whether or not to optimize for fast installation.
18063 fast_install=$enable_fast_install
18064
18065 # Shell to use when invoking shell scripts.
18066 SHELL=$lt_SHELL
18067
18068 # An echo program that protects backslashes.
18069 ECHO=$lt_ECHO
18070
18071 # The host system.
18072 host_alias=$host_alias
18073 host=$host
18074 host_os=$host_os
18075
18076 # The build system.
18077 build_alias=$build_alias
18078 build=$build
18079 build_os=$build_os
18080
18081 # A sed program that does not truncate output.
18082 SED=$lt_SED
18083
18084 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18085 Xsed="\$SED -e 1s/^X//"
18086
18087 # A grep program that handles long lines.
18088 GREP=$lt_GREP
18089
18090 # An ERE matcher.
18091 EGREP=$lt_EGREP
18092
18093 # A literal string matcher.
18094 FGREP=$lt_FGREP
18095
18096 # A BSD- or MS-compatible name lister.
18097 NM=$lt_NM
18098
18099 # Whether we need soft or hard links.
18100 LN_S=$lt_LN_S
18101
18102 # What is the maximum length of a command?
18103 max_cmd_len=$max_cmd_len
18104
18105 # Object file suffix (normally "o").
18106 objext=$ac_objext
18107
18108 # Executable file suffix (normally "").
18109 exeext=$exeext
18110
18111 # whether the shell understands "unset".
18112 lt_unset=$lt_unset
18113
18114 # turn spaces into newlines.
18115 SP2NL=$lt_lt_SP2NL
18116
18117 # turn newlines into spaces.
18118 NL2SP=$lt_lt_NL2SP
18119
18120 # An object symbol dumper.
18121 OBJDUMP=$lt_OBJDUMP
18122
18123 # Method to check whether dependent libraries are shared objects.
18124 deplibs_check_method=$lt_deplibs_check_method
18125
18126 # Command to use when deplibs_check_method == "file_magic".
18127 file_magic_cmd=$lt_file_magic_cmd
18128
18129 # The archiver.
18130 AR=$lt_AR
18131 AR_FLAGS=$lt_AR_FLAGS
18132
18133 # A symbol stripping program.
18134 STRIP=$lt_STRIP
18135
18136 # Commands used to install an old-style archive.
18137 RANLIB=$lt_RANLIB
18138 old_postinstall_cmds=$lt_old_postinstall_cmds
18139 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18140
18141 # Whether to use a lock for old archive extraction.
18142 lock_old_archive_extraction=$lock_old_archive_extraction
18143
18144 # A C compiler.
18145 LTCC=$lt_CC
18146
18147 # LTCC compiler flags.
18148 LTCFLAGS=$lt_CFLAGS
18149
18150 # Take the output of nm and produce a listing of raw symbols and C names.
18151 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18152
18153 # Transform the output of nm in a proper C declaration.
18154 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18155
18156 # Transform the output of nm in a C name address pair.
18157 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18158
18159 # Transform the output of nm in a C name address pair when lib prefix is needed.
18160 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18161
18162 # The name of the directory that contains temporary libtool files.
18163 objdir=$objdir
18164
18165 # Used to examine libraries when file_magic_cmd begins with "file".
18166 MAGIC_CMD=$MAGIC_CMD
18167
18168 # Must we lock files when doing compilation?
18169 need_locks=$lt_need_locks
18170
18171 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18172 DSYMUTIL=$lt_DSYMUTIL
18173
18174 # Tool to change global to local symbols on Mac OS X.
18175 NMEDIT=$lt_NMEDIT
18176
18177 # Tool to manipulate fat objects and archives on Mac OS X.
18178 LIPO=$lt_LIPO
18179
18180 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18181 OTOOL=$lt_OTOOL
18182
18183 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18184 OTOOL64=$lt_OTOOL64
18185
18186 # Old archive suffix (normally "a").
18187 libext=$libext
18188
18189 # Shared library suffix (normally ".so").
18190 shrext_cmds=$lt_shrext_cmds
18191
18192 # The commands to extract the exported symbol list from a shared archive.
18193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18194
18195 # Variables whose values should be saved in libtool wrapper scripts and
18196 # restored at link time.
18197 variables_saved_for_relink=$lt_variables_saved_for_relink
18198
18199 # Do we need the "lib" prefix for modules?
18200 need_lib_prefix=$need_lib_prefix
18201
18202 # Do we need a version for libraries?
18203 need_version=$need_version
18204
18205 # Library versioning type.
18206 version_type=$version_type
18207
18208 # Shared library runtime path variable.
18209 runpath_var=$runpath_var
18210
18211 # Shared library path variable.
18212 shlibpath_var=$shlibpath_var
18213
18214 # Is shlibpath searched before the hard-coded library search path?
18215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18216
18217 # Format of library name prefix.
18218 libname_spec=$lt_libname_spec
18219
18220 # List of archive names. First name is the real one, the rest are links.
18221 # The last name is the one that the linker finds with -lNAME
18222 library_names_spec=$lt_library_names_spec
18223
18224 # The coded name of the library, if different from the real name.
18225 soname_spec=$lt_soname_spec
18226
18227 # Permission mode override for installation of shared libraries.
18228 install_override_mode=$lt_install_override_mode
18229
18230 # Command to use after installation of a shared archive.
18231 postinstall_cmds=$lt_postinstall_cmds
18232
18233 # Command to use after uninstallation of a shared archive.
18234 postuninstall_cmds=$lt_postuninstall_cmds
18235
18236 # Commands used to finish a libtool library installation in a directory.
18237 finish_cmds=$lt_finish_cmds
18238
18239 # As "finish_cmds", except a single script fragment to be evaled but
18240 # not shown.
18241 finish_eval=$lt_finish_eval
18242
18243 # Whether we should hardcode library paths into libraries.
18244 hardcode_into_libs=$hardcode_into_libs
18245
18246 # Compile-time system search path for libraries.
18247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18248
18249 # Run-time system search path for libraries.
18250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18251
18252 # Whether dlopen is supported.
18253 dlopen_support=$enable_dlopen
18254
18255 # Whether dlopen of programs is supported.
18256 dlopen_self=$enable_dlopen_self
18257
18258 # Whether dlopen of statically linked programs is supported.
18259 dlopen_self_static=$enable_dlopen_self_static
18260
18261 # Commands to strip libraries.
18262 old_striplib=$lt_old_striplib
18263 striplib=$lt_striplib
18264
18265
18266 # The linker used to build libraries.
18267 LD=$lt_LD
18268
18269 # How to create reloadable object files.
18270 reload_flag=$lt_reload_flag
18271 reload_cmds=$lt_reload_cmds
18272
18273 # Commands used to build an old-style archive.
18274 old_archive_cmds=$lt_old_archive_cmds
18275
18276 # A language specific compiler.
18277 CC=$lt_compiler
18278
18279 # Is the compiler the GNU compiler?
18280 with_gcc=$GCC
18281
18282 # Compiler flag to turn off builtin functions.
18283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18284
18285 # How to pass a linker flag through the compiler.
18286 wl=$lt_lt_prog_compiler_wl
18287
18288 # Additional compiler flags for building library objects.
18289 pic_flag=$lt_lt_prog_compiler_pic
18290
18291 # Compiler flag to prevent dynamic linking.
18292 link_static_flag=$lt_lt_prog_compiler_static
18293
18294 # Does compiler simultaneously support -c and -o options?
18295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18296
18297 # Whether or not to add -lc for building shared libraries.
18298 build_libtool_need_lc=$archive_cmds_need_lc
18299
18300 # Whether or not to disallow shared libs when runtime libs are static.
18301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18302
18303 # Compiler flag to allow reflexive dlopens.
18304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18305
18306 # Compiler flag to generate shared objects directly from archives.
18307 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18308
18309 # Whether the compiler copes with passing no objects directly.
18310 compiler_needs_object=$lt_compiler_needs_object
18311
18312 # Create an old-style archive from a shared archive.
18313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18314
18315 # Create a temporary old-style archive to link instead of a shared archive.
18316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18317
18318 # Commands used to build a shared archive.
18319 archive_cmds=$lt_archive_cmds
18320 archive_expsym_cmds=$lt_archive_expsym_cmds
18321
18322 # Commands used to build a loadable module if different from building
18323 # a shared archive.
18324 module_cmds=$lt_module_cmds
18325 module_expsym_cmds=$lt_module_expsym_cmds
18326
18327 # Whether we are building with GNU ld or not.
18328 with_gnu_ld=$lt_with_gnu_ld
18329
18330 # Flag that allows shared libraries with undefined symbols to be built.
18331 allow_undefined_flag=$lt_allow_undefined_flag
18332
18333 # Flag that enforces no undefined symbols.
18334 no_undefined_flag=$lt_no_undefined_flag
18335
18336 # Flag to hardcode \$libdir into a binary during linking.
18337 # This must work even if \$libdir does not exist
18338 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18339
18340 # If ld is used when linking, flag to hardcode \$libdir into a binary
18341 # during linking. This must work even if \$libdir does not exist.
18342 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18343
18344 # Whether we need a single "-rpath" flag with a separated argument.
18345 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18346
18347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18348 # DIR into the resulting binary.
18349 hardcode_direct=$hardcode_direct
18350
18351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18352 # DIR into the resulting binary and the resulting library dependency is
18353 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18354 # library is relocated.
18355 hardcode_direct_absolute=$hardcode_direct_absolute
18356
18357 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18358 # into the resulting binary.
18359 hardcode_minus_L=$hardcode_minus_L
18360
18361 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18362 # into the resulting binary.
18363 hardcode_shlibpath_var=$hardcode_shlibpath_var
18364
18365 # Set to "yes" if building a shared library automatically hardcodes DIR
18366 # into the library and all subsequent libraries and executables linked
18367 # against it.
18368 hardcode_automatic=$hardcode_automatic
18369
18370 # Set to yes if linker adds runtime paths of dependent libraries
18371 # to runtime path list.
18372 inherit_rpath=$inherit_rpath
18373
18374 # Whether libtool must link a program against all its dependency libraries.
18375 link_all_deplibs=$link_all_deplibs
18376
18377 # Fix the shell variable \$srcfile for the compiler.
18378 fix_srcfile_path=$lt_fix_srcfile_path
18379
18380 # Set to "yes" if exported symbols are required.
18381 always_export_symbols=$always_export_symbols
18382
18383 # The commands to list exported symbols.
18384 export_symbols_cmds=$lt_export_symbols_cmds
18385
18386 # Symbols that should not be listed in the preloaded symbols.
18387 exclude_expsyms=$lt_exclude_expsyms
18388
18389 # Symbols that must always be exported.
18390 include_expsyms=$lt_include_expsyms
18391
18392 # Commands necessary for linking programs (against libraries) with templates.
18393 prelink_cmds=$lt_prelink_cmds
18394
18395 # Specify filename containing input files.
18396 file_list_spec=$lt_file_list_spec
18397
18398 # How to hardcode a shared library path into an executable.
18399 hardcode_action=$hardcode_action
18400
18401 # The directories searched by this compiler when creating a shared library.
18402 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18403
18404 # Dependencies to place before and after the objects being linked to
18405 # create a shared library.
18406 predep_objects=$lt_predep_objects
18407 postdep_objects=$lt_postdep_objects
18408 predeps=$lt_predeps
18409 postdeps=$lt_postdeps
18410
18411 # The library search path used internally by the compiler when linking
18412 # a shared library.
18413 compiler_lib_search_path=$lt_compiler_lib_search_path
18414
18415 # ### END LIBTOOL CONFIG
18416
18417 _LT_EOF
18418
18419 case $host_os in
18420 aix3*)
18421 cat <<\_LT_EOF >> "$cfgfile"
18422 # AIX sometimes has problems with the GCC collect2 program. For some
18423 # reason, if we set the COLLECT_NAMES environment variable, the problems
18424 # vanish in a puff of smoke.
18425 if test "X${COLLECT_NAMES+set}" != Xset; then
18426 COLLECT_NAMES=
18427 export COLLECT_NAMES
18428 fi
18429 _LT_EOF
18430 ;;
18431 esac
18432
18433
18434 ltmain="$ac_aux_dir/ltmain.sh"
18435
18436
18437 # We use sed instead of cat because bash on DJGPP gets confused if
18438 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18439 # text mode, it properly converts lines to CR/LF. This bash problem
18440 # is reportedly fixed, but why not run on old versions too?
18441 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18442 || (rm -f "$cfgfile"; exit 1)
18443
18444 case $xsi_shell in
18445 yes)
18446 cat << \_LT_EOF >> "$cfgfile"
18447
18448 # func_dirname file append nondir_replacement
18449 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18450 # otherwise set result to NONDIR_REPLACEMENT.
18451 func_dirname ()
18452 {
18453 case ${1} in
18454 */*) func_dirname_result="${1%/*}${2}" ;;
18455 * ) func_dirname_result="${3}" ;;
18456 esac
18457 }
18458
18459 # func_basename file
18460 func_basename ()
18461 {
18462 func_basename_result="${1##*/}"
18463 }
18464
18465 # func_dirname_and_basename file append nondir_replacement
18466 # perform func_basename and func_dirname in a single function
18467 # call:
18468 # dirname: Compute the dirname of FILE. If nonempty,
18469 # add APPEND to the result, otherwise set result
18470 # to NONDIR_REPLACEMENT.
18471 # value returned in "$func_dirname_result"
18472 # basename: Compute filename of FILE.
18473 # value retuned in "$func_basename_result"
18474 # Implementation must be kept synchronized with func_dirname
18475 # and func_basename. For efficiency, we do not delegate to
18476 # those functions but instead duplicate the functionality here.
18477 func_dirname_and_basename ()
18478 {
18479 case ${1} in
18480 */*) func_dirname_result="${1%/*}${2}" ;;
18481 * ) func_dirname_result="${3}" ;;
18482 esac
18483 func_basename_result="${1##*/}"
18484 }
18485
18486 # func_stripname prefix suffix name
18487 # strip PREFIX and SUFFIX off of NAME.
18488 # PREFIX and SUFFIX must not contain globbing or regex special
18489 # characters, hashes, percent signs, but SUFFIX may contain a leading
18490 # dot (in which case that matches only a dot).
18491 func_stripname ()
18492 {
18493 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18494 # positional parameters, so assign one to ordinary parameter first.
18495 func_stripname_result=${3}
18496 func_stripname_result=${func_stripname_result#"${1}"}
18497 func_stripname_result=${func_stripname_result%"${2}"}
18498 }
18499
18500 # func_opt_split
18501 func_opt_split ()
18502 {
18503 func_opt_split_opt=${1%%=*}
18504 func_opt_split_arg=${1#*=}
18505 }
18506
18507 # func_lo2o object
18508 func_lo2o ()
18509 {
18510 case ${1} in
18511 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18512 *) func_lo2o_result=${1} ;;
18513 esac
18514 }
18515
18516 # func_xform libobj-or-source
18517 func_xform ()
18518 {
18519 func_xform_result=${1%.*}.lo
18520 }
18521
18522 # func_arith arithmetic-term...
18523 func_arith ()
18524 {
18525 func_arith_result=$(( $* ))
18526 }
18527
18528 # func_len string
18529 # STRING may not start with a hyphen.
18530 func_len ()
18531 {
18532 func_len_result=${#1}
18533 }
18534
18535 _LT_EOF
18536 ;;
18537 *) # Bourne compatible functions.
18538 cat << \_LT_EOF >> "$cfgfile"
18539
18540 # func_dirname file append nondir_replacement
18541 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18542 # otherwise set result to NONDIR_REPLACEMENT.
18543 func_dirname ()
18544 {
18545 # Extract subdirectory from the argument.
18546 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18547 if test "X$func_dirname_result" = "X${1}"; then
18548 func_dirname_result="${3}"
18549 else
18550 func_dirname_result="$func_dirname_result${2}"
18551 fi
18552 }
18553
18554 # func_basename file
18555 func_basename ()
18556 {
18557 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18558 }
18559
18560
18561 # func_stripname prefix suffix name
18562 # strip PREFIX and SUFFIX off of NAME.
18563 # PREFIX and SUFFIX must not contain globbing or regex special
18564 # characters, hashes, percent signs, but SUFFIX may contain a leading
18565 # dot (in which case that matches only a dot).
18566 # func_strip_suffix prefix name
18567 func_stripname ()
18568 {
18569 case ${2} in
18570 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18571 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18572 esac
18573 }
18574
18575 # sed scripts:
18576 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18577 my_sed_long_arg='1s/^-[^=]*=//'
18578
18579 # func_opt_split
18580 func_opt_split ()
18581 {
18582 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18583 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18584 }
18585
18586 # func_lo2o object
18587 func_lo2o ()
18588 {
18589 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18590 }
18591
18592 # func_xform libobj-or-source
18593 func_xform ()
18594 {
18595 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18596 }
18597
18598 # func_arith arithmetic-term...
18599 func_arith ()
18600 {
18601 func_arith_result=`expr "$@"`
18602 }
18603
18604 # func_len string
18605 # STRING may not start with a hyphen.
18606 func_len ()
18607 {
18608 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18609 }
18610
18611 _LT_EOF
18612 esac
18613
18614 case $lt_shell_append in
18615 yes)
18616 cat << \_LT_EOF >> "$cfgfile"
18617
18618 # func_append var value
18619 # Append VALUE to the end of shell variable VAR.
18620 func_append ()
18621 {
18622 eval "$1+=\$2"
18623 }
18624 _LT_EOF
18625 ;;
18626 *)
18627 cat << \_LT_EOF >> "$cfgfile"
18628
18629 # func_append var value
18630 # Append VALUE to the end of shell variable VAR.
18631 func_append ()
18632 {
18633 eval "$1=\$$1\$2"
18634 }
18635
18636 _LT_EOF
18637 ;;
18638 esac
18639
18640
18641 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18642 || (rm -f "$cfgfile"; exit 1)
18643
18644 mv -f "$cfgfile" "$ofile" ||
18645 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18646 chmod +x "$ofile"
18647
18648
18649 cat <<_LT_EOF >> "$ofile"
18650
18651 # ### BEGIN LIBTOOL TAG CONFIG: FC
18652
18653 # The linker used to build libraries.
18654 LD=$lt_LD_FC
18655
18656 # How to create reloadable object files.
18657 reload_flag=$lt_reload_flag_FC
18658 reload_cmds=$lt_reload_cmds_FC
18659
18660 # Commands used to build an old-style archive.
18661 old_archive_cmds=$lt_old_archive_cmds_FC
18662
18663 # A language specific compiler.
18664 CC=$lt_compiler_FC
18665
18666 # Is the compiler the GNU compiler?
18667 with_gcc=$GCC_FC
18668
18669 # Compiler flag to turn off builtin functions.
18670 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18671
18672 # How to pass a linker flag through the compiler.
18673 wl=$lt_lt_prog_compiler_wl_FC
18674
18675 # Additional compiler flags for building library objects.
18676 pic_flag=$lt_lt_prog_compiler_pic_FC
18677
18678 # Compiler flag to prevent dynamic linking.
18679 link_static_flag=$lt_lt_prog_compiler_static_FC
18680
18681 # Does compiler simultaneously support -c and -o options?
18682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18683
18684 # Whether or not to add -lc for building shared libraries.
18685 build_libtool_need_lc=$archive_cmds_need_lc_FC
18686
18687 # Whether or not to disallow shared libs when runtime libs are static.
18688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18689
18690 # Compiler flag to allow reflexive dlopens.
18691 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18692
18693 # Compiler flag to generate shared objects directly from archives.
18694 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18695
18696 # Whether the compiler copes with passing no objects directly.
18697 compiler_needs_object=$lt_compiler_needs_object_FC
18698
18699 # Create an old-style archive from a shared archive.
18700 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18701
18702 # Create a temporary old-style archive to link instead of a shared archive.
18703 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18704
18705 # Commands used to build a shared archive.
18706 archive_cmds=$lt_archive_cmds_FC
18707 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18708
18709 # Commands used to build a loadable module if different from building
18710 # a shared archive.
18711 module_cmds=$lt_module_cmds_FC
18712 module_expsym_cmds=$lt_module_expsym_cmds_FC
18713
18714 # Whether we are building with GNU ld or not.
18715 with_gnu_ld=$lt_with_gnu_ld_FC
18716
18717 # Flag that allows shared libraries with undefined symbols to be built.
18718 allow_undefined_flag=$lt_allow_undefined_flag_FC
18719
18720 # Flag that enforces no undefined symbols.
18721 no_undefined_flag=$lt_no_undefined_flag_FC
18722
18723 # Flag to hardcode \$libdir into a binary during linking.
18724 # This must work even if \$libdir does not exist
18725 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18726
18727 # If ld is used when linking, flag to hardcode \$libdir into a binary
18728 # during linking. This must work even if \$libdir does not exist.
18729 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18730
18731 # Whether we need a single "-rpath" flag with a separated argument.
18732 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18733
18734 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18735 # DIR into the resulting binary.
18736 hardcode_direct=$hardcode_direct_FC
18737
18738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18739 # DIR into the resulting binary and the resulting library dependency is
18740 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18741 # library is relocated.
18742 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18743
18744 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18745 # into the resulting binary.
18746 hardcode_minus_L=$hardcode_minus_L_FC
18747
18748 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18749 # into the resulting binary.
18750 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18751
18752 # Set to "yes" if building a shared library automatically hardcodes DIR
18753 # into the library and all subsequent libraries and executables linked
18754 # against it.
18755 hardcode_automatic=$hardcode_automatic_FC
18756
18757 # Set to yes if linker adds runtime paths of dependent libraries
18758 # to runtime path list.
18759 inherit_rpath=$inherit_rpath_FC
18760
18761 # Whether libtool must link a program against all its dependency libraries.
18762 link_all_deplibs=$link_all_deplibs_FC
18763
18764 # Fix the shell variable \$srcfile for the compiler.
18765 fix_srcfile_path=$lt_fix_srcfile_path_FC
18766
18767 # Set to "yes" if exported symbols are required.
18768 always_export_symbols=$always_export_symbols_FC
18769
18770 # The commands to list exported symbols.
18771 export_symbols_cmds=$lt_export_symbols_cmds_FC
18772
18773 # Symbols that should not be listed in the preloaded symbols.
18774 exclude_expsyms=$lt_exclude_expsyms_FC
18775
18776 # Symbols that must always be exported.
18777 include_expsyms=$lt_include_expsyms_FC
18778
18779 # Commands necessary for linking programs (against libraries) with templates.
18780 prelink_cmds=$lt_prelink_cmds_FC
18781
18782 # Specify filename containing input files.
18783 file_list_spec=$lt_file_list_spec_FC
18784
18785 # How to hardcode a shared library path into an executable.
18786 hardcode_action=$hardcode_action_FC
18787
18788 # The directories searched by this compiler when creating a shared library.
18789 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18790
18791 # Dependencies to place before and after the objects being linked to
18792 # create a shared library.
18793 predep_objects=$lt_predep_objects_FC
18794 postdep_objects=$lt_postdep_objects_FC
18795 predeps=$lt_predeps_FC
18796 postdeps=$lt_postdeps_FC
18797
18798 # The library search path used internally by the compiler when linking
18799 # a shared library.
18800 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18801
18802 # ### END LIBTOOL TAG CONFIG: FC
18803 _LT_EOF
18804
18805 ;;
18806 "gstdint.h":C)
18807 if test "$GCC" = yes; then
18808 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18809 else
18810 echo "/* generated for $CC */" > tmp-stdint.h
18811 fi
18812
18813 sed 's/^ *//' >> tmp-stdint.h <<EOF
18814
18815 #ifndef GCC_GENERATED_STDINT_H
18816 #define GCC_GENERATED_STDINT_H 1
18817
18818 #include <sys/types.h>
18819 EOF
18820
18821 if test "$acx_cv_header_stdint" != stdint.h; then
18822 echo "#include <stddef.h>" >> tmp-stdint.h
18823 fi
18824 if test "$acx_cv_header_stdint" != stddef.h; then
18825 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18826 fi
18827
18828 sed 's/^ *//' >> tmp-stdint.h <<EOF
18829 /* glibc uses these symbols as guards to prevent redefinitions. */
18830 #ifdef __int8_t_defined
18831 #define _INT8_T
18832 #define _INT16_T
18833 #define _INT32_T
18834 #endif
18835 #ifdef __uint32_t_defined
18836 #define _UINT32_T
18837 #endif
18838
18839 EOF
18840
18841 # ----------------- done header, emit basic int types -------------
18842 if test "$acx_cv_header_stdint" = stddef.h; then
18843 sed 's/^ *//' >> tmp-stdint.h <<EOF
18844
18845 #ifndef _UINT8_T
18846 #define _UINT8_T
18847 #ifndef __uint8_t_defined
18848 #define __uint8_t_defined
18849 typedef unsigned $acx_cv_type_int8_t uint8_t;
18850 #endif
18851 #endif
18852
18853 #ifndef _UINT16_T
18854 #define _UINT16_T
18855 #ifndef __uint16_t_defined
18856 #define __uint16_t_defined
18857 typedef unsigned $acx_cv_type_int16_t uint16_t;
18858 #endif
18859 #endif
18860
18861 #ifndef _UINT32_T
18862 #define _UINT32_T
18863 #ifndef __uint32_t_defined
18864 #define __uint32_t_defined
18865 typedef unsigned $acx_cv_type_int32_t uint32_t;
18866 #endif
18867 #endif
18868
18869 #ifndef _INT8_T
18870 #define _INT8_T
18871 #ifndef __int8_t_defined
18872 #define __int8_t_defined
18873 typedef $acx_cv_type_int8_t int8_t;
18874 #endif
18875 #endif
18876
18877 #ifndef _INT16_T
18878 #define _INT16_T
18879 #ifndef __int16_t_defined
18880 #define __int16_t_defined
18881 typedef $acx_cv_type_int16_t int16_t;
18882 #endif
18883 #endif
18884
18885 #ifndef _INT32_T
18886 #define _INT32_T
18887 #ifndef __int32_t_defined
18888 #define __int32_t_defined
18889 typedef $acx_cv_type_int32_t int32_t;
18890 #endif
18891 #endif
18892 EOF
18893 elif test "$ac_cv_type_u_int32_t" = yes; then
18894 sed 's/^ *//' >> tmp-stdint.h <<EOF
18895
18896 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18897 #ifndef _INT8_T
18898 #define _INT8_T
18899 #endif
18900 #ifndef _INT16_T
18901 #define _INT16_T
18902 #endif
18903 #ifndef _INT32_T
18904 #define _INT32_T
18905 #endif
18906
18907 #ifndef _UINT8_T
18908 #define _UINT8_T
18909 #ifndef __uint8_t_defined
18910 #define __uint8_t_defined
18911 typedef u_int8_t uint8_t;
18912 #endif
18913 #endif
18914
18915 #ifndef _UINT16_T
18916 #define _UINT16_T
18917 #ifndef __uint16_t_defined
18918 #define __uint16_t_defined
18919 typedef u_int16_t uint16_t;
18920 #endif
18921 #endif
18922
18923 #ifndef _UINT32_T
18924 #define _UINT32_T
18925 #ifndef __uint32_t_defined
18926 #define __uint32_t_defined
18927 typedef u_int32_t uint32_t;
18928 #endif
18929 #endif
18930 EOF
18931 else
18932 sed 's/^ *//' >> tmp-stdint.h <<EOF
18933
18934 /* Some systems have guard macros to prevent redefinitions, define them. */
18935 #ifndef _INT8_T
18936 #define _INT8_T
18937 #endif
18938 #ifndef _INT16_T
18939 #define _INT16_T
18940 #endif
18941 #ifndef _INT32_T
18942 #define _INT32_T
18943 #endif
18944 #ifndef _UINT8_T
18945 #define _UINT8_T
18946 #endif
18947 #ifndef _UINT16_T
18948 #define _UINT16_T
18949 #endif
18950 #ifndef _UINT32_T
18951 #define _UINT32_T
18952 #endif
18953 EOF
18954 fi
18955
18956 # ------------- done basic int types, emit int64_t types ------------
18957 if test "$ac_cv_type_uint64_t" = yes; then
18958 sed 's/^ *//' >> tmp-stdint.h <<EOF
18959
18960 /* system headers have good uint64_t and int64_t */
18961 #ifndef _INT64_T
18962 #define _INT64_T
18963 #endif
18964 #ifndef _UINT64_T
18965 #define _UINT64_T
18966 #endif
18967 EOF
18968 elif test "$ac_cv_type_u_int64_t" = yes; then
18969 sed 's/^ *//' >> tmp-stdint.h <<EOF
18970
18971 /* system headers have an u_int64_t (and int64_t) */
18972 #ifndef _INT64_T
18973 #define _INT64_T
18974 #endif
18975 #ifndef _UINT64_T
18976 #define _UINT64_T
18977 #ifndef __uint64_t_defined
18978 #define __uint64_t_defined
18979 typedef u_int64_t uint64_t;
18980 #endif
18981 #endif
18982 EOF
18983 elif test -n "$acx_cv_type_int64_t"; then
18984 sed 's/^ *//' >> tmp-stdint.h <<EOF
18985
18986 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18987 #ifndef _INT64_T
18988 #define _INT64_T
18989 typedef $acx_cv_type_int64_t int64_t;
18990 #endif
18991 #ifndef _UINT64_T
18992 #define _UINT64_T
18993 #ifndef __uint64_t_defined
18994 #define __uint64_t_defined
18995 typedef unsigned $acx_cv_type_int64_t uint64_t;
18996 #endif
18997 #endif
18998 EOF
18999 else
19000 sed 's/^ *//' >> tmp-stdint.h <<EOF
19001
19002 /* some common heuristics for int64_t, using compiler-specific tests */
19003 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19004 #ifndef _INT64_T
19005 #define _INT64_T
19006 #ifndef __int64_t_defined
19007 typedef long long int64_t;
19008 #endif
19009 #endif
19010 #ifndef _UINT64_T
19011 #define _UINT64_T
19012 typedef unsigned long long uint64_t;
19013 #endif
19014
19015 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19016 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19017 does not implement __extension__. But that compiler doesn't define
19018 __GNUC_MINOR__. */
19019 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19020 # define __extension__
19021 # endif
19022
19023 # ifndef _INT64_T
19024 # define _INT64_T
19025 __extension__ typedef long long int64_t;
19026 # endif
19027 # ifndef _UINT64_T
19028 # define _UINT64_T
19029 __extension__ typedef unsigned long long uint64_t;
19030 # endif
19031
19032 #elif !defined __STRICT_ANSI__
19033 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19034
19035 # ifndef _INT64_T
19036 # define _INT64_T
19037 typedef __int64 int64_t;
19038 # endif
19039 # ifndef _UINT64_T
19040 # define _UINT64_T
19041 typedef unsigned __int64 uint64_t;
19042 # endif
19043 # endif /* compiler */
19044
19045 #endif /* ANSI version */
19046 EOF
19047 fi
19048
19049 # ------------- done int64_t types, emit intptr types ------------
19050 if test "$ac_cv_type_uintptr_t" != yes; then
19051 sed 's/^ *//' >> tmp-stdint.h <<EOF
19052
19053 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19054 #ifndef __uintptr_t_defined
19055 typedef u$acx_cv_type_intptr_t uintptr_t;
19056 #endif
19057 #ifndef __intptr_t_defined
19058 typedef $acx_cv_type_intptr_t intptr_t;
19059 #endif
19060 EOF
19061 fi
19062
19063 # ------------- done intptr types, emit int_least types ------------
19064 if test "$ac_cv_type_int_least32_t" != yes; then
19065 sed 's/^ *//' >> tmp-stdint.h <<EOF
19066
19067 /* Define int_least types */
19068 typedef int8_t int_least8_t;
19069 typedef int16_t int_least16_t;
19070 typedef int32_t int_least32_t;
19071 #ifdef _INT64_T
19072 typedef int64_t int_least64_t;
19073 #endif
19074
19075 typedef uint8_t uint_least8_t;
19076 typedef uint16_t uint_least16_t;
19077 typedef uint32_t uint_least32_t;
19078 #ifdef _UINT64_T
19079 typedef uint64_t uint_least64_t;
19080 #endif
19081 EOF
19082 fi
19083
19084 # ------------- done intptr types, emit int_fast types ------------
19085 if test "$ac_cv_type_int_fast32_t" != yes; then
19086 sed 's/^ *//' >> tmp-stdint.h <<EOF
19087
19088 /* Define int_fast types. short is often slow */
19089 typedef int8_t int_fast8_t;
19090 typedef int int_fast16_t;
19091 typedef int32_t int_fast32_t;
19092 #ifdef _INT64_T
19093 typedef int64_t int_fast64_t;
19094 #endif
19095
19096 typedef uint8_t uint_fast8_t;
19097 typedef unsigned int uint_fast16_t;
19098 typedef uint32_t uint_fast32_t;
19099 #ifdef _UINT64_T
19100 typedef uint64_t uint_fast64_t;
19101 #endif
19102 EOF
19103 fi
19104
19105 if test "$ac_cv_type_uintmax_t" != yes; then
19106 sed 's/^ *//' >> tmp-stdint.h <<EOF
19107
19108 /* Define intmax based on what we found */
19109 #ifdef _INT64_T
19110 typedef int64_t intmax_t;
19111 #else
19112 typedef long intmax_t;
19113 #endif
19114 #ifdef _UINT64_T
19115 typedef uint64_t uintmax_t;
19116 #else
19117 typedef unsigned long uintmax_t;
19118 #endif
19119 EOF
19120 fi
19121
19122 sed 's/^ *//' >> tmp-stdint.h <<EOF
19123
19124 #endif /* GCC_GENERATED_STDINT_H */
19125 EOF
19126
19127 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19128 rm -f tmp-stdint.h
19129 else
19130 mv -f tmp-stdint.h gstdint.h
19131 fi
19132
19133 ;;
19134
19135 esac
19136 done # for ac_tag
19137
19138
19139 as_fn_exit 0
19140 _ACEOF
19141 ac_clean_files=$ac_clean_files_save
19142
19143 test $ac_write_fail = 0 ||
19144 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19145
19146
19147 # configure is writing to config.log, and then calls config.status.
19148 # config.status does its own redirection, appending to config.log.
19149 # Unfortunately, on DOS this fails, as config.log is still kept open
19150 # by configure, so config.status won't be able to write to it; its
19151 # output is simply discarded. So we exec the FD to /dev/null,
19152 # effectively closing config.log, so it can be properly (re)opened and
19153 # appended to by config.status. When coming back to configure, we
19154 # need to make the FD available again.
19155 if test "$no_create" != yes; then
19156 ac_cs_success=:
19157 ac_config_status_args=
19158 test "$silent" = yes &&
19159 ac_config_status_args="$ac_config_status_args --quiet"
19160 exec 5>/dev/null
19161 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19162 exec 5>>config.log
19163 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19164 # would make configure fail if this is the last instruction.
19165 $ac_cs_success || as_fn_exit $?
19166 fi
19167 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19169 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19170 fi
19171